Wednesday, July 21, 2010

Week 4 Reading Response

Before touching on this week's "official" reading assignment, I am going to reflect upon a couple less official, yet, no less educational experiences. Some might call them "Choctaws," others might refer to them as rants, still others might call them "Soapbox Specials," however, I choose to label them "Peeblogs." That's right, educational, hysterical life experiences and musings by none other than your very own John Peebles. During this week's near-daily Peeblogs, I learned the following very important principles:

  • It is key in life to have the ability to take that which you learn/hear/read and be able to apply it to, and associate it with, the real-life situations that you find yourself in everyday.
  • The three most important life skills are:
  1. -Writing
  2. -Reading
  3. -Being able to conduct yourself according to the surroundings that you find yourself in, so as to make a good impression and establish good standing. (i.e. People skills in any situation)
  • In order to be great, a man must read no less than one book per week. As a result of this principle, I have begun attempting to teach myself how to speed-read, according to an article on the Internet.
  • Companies' incentive plans, when regulated poorly, can actually end up demotivating their employees. Sir Peebles went on to explain how his friend had quit working for a company because they denied him his $20k bonus, which resulted in the company losing one of its best employees to a staunch competitor. He explained that, in the long run, the company was ruining themselves. He followed this story up with what was by far the best analogy that I heard all week: "You end up plugging a grenade up your ass. Sure, it feels great until it goes off, and then you're screwed."

And now on to this week's official reading assignment, "Continuous Integration," by Martin Fowler. Fowler's article was an outright home run, endorsing and explaining the ins and outs of CI and hitting upon the principle from every angle. Here is a brief synopsis of what I took from the article.


In CI, "everybody develops off of a shared stable base and never gets so far away from that base that it takes very long to integrate back with it. This results in in less time spent trying to find bugs." Every developer keeps and maintains a copy of the current integrated source on his machine. Updating this copy is called "checking out." This copy must stay up to date with the mainline, or, current source code. In short, there is a single source repository maintained by a program such as Subversion, which contains all of the source code for the product/system. When a developer wants to edit some of this code, he makes sure that he has an updated copy of that source code on his own machine and then works with that copy while editing and initially testing. Eventually, after extensive testing, that edited code will be integrated back into the mainline using a continuous integration server such as Cruise Control.

The following are a few important practices in CI:

  • Maintain a single source repository: A mainline with very few branches, which might be necessary for bug fixes and temporary experiments.
  • Automate the build: Everything should be able to be built/linked by issuing one single command.
  • Make the build self-testing: A close runner up to the above-mentioned John Peebles quote: "Imperfect tests, run frequently, are much better than perfect tests that are never written at all."
  • Keep the build fast: Make the build staged: a "commit build" that should quickly test a large amount of the code and a "secondary build" that runs some of the more time-consuming tests. The following is very important in regards to creating an optimally staged build, "As much as possible you want to ensure that any secondary build failure leads to new tests in the commit build that would have caught the bug, so the bug stays fixed in the commit build. This way the commit tests are strengthened whenever something gets past them. There are cases where there's no way to build a fast-running test that exposes the bug, so you may decide to only test for that condition in the secondary build."

Until week five, that is all I have for you. Come back next week for more Peeblogs if you dare.

Week 3 Thoughts and Experiences

I can HARDLY believe that I have already completed my first three weeks here at Sentry! Working here has been phenomenal thus far, and I see no reason why this shouldn't continue. I really enjoy the "Work hard, play hard" mentality that exists here.

And now, I am going to start a new "blogging tradition" where I make a list of different experiences that I have had here in SoFlo! So far:

-Chipotle (x6) (Barbacoa is my last remaining meat to try)

-Boxing Match (The Heavy Weight Factory)

-YMCA B-ball league (Yesterday we won 70-68 on a buzzer-beating treybomb!)

-Golfing at Deer Creek (Sorry about the tough defeat that you suffered, Kyle...)

-Bowling at Boca Strikes ($1 games/shoes!)

