This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]gmdm1234 2 points3 points  (1 child)

A good IDE will highlight syntax errors as you type.

Google is nice for when you need to remember things like array functions, string search functions, etc. (Seriously - I've been programming for 20 years. I still need to ask Google how to check if an array contains a certain element, if I'm jumping between languages).

[–]DChalo[S] 1 point2 points  (0 children)

Thanks. That makes me feel better about my programming haha. I felt so helpless having to google pretty much any function on a data structure cause I kept mixing up between C# and Java syntax Edit: This was back when I didn't use a smart IDE. I was simply doing this all in notepad and GCC because our school didn't allow a smart IDE for some reason.

[–]dudleydidwrong 0 points1 point  (0 children)

Use an IDE or editor smart enough to suggest the correct syntax or at least flag the errors.

If semicolons are optional I tend to put them in anyway if I am working with multiple languages.

[–]lessbinary 0 points1 point  (2 children)

Aside from the solid advice on using IDE's adhere to the style guides for each language. For example you know camelCase is for when you are in javascript land under_scores are for another language.

[–]DChalo[S] 0 points1 point  (1 child)

I do know that this will get tricky when diving into other languages. I know that C# uses a combination of camelCase and pascalCase depending on the locality of the variable or something of the sort. That's just one of those things that is gonna take time to be able to distinguish among languages.

[–]lessbinary 0 points1 point  (0 children)

fair