Archive

Posts Tagged ‘design’

Code Smells After Reading “Clean Code”

July 27, 2011 Leave a comment

I created projects that I don’t want to look at any more, because of complexity and total mess. You probably heard about “Clean Code” by Robert C. Martin, if not I encourage you to buy this book and read it.

I thought that having technical knowledge is enough to create great applications. It’s not true. Source code is written by developers for developers. Having clean code is one of the most important things in software development. It’s very wide idea but I will write the most important (for me) code smells that I will try to use in my all projects. Read more…

Advertisements

CodeRetreat – TDD and Pair Programming

April 10, 2011 Leave a comment

I thought I know much about Test Driven Development (TDD) and Pair Programming. After attending CODERETREAT organized by Software Craftsmanship in Krakow I know that I was wrong. Theory is something totally different then practice.

This event was facilitated by Corey Haines, one of the inventors of this type of exercise (more info about it at this page). He encouraged us to use four elements of simple design, what really increased code testability and made it readable. He was also giving us really good hints during and between coding sessions. Next day I looked at my current home growth projects and realized how much can be improved there.

Software developer is always learning. When one thinks that he knows enough, he just don’t know that he is wrong and need to learn much more.

Categories: events Tags: , ,

Pitfalls of Object Oriented Programming

April 9, 2011 Leave a comment

Couple of days ago I was at AGH University in Krakow listening to Adam Sawicki’s talk about “Pitfalls of Object Oriented Programming”. This event was prepared by SKN Shader (group of students programming computer games).

Speech was interesting, but really short (1 hour only). Adam was talking about pitfalls we can fall into when over interpreting object oriented programming principles, i.e. wrappers which in the end of the project looks like things that we were trying to wrap, but we failed or usually wrong use of singleton pattern.

One thing really interested me. It was data-driven design. This concept is focused on data processing optimization which is highly used in computer games development (because of this focus on optimization). I don’t know much about it, but for sure its worth reading. Some information you can find on Adam Sawicki’s webpage.

Categories: events Tags: , ,

GoF Design Patterns Card

January 12, 2011 Leave a comment

Currently, I’m implementing design patterns from GoF book in Objective-C (when I’m writing this post all creational and structural patterns are already implemented). You can find information about it at project page.

To memorize all of these patterns it’s good to have some kind of a reference in a single, easy to access place. I found on the McDonaldLand blog pretty nice card having diagrams of all patterns contained in this book. Direct link to the pdf can be found here.

You can store it on your desktop, print it and hung on the wall or put under the pillow to learn it when you are sleeping (well known diffusion learning process 🙂 ).

Categories: design Tags: