January 21, 2008

KDice At The Crunchies

Although Kongregate won, KDice was nominated for the Best Time Sink category at The Crunchies. TechCrunch, a very big blog reporting on technology start up news, put on the event in a style similar to award shows you’d see on TV. Award winners included Digg, Facebook, and Tesla Motors - pretty amazing companies. Here’s a screenshot from the Time Sink category which KDice was nomiated in:

January 21, 2008

Two Book Reviews: Google Web Toolkit Applications

Google Web Toolkit Applications has been out for around for one month and a couple reviews have come in.  Joseph Ottinger from The Server Side says in his review:

Google Web Toolkit Applications is an excellent book, well worth the list price of $49.99 (USD) if you’re doing any serious GWT development. It’s well written, very much in depth, and shows application patterns that will be very useful for anyone using GWT, in many cases showing concepts that are very difficult to find elsewhere.

The second review is by Chris from GWT Site:

Google Web Toolkit Applications is an excellent book. It is easy to read and does a really good job covering all the major GWT topics and more. The applications demonstrate software development best practices and cover a variety of interesting techniques.

December 7, 2007

The GWT Conference Wrap Up

The conference was amazing. The only negative point, and this is the most tiny negative relative to everything else, would be that there was a bit of a pro Java slant at times which alienated developers using many other technologies. I guess its a sure fire way to get a positive response from a largely Java based audience. This however, was not something that any speaker from the GWT team did making a point to convey Java as a pragmatic, rather than religious, choice.

On the largely positive side of things, some of the most interesting people I’ve ever talked to were there. Bruce Johnson is an extremely practical no-compromise web purist and his dedication to GWT makes me feel lazy and Joel Webber’s depth of thought about the most specific details was wonderful. The rest of the GWT team were just as incredible. They all evoked a great amount of trust in the development of the toolkit. Their priorities are for the users of web apps and nothing else, not even Google itself - except in the sense that what’s good for the web is good for Google (of course helping the developer helps the user in many cases). The people attending the conference weren’t slouches either. Some of the brightest and most progressive developers were there. I found myself enthusiastically listening day in and out.

Adding to my positive experience was seeing my GWT book in print for the first time, watching it sell out by the second day and climb to #5 on Safari’s top books. Woo hoo!

November 25, 2007

Ajax, Next Steps

Ajax is a bit of a browser hack.  Isn’t it one of these Web 2.0 trends that are going to eventually fade away into obscurity?  You would think it would be gone by now in the same way we’ve found better solutions for things like frame sets and animated gifs. But it’s not. People have embraced websites that use Ajax.  It’s not that they’re simply attracted to the latest technology.  Most people don’t know that browsers aren’t meant to do these Ajaxy things. For that matter do most people even know what Ajax is? Mostly no.

As software developers our intuition tells us to build something that does the same thing with different technology, something more elegant. But the reality is people love the internet and their web browser. There’s a sense of safety (browsing compared to installing software), and infinite content. It seems that we need to suck it up and see what we can do with this Ajax thing.

Progress has been made over the last couple years to deal with this software development problem starting with quality frameworks started to popup like Prototype, Ext, and Dojo. Then we started to see better tools. The tool I’ve been most impressed with for Ajax software development is the Google Web Toolkit (GWT) since it lets you leverage software engineering tools from Java.  At this point I think we have this Ajax thing handled pretty well. Frameworks have abstracted the limitations of the browser allowing us to focus on writing application code with a solid foundation. Software engineering tools now provide us with the proper environment to scale our development process and application complexity.

So what’s next? Let’s nail performance…

November 2, 2007

Camfire, Democamp, and Open Social

Google’s open social has a web page now and it looks like a fairly straightforward technology to use. I’ll definitely play around with it a little bit. Unfortunately it’s not quite ready with the social networks. Only a few of the networks listed support it today including Orkut, Plaxo, and Ning. It sounds like Facebook may even support it even though Google left them in the dark.

This is a pretty big API announcement for Google. Probably the biggest over the past year or so. It supports standard web technology, which means you can build sophisticated apps using GWT too. It’s a very good move by Google and helps with their image of being open and not evil (although supporting MySpace and not talking with Facebook looks pretty bad). They even held an little event called Campfire to announce the API. Campfire is Google’s attempt at a Barcamp/FooCamp/DemoCamp style unconference, but unfortunately it had that fake corporate video/infomercial feel instead.

September 26, 2007

RealNetworks trying to tap into Social Gaming

picture-9.pngThe price tag is said to be around $50 million for New York based Gametrust as reported by TechCrunch. In January 2004 RealNetworks acquired Seattle based GameHouse for $34.6 million. In February 2006 they acquired Dutch game company Zylom Media Group fo $21 million. In February of this year they acquired Brazil game company Atrativa for an undisclosed price. RealNetworks has been heading in the wrong direction as they had with online music, however the acquisition of Gametrust should put them back on track for better social gaming.

July 2, 2007

Drawn vs Constructed User Interfaces

Often I’m presented with a new web application that has a fantastic new interface and I just don’t get it. For example, here’s the interface for chime.tv:

picture-28.png

This is an neat application built on you tube that has a joost like feel. I can understand that this looks cool but there’s always been a usability issue that I could never pinpoint with flash interfaces like this. If  you look at the YouTube interface now you may find it more inviting and familiar:

picture-29.png

Flash use in this case is minimized to the media player. The rest of the interface is HTML based. The blue links are familiar along with the rectangular vertical scrolling layout. This is how I use my browser, clicking links and scrolling. I even have a wheel on my mouse for it.

Let’s look at another example thats not as obvious: comparing Yahoo maps which uses a Flash interface to Google maps which uses a HTML interface. Here’s Yahoo:

picture-27.png

Here’s Google:

picture-26.png

I would say that at face value Yahoo looks better  (even though Yahoo is showing me Buffalo instead of Toronto!).  But with Google’s those little blue links can do wonders.  I know exactly what the interface is implying by presenting those links. If I click them they will take me somewhere. The list on the left in the Yahoo interface is also clickable but it is less predictable what will happen.

I’ve struggled with this type of uncertainty about Flash interfaces for a long time. No matter how good they look they just don’t feel right.  I wrote an instant messenger app several years ago initially with a skinned interface.  It looked pretty cool but I eventually reverted back to a standard interface with controls provided by the interface. Recently I’ve given this some thought and have come to a conclusion.  Constructed interfaces are better for usability that drawn interfaces, (no matter how good your graphic designer is).

Whats the difference? A drawn interface is one that is created in a program like Flash. Flash is a really great app but I believe it is better for animations and multimedia than application interfaces. Basically, with drawn interfaces you need to draw your controls.  A constructed interface is one where you use preexisting controls to build your interface.

Yes, the preexisting controls can get boring but its something you have to live with.  We need standards like this so that we don’t have to think about performing simple tasks.

There’s also the argument that with drawn interfaces or skins you can replicate any operating system control.  This essentially is true but nearly impossible to pull off properly without an enormous amount of work. Take for example the Google Maps and Yahoo Maps example.  Yahoo comes pretty close to making controls that resemble operating system controls.  They take an operating system agnostic approach where there controls are a compromise between operating systems. Take a look at the scrollbar for example. It looks similar to a Mac scrollback but its slightly different. The scroll arrows are at the top and bottom like on Windows. Another thing to note is the text is all anti aliased.  This looks find when you’re on an OS/browser that automatically does this.  But if you’re on IE6 the having anti aliased links looks different.  Different can be good sometimes but its bad when it causes the user to think for even a split second.

It will be interesting to see which direction this heads. I’m definitely on the constructed interface side of things using GWT which uses the native browser controls. Rich client applications are making it big in the browser and there is a lot of new technology coming out that aims to tackle this including Silverlight, JavaFX, and AIR.  It’s good to know that the iphone is on the constructed side, and Apple know usability right?

June 26, 2007

Why Digg’s Ajax Icing with JQuery is only Half Good

digg comment systemOriginally they had a touch of Ajax with their “digg” button where a click would submit your digg asynchronously to their server and update the digg count without a page refresh. This feature had been around for a long time and proved to be elegant and easily usable. Of course the lack of a page refresh also saves quite a bit of server bandwidth, but this performance optimization was shadowed by the features usability. Now, Digg.com has just added a little bit more Ajax icing to their traditional web app cake.

Basically what they have done is replaced the threaded comments with comments that are dynamically loaded when the user expands the list. All of the technical details are discussed by the implementor Joe Stump:

Probably the coolest, technically speaking, portion of the new comments is the manner in which most of the page is created. No longer do we create static HTML in PHP and send you a huge HTML page. Instead we give you the basics and, via AJAX/JSON, we make requests to the API and dynamically create the DOM using the FlyDOM jQuery plugin. The FlyDOM JSON templates are a stroke of genius if you’re looking at loading JSON dynamically into the DOM. The advantage of this is that initial page loads are much snappier and you can load the threads you wish to read on demand.

In simpler terms, Joe Ajaxified the comment system using the jQuery library. If you look past a lot of the technical coolness that Joe is talking about you’ll find that the greatest improvement here is performance based. Initial page loads are dramatically reduced by incrementally loading the page. If you look past any Ajax hype this performance improvement is half of the Ajax promise. The other half is usability. And although usability shined with the initial bit of Ajax on Digg.com’s digg button, digg members have declared this new comment system unusable.

In all fairness Digg.com is working actively on fixing the usability issues. It is clear however that usability in this instance came second, which is a mistake.

I work a lot with GWT building full Ajax applications. This is a bit different than Digg. In my case Ajax is the cake. The things that the GWT team does makes me happy. Seeing this Ajax issue at Digg reinforces that the GWT team is moving the project forward in the best direction. To understand this we can simply compare two quotes, one coming from JQuery and the other coming from GWT:

You start with 10 lines of jQuery that would have been 20 lines of tedious DOM JavaScript. By the time you are done it’s down to two or three lines and it couldn’t get any shorter unless it read your mind

Dave Methvin, JQuery front page

This sounds great to me. As a software developer I know the best code is no code. Or less is more. Digg.com made a good technical decision to use JQuery. But this is only half of the story and the half that developers usually tackle the best. Where is the other half?

We want great results, where “great” is defined by how much it benefits end users. Sometimes there are conflicts between what is easy for us developers and what benefits end users the most. When the two are in conflict, end user experience almost always wins.

GWT Team

I don’t think GWT would be the best solution for the Digg comment system since Digg just needed icing for their traditional web application. However, this is really the proper additude to have when developing applications that you want people to use.

Coincidently I’ve just finished writing a GWT example application that acts as an Ajax database administrator for a social news website like Digg.com. It’s a full Ajax application and the fifth example application in my book on GWT Applications. It illustrates how to dynamically load and save all data using JSON or XML on REST or Actions , or using GWT RPC…. basically a lot of server interaction techniques. Its tested on PHP scripts, Ruby on Rails, and a Java Servlet. Althought most of the technically interesting things are not visible, here is a somewhat underwelming screenshot of the applicaiton:

GWT Database Editor

June 11, 2007

Adobe AIR/Apollo vs Ajax vs Gears vs Flash vs Silverlight vs JavaFX vs GWT

Adobe Apollo, now called AIR, (Adobe Integrated Runtime), the runtime environment that allows you to use existing web technology for apps on the desktop is an obvious next step from building desktop like Ajax applications that seem to be awkwardly confined to a browser window. The technology requires a runtime installation of approximately 10MB, similar to the need to install the Java or .NET runtime to run apps in these technologies. However, AIR stands apart by allowing you to develop your applications using web standard technologies. It also adds desktop application like features including storage on your hard drive.

