«« Next » « Previous
«« Next » « Previous

Link Details

Stop waiting for the other guy to do it. Login and vote now.
Link 66287 thumbnail

By nsoonhui
via csccredit.com
Published: Feb 14 2008 / 09:36

See the source. That's how we should write our code. Simply Elegant.
  • 11
  • 9
  • 2229
  • 1251

Comments

Add your comment
User 204981 avatar

reido56 replied ago:

1 votes Vote down Vote up Reply

Looks a lot like C in the guise of Javascript. Makes me long for Prototype.

User 204981 avatar

reido56 replied ago:

1 votes Vote down Vote up Reply

Ohhh, it's a sarcasm link, thank Bob. Why isn't the humor tag set?

User 207069 avatar

hal10001 replied ago:

1 votes Vote down Vote up Reply

[/sarcasm]

So, do I vote this up, or vote this down? It was a mediocre use of sarcasm, but a good example of bad JavaScript.

User 128441 avatar

je88484 replied ago:

1 votes Vote down Vote up Reply

I too do not know how to vote because I don't know the intention of the poster, nor their perspective. To me this looks typical of code you will get if you contract coding work out to a shop staffed with large numbers of those willing to work for the least pay. It is boring, ugly, and uninspired. But it probably works, which is what the customer wanted.

User 115898 avatar

nstuart replied ago:

1 votes Vote down Vote up Reply

Heh...apparently someone has never of regex before...had to double check but they are infact going over every letter in the alphabet, finding its index and keeping count to see ifs the password contains at least two letters...wow...paid per line of code?

User 218837 avatar

kogent replied ago:

1 votes Vote down Vote up Reply

this belongs on WTF

User 241883 avatar

toomasr replied ago:

0 votes Vote down Vote up Reply

Ehehehehe

User 270838 avatar

wombat42a replied ago:

0 votes Vote down Vote up Reply

Ironic that it is a branch of Computer Sciences Corporation.

User 128441 avatar

je88484 replied ago:

0 votes Vote down Vote up Reply

I used to work for CSC. I suppose this is the result of my having left.

User 186462 avatar

Jeremy Weiskotten replied ago:

0 votes Vote down Vote up Reply

Someone needs their copy and paste privileges taken away.

User 257205 avatar

hoffmandirt replied ago:

0 votes Vote down Vote up Reply

A good developer would not call this elegant. Regex would have been great, but even a function to pass an array of letters to would have been better than this disaster waiting to happen. Apparently someone has not heard of \n either. Try reading the error message when you submit the form with none of the required fields completed.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.