Wednesday, April 25, 2007

Design patterns in Symbian

This time my post will be a short one. :)

You know, I've been thinking about writing some posts on various design patterns applied in Symbian OS core components. My motivation is first that I enjoy reading/using code that has been carefully and nicely designed. Second, I wanted (and I still do) to encourage each developer to always think before starting to implement any solution for a given task/problem. It may sound as a cliche, but I found it a very common pattern that people (i.e. developers) had not considered how others will use their module (niceness of interface, readability of source code, etc.), how it fits into the big picture, how future-proof it is, etc. You know, ideally you shouldn't just code something, but rather do it nicely. That's the difficult part.

Even though I found this idea pretty challenging I've kept postponing my first article on this topic for various reasons. Now I'm late - at least with the first article. :) I've just noticed that rensijie from NewLC.com had posted two article about design patterns:

Good posts, Rensijie! I'm really looking forward to the next article on the topic. Or even I might add some. :)

Tote

3 comments:

puterman said...

Indeed, badly written code is very common. I don't think the most common reason is that people don't know how to write good code, but that people with less experience for some reason believe that it takes more effort to do it right. With some experience, you know that it actually takes less effort, because writing good code always pays off. Even if you're just writing a small tool, only intended to be used once, by yourself, you'll usually end up revisiting the code at some point in the future, and then you wish that you'd done it right from the start. Also, it's not good to get into the habit of being sloppy while programming, because then it'll take some extra effort when you have to do it right.

Gábor Török said...

That's right. And don't forget to add laziness to the list. People who have both the talent and experience to produce quality code simply ignore the fact that it's in their own interest to do their job properly. Just because they're lazy.

rensijie said...

Hello, Gábor Török. I'm rensijie. I did some search in google today and it's a coincidence that I saw your blog.

Thank you for the attendtion on my articles and I hope I can know more friends be interested in mobile application development just like you. Hope to be friend with you.

My MSN is : jimmyloveyouguys@hotmail.com, hope to hear from you, thanks.

BR
rensijie