Skip to main content

Agile Programming, What's That?

Ok, it has been long since my last post (as usual) and I thought I would talk about a new different topic.

I am currently involved working on a web application and I was exposed to a concept of agile programming about a year ago (maybe more, time flies, does it not) and I looked at it and said "Oh yeah! Just a new fad that will go away" and I continued slugging away on my J2EE application (stuff for real programmers, right?). Well it did not go away, quite the contrary and I am now using it.

Just to show you should keep your mouth shut or (as Jean-Jacques Rousseau said: put your work one thousand times on the mill - sound much better in french) I should have thought 1,000 times before saying something. But actually, you did not come here to read my ramblings on my lack of good judgment (or maybe you did, in which case I can suggest a couple really good therapist) so what is this agile programming.

Well, pushed to the limit, which in reality is never attained, it's basically having your client next to you while you develop your application and have him/her give you immediate and continuous feedback. Now, interesting as it may be, this approach is a recipe for never ending projects because giving your client the opportunity to change his mind 100 times is not necessarily productive. Also, unless you are on a time and material contract basis (or employee) it is simply not cost feasible on a fixed price basis.

Although this extreme approach is never used in the real business world (although you could read a good article on O'Reilly Onlamp web site) , you can take a less drastic version and actually invite your client at some crucial points in the application and have him or her give you feedback. The agile programming approach is usually most effective at the very beginning stage of the development when you quickly and effectively demonstrate the initial data abstractions and how to connect them to a web page. You can quickly show how to perform typical create/read/update/delete (or CRUD) operation and this with your client present and giving you feedback.

So far, I have not mentioned the word Ruby nor the word Rails. This is actually the tool I used (and there are lots other but I would say none as popular). Ruby is an interpreted object oriented programming language with loads of really nice features. Rails is a web application framework (like STRUTS/SPRING/JSF etc... on Java) written in the ruby language.

Getting back to the agility effect, ruby on rails (or RoR as it is affectionately referred to by hardened converts which I am not :-) ) (pardon my poetic license with the two closing parenthesis before and after :-)) is a very good tool for implementing an agile programming paradigm. It does this by using convention rather than configuration to do most things. This means that if you follow all of the conventions, you will be able to write very little code to do most things. Now, this is where the agile paradigm fails when you need to deviate from the convention (either by necessity or by ignorance). The necessity may come because you have existing conventions that you must adhere to or that the business problem you have requires it. You may do things without using the RoR (now, does that make me a liar and turn me into a hardened convert?) conventions simply due to ignorance and lets face it, a true scalable business class production web application is not a simple thing and any framework that must support any kind of such application is even more so complex by nature and RoR is such a beast. So ignoring one of the hundreds of conventions in RoR is not a sin to be terribly ashamed of.

Since I do not have more time I will leave this post as is but I will resume this discussion later.

Comments

Popular posts from this blog

Handling multipart form data in Spring 3.1

Introduction Multipart mime encoded is a format used to transmit binary and arbitrary data in 1 single HTTP request transaction. In this post, I will describe how to create and process multipart form data using Spring 3.1, the leading industry standard java application framework for creating Java web application.  I will start the discussion from the user perspective by talking about two main use cases and will expand it by describing how these two use cases translate into 7 possible application system use cases. Use Cases Here are some use cases of this feature: A browser submits or uploads a file to a web server using an HTML page. This is by far the most common use case of the multipart form data feature. A multipart is required because the form data and the file are both included in the request body. A java program (a java application or servlet instance) sends multipart form data to a web server (most likely a web service).  This is

Tutorial on how to write and run a javaFX 11 Spring Boot program using Eclipse

Since the decoupling of javaFX from the JDK (see http://openjfx.io ) it has become somewhat of a challenge to use javaFX with the new module capability since java 9.  This tutorial is a brief roadmap between a java 8 javafx to the java 11 version.  All code for this sample resides in https://github.com/marioja/javafx  and can be imported into eclipse and should run as is.  You can also do this manually following these instructions. First you need to use an eclipse that supports the java 11 execution environment (Eclipse 2018-12 at the time of this writing).  Then you need to make sure you have a java 11 jdk installed(11.0.2 at the time of this writing).  I downloaded openjdk11  and unzipped into a folder on my home directory (user profile on windows).  Lets call this directory jdk-11.0.2.  You should add the eclipse -vm argument in the eclipse.ini file  to select jdk-11.0.2. Start eclipse and create a brand new workspace (one that does not exist).  I called it javafx-tutorial.  If

Put your WARs on a diet with Maven: Maven and skinny wars!

I have seen a lot of confusion and misunderstanding on what is and why use a java enterprise concept called skinny war . In simple terms , a skinny war is a WAR where some of its dependencies are moved from the WAR module WEB-INF/lib to the EAR lib folder .   This post is specifically written to deal with skinny wars and does not explain or go into details which jars must be in the WAR class loader and which one do not have to . It is assumed that the reader is familiar with this concept and the concept of the WAR class loader versus the application class loader . Suffice it to say that typically, JAR that must be scanned by CDI usually belongs in the WAR class loader . Web fragments and jars with tag libraries are other candidates . Also, all test and provided scope artifacts must be specified in the WAR module as having maven remove them from the WAR does not make sense as they were never to be put there and having them in a deps POM file does not work . They will not be e