May 17th, 2010
They have a term for everything.
Upon reading some web framework documentation, I stumble upon the term POJO which stands for Plain Old Java Object, a Java object strictly that extends the Object class, implements no interfaces and is free of annotations. All objects in Java implicitly extend the Object class, giving them useful methods such as:
- toString() – Returns a String representation of an object.
- equals(Object obj) – Determines if the properties of one object are considered the same as another.
The interesting this is that I discover that one of the three people who coined the term POJO was a college professor that taught an upper-level programming language course. I had to write programs in an interpretive language called Scheme in that class. Dynamically creating functions in a sea of parenthesis and the term “lambda calculus” is all that I remember.
Posted in Java, Programming
No Comments
May 16th, 2010
When asking a colleague which program he recommends for deploying applications, he mentions Maven. I’ve never heard of it before. At first glance one of the things that it does is create standard directory structures. The directory structure that it creates is based on an architecture artifact id. There are over 100 artifact types to choose from. The following command builds a directory structure for a Struts2 web application.
mvn archetype:generate -DgroupId=com.joebivins -DartifactId=project1 -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter
On the initial run of the program, Maven spends a minute downloading files. It prompts you for a project version and confirms the group id, after which it creates a directory structure.
Read the rest of this entry »
Posted in Java, Programming
No Comments
May 15th, 2010
My first look at this language was in the late 1990s. The biggest feature was that you could compile source code to run on a variety of platforms (Windows, Linux, Mac, etc). Traditionally source code was compiled to run for a specific platform and source code modifications were required to allow it to run on additional ones. Java compiled the source code into a intermediary language, bytecode. When the bytecode is run, a just-in-time (JIT) compiler translates bytecode into machine language that the platform understands.
Unlike PHP there is a lot of computer terminology to wade through in Java which I have not touched since mid-2005.
My last dealings with the standard edition (SE) of Java was Sun’s Java 1.3. At present the current version of Java, now acquired by Oracle, stands at internal revision 1.6. Externally this is known as Java SE 6.
You will need the java development kit (JDK) to compile Java source code into bytecode. The java runtime environment (JRE) which comes bundled with the JDK contains the JIT compiler that allows Java source code to run on your platform.
Posted in Java, Programming
No Comments
May 5th, 2010
What once began as a nightly flurry of system generated e-mails while I am asleep now extends through the daytime hours, the contents of which hold no importance. Although I configured Microsoft Outlook 2000’s messaging rules automatically route these to the Deleted Items folder, a new mail notification icon appears in the lower right corner of the screen. It is difficult to discern which arriving e-mails are system generated from those written by people as any inbound message causes the new e-mail notification icon to appear. Removing the notification involves stopping what I am doing and check my inbox.
There is a minor time cost involved to do this and return to work at hand. As the volume of system generated e-mails gradually increases and begins to far outweigh e-mails sent by actual people, the following happens:
- System generated e-mails become less significant.
- New e-mail notifications become more of a hindrance.
Removal from the system generated e-mail distribution list would be the most logical choice; however, it is not an option which brings me to an alternative solution: AutoRead 2.0.
AutoRead 2.0 is a $10 plug-in that works with Outlook 2000 to automatically mark any message routed to a designated folder as read without the need of manually reading it; moreover, there is an option to suppress the new e-mail notification icon from displaying when an inbound message is routed to a specific folder. In my situation, all inbound messages routed to the Deleted Items folder are marked as read and the new e-mail notification icon does not appear for system generated e-mails.
Within a 15 day period, the plug-in automatically marked 16,179 messages as read.
Problem solved. Insanity halted.
Update
Posted in Practicality
No Comments