-Fishing on the ocean! (THANKS Keith!)

-Boating/swimming on the ocean off of Key Biscayne Island!

(I am rather certain that I am forgetting several things, but I can add them next week.)

Lastly, I will try to give a speedy glimpse of the things that I worked on this week. I experience my first interaction with QA. The rolodex widget that I added to the VPN Setup Tool this past week apparently didn't display in the correct spot exclusively in IE6...BIG SURPRISE...world's WORST browser! But, as Troy pointed out, many hospitals are still operating with VERY outdated software/hardware, and IE6 is VERY prevalent. Thus, I must be very conscious of this when programming. Other work that I accomplished includes converting four more reports to the reporter framework, adding the date widget to these reports, fixing a link in the PIM log, and the very minor tweak of preventing a search from being conducted on a string of less than 3 characters in the Reverse Mapping CDM search.

See ya, week 3...HELLO week 4!

Week 2 Thoughts and Experiences

Week 2 has been vastly encouraging in comparison to week 1. Though I don't feel that I have suddenly transformed into a coding ninja, my overall fluency in the system has easily tripled that of week 1's. I feel more confident about finding files, reading them, and understanding how they relate to one another.

The majority of my week was spent trying to add rolodex widgets to the VPN and FTP setup tool pages. Robert and I decided to take a pair programming approach, because we were basically assigned identical tasks, Robert handling the FTP Setup Tool, and myself handling the VPN Setup Tool. Apparently everyone dreads any tasks involving the word "rolodex," because every time I would mention that I was working on this, I would get a mischievous smirk or a knowing wince of pain. Luckily Joe Heth decided to make my life easier by making a universal RolodexLinkContact.php file which allowed for a one-to-many relationship between the rolodex and various types of contacts. Had it not been for this, I probably would STILL be working on this project!

A small amount of Thursday and most of Friday were spent on my current task, which is revamping the Replenishment Rollover Report. I had to create a reporter object from scratch in PHP, which I ended up enjoying very much. This was much more of the object-oriented type of work that I am used to doing, so it was much easier to understand. By the end of the day Friday, which came all too soon thanks to TF2, I had my reporter object functioning quite nicely and in need of just a few small tweaks. Overall, this has been my favorite project thus far, largely due to the fact that it has been my most successful and required the least amount of outside help due to the fact that Clearspace had very helpful and extensive documentation.

And now, I must bid adieu to week 2, as week 3 is already upon me!

Week 2 Reading Response

I am happy to report that Week 2's reading load paled in comparison to Week 1's. For the most part, we were assigned two documents: Practical Styles of Pair Programming, by Iwein Fuld, and The Art of Agile Development: Collective Code Ownership, by James Shore.

For the most part, pair programming has been a foreign concept to me, but this past semester in my Compilers class we were instructed to group into two-person teams. So, this is how I was introduced to pair programming. Fuld identifies two roles in pair programming, which are the "driver," who is the one behind the keyboard, and the "navigator," who is the one following and guiding the driver's work. Though the article talked about many of the benefits of pair programming, it seemed that the only benefit that I received was that my partner was smarter than I, and he shouldered a majority of the load, acting as a "driver" with no navigator while I sat and watched. I refer to this as a "benefit," but it in reality, it was no such thing....it was, in fact, a crutch, minimizing my understanding and interest in projects and the class as a whole. Reading this article helped me to identify several of the mistakes that we made in our rather lackluster attempt at pair-programming. The following quote from the article seems to describe my situation perfectly, "The driver knows what he's doing and because the navigator doesn't pick up on what he's saying he turns silent and speeds up. The navigator sees that the driver is doing ok and decides not to slow him down but space out and look out the window a bit." It appears that we were committing several pair programming blunders. A) We were both low on sleep, B) we stopped thinking aloud, C) I didn't always stop the driver when something didn't makes sense, and lastly and most importantly, we never tried switching roles. All of this resulted in what Fuld has labeled "The Disconnected Pair or The Sleeping Navigator."

