3 ms·
Tabs fail when my IDE is set to convert tabs to spaces and yours isn't.
by peterbonney 9y ago
Tabs fail when my IDE is set to convert tabs to spaces and yours isn't.
- seren 9y agoAdditionnaly diff/merge tool tend to be inconsistent. So it looks good on your editor, but when I am doing your code review, alignement is totally broken. In theory, it should be easy enough to ask people to have consistent settings across all tools, but it is a bit like herding cats. Sadly most people do not even realize it could look differently without their settings. (I could ignore whitespaces when doing reviews but this is an open invitation to break everything)
- creepydata 9y agoSeriously? When you start on a project you configure your IDE to match the project's conventions. If you are in a mentoring role you instruct your jr developers to do the same, first thing, before writing any code. This has never been an issue at any place I ever worked. If a PM can't get their developers to do something as simple as that then you have larger organization problems than code formatted weirdly. As well as totally incompetent developers.
- drblast 9y agoOn a very large codebase, developed over decades, not months or years, by thousands of individual teams, using multiple versions of multiple IDE's, some of which didn't exist when the project started, across different languages, also some of which didn't exist when the project started, this is not so simple. Unless the project's settings are to use spaces.
- creepydata 9y agoI've worked on projects that have been developed over decades and there has never been an issue. We have conventions, developers are expected to follow conventions, and if they don't they are instructed go back and fix their code.
- LanceH 9y agoSpaces when tabs are used. Your point?
- Shorel 9y agoIn that case your IDE fails. Respect .editorconfig files