Sunday, 28 October 2012
What are words?
After the first milestones like "can sit up themselves" I assumed that they would continue to be easily identifiable but I feel like I'm in the national art gallery and trying to find the work of art that defines the post-renaissance contempt for impressionism. In other words I don't have any idea and I could go right by it without even realizing it.
Wednesday, 24 October 2012
Eleven Twelfths
It's been fun, but my heart still twinges each morning when I go into work. Some days are easier than others. Every work day now feels like a race to be done in order to be home and maybe enjoy some sunlight before it's dark. Soon I'll have to come home at 1 pm for that to happen, so we'll just have to turn on all the lights in the house and pretend.
Hope you enjoyed the unicorn chaser.
Exceptionally stupid
This is a rant post. About tech stuff. Angry. You've been warned.
One of the things that people don't seem to understand in programming is exceptions. Some you need to deal with. Some you need to fail as soon as you can and let the issue bubble up the stack until some over all wrapper code deals with it.
For example, if you're testing input from a user to make sure that it's a number, you might try to convert it to the number and if it doesn't work, you can assume that what they entered isn't a proper number. Simple.
Other things like the disk being gone, the db down (for a db driven app), or, you know, your language not understanding utf-8: Fail early. Fail fast. I flagged something in a code review today and it turned into a 15 minute discussion / argument for something that was the least of the problems with the code.
The code in question was along the following lines by doing some processing on a string:
try {
byte[] utf8Bytes = myString.getBytes("UTF8");
}
catch (Exception e) {
// just return the original
return myString;
}
Now, one the code was littered with "catch exception" everywhere, which just drives me batty, but that is a different rant. My issue was that if java you are using doesn't understand utf-8, then perhaps that would be an exceptional case. Rather than trying to deal with that issue or letting UnsupportedEncodingException bubble up, just wrap the exception in a RuntimeException and be done with it.
When an exceptional case happens, let the exception happen.
People writing code to protect against a future case and things that might happen one day drive me insane. And not the good insane either. Oh no.
*sigh* I think that there might be a reason why they put us in small rooms with padded walls at work.
Wednesday, 17 October 2012
New toys and continual frustrations
Sunday, 14 October 2012
Points of interest
Like I said. I could blog about those. But I use this blog for the things that bounce around in my head. The things that occupy my in-between moments like brushing my teeth, standing in line to order coffee, or making dinner. And for the most part that's family.
Our family.
Dealing with the bumps
1) Farms might not be the best for a huge pile of pumpkins. Might be better to stop at a roadside thing where people are selling pumpkins and plop the kid into the pile. The local mega-grocery store even has a huge pile out front.
2) Llamas around here don't have cool ear decorations like they do in Peru.
3) Just because you plan something, doesn't mean that it will work out. Alice really wasn't feeling the moment. Based on the crappy night and fever last night, I'm sure she wasn't feeling physically well at the time either.
Is it wrong that this is my favourite picture from our visit?
Saturday, 6 October 2012
Who's Your Daddy?
She knows who I am.
This is a good memory.
I have to admit that at that moment some dust flew into my eye and made them water. I had to blink a couple of times to see again. After helping to take care of someone for 10+ months it feels amazing that she knows my name. Well, my new name. It was unexpected to happen tonight. You don't expect to get any feedback other than crying. Then you get smiles. Then arm waving. Then you see the understanding in the eyes. Then this.
I think that I'm going to melt into the floor the first time she runs over and hugs me.
Update: based on Laura's comment here are the more relevant pictures to me being a daddy.
Wednesday, 3 October 2012
Full circle
So much has happened. Births. Deaths. Travel. Weddings. Funerals. Time.
Nothing has stayed the same, but it's like everything has stayed the same. Very weird.