New Company, New Language, Same IDE...

I've started at Advantech Software -- (Brisbane software development specialists)

This has involved a transition from VB.net to C#, and boy oh mighty, i've been shocked and alarmed at how easy it is to move.

They really are just the same food with different food colouring. The most helpful things to have when transitioning from VB.net to C# are:

  1. This document (VB.NET and C# Comparison, side by side)
  2. Great Mentors

The extra-fussiness of the type system is excellent, and helps you keep your code tight (much as option strict does in VB.net). The warnings you get, the more descriptive messages, and the XML commenting make for a nice improvement. I miss the code reformatting (pretty-listing) feature of VB, which did turn me into a lazier coder than i once was.

The most overwhelming change has been learning to use the existing (and very impressive) code base that Advantech have developed, learning to play well with some way cool 3rd party controls, and of course, the necessary existentialist angst that comes with any career change.

 

Fake Workplaces Of The Internet

How many fake workplaces are there on the internet?

Look at this image:

from http://www.softwaredevelopers.com.au/

Does anyone actually give their beautiful colleague a backrub while pair-programming the day away?

Or is this just made up nonsense?

Frame 2: he gets hauled in to court on charges of sexual harassment, I betcha.

And how many damn bogus handshakes exist on the internet?

from... well could be just about any corporate site on the internet
two hands shaking... from... who cares? i pity the hand model. i pity the photographer. i pity the ad executive who suggested it. i pity the FOOL who paid the invoice.

Why is it always a 'white' hand and a 'black' hand, you patronizing racist bastards?!? (Or a man's hand and a woman's hand? Or a baby's cute little fingers and an old man's papery hand??)

Why not a robot's hand and a hand in a boxing glove?? That's the kind of message that would make me buy your stupid, stupid product.

If you see any more of these atrocious images, do send them to me, along with the offending URL.

Let's name and shame the perpetrators of these heinous lies.

[and if your workplace honestly involves 'giving your beautiful colleague a backrub while pair-programming the day away' please slip me a v.quiet email]
 

Tip O The Day: Quit Buggin Me, Messenger.

Fred Has Just Signed In!

Ginger Has Just Signed Out!

Mary Has Just Gone To Lunch!

Barry Has Just Picked His Nose!

If you are sick of MSN Messenger bugging you...

Do NOT display alerts when contacts come online.Do NOT display alerts when contacts come online.

You can go into the options (Tools| Options...| Alerts and Sounds) of MSN Messenger (or Windows messenger[Tools| Options| Preferences Tab|Alerts area]) and choose:

Do NOT display alerts when contacts come online. Do NOT display alerts when contacts come online.

(Okay, maybe you already knew that -- but my research bunnies tell me that a lot of very clever people didn't realise.)

 

Kindly Shut Up About 'Best Practices'

oompa loompas considered poor theologians

And in the category of "Ooo! Ooo! I wish I'd said that!!"

'James Bach argues that the whole notion of "best practices" is intellectually bankrupt.'

My only complaint with this damn fine piece of work (found via that daily grind) is the use of the phrase, "Oompa Loompa moralizing" which I find to be heightest. Heightism is definitely not best practice.

How often I have wanted to quietly strangle someone for using a phrase such as:

Really, if you are ever tempted to argue with someone (or belittle them) or sell to them, or buy from them, on behalf of the phrase 'best practice' then keep the good sense of this fella James Bach in mind.

 

Sexy Tool for Fast, Active Coding -- Any Language!

The World's 2nd Simplest Code Generator

A lot of people are having fun using 'The World's Simplest Code Generator' -- so i've updated it and improved it.

Meet "The World's 2nd Simplest Code Generator".

Like the original, it's online, takes one minute to learn, and has a million uses.

This tool is my constant companion on all my coding adventures.

Like those miraculous kitchen devices you see advertised on TV, this baby can cut, slice, dice, julianne, froth, beat, whip...

It's extremely violent, really. Use it for all your "Micro-Code Generation" needs.

The W2SCG has built-in patterns to use for some simple things (like C# properties and VB.net properties). If you invent any useful new patterns, leave a comment and I'll embed them in the tool. I'm particularly keen to see some Java, Php, C++ and SQL patterns.

The difficult thing when developing this was keeping it **simple**. The temptation to pile in a lot of features was huge! (I cut over thirty features out!) The best of these deferred features will be released in subsequent versions.

Expect to see "The World's 3rd Simplest Code Generator" soon.

The World's 2nd Simplest Code Generator
 

Speed Surfer? Get a 'Local' Homepage

Rather than use 'google' as my "homepage" I always create my own html file to use as a webpage, and store it on my hard drive.

Advantage are:

  1. It loads damn quick, even loads when you're not online.
  2. You can customise it easily.

Here's an example:

snippet of my local homepage

This is my gift to you.

My "real" homepage also has links to the banks I use, and so on. I only ommited that stuff because you are a pack of prying thieves.

 

I am well chuffed

Okay, really joel, you can cut it out now. Sick of waiting for the warm drip drip of the pig's blood.I assumed spolsky was playing some cruel carrie-style prank when he told me he would include me in a book he was compiling.

If it is just a hoax designed to make me look like an idiot, then they appear to have taken the hoax very far indeed. They've had this so-called book printed and listed at Amazon. He's even roped Rory Blyth into the deception.

this is what the book looks like Meanwhile go out and buy 'the best software writing', edited by joel spolsky, then get back to me and tell me if I'm really in there.

 

VB,C#: Me My This That

VB or C#?

"Me and My" or "This and That?"

Take your pick.

Something I keep seeing is that VB.net and C# are just different flavours of the same chewin' gum. And neither of them have much to do with C++ or with VB 6,5,4 etc.

Short sighted little people make me chuckle quietly to myself. To wit:

I don't need to tell you (my clever and consistent reader) that this type of thinking relies on the following logical fallacy:

You and I don't buy into that brand of thought. Do we? And if other people buy into it, we laugh and help them understand why that kind of thinking is flawed.

Don't we?

 

Hot .Net Tip: This will save you a lot of time

In Visual Studio .Net, these two buttons are very useful:

view code and view designer buttons

'View Code' and 'View Designer'.

Unfortunately, (and wrongly, i think) they are only visible when the 'Solution Explorer' window is visible.

So here's what I just did to make sure they are "ALWAYS' available -- whether the solution explorer is shown or not:

view code and view designer buttons

I am very happy about this. I think it's neat.