As a programmer do you want to work on operational programs or do you want comabat training?

Tank: We’re supposed to start with these operation programs first. That’s major boring shit. Let’s do something a little more fun. How about… combat training.
Neo : Ju jitsu? I’m gonna learn Ju jitsu.
[Tank winks and loads the program]
Neo : Holy shit!
Tank : Hey Mikey, I think he likes it. How about some more?
Neo : Hell, yes. Hell yeah.

Well I can tell you that I prefer comabt training…

Operational programs consist of programming things like data objects, value objects, concrete data types. Major boring shit! Nothing interesting happening here.

Combat training this includes the dynamic portions of the code you write.

Let’s take an example:

You have a web page.  On this web page you have a navigation menu and you have a content container. When a user clicks on a menu item some content will be displayed in the content container via an AJAX request to the server. The content is stored some how on the back-end (database, flat-files, or another server), we don’t really care for this example.

Now where is the combat training and where is the operational programs areas.

It might be better to isolate to two specific areas. Client-side and Server-side.

Server-side

Operational Program

The concrete implementation of the content, the HTML output of the server. The actual data coming out of your back-end

Combat Training

The selection of the types of content to be sent to the client-side. You know images, text, google geolocations, whatever you can imagine.

Client-side

Operational Program

jQuery manipulations, $(‘my_div’).hide(), something along those lines.

Combat Training

When the user selected a menu item did the correct AJAX request go to the server.

So whenever you are TDDing your code, remember you want combat training not operational programs.

Tank quote (Matrix)

Advertisements

Tags: , , ,

One Response to “As a programmer do you want to work on operational programs or do you want comabat training?”

  1. Bluehost Review – Things You Should Know | Computing & Internet Says:

    […] As a programmer do you want to work on operational programs or do you want comabat training? «… […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: