/// Frank Hagen: Professional Web Developer, C# User, Reformed Über-geek RSS 2.0
# Wednesday, November 22, 2006

When you are looking at someone else's code, at what point can you definitively know it is bad code?  I'm sure everyone has their metrics.  Here's mine and so simple too:

Server Timeouts

Yep, real simple.  Here's the thing:  Nothing else, in my mind, shows a greater lack of understanding of the basic architecture of a system than poorly set timeouts.  For instance.  while not a bad idea to adjust the timeout of the SQL connection to fit what you are doing, setting it to 1200 means you don't realize that it means seconds and you just told your application to wait 20 minutes before doing any damage control.  I don't know about you, but ANY application that makes me wait 20 minutes for anything (without showing me real progress) is broken; I am impatient after 20 seconds!  Another example:  setting an ASP.NET app to use a session timeout of 300 minutes means you don't care about your server at all.  Why not store user specific information (full DATASETS!) in memory for 5 hours after the user has left the page.  5 hours!

These are real examples of code I am working on today.  I don't care how elegant your architecture is, Server Timeout abuse has always been a very simple indicator of developer incompetance.  Oh, and it seems to be in direct proportion of scale too.  I have actually seen an ASP session set to 3000000.  Yes 3 MILLION minutes.  That is 50,000 hours.  5 years, 8 months, 14 days, 13+ hours.  Yeah, that'll work.  I was not well loved because I wouldn't allow crap like that to run on my servers.

BTW, 3M minutes was by the same coder who thought LastName is a good primary key on a DB.  And when that didn't work, how about a composite key on LastName, FirstName.  Yep, World Class programmer.

Wednesday, November 22, 2006 3:03:20 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Programming | Rant

Congrats to GP for his new change of status.  Sorry I missed the party, I bet it was memorable.

Wednesday, November 22, 2006 12:30:01 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Life
# Tuesday, November 21, 2006

It took nearly two months, but I finally posted the review of the Foundation Series today.  The post date, however, is set to the date I originally started it, and ATOM sets the update date to the date finished or last edited.  Enjoy.

Tuesday, November 21, 2006 8:18:41 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Blog
# Wednesday, November 15, 2006

You may have noticed two things on my blog of late.  First is a Comment link that is simply a mailto: tag.  I have decided to use TC's method of comments for the time being until I can get a real system up.  Anybody have a problem with a port22 address?  Yeah, thought so.

Second is a hit counter.  I don't really like them myself, but I wanted to get some idea of the (really low) traffic coming here.  I know a couple people occasion, but I am a bit curious.  Honestly, I miss the traffic logs from my last job enough to want to do some of my own.  Kind of crazy, I know.  Anyway, it's just a little image that loads from a remote site in order for me to get an idea of views regardless of viewing from an aggregator or direct page views.

If you don't like either one, drop a comment!!

Wednesday, November 15, 2006 9:52:17 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Blog
# Monday, November 13, 2006

While I'd like to believe that I know at least the general principles of stock market investing, two events have happened in the last couple weeks that leave me stymied.

First, when I decided to leave Amerigroup, I sold off all of my stock.  I did so for many reasons, not the least of which was capital for the disruption of cash flow due to the job switch.  Also, I had planned to sell last year at 45 but eventually only got 32.  Then a couple weeks ago, AGP gets hit with a $144M verdict for fraud in IL, which, of course, I never heard anything about.  The stock price dropped ~$7 to $28.  But within 3 trading days, the price is back up to $32, which it had been hovering around for months.  Every analyst I've read says that AGP was foolish to allow the case to go to court, speculates that the top end damages could reach $500M+, and the devalued the price to mid $20s.  What's going on?

Second, last month, Airbus lost the contract with FedEx for 10 of their new A380 super-jumbo jets, because Airbus keeps delaying the delivery of the finalized airframe.  Several of their other customers have also expressed concern and threaten to pull their contracts.  This comes after a few CEO changes and an enormous loss statement for the last fiscal quarter.  And what happens to the stock price?  Nothing. 

So I obviously know less about the market than I though I did, which wasn't much beyond the fundamentals of buy low - sell high.  The DotCom VC games confused me too, but I was right in the end there.  The housing market is bizarro, but is correcting the way I thought too.  But these two examples are beyond my understanding.  Personally, I would have jumped ship immediately on both, but I would have been wrong.

Go Figure...

Monday, November 13, 2006 12:47:05 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Life
# Tuesday, October 31, 2006

During a discussion about why PC Game journalists cannot hold there own in online games, they posit that there is no way anyone with a normal life could compete with someone who spends 24x7 on one specific game.  Then came the quote:

"How do you kill that which has no life?"

Genius.

Tuesday, October 31, 2006 8:37:07 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Life
# Monday, October 30, 2006

You might think that I dislike Daylight Saving Time.  You would be mistaken.

You might think that I liked Daylight Saving Time.  You would be wrong.

You might think that I hated Daylight Saving Time like a plague on society.  Now we're getting somewhere. 

The truth is, I find DST to be a blight on the intellectual accomplishments of modern man. 

To plan and execute something so incredibly ignorant and disruptive and then blame it on an innocent profession that probably couldn't care less about it, is an embarrassment to my intelligence.  It is right up there with prohibition. 

Time is probably the fundamental abstract measure of the universe.  Only size may be argued to be more so.  But even distance is a measure of "how long does it take...".  And as an abstract, does it matter if its 12:00, 3:00, 27:00 when the sun does something irrelavant?  Of course not.  So we take our fundamental unit of time and screw with it twice a year because why?  Maybe the American public is too damn ignorant to make their own decisions!  Maybe we can force the sun to stay out longer!  Maybe the day will be longer by an hour!  Ha!  Take that nature!

It's so depressing....

http://www.standardtime.com/

Go.  Now!

Monday, October 30, 2006 12:46:14 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Life | Rant
# Tuesday, October 17, 2006

When working in a network environment, and who isn't anymore, it is essential that all systems be syncronized.  The easiest way to do it, if NTP is disabled, is to use Active Directory or simple Domain functions.  On any Windows machine schedule the command below at least once per day:

net time /Set /y

Tuesday, October 17, 2006 1:31:59 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] -
Work
<%--
--%>
Statistics
Total Posts: 189
This Year: 2
This Month: 0
This Week: 0
Comments: 74
Locations of visitors to this page
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Frank W Hagen
Sign In
All Content © 2012, Frank W Hagen
Custom DasBlog theme based on 'Business' by Christoph De Baene