Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

Wednesday, February 11, 2009

How to Prioritize Anything

It's always difficult to prioritize lists that are longer than 3-5 elements because it's just too much data for most people to process. I've struggled with this problem in several forms over the years, from choosing a job offer out of college to ranking my direct reports to prioritizing feature requests for a software product. Somebody along the way figured out that if you ask people to just decide the priority of two choices multiple times then you can calculate the relative priority of an entire list... it's called "Paired Comparison Analysis".

I remember seeing this approach when we took my firstborn to get his baby pictures. They take over a hundred digital pictures of your kid and then display them on a big flatscreen and you are supposed to pick five. Getting down to about 10 is pretty easy (eyes closed, screaming, etc), but choosing those final 5 from the 10 is actually really difficult. So they pull up just two pictures at a time and ask you to choose between the two. They repeat this many times until your 5 become obvious. The efficiency of this approach is brilliant because the faster the parents choose, the more customers the studio can serve.

While the photo studio example is purely binary, a more sophisticated variant allows me to specify degree (e.g. I like this one twice as much as that one). This is overkill for some use-cases but can be valuable in more complex situations. I found some tools to enable this, but they required me to manually compute the score for each of the elements manually. Being a techie I found this to be just silly.

I built a spreadsheet which automatically calculate the scores for each element. Each element is listed down the left-hand side and repeated along the top. The bottom triangle of the grid is blanked out to avoid duplicate comparisons.



When the element on the left is better than the element on top you enter a positive number in the grid. When the element on top is better you enter a negative number. You could use the same spreadsheet to do simple binary comparisons just using the values one and negative one. If you feel that the comparison is a tie just enter zero. The scores for each element are displayed on the far left. Once you have completed scoring just sort the spreadsheet by the score.

If you'd like to try it for yourself you can download my spreadsheet here.

Friday, December 19, 2008

MacBook Air Wireless Dropouts FIXED!

After 10 months of watching my wireless connection drop out randomly (and usually at the most inopportune times) I have finally found a solution. So for anyone else out there running WinXP on a MacBook (BootCamp, Fusion, or Parallels) let me save you the 10+ hours of frustration and point you directly to the solution.

You just need to replace the wireless drivers with the Broadcom drivers provided by HP.

Voila!

Tuesday, October 21, 2008

AjaxWorld - San Jose 2008

For the past week I have been laser focused on preparing for my presentation at AjaxWorld on rapid prototypting for rich internet applications. I always seem to underestimate the amount of effort it takes to build a really compelling presentation and therefore I always end up making tweaks up until the very last minute. Maybe I'm just never satisfied and believe that it could be just a little bit better. Lucky for me it seemed to work.

The presentation generated an amazing response. About 50 people came up to me during the conference telling me how much they enjoyed the presentation and that I had crystalized their challenges and provided an interesting solution simultaneously. The Appcelerator booth was overwhelmed by people wanting to learn more about our technology. Personally, it's incredibly satisfying when you realize that you've really made a connection with your audience.

Later in the evening I was able to participate in a panel discussion about "The Future of Rich Media and Content Across All Four Screens". At first I had no idea what the concept of "four screens" meant. They are (supposedly) : the theater, the TV, the computer, and the phone/handheld. Each representing their own experience and their own idiosynchrasies. At the end the question was posed "Would your recommend Computer Science as a degree to your child?" Initially I simply answered "no" and tried to leave it at that with no explanation (b/c it was kind of humorous) but when pressed I passionately argued that <rant> computer science curriculums have NOT kept up with the pace of innovation happening in the software world and that our CS students would be MUCH better served learning SQL than learning RS/JK edge-trigged flip-flops.</rant>

Overall, I've really enjoyed the conference so far.

Thursday, October 16, 2008

What's next for Quin?

I have been incredibly fortunate during my career and I can say that I have very few regrets. From Tallan (including Carmax, ValueAmerica, & On2) to Interwoven to JBoss/RedHat to Appcelerator it has been an amazing ride. However, today I am pondering my next move. As some of you may have heard Appcelerator has recently decided to close the Atlanta office so I am soon to be unemployed.

I am looking for a senior technical management or evangelism position in the Atlanta area with a maximum of 25% travel. I have a home office now so I can work from home if necessary. I haven't gotten around to revising my resume yet (do people still bother?) but my work history can be found on linked in. If you know of any good opportunities for me please send me an email (matt-at-quinlan-dot-net) or tweet me. If you have already given me a job lead, my sincerest thanks.

Cheers!
-Quin'

Monday, October 13, 2008

Get "Rich" Quick : Rapid Prototyping for Rich Internet Applications

It's the GUI stupid!

Many years ago, I consulted for a large semi-conductor company during the early stages of a software project. They had a highly detailed and fairly rigid process for software projects that started with a complete requirements document based on an extremely verbose and granular template. As the project progressed and I saw the size of the document balloon from 50 pages to more than 200 pages, I had the realization that this document would never be read by ANYONE from beginning to end. The business owners who were responsible for ensuring that the requirements fit their actual business needs were completely overwhelmed by the document's size and complexity. Six months later the business users were given their shiny new software and they were disappointed that the software didn't match their expectations.

In reality, the software was a very solid effort that met all of the requirements specified in the document. However, business users had no ability to read the requirements document and imagine what the user interface might look like for the requirements provided. I remember feeling that the business owners didn't know what they really wanted and feeling resentful of that fact. In retrospect, I realize that almost nobody knows exactly what they want, until they see it. Why? Because to a user, the interface IS the software. Concepts like data models, middleware, rules engines, LDAP, and SSL have no real meaning outside of us techies.

So how do we avoid this? Is Agile Development the answer? Agile is definitely a step in the right direction. It codifies the practices that had evolved in the most successful and most productive software development teams of the 1990s. However, we need more. We need to enable our development teams to prototype the user interface quickly and easily so that users can actually see (better yet, use) the software EARLY in the process. In web 1.0 this was a fairly straightforward effort of building static HTML wireframes. The problem was that this work was largely throwaway b/c they had to be rebuilt as servlets, JSPs, ASPs, PHPs, etc.

As our web applications become more sophisticated this approach starts to break down even further. Today, rich internet applications include syndicated content, widgets, DOM manipulation, Ajax calls, and often a substantial amount of JavaScript. Static wireframes just cannot easily emulate this kind of rich user experience accurately.

What If?

What if you could build the user interface prototype in a matter of days or weeks without a single line of server-side code or even a datamodel? What if the business owner could not only play with this prototype, but also provide context specific feedback seamlessly while exploring the prototype? Finally, what if the prototype wasn't a prototype at all, but was the actual user-interface of the final product (zero throwaway code)... even if you haven't decided which server-side technology you want to use (Java, .Net, Ruby, PHP, Python, Perl)?

This is exactly how we develop software for our consulting customers today using the Appcelerator platform. We've been doing this for over a year now, but we haven't really given it a name until recently. We call it "Interactive Use-Cases". Essentially, we skip the entire functional requirements definition phase and move directly from use-cases to working prototype! This is only possible because of the advantages that the Appcelerator platform provides us. Let me explain.

Technological Enablers

First, Appcelerator's widget library, web expression language, and message-oriented architecture were designed to enable web developers to build UIs with the minimal amount of code (read: JavaScript) possible. As an example, Ajaxian's Dion Almaer posted a small interactive web page on his blog and invited people to port it to their favorite JavaScript framework. Compare the ViewSource of the Appcelerator version to those of the other frameworks. More app + less code = better productivity.

Second, the fact that you are not generating your HTML from server-side scripts frees you from the wasted effort associated with building throwaway static wireframes. Build applications as Ajax enabled .html files which dynamically pull data/content from the server and (re)render those sections of the page accordingly.

Third, our message-oriented architecture is ideal when prototyping because message subscribers in the browser do not care about the source of their messages (that's the point of publish/subscribe architectures). So build the entire user interface with the exact messaging code that they will need for production use. But instead of building a datamodel, DAO objects, DTOs, business logic, and such to provide the actual service implementations, just add a single line to your webapp to include a single JavaScript file containing mock implementations of these backend services. In 90% of the cases you can mock that service with a couple lines of JavaScript that generates a JSON message with a mock payload.

My favorite part about this approach is that once you have gotten sign-off from the business owners, you can remove a single line from the application and all of the mock services have now been turned off. And the server-side programmers have a complete contract of every service which needs to be developed along with test data. Even better, they can choose to implement those services in any language they prefer because the UI is just producing/consuming JSON.

Fourth, thanks to a recent enhancement by Andrew Zuercher, we can easily collect user feedback on our user interface prototype by passing an additional URL parameter which highlights the border of any HTML control on mouseOver. By CTRL-clicking on any highlighted element a feedback dialog box appears that includes the specific page and HTML control being commented on. Users can see other users comments so that feedback effort isn't duplicated. UI elements that already have comments are indicated with red borders.

annotated web page screenshot

Everyone knows that prototyping is a valuable exercise that improves the likelihood that the business users will be satisfied with the end-product. However, the limitations of web technology have made it prohibitively expensive and time consuming for all but the most critical web projects...... until now.

The Effects of Open-Source on Recruiting

This is the first of a series of blogposts in which I will explore the impact of an open-source business model on different aspects of a software company. During my tenure at both JBoss and Red Hat and now at my current employer Appcelerator, I have witnessed these sometimes subtle, often dramatic, effects from finance to sales to engineering to IT to support to marketing to legal to human resources. Everyone is affected in an open-source company.

I have always enjoyed technical recruiting. Probably a result of my first employer (Tallan) emphasizing the importance of everyone participating in the recruiting process. The company actually tracked statistics on which employees had passed/failed interviewees and the success/failure of those interviewees who were actually hired. There were no direct financial rewards for being the best interviewer, but there were definitely some bragging rights. It was during this time that I realized just how different hardcore technical recruiting is from almost any other position. When companies hire accountants, managers, lawyers, marketers, and salespeople, so much of the decision was based upon a candidate's history, his/her personality, and his/her attitude. However, when a company is trying to fill a highly technical position, the VAST majority of the decision (hopefully) falls on his/her technical accumen. Technical recruiting is different... and for good reason.

One of the most difficult challenges facing companies who need to fill highly technical positions is to accurately assess a candidate's skillset and knowledge. Notice that I distinguish between knowledge and skills. While I do actually understand the bodily mechanics, balance, and coordination necessary to dunk a basketball... I still do not possess the athletic skill to do so. Oftentimes, the HR department won't even attempt to evaluate the technical aptitude of a candidate, just assuming that the candidate's proficiency on any technical skill listed on the resume is likely to be sufficient for the position's requirements. That's not a dig on HR, how on earth would we expect them to evaluate whether a candidate who lists Oracle as a skill is capable of installing Oracle, designing datamodels, or tuning Oracle databases? It takes a rockstar to know one ("...it's just a handful of people in the world who can tell the difference between you and me. But I'm one of them." - from Goodwill Hunting). When companies do actually attempt to assess technical talent it is often conducted haphazardly by someone who would rather be coding than interviewing candidates. Either way, the result is that the quality of technical talent within an organization fluctuates more than the price of crude oil. And because companies loathe the concept of shedding weak talent, mediocrity becomes the accepted standard.

Enter open-source.

The introduction of open-source into a software company's business model adds a new way to evaluate the technical accumen of potential hires. When looking to add new members to the team, no talent pool can compare with the members of that project's open-source community. Rather than conducting a series of interviews to determine the best candidate, you can easily see who the most engaged, most insightful, and most talented community members are based on their comments, their posts, their blogs, and their code contributions. This approach to recruiting results in a ruthlessly efficient "weedout" process allowing a company to easily identify the best possible candidates. Much like the ability of open-source software to prove it's value before a company invests in support, this model requires a job candidate to prove his/her value prior to consideration.

During my tenure at JBoss I specifically remember that the HR department was not allowed to interview or source candidates for positions on the core development team. You first had to be a contributor. And if your contributions showed that you were a rockstar, then we would send you an email and ask if you would like to make your hobby into your job. Few people declined because it gives them a chance to work on something they are personally interested in (which isn't necessarily true for most programmers).

Next week, Appcelerator will have our first official hire directly from our community. Kevin Whinnery (formerly of Lawson Software) will be joining our team as an evangelist. Kevin has been one of our most active members to date and is in the process of writing a book about Appcelerator. This is a perfect example of someone who clearly proved their worth in advance... and we are thrilled to have him coming aboard. Welcome to Appcelerator Kevin! Are you next?

REPOSTED from Appcelerant.com

Monday, August 18, 2008

Google Alerts via RSS

I am trying to become a more efficient consumer of news and information. I was a bit late coming to the RSS party, mostly because I didn't truly realize the value it could create. However, once I started using RSS it became a passion of mine. I found it incredibly valuable to have my news & information delivered to me rather than having to go find it constantly (which always drops off when I get busy).

I found lots of cool tools that allow me to mix RSS, and filter RSS, and generally create mashups (more on this in future post). However, the one itch I could not scratch was the ability to consume my Google Alerts as an RSS feed. It seemed ridiculous to me that I couldn't find a little RSS icon anywhere on the Google Alerts page.

Luckily, after much searching, I found someone who had noticed that the URLs for individual Google Alerts looked a lot like those for Google News. So here's the scoop, if you want your Google Alerts as an RSS feed:

1. Goto Google News and enter the query that you would want to use for your Alert.
2. Look at the URL that is created as a result and pull out the q=______ section (hint: this is your querystring)
3. Add the querystring onto the following URL:
http://news.google.com/news?output=rss&q=________

Obviously replace the ________ with your querystring from step 2.... and Voila! You now have an RSS feed to import into Google Reader or whatever reader you prefer.

Outlook : Hazy with a chance of Pain

This morning I booted up my laptop and launched Outlook to pull up my calendar and task list (one of my favorite Outlook features) and plan out my day. However, my expectations were quickly dashed when Outlook informed me that it "Cannot open your default e-mail folders. The file c:\Documents and Settings\mquinlan\Local Settings\Appclication Data\Microsoft\Outlook\outlook0.ost cannot be accessed. You must connect to Microsoft Exchange at least once before you can use your offline folder file." and then closed immediately upon clicking the OK button.

Now I'm actually a big fan of Outlook, when I was working for RedHat and switched my laptop over to Linux I was forced to live without Outlook for more than a year and I must admit that the alternatives (Thunderbird and Evolution) are complete crap. Yes, Thunderbird is fine for email only users. But if you actually need to run your life in your PIM and you need something simple like calendaring support... you are stuck using buggy 3rd party extensions like Lightning. So needless to say, one of my favorite aspects of leaving RedHat was to return to my previous level of personal productivity through Outlook. Or so I had hoped.

Now on to debugging the problem. I've checked to ensure that the file it references does indeed exist. I've even temporarily removed the file so that Outlook might recreate it from the server-side (Exchange). But no luck. I'll post the resolution here once I figure it out. Not because anyone reading this is likely to benefit, but more likely that I will stumble across this again in 12-24 months and not be able to remember how to fix it and this will be my documentation.

Update: Looks like the problem wasn't Outlook, but rather another piece of software which I use to sync Outlook's calendars with Google calendar. While Google provides a free piece of software to do this, it is only capable of syncing your main Outlook calendar and I like to separate out personal and work calendars. I purchased and use SyncMyCal and it has worked flawlessly... until today. I'll see if there's an update. But luckily, this issue was fairly easy to resolve and didn't require me to rebuild my entire Outlook .ost file.

Wednesday, August 6, 2008

The Death of Offline Web Apps

I love my Google Reader (especially the VI hotkey navigation). I really love the fact that I can take my RSS feeds offline with me when I'm about to jump on a plane. However, what happens when the concept of being disconnected from the Internet disappears?

I tend to be a ridiculously early adopter of technology and therefore end up with hopelessly outdated technology that costs 5x more than it should. I have always thought that connectivity should be independent of wires & location. From OmniSky (for my Palm Pilot in 1999) to Intel Anypoint (1.5 mbps baby) to digital phone cards (PocketPC) to EvDO cards... there's almost never a reason not to have an IP address except on an airplane, a submarine, in a faraday cage, or in deep space. Since I'm unlikely to encounter three of those situations it's really about the ability to access the net at altitudes of 30,000ft.

I just read today that Delta has announced it is going to provide WiFi on all domestic flights. And it seems JetBlue has been offering limited access since 2007.

As competition forces the cost of mobile connectivity to decline, offline may be a stop-gap solution that eventually becomes a solution in search of a problem. Now this doesn't mean that some of the advancements that have been associated with offline will also disappear (local data storage, desktop integration, etc.). However, the idea that my user interface needs to be stored locally will soon seem quaint.

note: cross-posted at my work blog

Friday, July 18, 2008

Cross-E-mail Client HTML

I was a salty Java programmer who never really cared much for GUI development until recently when I joined an RIA (rich internet application) software company called Appcelerator. One of my tasks at work was to create a monthly newsletter for our community members. We have an amazing graphic designer here (Tyrus) who created a really cool layout for me and all I had to do was convert the image into HTML so that it could be rendered in people's email clients.

Twenty plus hours later I am still trying to figure out all of the quirks associated with rendering HTML in email clients. I thought that creating cross-browser web pages (IE, Firefox, Safari) was a challenge, but cross-email web pages are nearly impossible. It turns out that there is an entire community of people who spend countless hours identifying what works and doesn't through painstaking trial and error.

My newsletter design was to have a grey background color rounded corners and one of the corners was intentionally asymetric with an arm shooting out of it. Like this:



So I cut up the image into some component images that I planned to align with HTML background colors inside a table to provide a canvas on which to place my text.



Now the question was how do I emulate the background color shown in the image within my webpage so that I can enter the textual content of the email? I had lots of options here with tables, div tags, background images, background colors, styles, etc. So I chose one and went about building my webpage after an hour or two I had everything working in Firefox so I decided to test it in Internet Explorer. WHOA! Not even similar! I spent HOURS googling and tried dozens of "tips", but it turns out that most people posting tips just regurgitate what someone else had told them (which wasn't necessarily true).

I finally decided that the only way to truly understand what background color options I had was to conduct a test. So I built an HTML table with 6 different ways to color a cell to see what kinds of color changes and alignments resulted. I had also learned that Outlook has used Internet Explorer to render it's HTML until version 2007 when Microsoft decided to use MS-Word instead (so I had to add MS-Word/Outlook2007 to my testing). Here are the results:



Notice how Firefox renders all of them exactly the same. Perfect alignment and perfect color. IE screws up both the alignment and the color so that almost every one of them is different! And Outlook... god help Outlook. After about 5-6 hours of searching I finally found this post which highlighted the fact that in strict mode (as opposed to quirks mode) an image tag is displayed as an inline element which causes Internet Explorer to add 4 pixels of spacing below the image to account for descending letters like j,q,p, and y (nevermind this is an image and cannot actually have descending letters!). The solution was to add a style tag:

style="display: block"

And voila, the space at the bottom of the image in IE disappeared! Simple right? As Lee Corso would say, "not so fast my friend". When I rendered the image with the style attribute in Outlook2007 it added a 1 pixel border on the LEFT of the image! I finally solved that problem by duplicating the background color of the image inside the TD cell of the table which contained it. Like this:



After trying several other email clients and toying with this for hours I finally decided that the most cross-client solution to background colors was to use tables (styling every padding/spacing/margin attribute to zero and collapsing borders) and to set background color directly on TD elements. Image alignment required the tricks I describe above. Also note that recipients who use Gmail will not get the proper spacing if you use style="margin xxx" or style="height xxx" or style="width xxx". For gmail, you must specify height or width as a tag attribute instead of a style.

Now that I have figured all of this out... I hope to never utilize this knowledge again in my personal or professional life. However, just in case I am forced (kicking and screaming) to do this again, this blogpost will serve as my documentation of what actually worked. And who knows, maybe it will help someone else not spend 20+ hours pulling their hair out on these issues.

Friday, June 6, 2008

Lipstick on CGI

It was 1997 and I hadn't really embraced the web yet as a programmer. While I had played with HTML, I was convinced that real developers wrote in C/C++ and PL-SQL. HTML was for sissies. One of my co-workers was building an online search engine for an e-commerce company and he introduced me to CGI programming. The idea of redirecting the incoming HTTP request to a script that generated HTML on the fly instead of regurgitating the contents of a file seemed immensely cool to me at the time. Technology advanced and I followed with SSI, then servlets, then ASP, then JSP, then taglibs, then struts, then JSF, etc.

However, I never really questioned the basic premise that web applications are essentially a simple collection of scripts which dynamically generate HTML documents and share a server-side context (http session). Afterall, all of the server-side web technologies I had used were based on the same fundamental concept that CGI had introduced back in 1995. Most innovations in this area were just further abstractions built on top of this concept (e.g. JSP custom taglibs). But abstraction is a double-edged sword. It eliminates the need to understand everything going on under the covers. However, each abstraction layer typically includes its own configuration (struts XML hell), quirks, and conventions. Which results in the need for someone to define "best practices" based on their personal pain of figuring out where the friction points are between the layers of abstraction that live just above and just below it (e.g. ValueObjects/DataTransferObjects).

Building web applications has become much more complex than necessary and the the development community has responded with simplification efforts (think Ruby on Rails, annotations, configuration by exception, etc.). Each of these efforts were a significant evolution of web application development, but none were revolutionary. While undeniably valuable, they were still just lipstick on CGI.

True Web Clients

There is an opportunity today that really hasn't existed until recently (outside of building GUIs completely inside a proprietary player like Flash). Stop generating HTML on the server-side. Write rich web applications as standalone clients based on open standards such as HTML, CSS, and JavaScript. Call it Client-Server 2.0 if you like, but without the baggage of software distribution, version management, and platform dependencies. While JavaScript was the foundation of this revolution it was the introduction of CSS, DOM manipulation, and finally AJAX that allowed us to build truly standalone web clients.

So how do you go about building true web clients? Until recently it was actually rather painful to do so. You had to be a JavaScript guru and even then you typically were weaving together multiple 3rd party JavaScript libraries and frameworks to provide the necessary event handling, DOM manipulation, parsing, etc. Appcelerator was designed specifically to simplify the development of web clients so that mere mortals can develop them (not just the PhDs @ Google). Yes, you can use all of the Appcelerator widgets and even leverage the client messaging bus without giving up your HTML generation scripts (and many people do). But once you've experienced the elegant simplicity of developing true standalone web clients that invoke services for business logic & data access, you will never go back.

The shift is already underway. The client operating system IS the browser. See the rise of offline, single-site-browsers, and desktop web integration. The clients call services and re-render themselves accordingly. The only question remaining is... how long before you starting writing webapps as standalone web clients?

(cross-posted from Appcelerant)