4 ms·
Nope... This is the big misunderstanding that, for some reason, people just don't get and causes tabs to be maligned. Tabs are for indentation, not for alignme
by globular-toast 6y ago
Nope... This is the big misunderstanding that, for some reason, people just don't get and causes tabs to be maligned.
Tabs are for indentation, not for alignment. If you want to align things within the same indentation level, use spaces. This will never break on any platform or in any editor.
When I was about 5 years old I ate a parsnip thinking it was a potato. My taste buds were all of a sudden overwhelmed and I spat it out in disgust. It took more than 20 years for me to try a parsnip again.
My theory is the same with tabs. Everyone developer, during their early career, learns what tabs are the hard way, that is when they open a document in another editor and, because they've made a mistake, it looks wrong. But instead of learning how to use tabs properly, they spit them out.
- pjmlp 6y agoIf one needs to be force fed to appreciate them, that already shows how much of a problem they are.
- globular-toast 6y agoChildren need to be forced to learn to read and write.
- pjmlp 6y agoSo using spaces is being illiterate.
- globular-toast 6y agoNot necessarily, but I am arguing that most people are tab illiterate. Things that are worth learning are rarely easy/obvious.
- pjmlp 6y agoTabs only work in a perfect world where 100% of source files are always edited with tab aware editors and absolutely no one ever uses a space instead of tab. I rather keep using spaces, like I have been doing since 1992, plus apparently it reflects on salary.