| Off Topic > Off Topic |
| Programming Megathread |
| << < (128/241) > >> |
| Pecon:
--- Quote from: Ravencroft· on May 03, 2016, 09:51:13 PM ---My professor always uses caps when naming variables and functions in example program notes, so it became a habit for me. --- End quote --- Urgh. You should learn camelcase, it's the current accepted standard for formatting variable names. basicallyCamelCaseLooksLikeTh is. When you name a variable, the first 'word' is lowercase, while each additional word in the name has an uppercase first letter. You should also work on self-documenting code by naming your variables smartly so the code is easy to read and understand. |
| Headcrab Zombie:
--- Quote from: Ravencroft· on May 03, 2016, 09:51:13 PM ---What would I indent? The professor has provided zero lecture notes involving formatting. --- End quote --- Everything in braces gets one tab indent If you put braces in those braces, then those contents get two tabs |
| Foxscotch:
--- Quote from: Ravencroft· on May 03, 2016, 09:51:13 PM ---What would I indent? The professor has provided zero lecture notes involving formatting. My professor always uses caps when naming variables and functions in example program notes, so it became a habit for me. --- End quote --- https://google.github.io/styleguide/cppguide.html |
| Headcrab Zombie:
--- Quote from: Foxscotch on May 03, 2016, 10:05:20 PM ---https://google.github.io/styleguide/cppguide.html --- End quote --- That touches way more stuff than he even knows what it means tho |
| Ravencroft·:
So basically she has been teaching us her own unorthodox methods. Fantastic. Funny because she has a degree in computer engineering. |
| Navigation |
| Message Index |
| Next page |
| Previous page |