3.9. Forget CLASSPATH

Each paradigm of programming has certain “cardinal sins.” With unstructured programming languages such as BASIC, it's probably goto, which can easily create incomprehensible spaghetti code. With structured programming languages such as C, it's probably the use of switch on types, which tests a fixed set of conditions and does not evolve well with the application.[5] With library-based object-oriented programming, it is the inclusion of the entire class library with the application, which creates software bloat.

[5] “Anytime you find yourself writing code of the form, 'if the object is of type T1, then do something, but if it's of type T2, then do something else,' slap yourself.” [10]

Veteran programmers know that they can ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.