Author: stanley
-
Programming Pearls by Bentley
This is an important book, no doubt about that. For me, however, this was not an easy read. I never got into the book. Maybe my approach was wrong, maybe if the examples were written in a different language than C, maybe… I don’t know. What I liked about the book is the principles that…
-
Use MVC Properly
When building web applications, everybody seems to be using the Model View Controller (MVC) pattern. We all use it. It’s a fundamental pattern. However, a lot of people use it incorrectly. Actually, in my six years of programming, I have never seen it done the proper way. From what I’ve seen, the majority of the…
-
Single Responsibility Principle
A fairly common occurence I’ve come across in software development is that a class I’m working onchanges for various non-related reasons. For one type of change, I modify a portion of it, and for another, another portion. That’s not a good situation. Martin Fowler calls this “divergent change” under the Code Smells category. He says thefollowing,…
-
Object Solutions — Grady Booch
I love reading what Grady Booch has to say. He’s an authority to me. In this book, he gives a lot of good advice. He gives a lot of good information what OO should be like, not just projects but advice on how to do better OO design. That’s good stuff. This book, however, shows…
-
Teach Yourself Regular Expressions in 10 Minutes
This is a great intro book to regular expressions. The best, I would say. This is the first book I read on regular expressions. I loved the short-chapter style; I loved the examples and the referenced program to run them (though now I can run RE in Eclipse). Like I said, this is the best…
-
Special Exceptions Ruin OO Projects
In an object-oriented world, special exceptions are evil. To me, they ruin a well-structured framework/project. Yet in the business world, they are fairly common. What do you do? I think the worse thing you can do is to actually add a special exception to a special-case free project. Once you do that, your project will…
-
Excellent CareerNews Newsletter
I have been enjoying the CareerNews letter for some time. It is a newsletter (available to all) produced by the ACM organization. It focuses on, guess, IT career-related news. It does a nice job agreggating them from different sources. It also does a nice job providing concise comments. A lot of times I only read…
-
OO Design Heuristics for Classes and Objects (Riel)
Writing good OO code is not easy. Here’s a set of rules of thumb when creating classes. These are taken from the Object-Oriented Design Heuristics book by Riel — good stuff. 2.1 All data should be hidden within its class. 2.2 Users of a class must be dependent on its public interface, but a class…
-
Keep Your Methods Cohesive: Short and Concrete
Creating methods is probably the single most often performed activity during programming. Thus, it is crucial that it is performed well. When creating a method, I think the most important thing is that it should perform one task and do it well: it should have high cohesion. High cohesion is the fundamental principle in object…
Recent Posts
- Hello world!
- The Software Craftsman
- Write Debuggable Code!
- Effective Programming: More Than Writing Code
- Fundamentals of programming
Tags
2010 2011 abstraction advanced Books code concepts Craftsmanship design patterns encapsulation goals gof grasp immutability innerclass Java javascript jpa learning patterns practicing quality Quotes reading recommended reference solid tdd testing unclebob
Comments
Good blog! I really love how it is simple on my eyes and the data are well written. I'm wondering…
Hi, this is a comment. To get started with moderating, editing, and deleting comments, please visit the Comments screen in…