| Off Topic > Off Topic |
| Programming Megathread |
| << < (94/241) > >> |
| ZSNO:
--- Quote from: devildogelite on February 09, 2016, 06:45:26 PM ---Talking about how you use brackets and white space is always a good way to get people riled up. I had a professor start this debate to get the class going once and everyone got pretty into it. --- End quote --- Ahhh, so it's turning into the Programming Bait thread then |
| $trinick:
--- Quote from: Foxscotch on February 09, 2016, 06:11:23 PM ---I don't like that, either it's another case of getting confused while skimming. the else being on the same line as the closing bracket makes me think it's just more code in the initial if --- End quote --- But it loses an indentation level so it's clear that the if has ended, then since immediately it is indented obviously it's entered an alternative control flow. It actually makes it easier for me to identify else statements while skimming because if there's only one line that loses indentation then the next line is the else clause, versus if it's another if statement it follows a different form: if(x == y) { // foo } if(x == z) { // bar } |
| Drydess:
--- Quote from: devildogelite on February 09, 2016, 06:45:26 PM ---Talking about how you use brackets and white space is always a good way to get people riled up. I had a professor start this debate to get the class going once and everyone got pretty into it. --- End quote --- braces***** |
| Ono-Sendai:
--- Quote from: $trinick on February 09, 2016, 07:41:20 PM ---But it loses an indentation level so it's clear that the if has ended, then since immediately it is indented obviously it's entered an alternative control flow. It actually makes it easier for me to identify else statements while skimming because if there's only one line that loses indentation then the next line is the else clause, versus if it's another if statement it follows a different form: if(x == y) { // foo } if(x == z) { // bar } --- End quote --- even though its been my style since forever same line braces can lead to line noise sometimes imo. lately ive been writing a lot of js and i dont give a forget anymore. indentation is the correct way to read code however so meh --- Quote from: $trinick on February 03, 2016, 09:12:56 PM ---0x90 --- End quote --- nice meme fam. do you have a job yet? |
| TheBlackParrot:
"i should probably test the API i've been writing" https://github.com/TheBlackParrot/strimmer-nwjs http://i.imgur.com/EpkQAdI.png i'm probably not even using nwjs to its full extent but w/e |
| Navigation |
| Message Index |
| Next page |
| Previous page |