About code

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

About code

Post by STUDIOny on Tue Feb 10, 2009 1:50 pm
([msg=17620]see About code[/msg])

So, just a question.
Do you actually memorize every last bit of code needed to do such and such, or do you just understand it, then use, say a website or book for reference as such, to look up code.
That way, I suppose you memorize it over time, whilst using it...
STUDIOny
Experienced User
Experienced User
 
Posts: 73
Joined: Thu Feb 05, 2009 7:40 pm
Location: Newtownards, Northern Ireland
Blog: View Blog (0)


Re: About code

Post by godofcereal on Tue Feb 10, 2009 1:56 pm
([msg=17622]see Re: About code[/msg])

Well have you memerized all the numbers in the world? Once you understand it then you learn it over time. You dont need a site or a book if you know and understand coding.
Im off, last year of school and all, I had something longer but char limit fucked that up. So yeah, had a good run here. Thanks for the memories. Thanks to the staff and users.

Best regards, your posting whore,
godofcereal

p.s. Defience, you the man ;)
User avatar
godofcereal
Addict
Addict
 
Posts: 1068
Joined: Wed Aug 20, 2008 6:11 pm
Location: ireland
Blog: View Blog (0)


Re: About code

Post by STUDIOny on Tue Feb 10, 2009 3:28 pm
([msg=17632]see Re: About code[/msg])

Very true, thank you for your post.
STUDIOny
Experienced User
Experienced User
 
Posts: 73
Joined: Thu Feb 05, 2009 7:40 pm
Location: Newtownards, Northern Ireland
Blog: View Blog (0)


Re: About code

Post by Defience on Wed Feb 11, 2009 7:14 pm
([msg=17706]see Re: About code[/msg])

I have made many simple code snippets and named them things easy to pick out so when I'm writing code and need something, I can browse through my own files and select what's needed for that particular program. Also, adding comments to more complex codes enables me to sometimes pick out things I may need for something else.
User avatar
Defience
Addict
Addict
 
Posts: 1275
Joined: Thu Jun 12, 2008 3:16 pm
Blog: View Blog (0)


Re: About code

Post by Karec on Thu Feb 12, 2009 1:36 am
([msg=17728]see Re: About code[/msg])

Personally I do have some different general code structures that can be easily modified to what I need for projects. The stack implementation I have lying around has come in rather useful in many different projects.

So to sum it up, if you know there is something you use all the time its better to have a general form of it you can modify for your needs then to constantly rewrite it.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
-Rick Cook, The Wizardry Compiled
Karec
Poster
Poster
 
Posts: 127
Joined: Sun Apr 13, 2008 2:39 pm
Blog: View Blog (0)


Re: About code

Post by STUDIOny on Thu Feb 12, 2009 8:00 am
([msg=17734]see Re: About code[/msg])

Good idea that is, keep a somewhat general form of code, to modify it.

Thanks again for your posts, It's very much appreciated ;)
STUDIOny
Experienced User
Experienced User
 
Posts: 73
Joined: Thu Feb 05, 2009 7:40 pm
Location: Newtownards, Northern Ireland
Blog: View Blog (0)


Re: About code

Post by Defience on Thu Feb 12, 2009 12:29 pm
([msg=17751]see Re: About code[/msg])

Karec wrote:Personally I do have some different general code structures that can be easily modified to what I need for projects. The stack implementation I have lying around has come in rather useful in many different projects.

So to sum it up, if you know there is something you use all the time its better to have a general form of it you can modify for your needs then to constantly rewrite it.


Absolutely.....an example would be when I took the code I used from prog 11 to use on prog 12 and just made some modifications for the algorithm, so half of the code was already done before I even started it. Opening the page, sending the cookie, using regular expression to pull out needed info, then the submission portion.
User avatar
Defience
Addict
Addict
 
Posts: 1275
Joined: Thu Jun 12, 2008 3:16 pm
Blog: View Blog (0)


Re: About code

Post by xcurious on Fri Feb 13, 2009 6:59 pm
([msg=17836]see Re: About code[/msg])

Do you actually memorize every last bit of code needed to do such and such

this isn't history class
- Apologies to all who I have flamed in the past. Thanks mods for unbanning me.


ckw100 wrote:so i have been pacticeing my batch file hacking for networks
xcurious
Experienced User
Experienced User
 
Posts: 79
Joined: Sun Sep 21, 2008 3:49 pm
Blog: View Blog (0)


Re: About code

Post by tgoe on Fri Feb 13, 2009 9:23 pm
([msg=17849]see Re: About code[/msg])

xcurious wrote:this isn't history class


Sure it is. Best practices aren't simply invented.
User avatar
tgoe
Contributor
Contributor
 
Posts: 633
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests