3 ms·
Tabs are controlled by the renderer and can look wholly different per IDE/notepad Monospace spaces are consistent across every machine While the fight over "h
by scrungiforous 3y ago
Tabs are controlled by the renderer and can look wholly different per IDE/notepad
Monospace spaces are consistent across every machine
While the fight over "how many spaces" can be tricky, at least the code looks consistent once a standard is found
- redhale 3y agoDid you read the article? This is the point, or rather the inverse. Why do you need the code to look the same on your machine as on mine? So what if I prefer wider indents? Tabs allow flexibility of viewing experience while keeping the code itself consistent.
- empthought 3y agoEditors are smart enough now that they can format the code for display however you like, independently of tabs vs. spaces.
- scrungiforous 3y agoOh I read it, doesn't mean I agree. It matters in that the code you write looks great for you, but misaligned for everyone else. If we are coding as a team, the code needs to be easily readable by everyone, not just by your IDE -- and without having to change my IDE to suit each developer's personal preference of tab size
- redhale 3y agoI honestly don't understand what you mean by "without having to change my IDE ...". Because that's exactly it -- you set your IDE to make tabs the width that is easy to read for you. I do the same. We both get readable-to-us code without imposing our visual preference on each other. I don't understand the downside of this approach. Am I just missing something obvious? Honestly asking.