Sunday, December 30, 2007

favorite programming books!


...below is a snapshot of some of these I am reading now, some I have read more than once... continue to find all of them very useful.

Just finished an awesome Ruby class at the University of Washington taught by Ryan 'Zenspider' Davis, which was phenomenal, learned a ton. Starting the 3 month Rails class next week at UW... as you can see from the books, trying to surround myself with as much Ruby and Rails information as possible, while also studying the finer points of web application development with RESTful web development, RegEx techniques, high performance techniques from Steve Souders' book (Souders was the YSlow creator while he was the Chief Performance Yahoo!), etc , and as always, lots of Ajax. There are a few books left out of this pic, as they are at work, but they would be the "Javascript: The Definitive Guide", and "Prototype and Scriptaculous In Action".

  • Crane, et al, Ajax in Practice
  • Porteneuve, Prototype and script.aculo.us You Never Knew JavaScript Could do This!
  • Friedl, Mastering Regular Expressions
  • Souders, High Performance Web Sites
  • Hunt, Thomas, The Pragmatic Programmer
  • Cederholm, Bulletproof Web Design
  • Resig, Pro JavaScript Techniques
  • Thomas, DHH, Agile Web Development with Rails
  • Thomas, Programming Ruby (aka PixAxe book)
  • Berube, Practical Ruby Gems
  • Crane, Prototype and Scriptaculous In Action
  • Flanagan, Javascript: The Definitive Guide

Friday, December 28, 2007

Erlyweb, Erlang, Comet

Been doing a cursory look at Erlang and Erlyweb for a few mos off and on, keeping track of it via a variety of RSS feeds, articles in the community, toying around with it, etc.

Have come to the interim conclusion at present that I don't think Erlang-based Erlyweb will ever be a replacement for Rails, or Django, etc. Building MVC web apps quickly and robustly for the large chunk of market share will be an area where Java, Rails, PHP, ASP, Django et al dominate. Then most will take the steps to scale up from there if need be.

But it will definitely fill the gap for creating highly available web sites or services. Especially in the realm of Comet (or server side 'push' instead of polling) apps, where data gets instantly pushed to clients when the data is available on the server. Reason being is that Comet requires long lasting connections between the client and server to lazily push out data as that data becomes available… so having 80,000 connections with Erlang is not a big deal. It would be a very big deal with Apache. The other is database connection pooling and fast access to db's

...the Erlyweb/ Erlang sweet spot seems to me to be where multiple connections demonstrate a big performance boost, or boost in ease of implementation. So Comet is a good example b/c you benefit from all those connections. Same with Twitter, or Amazon’s SimpleDB. Also the database pooling examples given in Yariv's presentation is very intriguing. All of those make sense, or where background concurrency gives you a needed architectural boost. But many classes of less complex apps, a large percentage of web applications in fact, you can write those in a shorter time, for E.g., with Rails TDD, and it has no need for the concurrency on the backend that Erlyweb provides via Erlang...

Erlyweb and Erlang seems to be possibly an up and coming 'right tool for the job' when it comes to high availability real time data pushing. Something to keep an eye on.

Here are some links to whet the Erlang appetite of anyone interested... also a couple Comet links:

http://www.bayfp.org/blog/2007/12/25/yariv-sadan-on-erlyweb-video-and-slides/
http://en.wikipedia.org/wiki/Erlang_(programming_language)
http://erlyweb.org/
http://en.wikipedia.org/wiki/Comet_(programming)
http://www.irishdev.com/NewsArticle.aspx?id=2166
http://alex.dojotoolkit.org/?p=545

Saturday, December 15, 2007

RDF and the Semantic Web

Nicely written introductory link on RDF and the semantic web if you're curious. To give this some background and context... imo, this is why Google is coming out with it's "Knowls", etc, that was recently reported in the media.

a quick summary of RDF: Within in the flavor of XML that is RDF, people/companies creating web pages embed loosely organized 'sentences' of how the data on their pages is structured -- such as [what this page represents] [is a] [noun], or [actor] [starred_in] [movie] --- or more specifically ...whereby the URI " http://en.wikipedia.org/wiki/Dolphin" could be used by anyone working in RDF to represent the concept of a dolphin.

...Wikipedia is currently way ahead of any site in terms of static informational pages, or references that are the answer to the "is a" question, for example. What do I mean by that/ why are these important? While databases structure data in a hierarchical, contained, somewhat inflexible way -- in the sense that this format of contained information therefore takes 'work' to connect that data to other data E.g. a webservice, an api wrapped around the database is required to allow others to access it etc. The Tim Berners Lee world of REST and the Semantic web theorizes ways to change that for the better in many ways, where pages themselves are related to the web in general via a common, standardized meta language.

