3 ms·
Who aligns like that? It seems to defeat the purpose of putting it on a separate line. void someNiceMethod( <tab>int myParam... ); Hey Presto! You, Joe
by frobozz 9y ago
Who aligns like that? It seems to defeat the purpose of putting it on a separate line.
void someNiceMethod(
<tab>int myParam...
);
Hey Presto! You, Joe and Jane all get your preferred size size of tab.
As a bonus, this indentation style works equally well if Jim uses a non-fixedwidth typeface.
- rootusrootus 9y agoWell, as long as everyone always use tabs, that should work out okay. But in practice, of course, it doesn't ever happen that way. Nice thing about a space is that it is always a space, a tab is however many spaces you personally want it to be.
- metaobject 9y agoNon-fixed width typeface? That would be grounds for immediate termination.
- IshKebab 9y agoYou'd lose a pretty good employee then: http://www.stroustrup.com/3rd_notes.pdf http://www.stroustrup.com/3rd_notes.pdf > At first glance, this presentation style will seem ‘‘unnatural’’ to programmers accustomed to seeing code in constant-width fonts. However, proportional-width fonts are generally regarded as better than constant-width fonts for presentation of text. Using a proportional-width font also allows me to present code with fewer illogical line breaks. Furthermore, my experiments show that most people find the new style more readable after a short while Great book, and I have used proportional fonts occasionally. It's much much better than you might imagine (as long as you are sane and use tabs for indentation). Obviously you can't get "perfect" alignment like you can with fixed-width fonts, but it is certainly nicer to read, so there is a trade-off.
- saghm 9y agoDo people actually code with non-monospaced fonts? I've never seen anyone doing that before
- mark-r 9y agoWhen I first started programming I had to share a single terminal with the rest of the school, so I wrote my programs on paper first. I used graph paper so that my handwriting would be monospaced.
- inanutshellus 9y agoPeople's opinions on that matter are always very strong and rarely... align (ba dum bump). All-spaces lets the code look as-intended for everyone, and then their IDEs can let them hit the tab-key and get the look-and-feel they're after. It is the best option that gives the most freedom to everyone whilst also making us all play well together.