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

Day: June 2, 2005

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.

uncategorized

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

There were no public health laws in Ankh-Morpork. It would be like installing smoke detectors in Hell.
--(Terry Pratchett, Feet of Clay)

Random Posts

  • Why boarding schools produce bad leaders
  • Couch Sunday
  • Soooo much food
  • Same prompt, different models
  • A bit (overly) dramatic….
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