Skip to content
The beaver is a proud and noble animal

The beaver is a proud and noble animal

Notes from a bemused canuck

  • Home
  • About
  • Bookmarks
  • Pictures
  • Resume
  • Wine
  • Random Recipe
  • Toggle search form

How not to code

Posted on June 2, 2005 By admin

I am working with a codebase that is just…. braindamaged.

352 classes and NOT A SINGLE LINE OF COMMENTS!!!

Added to this loverly fact is code like this:

Iterator it = set.iterator();
for (readfileindex = 0; it.hasNext(); readfileindex++) 
{
    String filename = (String) it.next();
    //do something with it
}

Anybody with a bit of programming experience will realize that, though this block is valid, it makes NO LOGICAL SENSE. Especially when you realize that the readfileindex is used somewhere else for UI purposes. It violates about every common sense rule for effective programming.

joy.

  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Facebook (Opens in new window) Facebook
  • Share on Threads (Opens in new window) Threads
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
uncategorized Tags:dealing with idiots, work

Post navigation

Previous Post: Sad, but true
Next Post: the good the bad and the ugly

Related Posts

  • You’ll fit right in… the wrong order dilbert
  • Stirring up trouble in the language war pot dealing with idiots
  • We’ve gained the dubious award of dumbest voters brexit
  • Nice to know they care :-D health
  • Parcelfarce… dealing with idiots
  • 5pm IT humour lolcat

Power to the beaver!

Show me the beaver!
June 2005
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« May   Jul »

Quote of the day

Sham Harga had run a succesful eatery for many years by always smiling, never extending credit, and realizing that most of his customers wanted meals properly balanced between the four food groups: sugar, starch, grease and burnt crunchy bits.
--(Terry Pratchett, Men at Arms)

Random Posts

  • No more arbitrary deadlines!
  • That cat has no shame
  • Bobble goes to the comptoir Helvétique
  • Notes from the eSAHM
  • Good attitude to have
reading leopard

Tags

bobble the little blue owl boobies brought to you by the fda cats chonk christmas comics computers are evil covid-19 dealing with idiots dilbert dog ducks galleries geek god bless the land of the free holidays house I am Canadian land of cheese and chocolate linked news lolcat london news from the stupid not my dog nsfw pets pictures potd2014 qotd random shit re-member recipes relationship shrill slice of life stress Tao the british way The Peanut things i miss travel video wine work

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2026 The beaver is a proud and noble animal.

Powered by PressBook Premium theme