3 ms·
I program professionally in C, Python and Javascript. Instead of starting with a empty file, I copy an existing file in the language that I'm using. Simply by
by GianFabien 4y ago
I program professionally in C, Python and Javascript.
Instead of starting with a empty file, I copy an existing file in the language that I'm using. Simply by seeing examples of syntactically correct code, I assimilate. It's only a 90% solution. For example using single quotes on strings in C and putting a ';' at the end of lines tends to creep into my Python code.
- EnderShadow8 4y agoWhy not use double quotes for strings in all languages? It makes sense for a number of reasons. Single quotes are much more likely to be in the contents of a string than double quotes. Of course, if you have a style guide, you should stick to that.
- pabs3 4y agoIn some languages double quotes have different meaning to single quotes, for example in shell variables expand inside double quotes but not inside single. So you need to know which your current language uses.