71 points · by timf · 13y ago · 12 comments
IMO, using larger names is only a symptom of the main problem - the fact that we're still using plain old text search and replace. We're relying on it way too much. And its not a very precise, very fine tool.
Code organization solutions don't seem to fully solve this either.
1) Whoops, we need to change this style everywhere:
"Lets just use classes, then when we want to change the style of our buttons we can change it at a single place (the class)"
2) Whoops, we need to change the class name
"Lets just use templates containing the class name, then when we want to change the class name we simply change it in the template"
3) Whoops, we need to change the template... and so on.
I think there is a clear need for better code maintenance tools, for all languages. Especially the search (and replace) problem. Perhaps search tools that are based on the language parsers would help.
https://www.jetbrains.com/editors/html_xhtml_css_editor.jsp?...
Just because my application now gains traction, I wouldn't throw out or fork the GUI toolkit. Maybe add some extensions and helper libs, maybe throw some patches upstream, but not NIH the whole thing.
Passing a common maintenance burden off to FOSS is a glorious win. When you fully appreciate Bootstrap, you'll see that's what it does.
I feel so dumb for never having thought of this myself. It really irked me that my HTML was no longer semantic, which is why I putted off using Bootstrap for a very long time. I don't have to feel guilty any more :P
Which is why I've started avoiding anything I feel it's going to be difficult to read and maintain in the future by me or another person. I now always assume it's going to be another person, even if it's not, but this has helped me write more clear and concise code.
Even if the initial effort is more time consuming, it makes up for it in the end. Bootstrap and CoffeeScript are two tools that I feel suffer from that effect greatly.
Maybe it's a fallacy, because I have nothing to back my claims, but it's only my personal opinion, feel free to use whatever makes you happy.