Jump to content

How do you keep your code straight?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
KeilanS

KeilanS

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 211 posts
I only know the very basics of C++, and it's occured to me how many different codes there are.

In C++ alone there are tons of libraries, each with their own little code snippets. So do you guys just memorize them all? Especially those of you who know multiple languages. Like do you use some sort of reference or does it just become instinctive to remember the codes and keep your languages seperate after awhile?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I keep references handy. I have 4 main books that I use as references with C++, for example, plus another for wxWidgets. For almost any language I use, I'm reasonably comfortable with how it works. Having a reliable syntax highlighter is invaluable as well, since it helps me catch syntax changes (such as ' starting a comment versus starting a string).

For me, the biggest issue is := vs = vs == vs eq in the various languages.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
KeilanS

KeilanS

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 211 posts
Thanks Winged. My C++ text has some good references, so I'll make sure to keep that around.

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I also keep references and the internet is a great resource also. At work I have books for C#, C++, PHP and Perl. At home I have several misc. books (like JavaScript, PHP and Visual Basic). If you develop in a web language such as PHP the best reference you can get is probably right on the web (php.net = the PHP manual).

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I use w3schools heavily when doing any web work. Their resources on HTML, JavaScript, CSS, ASP, and ADO have saved my butt repeatedly.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
I love references, but most of the time I just find that I guessed right...
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#7
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
its so there is no and i mean NO Programmer out there that has no references you must be a genius to get all the code inside your head ok you should have your knowledge but its not a shame if you see other people source codes or read anything :D but never just copy and past the code without understanding what the code does
Posted Image

#8
KeilanS

KeilanS

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 211 posts

kresh7 said:

its so there is no and i mean NO Programmer out there that has no references you must be a genius to get all the code inside your head ok you should have your knowledge but its not a shame if you see other people source codes or read anything :D but never just copy and past the code without understanding what the code does

That is definatly advice to live by. As a math student, I see so many people trying to just memorize the formulas. It does not work well.

#9
mikelbring

mikelbring

    Programmer

  • Members
  • PipPipPipPip
  • 118 posts

KeilanS said:

That is definatly advice to live by. As a math student, I see so many people trying to just memorize the formulas. It does not work well.

I kind of hate it when the teacher makes you memorize them and you don't have a resource on a test. Its not about having the formula or even function memorized its about knowing which one to use and applying it. You might not have the exact make up of a function memorized but u can easy type it into google (I program in php) and then you can find the make up. As long as you know how to use and apply it.

Realize the Web Web services and design.


#10
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I used to let students have a cheat sheet (1 8.5x11 inch sheet, 2 sides) for tests. It was a great way to trick them into studying... they almost never needed to look at it :)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#11
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I agree with mike. I believe we are using an outdated method for testing in many instances. When access to information is readily available I don't see why teachers still require you to memorize formulas. As soon as the test is done most students forget them anyway.

#12
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
Normally when I programming something, I just keep typing constantly. Then when I come across something I forget, I just type it in Google.
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!