I’m comparing some open source Javascript plugins. I won’t name names (unless I change my mind), because my point is not to bring public shame. I respect anyone who takes the time and effort to release an open source project.
That said, I don’t think there is ever an excuse for releasing codes that been given a severe beat-down by the ugly stick. I’m talking about screwy indentation, splatterings of unnecessary whitespace, jumbling up spaces with tabs, using fugly variable names, and lines that are 120 characters long. (Of course, this doesn’t matter for minified or packed JS.)
Is it unfair of me to judge code in this way? Perhaps. But I have found that first impressions can be useful: code that is ugly-on-first-sight probably won’t fail to disappoint later.
Post a Comment