Thursday, May 26, 2005

I noticed something interesting today…

 

While reviewing remaining defects to be corrected in our web application, a programmer’s name came up several times.  Let’s call him Cramer Joe.  Frequently, developers explain the source of the defects as the result of the bad practices and lack of quality that Cramer Joe employed when he modified or wrote code.  Cramer Joe was with us for a while, maybe two years.  He was instrumental in writing a few web applications and responsible for several major rewrites to the same.  Most of us disagree with his methodologies and programming style.  However, he wrote a lot of code.  He produced and delivered a lot of product.  That product made the company money.  His value, when looked at analytically, was very high, even if his code is the bane of our maintenance existence.  He was not very well respected when he was with us.  He had a serious attitude problem.  In fact, he had personality conflicts with several other employees.  He finally left because he felt he wasn’t respected.  For the most part, and completely due to his own behavior, he was right.

 

Another programmer, let’s call him Kareem, is never mentioned.  He was highly respected by many.  When he started, I had high hopes for him.  He is very bright.  So bright, in fact, that he discovered that the best way to never fail was to never do anything.  Delay, stall, make excuses, but never deliver.  So, shortly after he started to become an effective programmer (it was his first programming gig), he became the laziest, least reliable, most unproductive employee I have ever seen.  Well, I take that back: there was Trenton, the SEO Optimization specialist that surfed gay porn all day and generated fake reports, but he doesn’t really count.  He was just a shyster.

 

We never, ever bring up Kareem in conversation.  We all liked him well enough.  He produced nothing in several years of employment.  He was given raises and promotions.  Then he left to pursue other things.  His good name is preserved.  Actually, now that I think of it, he legally changed his name right before he left. I wonder if he’s a terrorist?

 

Cramer Joe, on the other hand, we speak of with disdain, and often.  He left behind his legacy in potentially hundreds of thousand of lines of questionable code.  The code works but we hate having to modify or troubleshoot it.  But it works!  It made a lot of money for our company.  Yet, all we can think of is what a bastard he was when he was with us.  His code, therefore, is like a rodent in the grass.  We chase it with the lawn mower and try to eradicate it wherever we encounter it.

 

The moral of the story is:  If you don’t want people to bad-mouth you when you are gone, be nice.  If you want people to remember you, be productive – and leave something behind.  If you want it to last, make it good.

5/26/2005 3:05:43 PM (GMT Standard Time, UTC+00:00)  #    Comments [2]  |  Trackback
Wednesday, May 18, 2005

I got my old blog content folder from Michael some time ago.  I upgraded it using the dasblog upgrader utility.  I then copied the files into the content folder on my blog. 

hmmm.  Nothing happened.  My content folder is now twice as large but the old entries are not showing up.  I had good posts in there as well.  A step by step instruction showing how to rip your door apart on an Acura Tl to install new speaker.  That's important stuff!

Oh well.  I guess I can live without the old posts.  If both of you can (my two readers).

Then I published this post and viola!   Caching baby.  Love it.  Now my excellent article on The Taco Nazi or my experience Losing my File Menu are available once again.

 

Here google, google.  Here boy!  C'mon little fellah...

 

5/18/2005 4:41:55 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback
Sunday, May 15, 2005

Michael Earls, cerkit.com founder and .net super-guru, advised me to use spaces rather than tabs in my source code indention.  He also suggested using 2 spaces rather then the stadard 4.  The reasoning behind this is to allow consistent formatting no matter where the code gets moved to or viewed from.  Notepad, html posts, word documents, articles, etc.  The upper echilon find this to be very important.  I aspire to one day find this to be more than just a little helpful.

I set up my Visual Studio to operate this way and worked with it for about a month.

While I do like the 2 space compactness, Visual Studio tends to get confused with the spaces.  I find myself re-formatting manualy every now and again.  ctrl-k, ctrl-f works about 70% of the time. 

I read about a vb shorcut to untabify.  I quickly looked into VS.net to find these commands unmapped in my shortcuts menu. 

I mapped it to ctrl-k, ctrl-1  and ctrl-k, ctrl-2 respectively for tabify and untabify.  There are also commands for Edit.ConvertTabsToSpaces and Edit.ConvertSpacesToTabs.  They appear to do the same thing. 

Check it out!  I have set my VS.Net back to tabs and will now use these commands when copying code for posts, artcicles, emails, etc... 

 

 

 

 

5/15/2005 8:15:06 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback untabify-vs-net.JPG (58.63 KB)

One of my biggest pet peaves with Visual Studio .net, since VS.net 1.0, is that it inserts Id's into html elements when you paste chunks into the source editor.  First, I am capable of assigning Id's myself.  Second, Table17 is worse then having no id at all.  Third, when I copy and paste from one div to another, Don't replace my Id with DropDownList1 just because my action implies that I may just duplicate id's on a page.  Usually, I will delete it in a moment.  I have learned to cut and paste to get around this issue but every now and then it bites me hard.

Well, VS.net 2005 has a check box you can uncheck so this will stop.  see illustration...

5/15/2005 7:11:23 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback disable-auto-id-html-vs-net.JPG (38.08 KB)
Friday, May 06, 2005

I recently picked up a Toshiba laptop from Costco.  I really like the wide screen but the resolution is limited and the hard drive is dog slow.  Worse, there is a defect in the speaker covers that causes static discharge, resulting in freeze or unprovoked reboot.  It has hung twice on me and my install of VS.Net 2005 beta II crashed and burned.  I will be taking advantage of Costco's excellent return policy.  Unfortunately, they do not have another laptop that interests me.

So I found myself on Dell.com looking through refurbs and ended up pulling the trigger on a new D800 with a 128 mb video card, 512 1 dimm ram, and 60Gig 7200 rpm hard drive.  It has an M processor so the 2 hour battery life of this Toshiba should be a thing of the past.  After completing my order, I discovered that I could have ordered a new one (not refurb) for 100 smackers less than the one I got.  However, they no longer offer the 128 mb video (64 is max) and my notebook is coming with a leather case and XP pro.  I have 10 licenses for xp pro but, what the hell.  Although I probably could get a custom order and then upgrade the video, I prefer not to tear my laptop apart. 

So, rather than screw around trying to call and cancel the refurb and order a new one, I'm going to see how this one works out.  I once ordered a laptop the same way and wound up returning it because it wouldn't boot.  The computer I am typing on right now was also a refurb (desktop) and it has a cd rom that will only work for about 2 minutes after a reboot.  After that, the tray won't open.  When I need the cd I just reboot.  All in all, I am very happy with this cd-rom-challenged desktop.  A few months after I got it, my co-workers all ordered the same desktop for the same price, brand new, but theirs came with a monitor (and working cd rom's). 

I just read some reviews and discovered I may need to get a different machine for a more usable screen.  I didn't realize but the screen maxes out at 1200   x 800.  Not so good.  On the other hand, I haven't seen this screen yet and it is probably very comparable to my Toshiba.  I just want a reliable maachine.  If I can get that in the mail in a few days, I'll be a happy camper.

5/6/2005 3:01:55 AM (GMT Standard Time, UTC+00:00)  #    Comments [1]  |  Trackback
Wednesday, May 04, 2005
(duplicated from my personal thanks to them)
First, I wanted to thank the CLR team, Brad, Claudio, Kit, and Jason, for taking the time to visit us and enduring the hotel rooms, constant travel and late dinners, not to mention the long discussions about things they probably wish we'd all just friggin' figure it out already... 
 
We all thoroughly enjoyed the presentations and the advice.  It was exciting to hear how they do things high up in the ivory towers. 
 
I passed around a general inquiry to my peers asking for suggestions or complaints about the Common Language Runtime and/or base classes.  I received some sarcastic and satirical responses but I am still waiting for something legitimate.  That probably confirms my suspicion: things are quite good!  We are all very pleased with our current platform.  I haven't heard a grumble from any of our developers except when they have to support some old active X product.  Keep up the good work, take a sabatical, pat yourselves on the back.
 
(continued)
 
It was refreshing and humbling to speak with them.  I can't wait to see what they come up next.
 
My perception of Microsoft as a "machine" of unyielding borg has been shattered.  These are a group of professional software engineers who are passionate about their work and their products.  They back that up with amazing skills and capability.  I have great admiration for what they do and hope I can just duplicate some of it on a small scale here in my little website world...
5/4/2005 7:45:02 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback
Tuesday, May 03, 2005

Unfortunately, this is a question, not a solution.

When I create and show a new form from my main form in my C# windows application, the icon does not show in the task bar (task bar, mind you, not system tray) until I click on the form.  The form actually has focus when it shows.  The taskbar shows the empty, iconless, default view.  After I click on the second window, the cion then shows in the task bar for that window.  However, the group in WinXP remains blank even though both icons now show.

Anyone have anything to say about this?

What I want to happen is pretty straight forward...  When the second form is loaded, it has the icon immediately and the group also contains the common icon.

I am still a forms novice so perhaps I have totally missed something.

I am loading my icon from embedded resource during the form init.

5/3/2005 6:42:07 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback

Theme design by Jelle Druyts

Pick a theme: