8/26/2023 0 Comments Python code formatter onlineOne missed opportunity in Black's algorithm is that it currently treats the maximum line length as a literal hard limitation in number of characters. I am experienced enough to format my code in a readable way and I don't need it reformatted, just because someone has to try out some tool. In many places it might give some benefits, but in others it will ruin the original code formatting. An automatic code formatter is the epitome of consistency, as it applies the rules everywhere the same way. That adds lots of changes and people do not afterwards separate their commits for "only reformatting" and the actually important bits of their changes.Īs PEP8 already says: "A Foolish Consistency is the Hobgoblin of Little Minds". Another example is, that these code formatters are often configured wrongly in people's code editors to reformat everything in the whole file. When the log call spans multiple lines, it distracts from the bits of code between log calls. But what if I have a log call there? Do I want to have that log span 3-6 rows, just because the silly formatter thought it is a long line? Well it is a long line, but I don't want to break it into multiple lines, as that would give that log call waaaay too much space. Usually a code formatter will break long lines, for example a function call with some arguments. I'm not a big fan of automatic code formatters, unless they get somewhat more configurable. They looked poopy in list format with most fonts.”Ībsurd, to be sure, but what if these decisions don’t step on obvious toes? The average supporter is more likely to tolerate slightly warmer water than hop into another pot, right? And if you stayed in the pot through several degree increases, you’ll feel a sense of Boiling Frog Belonging (TM).Īnd if you credited the original dictatorial decision for this emergent sense of community, you’d be very much correct. a corporate effort, would we risk seeing changelogs like “Insiders 2.20 - lead Architect and Face of the Product removes plug-ins starting with vowels, “because they lacked cohesion and product-centered aesthetics. corporate behemoths?Į.g., if VS Code were a one-person show vs. What ever happened to design around maximum flexibility AND feature coverage?Īre developers more likely to be “opinionated” in their work if the predominant digital culture of their early career was rewarding of evangelism via self-promotion? Or grew up in an educational era that promoted activism? Are these sorts of issues more common in smaller / person-driven teams vs. Then again, the prevailing usage of “opinionated” in dev circles was new to me, as well. In the spirit of dev/user freedom, the creator has every right to enforce a standard, regardless of its basis - even if arbitrary - but I find it a little creepy. Perhaps my naivete is showing, but I fail to see how an option that allows broader range of use cases suddenly becomes a religious war about spacing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |