The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


Blog Archive for evanx during September 2006

Consider the following code. public class Car { private static final int SPEED_LIMIT = 120; private int speed; ... public boolean isLegal() { if (speed > SPEED_LIMIT) return false; return true; } } OK, in C our constants were #define macros, and we put them in uppercase. Because macros are quite distinctive animals, compared to domesticated code. In Java by...
That would be freedom from support hassles, which is the most important freedom in IT, innit. It's all about taking control away from your users and installing yourself as the Almighty Administrator. "If anyone is gonna break this system, it goddamn better be me!" Step 1: Firefox. This is an easy sell, cos of the tabs and niceties. And as we IT guys know, anyone who hasn't switched to...
Consider the implementation of a validator, to do a range check. Since I have a sneaky suspicion we gonna need to communicate with the user when the validation fails, lets prepare those messages in a resource-injectible bundle of bytes as follows. The problem with IT is all these darn users! They keep getting in the way of real progress, wanting silly features, finding silly bugs... class...
So i wrote this warez to parse my articles in "poor text format" and generate my desired output, eg. HTML for my weblog, with syntax highlighting. Another feature is switching between online image URLs, and local offline image files. There's a GUI interface, for previewing the HTML. This could be used as a tool for syntax highlighting and escaping Java and XML snippets, to cut and...