Now that I have touched upon a pair programming failure, I will briefly report a success. As I mentioned in my other Week 2 blog-post, Robert and I have been working on similar tasks this past week and decided to take this pair programming article to heart. We employed many of the concepts covered in this article, and it definitely resulted in a quicker process which created a higher quality product and allowed me to gain an abundance of knowledge. We successfully fulfilled our roles as driver and navigator.

The article on Collective Code Ownership was also very enlightening, but in a different sort of way. Seeing as I have had absolutely zero past situations in which collective ownership could be employed, this article served more as warning and guidance. I found a great deal of healthy responsibility being placed upon my shoulders. The article explained that it is my duty to always leave code better than I found it. Though not directly stated, I felt that the number one point of the article was that laziness is NOT an option. When coding, I cannot do a half-hearted job, assuming that somebody else will fix my mistakes, as collective code ownership doesn't mean "no-code ownership." In summary, A) I should always be looking to improve other's code, and B) I should take pride in the work that I do, but not be so proud that I try to be the sole owner of that code and get offended when someone else modifies it.

Week 1 Thoughts and Experiences

This is going to be somewhat speedy, as TF2 is raging all around my here in the fishbowl:

Wow! I have been here in Florida for exactly a week, and it has been quite THE experience. Working at Sentry has proven to be quite the blessing, and I know that I am going to continue both enjoying being here and attempting to take a sip out of a firehose of information. Monday was mainly spent moving here into the beloved "Fishbowl" and getting a desk, monitor, laptop, user accounts, and software configured. On Tuesday, I received my fist two tasks, which were both regarding some minor changes on the VPN Setup Tool in ImpMonster. However, though these tasks are quite minor and would take an experienced developer a matter of an hour or less, I have been working on them over the past three days, slowly moving along and learning the necessary new information as I progress. While I have a fairly extensive background in object oriented programming and some in SQL, my web programming knowledge was very minimal. I used HTML and javaScript the very first semester of college, and almost never since then, so my abilities with those two tools is next to none. Also, my project deals primarily with PHP, which I had never even seen, so needless to say, I have been learning quite a lot the past few days. A special thanks to Joe Heth for his patience and expertise on the phone, spending hours and hours running me on a crash course through web programming. Ok, well TF2 beckons, so I am fulfilling my promise to keep this short!

Week 1 Reading Response

As I sit here trying to ignore the barrage of "TF2 Smack Talk E-mails" (I've gotten 7 in the last 11 mins alone), I am attempting to recollect some of the articles, blogs, and documents that I have stumbled through in the past five days. Seeing as it's my first week on the job, I have naturally had to read a plethora of information just to tread water and try to get up to speed with my responsibilities. The document that I will be referring to this week is the infamous "Monster Method," which will henceforth be referred to as "The Method."

Firstly, I enjoyed the section regarding "flow." I found that I could most definitely identify with many of the theories that The Method brought to light. While discipline and clear-tasking are not areas that I particularly struggle with, I do sometimes struggle to find an environment in which I can create/maintain good flow. Here at Sentry, at first I struggled with my environment being somewhat loud and distracting, but I feel that things have settled down in the past couple days. At school, I find myself getting into the zone, or as The Method calls it, flow, late at night after my roommates and most of the other people in my house have gone to sleep. I will be working to improve at dealing with distractions this summer here at Sentry.

Secondly, I liked the guiding principle from The Method that talked about "cross-pollination." I have experienced this already in my first week here, although it has mostly just been me getting pollinated by several expert co-workers, rather than assisting others. Were it not for cross-pollination, I would be lost and even less productive than I currently am.

Lastly, I enjoyed the section entitled "Blocks of Time." I have always felt like little 45-60 minute blocks of time are rather worthless to get anything significant accomplished, and this section confirmed my suspicions. According to The Method, "Studies have shown that it takes a minimum of an hour and half of uninterrupted time to get any kind of meaningful work completed." It suggests planning your day into 1.5 hour blocks and using the time inbetween these blocks to take any breaks. This ensures that flow of work is not impaired.