Wednesday, October 24, 2012

What is programming?

So I'm going to try *once again* to get this blog going. I have vision of getting my own business one day and this is a great place to put pen to paper... or ... finger to key? and put some fresh thoughts out... This one is simple, but abstract! What is programming? At it's core... I like to describe it like this: As a human, i consume food which in one way or another, was grown by sunlight from our star. So I have potential energy (from a star!) than I dispense.. turn into kinetic energy.. with (hopefully) precision onto a keypad attached to a computer. This computer then receives my kinetic energy and turns it into specifically designed gates (back to potential), such that another human can come along, dispense their potential (star) energy on a range of different hardware, and due to my energy gates, they receive some benefit (order complete, recorded video, etc). I know this is 'way out there' but just because it sounds silly doesn't make it any less true. I think if more people thought on a larger scale, widened their perspective a bit, we'd all be better off :)

Tuesday, December 9, 2008

THE First Blogger Was.....

OK people, I may have un-earthed the TRUE origins of blogging, which in fact pre-date the Internet itself! Na...? Impossible? Blogging without the Internet? Indeed here today I stake claim to having pieced together a decades old puzzle that will forevermore set straight the entire Internet and give thanks and credit to a true pioneer, OK so that first part about setting the Internet straight was bullshit but the rest is good to go... (and yes I full expect some damn troll to post that so and so already posted this and it's not my idea)

We must define a blog before we can hunt for it... What are the required pieces of a blog? I've got three rules laws of a blog:

#1) A human must record (in electronic format) one's thoughts, feelings, and/or just make incredible claims. (Sorry all those dog blogs don't count)

#2) These records shale be done in a semi timely fashion. Daily blog entries are the goal, even hourly, but oft times blogs get more stale than ... well really stale crackers, in which case they go from blogs (Web log) to Flogs (Forgotten log)

#3) These records must be distributed in electronic format for all to see (well at least more than one's own family)

Now, we've got all the parts defined.. so sit back and prepare to be SHOCKED! Who met all of these requirements? Even before the US Military had unleashed it's DARPA, alien-durived secrets (that hence grew up to be invented by Mr. Gore himself) aka The Internet? Only one man:

Doogie Howser, M.D.

That's right! He blogged!! Before any of us thought it even capable!! At the end of every show (queue corny music) he typed into his fancy computer some life lesson that made us all feel, well, a little gay really.. #1 CHECK!

I didn't miss an episode, and they came once a week baby.. #2 CHECK!

..and finally we all watched him do it!! And it was our love of his crappy show that satisfied #3 CHECK!

So there you have it my friends, give thanks to Mr. Neal Patrick Harris aka Doogie aka One of the funniest damn actors out there!! If you don't believe me, just check him out HERE and HERE.

Thank you Mr. Harris, for opening doors for all peoples which have allowed us to spill our minds across the net.

Friday, September 5, 2008

Ice Faces

Captain Obvious says this is my first tech blog and the first post on it... so be gentle. I keep a blog that one day I will hand over to my son to explain all of my parenting mistakes decisions, and that is where most of the world knows me from (over HERE). But I actually have a Job as a team lead, and from time to time I want to spout out and my daddy blog just isn't the place.. so this will be the home for that type of crap insight.

Subject: Icefaces
Where are they: HERE
What are they: A sup'd up AJAX JSF framework like no other

On your mark.. get set... GO!
So we just made the jump from struts/tiles/jsp to icefaces/spring/jsf... By we, I mean L-3 Communications Mobile Vision.. whew that's a mouthful! Check us out HERE. And by jump I mean carefully planned and perfectly executed. So what do we do? We sell in-car video systems to your local police. We're the top performer in this market and have been for approximately 25 years. Where does IceFaces come into play? Well about 5 years ago we moved from VHS systems to digital systems.. and in doing so we developed a web application that manages all the digital videos. So why did we make the jump? Well, thankfully our VP of Software Development has some real vision and knows that you have to move to new tech as the old tech dies, otherwise you will be stuck on Old Tech Island.. (very much like the island on that TV show Lost... a lot happens.. but you never go anywhere.... and you'll eventually get tired and stop watching cuz they string your ass along.. but i digress)

So how did our migration go? It had it's bumps, but we knew that if we got into a corner we could pony up and buy enterprise support to kick start things.. Turns out with a couple bruises we were able to do it by just leaning on the forums in under 6 months... One cool note is that we did a stepped migration in that parts of our application remained on Struts while others moved on over, this made for a fantastic phased implementation. The forums are really active and came to the rescue time and time again. As a side note, dead forums should send any developer running for the hills.. just fyi... The framework continues to get a lot of improvements and we have kept with the current release, taking advantage of new features as they emerge (modal pop-ups, etc) anyways, now that we are done, I gotta say I'm truly impressed! It's so much less work dealing with Icefaces components and jsf backing beans vs struts/forms/etc... The fact that it handles tabs so easily was huge for us as we are now able to move tabs all over the place without any real effort. We have big plans for drag and drop as well as some of the other cool components.. but i can't be specific due to NDA's and all...
I love lists... So I'll break it down to a short pro/con list:

Pro's
  • The active forums and optional paid support means you will succeed
  • AJAX push (from server to client(s)) allows for some pretty cool stuff (good bye polling)
  • JSF is in.... Struts is out
  • Super fast coding (hook components via tag libs up to jsp beans and your done)
  • Event model programing without all the hassle of Swing :)
  • AJAX is cool man
  • Server side DOM diff'ing allows for stable DOM updates
  • Phased implementation (although this may not work for everyone, our app was alread well suited for this approach)
Con's
  • Most components need to be in a form, so you will find yourself sticking forms in places you never did before
  • This is still an up and coming framework, so the occasional bug is still a little too often (they are working hard to clean it up)
  • Honestly I'm have trouble coming up with more, I don't want this to sound like a commercial for the framework.. but I am afraid it is turning into just that!

So lets dispence with all the fluff and get right down to a before and after example, I will generisize the names to

protect the innocent:

===BIF (Before IceFaces)===
First lets introduct the players....

We have a Form POJO to act as the FORM object
--------> PersonForm.java

We have the JSP page (or tiles composition)
--------> savePerson.jsp

We have the stuts mapping (we used dispatch pattern)
--------> struts-config.xml

We have the Dispatch action class
--------> PersonDispatchAction.java


=== AIF (After IceFaces)===
Now the Ice players... (sounds cooler.. eh pun intended..)

We have the XHTML page
--------> savePerson.xhtml

We have the faces mapping
--------> faces-config.xml

We have the Backing Bean
--------> PersonBean.java


So the we actually dropped the form objects going to faces... the complexity dropped and we added the ability to be up and running with popup calanders, tabs, sliding menu's, etc (go check out the component demo) in no time flat..

I'd post a demo but their demo's are golden.. if you have any questions, hit the forums.. of course I'd be happy to help as well so post below if you like... In closing.. I give Icefaces two thumbs up.