News for hackers. Stuff that matters.
Re:A Tale of Two Bootstraps: Lessons Learned in Maintainable... by spion on Sunday December 16, 2012 @06:44PM (#4930051)
My takeaway from this story is slightly different - we need better tools. Especially better refactoring tools.

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.

Re:A Tale of Two Bootstraps: Lessons Learned in Maintainable... by mike_esspe on Monday December 17, 2012 @12:21AM (#4930942)
Intellij supports CSS refactoring to some extent:

https://www.jetbrains.com/editors/html_xhtml_css_editor.jsp?...

Re:A Tale of Two Bootstraps: Lessons Learned in Maintainable... by wtracy on Sunday December 16, 2012 @10:41PM (#4930719)
IDEs like Eclipse have this problem solved for languages like Java, so it's doable. I don't know why I've never seen an equivalent solution for HTML/CSS.