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

  • Multitasking doesn’t work dilbert
  • WFH with velcro dog chonk
  • I’ve seen meetings like this work
  • New update, now with 100% more content! gadgets
  • Grumpy cat on coding… computers are evil
  • The owl is hard at work bobble the little blue owl

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

The Patrician was a pragmatist. He never tried to fix things that worked. Things that didn't work, however, got broken.
--(Terry Pratchett, Soul Music)

Random Posts

  • Brushing off the old coding skills
  • Thank you for your compliance
  • WebSummit, here I come
  • Oh that's no good!
  • [recipe] Pancakes
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