Who among my readers believes that he/she has a firm grasp on the meaning of the term "whitespace" as it applies to modern Java development?
Anyone?
Whitespace! How much simpler could anything be than that?
Yeah. Well guess what. I've found, so far, six conflicting definitions worth knowing about. They are summarized in this table for your viewing enjoyment. I daresay you will be surprised at how bad the situation is.
Monday, April 21, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
Yeah it can come as a surprise unless you've been working with Unicode for a while. And by that I mean really working with it more than just saying "everything in Java is Unicode".
I've taken to the practice of specifying which codepoint I'm talking about (e.g. \u0020) instead of "whitespace", especially when it comes to APIs. The disconnect with Char.isWhiteSpace() and String.trim() for example is annoying.
I really like your writing style. Nice Post keep it up.
Asus - 15.6" Laptop - 3GB Memory - 320GB Hard Drive - Brown
Asus - 15.6" Refurbished Laptop - 4GB Memory - 500GB Hard Drive - Matte Dark Brown Suit
Post a Comment