Mar 28 2007

Shane helps to shape the future

Category: IT RelatedRory Primrose @ 09:17

We just had Shane Morris come to my work to spend some time with us talking about UX. There was a statement he made that really stood out. It was something like:

Usability is the natural enemy of functionality. A successful application is usually one with features left out.

Hope I'm not misrepresenting him, but I think this is a really important point, especially when UX is normally a developer responsibility. Developers tend to cram in functionality because that is what the business spec told them to do.

From the developer community, and their managers, I think there needs to be more of a focus on what the final product will become (good or bad) rather than just ticking the boxes to say that we covered all the use cases. I think the key here is to have a change of perspective.

I have often thought that if you have developed the greatest software on the planet, but the UX is terrible, then you really missed the point (and wasted a lot of money/time). UX is just as important as every other piece of the software puzzle. I'm glad that this is becoming a bit more accepted in the industry.

Tags:

Mar 20 2007

Tekapo 2.0 RC

Category: .Net | My SoftwareRory Primrose @ 21:37
I've just release version 2.0 RC of Tekapo over on CodePlex. You can grab it from here.

Tags:

Mar 20 2007

The right kind of balance

Category: PersonalRory Primrose @ 06:00

One and a half hours sleep. A triple shot flat white. A fair trade I think.

Tags:

Mar 18 2007

ComboBox SelectedText without focus

Category: .NetRory Primrose @ 04:28
I have just come across something that really surprises me about the WinForms ComboBox. If the control is in DropDown style, the SelectedText, SelectionStart and SelectionLength properties are all empty if the control doesn't have focus. This is crazy! I can't read or write the selected value in the edit part of the control as a result of a button click. Surely there is a way around this

Tags:

Mar 15 2007

WF rules and bitwise OR

Category: .NetRory Primrose @ 05:09

I have been doing some WF development this morning and came across something interesting. I had a PolicyActivity in which I was trying to assign a bitwise enum value on an object instance. The rules editor gave be an error saying that I couldn't use a bitwise OR operation on the types of operands I was using. It seems to me that CodeDom doesn't correctly parse bitwise OR.

From what I have googled this morning, is looks like the WF rules engine is supposed to support it. I wasn't however able to find any code examples or screenshots of where people have successfully implemented bitwise OR. So at this stage it looks like it is just documented, not actually used.

My workaround was to modify the enum to include a definition of the bitwise value that I require so that the | operator isn't in the rule definition. While this covers this particular scenario, what happens when the enum that I need to use is defined in an assembly that I don't control?

Tags:

Mar 13 2007

Rain from Nowhere

Category: PersonalRory Primrose @ 13:50

I get a reasonable amount of forwarded email from family. A lot of it is spam or chain mail type stuff that I don't want. This was a good one though. My mum sent me this poem that has been doing the email rounds lately.

Muzza (Murray Hartin) was asked to pen something for the Salvation Army that can bring awareness to the general public about Rural suicide. The Rural suicide rate in Australia has jumped dramatically because of the severe drought we are experiencing.

 

Rain from Nowhere

His cattle didn't get a bid, they were fairly bloody poor,
What was he going to do? He couldn't feed them anymore.
The dams were all but dry, hay was thirteen bucks a bale,
Last month's talk of rain was just a fairytale.

His credit had run out, no chance to pay what's owed,
Bad thoughts ran through his head as he drove down Gully Road.
Geez, great grandad bought the place back in 1898,
Now I'm such a useless bastard, I'll have to shut the gate.

Can't support my wife and kids, not like dad and those before,
Even Grandma kept it going while Pop fought in the war.
With depression now his master, he abandoned what was right,
There's no place in life for failures, he'd end it all tonight.

There were still some things to do, he'd have to shoot the cattle first,
Of all the jobs he'd ever done, that would be the worst.
He'd have a shower, watch the news, then they'd all sit down for tea,
Read his kids a bedtime story, watch some more TV.

Kiss his wife goodnight, say he was off to shoot some roos
Then in a paddock far away he'd blow away the blues.
But he drove in the gate and stopped - as he always had,
To check the roadside mailbox - and found a letter from his Dad.

Now his dad was not a writer, Mum did all the cards and mail,
But he knew the style from the notebooks that he used at cattle sales.
He sensed the nature of its contents, felt moisture in his eyes,
Just the fact his dad had written was enough to make him cry.

Son, I know it's bloody tough, it's a cruel and twisted game,
This life upon the land when you're screaming out for rain.
There's no candle in the darkness, not a single speck of light,
But don't let the demon get you, you have to do what's right.

I don't know what's in your head but push the bad thoughts well away,
See, you'll always have your family at the back end of the day.
You have to talk to someone, and yes I know I rarely did,
But you have to think about Fiona and think about the kids.

I'm worried about you son, you haven't rung for quite a while,
I know the road you're on 'cause I've walked every mile.
The date? December 7 back in 1983,
Behind the shed I had the shotgun rested in the brigalow tree.

See, I'd borrowed way too much to buy the Johnson place,
Then it didn't rain for years and we got bombed by interest rates.
You said 'Where are you Daddy? It's time to play our game',
'I've got Squatter all set up, you might get General Rain.'
It really was that close, you're the one that stopped me son,
And you're the one that taught me there's no answer in a gun.

Just remember people love you, good friends won't let you down,
Look, you might have to swallow pride and get a job in town.
Just 'til things come good, son, you've always got a choice,
And when you get this letter ring me, 'cause I'd love to hear your voice.

Well he cried and laughed and shook his head then put the truck in gear,
Shut his eyes and hugged his dad in a vision that was clear.
Dropped the cattle at the yards, put the truck away,
Filled the troughs the best he could and fed his last ten bales of hay.

Then he strode towards the homestead, shoulders back and head held high,
He still knew the road was tough but there was purpose in his eye.
He called for his wife and children, who'd lived through all his pain,
Hugs said more than words - he'd come back to them again.

They talked of silver linings, how good times always follow bad,
Then he walked towards the phone, picked it up and rang his Dad.
And while the kids set up the Squatter, he hugged his wife again,
Then they heard the roll of thunder and they smelt the smell of rain.

Murray Hartin
February 21, 2007

Tags:

Mar 9 2007

Are singletons evil?

Category: .NetRory Primrose @ 03:32

This is a very well written post from one of the Readify boys about the overuse of the Singleton pattern. Food for thought. I should look at whether the places I have used singletons is appropriate.

Tags:

Mar 6 2007

Orcas March CTP

Category: .NetRory Primrose @ 04:18

The Orcas March CTP has been released. There are a few things in the release which I think are really important, at least for my current work.

  • WCF send/receive activity for WF - I was about to write my own and probably will still have to for the 3.0 framework
  • Added support for the new operator in WF rules - hello, why wasn't this available in the 3.0 framework
  • WCF available in XBAP applications - an important step, but unfortunately is restricted to BasicHttpBinding

Via Moustafa Khalil.

Tags: ,