Benutze niemals Strings!
Von Carsten
Wie kommen manche Leute eigentlich ohne Blogs aus? Unglaublich, welche Schätze man im Netz ausgraben kann, wenn man nur danach sucht. Ich bin jedenfalls ein großer Fan von Stephans Blog und hier kommt ein Beitrag, der den Grund dafür zeigt:
Never, never, never use (unwrapped) String or long or int. Why? Those primitive types have no semantic meaning. They are hard to understand, hard to maintain, and hard to extend. I’ve been evangelizing this concept for some time, the essay „Object calisthenics“ finally prompted be to write this post. Suppose we have an example of a cinema ticket booking service.
weiterlesen bei Never, never, never use String in Java (or at least less often 🙂) at Stephans Blog