Coming Up for Air

A Java-based 'Playground' App

Wednesday, July 06, 2005 |

As I’ve noted earlier, I’ve been debating whether or not I should continue PHP development and move to only Java. Part of the process has included writing a web application using some of the newer Java libraries…​

What I needed was something simple to help me try out some of the newer (at least to me) Java libraries. What I came up with is a wish list application. There is no telling how many times my wife and I saw a movie, book, CD, etc. that we thought that we would like to get but didn’t have the "mad money" to do so at the time, then forgot about by the time we had the cash for a frivolous purchase (or rental). I kept telling myself that I needed a way to track that, so, finally, Wish List was born. It’s a simple app. It lists items that are on the wish list. If one authenticates, items and types can be added and edited. It currently supports only one wish list, a restrication that may or may not change in the future. Source for this application can be found here.

Bear in mind that this is a learning project, so it is likely overengineered and quite possibly poorly implemented. At any rate, the techonologies used in this app are Hibernate, Spring, and JavaServer Faces. While I’ve used Hibernate before, I’ve taken this opportunity to use it as heavily as I can (given the simple schema) to get a better handle on foreign key handling and the like. Spring and JSF are both new to me, and, so far, I’m in love. I’ll not going into details why here (you can read their respective web sites for that), but they really make web development easier. Very cool technologies. I’ve also used the DAO and Service patterns (I may have just made up those pattern names :) to help abstract things a bit.

So where does that leave things? Right now, things aren’t looking too good for PHP. PHP is a great language and allows you to build things extremely quickly, but the lack of a VM makes certain programming practices impractical for a large application. Java, on the other hand, does not have that limitation, but the code, build, test cycle is longer than that for PHP, though that’s not something I’m completely averse to. The main problem with switching to all Java development is a practical one: I have a good deal of PHP code that would have to be rewritten, or I’d have to find a hoster that supports both and doesn’t cost a fortune.

So…​ No decision yet, but if I found a good hoster, that might change things. Time will tell. At any rate.. Download the code and take a look at it. It’s not in any real shape for deployment, as the database has to be created manually and a default user (MD5 password and all) would have to be manually added, but you can at least browse the code. If I get time, I’ll add some code to initialize the environment as best I can.



    Sample quote

    Quote source


    My name is Jason Lee. I am a software developer living in the middle of Oklahoma. I’ve been a professional developer since 1997, using a variety of languages, including Java, Javascript, PHP, Python, Delphi, and even a bit of C#. I currently work for Red Hat on the WildFly/EAP team, where, among other things, I maintain integrations for some MicroProfile specs, OpenTelemetry, Micrometer, Jakarta Faces, and Bean Validation. (Full resume here. LinkedIn profile)

    I am the president of the Oklahoma City JUG, and an occasional speaker at the JUG and a variety of technical conferences.

    On the personal side, I’m active in my church, and enjoy bass guitar, running, fishing, and a variety of martial arts. I’m also married to a beautiful woman, and have two boys, who, thankfully, look like their mother.

    My Links