So perhaps Google wants to catch up with Wiki (stands for "What I Know Is...") and extend its capability (dominance) in search in that different direction. I personally only care about what Google or Wikipedia is doing in the sense of how it will play out with the infrastructure of the web and how to anticipate what is ahead. REST, RDF, the Semantic web are interesting topics gaining momentum (which is one motivator for me in learning the Ruby web framework known as Rails, which embraces REST).

If the semantic web booms, which seems like a logical evolution, these Wiki or Knowls sorts of web properties find themselves at the core of finding information on the semantic web -- i.e. the semantic-noun-verb core. The standards for RDF and the semantic web are evolving, and it will be fun to see where/how this evolves over the next few years.

Some other links:
Redland RDF libraries: http://librdf.org/ : (Ruby binding: http://librdf.org/docs/ruby.html)
ActiveRDF (Rails): http://activerdf.org/

-Holts

Tuesday, October 02, 2007

'The Prize' and Facebook

The Prize, by Daniel Yergin is a great read. Before I explain further, the book is not about software at all. In a paragraph, I'll get to the software business parallels and ruminate about them. The book is about history, oil, economics, geopolitics. I’d highly recommend it for anyone interested in these topics. The author won a Pulitzer Prize, and is highly respected among many economists, including the esteemed longtime Chairman of the Federal Reserve, Alan Greenspan. Agree with Greenspan or not on some issues, Yergin has respectable admirers related to his work.

Here's the point of the blog post. In history, it’s amazing how fast situations can change. You don't have to look too far back as 2000 A.D. to witness that. I believe the internet economy is on much more solid ground now, not drawing any parallels there whatsoever. However, that is an example, clearly, how fast irrational exuberance can take hold and draw a whole economy into that way of thinking, let alone a smaller group of individuals.

Here is a summary of an excerpt in The Prize: Around 1865 when oil speculation was bubbling because of its discovery and the markets swelling around it (primarily lamp oil at that time), one farm in PA sold for $1.3 million because of the opportunity to mine oil. That’s a lot of money back then. That’s a lot of money in 2007. Less than a year later, the same plot of land sold for $2.0 million. …less than fifteen years later, after a recession and some fires, that same plot of land was sold…………………… for under $5. Five dollars.

Things can change quickly. Granted, less quickly if one is diversified. Also granted, the oil market has not stopped since.

But this post is related to the life of you as an individual -- your life, not the life of an industry. The lesson I read into that: if you get the opportunity, like Mark Cuban, take the money and run.

With this blog as evidence, I love writing software. I love the software business, open source, etc -- every facet of this 'life'. It inspires me daily. I do it because I love to do it, and to a degree I can understand an emotional attachment to a piece of software built and grown.

Purely from an economic perspective on the individuals involved, Facebook in my opinion should be at least, in part, sold. With all due respect to the Facebook titans, I sure hope that Mark Zuckerberg and the Facebook officers have someone giving them perspective in what must be very difficult decisions. But why not sell half for $5 billion and write a new piece of software on your own island? There are plenty of ways to change the world. $5 billion in your pocket is a good start, especially when you are in your 20's. There is just as much glory in sharing the successes with a value added partner or partners. In my mind, Facebook is taking a substantial risk by not selling a large minority percentage at the recently reported valuations.

Sunday, September 23, 2007

JuneBug Wiki

Came across JuneBug Wiki tonight while getting a wiki setup on my Mac for a couple projects I'm working on at home. I couldn't be happier thus far -- JuneBug Wiki is pretty slick.

First of all, it was as easy to install as it should be. If you already have the proper versions of Ruby, SQLite, and gems installed... it took about 1 minute to install JuneBug Wiki. The directions on the JuneBug Wiki site are super simple to understand. After installation, it took about another minute to configure it. The Wiki syntax is more straightforward for web developers as you can utilize most of what you are used to with html, and the non html syntax is relatively intuitive.

I used to use DokuWiki, and frankly always found it to be nice once it was installed, but somewhat annoying to install. Sorry, DokuWiki fanbois, but that was always my feeling. JuneBug wiki is nice, especially if you want a wiki written in Ruby. (JuneBug Wiki is written in Ruby on top of the "Camping" web microframework, not Rails)

http://www.junebugwiki.com/JunebugWiki