Re:Code snippets on Microsoft website shown in form of images.
by frou_dh on Wednesday December 07, 2011 @09:59AM
(#3323989)
> That makes me angry. Because I have OCD. Most programmers do.
I assume you mean fake, self-diagnosed OCD, then.
Re:Code snippets on Microsoft website shown in form of images.
by paul-woolcock on Wednesday December 07, 2011 @01:36PM
(#3325131)
yes, the small, annoying personal neuroses that everyone has, but for some reason we programmers like to wear as a badge of honor.
The formatting is non-existant. That makes me angry. Because I have OCD. Most programmers do.
There's a lot of direct use of DOM traversing, which makes the code rather brittle. (Use a css selector for binding to the DOM - jQuery is the de-facto standard tool here).
Variables are not encoded in the URL. And when it is, it happens on a separate line from where it's used. That's just bad style.
Oh, and what's the point of those declared-but-unused variables (`spanish, german, english`).
And why aren't they in a hashmap?