4 ms·
I was hoping we could keep our zealousness to tabs vs spaces, 2 vs 3 vs 4 vs 8 indentation levels, etc.
by angra_mainyu 3y ago
I was hoping we could keep our zealousness to tabs vs spaces, 2 vs 3 vs 4 vs 8 indentation levels, etc.
- xeckr 3y agoDo you end all your statements in JS with semicolons? What, are you some sort of semicolonialist?
- brodouevencode 3y agoSemicolonizer
- ASalazarMX 3y agoDoes this make Erlang a colonialist?
- xeckr 3y agoI'm afraid so. You Erlangers are all cancelled now, together with the Python people.
- mmh0000 3y agoThis is a good point you bring up. It is evident that everyone knows the correct level of indentation is a tab character that is four spaces wide; you never use spaces for indentation, only tab characters. Any suitable programming language will immediately recognize a space as a typo and fail compilation.
- Sohcahtoa82 3y agoThe correct answer to the "tabs vs spaces" debate is tabs for indentation, spaces for alignment. This allows people to use any tab width they want and it will always look good. However, in the real world, attempting this won't work because there will be a minimum of 1 person in the team that configures their editor to convert tabs to spaces. Ideally, that person should have their PRs rejected and be scolded into fixing their editor. But the real result ends up just forcing everyone to use spaces.
- teddyh 3y agoNo, the actual perfect solution is Elastic Tabstops: <https://nickgravgaard.com/elastic-tabstops/ https://nickgravgaard.com/elastic-tabstops/>
- yencabulator 3y ago> The correct answer to the "tabs vs spaces" debate is tabs for indentation, spaces for alignment. I for one would like to live in an era where we move beyond monospace text.
- catchnear4321 3y agothat is indeed all considerably superfluous and a distraction from the one true law. the first element of an array is at index zero. only a filthy heathen starts at one. to add a one to the beginning is arrogance, the mark of a human needing to see itself everywhere, while zero is pure, a beginning. in before some one-head leaves a half-baked comment about why it makes more sense for the first element to start with one because one and first are same but different. so childish.
- teddyh 3y agoHere’s the ultimate authority on why computer languages should count from zero: <https://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF https://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF>
- ethbr1 3y agoThere are linguistic arguments that suggest 1-basing. [1] [1] http://kilby.stanford.edu/~rvg/ordinal.html http://kilby.stanford.edu/~rvg/ordinal.html
- catchnear4321 3y agothis is unfortunately not an entirely good argument… > Then the colleague continues by numbering the next apple "126", and the process ends at "188". At that point the colleague has to guess whether the counting started at 0 or at 1, i.e. whether the total number of apples is 188 or 189. false. the next person, having heard 188, only needs to know what follows. 189. as this is a job that has been divided, so long as the beginning stage is recorded somewhere, as well as the end stage, each worker (save first and last) exclusively need to know the number of the apple prior to their first for their first apple is not zero or one, it is the number immediately following last. n+1. counting could have started at -1. heathen.