8 ms·
There are people who hate python because of the forced indentation. They indent their code in their language of choice, they just don't want something FORCING t
by comeonseriously 5y ago
There are people who hate python because of the forced indentation. They indent their code in their language of choice, they just don't want something FORCING them to do it.
I'm always flabbergasted at this argument.
- seoaeu 5y agoI don’t indent my code, my autoformatter does. It is way less effort to get the braces right and then have the indent level inferred automatically
- comeonseriously 5y agoAutomated tools get in my way of thinking. I turn off intellisense, auto-formatters, etc... I'll run auto tools during check-in, but not during coding sessions.
- soledades 5y agoNo find and replace, either? ;)
- comeonseriously 5y agoI use those. But how would those be automated exactly? How would they know what I want to find and replace?
- gpm 5y agoBy understanding the language, so it can do magic things like "rename this field (including uses of it)" without changing other uses of the same string. As a separate operation from general find and replace, of course.
- soledades 5y agoYou tell it what you want to find and replace with and then it automates the rest. My point being that where you draw the line between what you consider automated vs not is pretty arbitrary.
- EMM_386 5y ago> I turn off intellisense Unless you are doing this for performance reasons, this one I'll never understand. I'd much rather type "x.someP" and hit tab then type in "x.somePropertyThatHasARidiculousNameIAlwaysForget" after having to consult the documentation yet again to get the name.
- comeonseriously 5y agoI already know what I want to type. Having something pop up with "suggestions", often obscuring the lines I need to read, is worthless to me at best and disruptive of my thinking at worst. If I can't recall "x.somePropertyThatHasARidiculousNameIAlwaysForget" then there are other more serious problems.
- EMM_386 5y ago> If I can't recall "x.somePropertyThatHasARidiculousNameIAlwaysForget" then there are other more serious problems. I just prefer to press less keys. It shouldn't obscure anything in a decent IDE. Often you are working with other people's code and having to "recall" every single property, method, etc declared is not practical, hence why I mentioned having to keep referring to the documentation for things you are not accessing very often. If I keep forgetting that a property is .lastname and not .lastName in a library I'm using I can just type "last" and press tab. This is even more crucial in dynamic languages like JS, where you will get a failure at runtime and not compile time. It doesn't make you any "less of a programmer", it makes you a more efficient one once you are used to it.
- vidarh 5y agoIf you have properties with ridiculous names, that's a bigger problem. Autocomplete in code seems to mostly be papering over design smells that should be fixed.
- EMM_386 5y ago> If you have properties with ridiculous names, that's a bigger problem. I have no control over third-party dependencies and how they name things.
- ReleaseCandidat 5y agoAll usable editors also infer the indent levels of brace-less languages. Sometimes you have to change that using a <tab> or <shift>-<tab>, but sometimes I have to write braces in languages with braces too.
- krisrm 5y agoI suppose I don't quite match the reasoning you're describing, but here's mine. I indent; I just don't want semantic meaning ascribed to whether or not I'm missing an indent. I'll handle the {}s, my editor handles the indent level, and everyone gets along fine.