"If wishes were horses, beggars would ride." It's natural that object-oriented programming is focused on objects and their relationships, but the code within an object is important too. Classic books like Jon Bentley's Programming Pearls or Brian Kernighan and P. J. Pike's Elements of Programming Style can help inspire you to write good, clean code. Conditional logic is often the trickiest part of such code.
|