Also providing storage is Google’s recently announced Gears browser plug providing SQL database like storage from web applications. Both Gears and AIR technologies are responding to a web user’s need for offline storage for their web applications. In favor of gears, the download size is under 10% of the download size for AIR. It appears to be a better solution if you only need to add offline storage to your web application.

On top of offline storage, some of the sample applications for AIR offer a mix of Flash vector based and DHTML user interfaces. Its good to see Adobe taking advantage of Flash, which Macromedia made the most successful browser plugin of all time. And it has had relatively no competition. Until now. It had its crown taken as the king for responsive web applications with the rise of Ajax. Flash is now primarily used for ads, music, video, and games. However, Ajax has not yet won in the category of web application interfaces. A big battle is going on between Google Maps, an Ajax map web app, and Yahoo! Maps, a flash based map web app, (I have to side with Ajax in this case. I still feel like I’m in an emulated environment when I use a flash interface. The buttons aren’t real. This is also one of the downfalls of older Java client apps).

Of course Microsoft sees this battle going on and wants a piece of the action. They have always had great development tools that have really pushed client application development on windows and are now trying to push web application development in the browser with its Silverlight plugin. Silverlight is a very interesting technology that supports a subset of the .NET framework. This means that it is like AIR providing better integration with OS features but differs by running in the browser. The download size is also a subset of the size of the .NET framework at approximately 10MB.

With Microsoft getting in on the action Sun is reminded of an old grudge. It is the company behind Java and once had a compelling browser plugin like Silverlight that provided richer desktop app like features inside the browser. Java applets still crop up from time to time but have nowhere near the usage that Flash has. Recently Sun announced JavaFX as a lightweight framework to build rich applications that seems to be a response to Microsoft’s Silverlight.

As a developer of client side web applications this can be very confusing. Do you write an Ajax application with web technologies like JavaScript and leverage Gears for offline storage, or use ActionScript to build an app based on Flash, or use .NET languages for Silverlight, or Java for JavaFX. Thankfully Adobe AIR has decided to leverage existing web technologies. This is one reason the web has become a better application platform for many apps than the desktop. However, Silverlight and JavaFX use non web standard technology because Java and .NET are better for building and maintaining larger and more complex applications which web standard technologies were not built to handle.

This brings us to where GWT fits in. It uses Java to allow developers to build larger applications and compiles the code down to web standards. It can’t be used to build the multimedia applications that Flash is known for, and Silverlight and AIR are aiming for, but it is the most compelling solution for building Ajax applications.
From a corporate perspective, It’s refreshing to see these large companies providing innovation on the web. It is important for them to have a decent amount of web technology real estate. And with many multi million dollar acquisitions of Web companies this web technology competition fits the place of the Netscape/IE competition in a modern day dot com bubble.

Links:

February 19, 2007

Introducing the Multiplayer Strategy Game Kdice

I started working on this game back in October 2006 initially stemming from a chat with Jay Bibby from Jay Is Games, who earlier posted a favorable review of Gpokr. The chat was about how we both loved Taro Ito’s Dicewars, which Jay had also reviewed, and thought it would be great as a multiplayer game.

Most of the development was finished by the end of November so I opened it up for testing to Gpokr players who were waiting for the December competition to start. Word traveled fast and Jay showed up on the tables within the first few hours and several hours later had the first review of Kdice up on his site.

It turns out Jay and I were not the only ones who wanted multiplayer Dicewars. Over the past few months over 30,000 players have signed up to help me test and tweak things here and there. At this point things are fairly stable. Making the game multiplayer has added a great politcal aspect on top of Dicewars’ mix of luck and strategy. There is also rating system based on ELO and different tables for players with higher ratings.

Introducing the Multiplayer Strategy Game Kdice

Multiplayer Stategy Game Kdice

Next Page »