4 ms·
I used columns 7-72 for code for Fortran IV and I liked it. I used 3 spaces for Pascal and PL/I and PLUS and I liked it. I used no indentation whatsoever for
by pklausler 9y ago
I used columns 7-72 for code for Fortran IV and I liked it.
I used 3 spaces for Pascal and PL/I and PLUS and I liked it.
I used no indentation whatsoever for APL and I liked it.
I used spaces for CDC and Cray-1 assembly, tabs for microprocessors, and had no productivity difference.
I used tabs for C and I liked it.
I aligned everything on the ':-' in Prolog and I liked it.
I use 2 spaces for C++ and that's the only part of C++ that I like.
I use no regular pattern for Haskell and it's perfect.
It doesn't matter. Let your team's format zealot win this argument. Find another hill to die on, like naming conventions or "using namespace std;".
- thephyber 9y agoI expected to see "I used no spacing whatsoever for PERL and I liked it."
- pklausler 9y agoFor those who like things like Perl, Perl is exactly the sort of thing that they like.
- gbacon 9y agoUnfair [not to mentioned tired, boring, unimaginative, and overused] stereotypes are awesome! https://perldoc.perl.org/perlstyle.html https://perldoc.perl.org/perlstyle.html > Just because you CAN do something a particular way doesn’t mean that you SHOULD do it that way. Perl is designed to give you several ways to do anything, so consider picking the most readable one.
- pklausler 9y agoI would appreciate it if you would describe the stereotype that you think that the text of my comment somehow cast upon Perl programmers, other than the intended tautology.
- readams 9y agoFor those who miss jokes about Perl tautologies, missing jokes about Perl tautologies is exactly the sort of thing they do.
- deleted 9y ago[deleted]
- marcosdumay 9y agoI still couldn't like any .Net code... But yeah, I use the standard on it too (I don't even know what it is). Python seems to be a big problem, as it leads to code one would copy and paste, and despite what PEP8 says, there are 'unconverted' tools that will use tabs. The Haskell situation superficially annoys me, because it leads to constant reflowing. But well, it doesn't annoy me enough to do anything about it.
- Sohcahtoa82 9y ago> Find another hill to die on, like [...] "using namespace> std;". I don't think I've ever seen a professional programmer defend the usage of "using namespace std;". It's just a trap newbies get into.