You only get one life. Live it to the fullest.

I’ve some research and I’ve read that JavaEE is actually a really good framework for developing enterprise level websites. I disagree:

Simple page that shows files in a directory

JavaEE

Create servlet to send files to JSP page

Insert entry into DD

Create Java class to grab files

Use JSTL to parse files and display them on page

PHP

readdir();

iterate over array

Insert and retrieve a single row in a database

JavaEE

Download mysql connector jar

Place connector into Glassfish lib

Log into admin console

Add new connector and connection pool and insert all relevant DB info

Create a new Java class that will be your table

Add variables

Create getters and setters for each

Annotate, and pray that it works

Create Table from entities

Create a new reference of the entity

Set required values (one at a time)

Using an EntityManager and a User Transaction persist it to the database and slaughter a goat to bring favor from the gods so that it may just work

Using the EntityManager, use Query Language, which is not MYSQL to access a MYSQL database…couldn’t I just use MYSQL instead?

Get a reference of the requested resource, get all information using getters

PHP

mysql_connect()

mysql_select_db()

mysql_query(“inset into…”)

mysql_query(“select * from…”)

mysql_result()

Something went wrong…

JavaEE

Clusterfuck of exceptions because everything is so “Object Oriented” that if one thing happens to not work, EVERYTHING doesn’t work and throws exceptions because you forgot a semicolon on line 37 of GetUsers.java

Dig through server log and hunt down every exception related to your project, god forbid you didn’t clear it in the last 30 seconds.

(if you’re as lucky as everyone else) find nothing and read through your code by hand

find missing semicolon and add it

PHP

“Expected “;” on line 37 on GetUsers.php

Does JavaEE look like a good server side language now?

Advertisements

Share this:

Like this:

Related

About boringtechie

Hello, I'm the boring techie!
So you've landed yourself on this site due to me or someone else linking you here, and you're wondering: "What does this kid do, and why should I even care?" Right? Of course you are.
Basically, I'm a Techie, though I'm not as boring as the title says, that's one of those things where the word means the opposite of what's REALLY going on...
Anyway, I write tuts and make commentaries. That's about it...