Modularisation – coupling and cohesion

This is related to the second of the things requested by Jesper, which was encapsulation.  Encapsulation is a tool to use when designing software.  It’s a bit abstract, and I don’t think people always agree on what it means.  To me, encapsulation is part of the bigger term modularisation, which doesn’t immediately help because it’s … Continue reading Modularisation – coupling and cohesion

Exceptions 3: Where to put catch blocks and handle exceptions

This is the third article in a series about exceptions: BasicsTypes and filteringWhere to put catch blocks and handle exceptionsFinishing up Where your catch blocks are and where exceptions are dealt with matters - probably best to avoid sticking a pin into your code randomly to choose the spot.Image credit The location of catch blocks … Continue reading Exceptions 3: Where to put catch blocks and handle exceptions

Comparing regular expressions and finite state machines

This is the last in a series about regular expressions and finite state machines Regular expressionsFinite state machinesComparing regular expressions and finite state machines In this article I won’t be introduce any big new things, but instead I’ll be showing how two things I’ve already discussed in the previous two articles relate to each other.  … Continue reading Comparing regular expressions and finite state machines