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.

  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to 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

  • Liven things up work
  • When I’m good, I’m gooood work
  • The end of an era friends
  • We are fucking not amused dealing with idiots
  • Echo! Echooo! Echoooooo! health
  • Documentation will make your brain leak from your ears computers are evil

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

"It would seem that you have no useful skill or talent whatsoever," he said. "Have you thought of going into teaching?"
--(Terry Pratchett, Mort)

Random Posts

  • You know you’re in Switzerland when…
  • This is why you don’t operate heavy machinery or sign legal contracts after anesthesia
  • Not the droids I’m looking for, but I’ll take it
  • O Christmas tree
  • Pretty much.
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 © 2025 The beaver is a proud and noble animal.

Powered by PressBook Premium theme