Archive for the ‘Development’ Category

Erlang Observations

To those who are considering Erlang and Erlyweb as a framework for their website: just go for it.

A couple of days ago, there was yet another blog post on Reddit about the scalability of Erlang, with the same yaws-owning-apache graph we’ve all seen before. There was absolutely nothing new in the entire post.

In my opinion, there are many reasons to use Erlang that have nothing to do with server performance.

Those of you who found BeerRiot through the Ask Reddit thread about Erlang usage already know that it’s built on Erlang and Erlyweb. My experience with them will be different than others’, of course, but I felt the need to list a few of my [completely subjective] observations about this framework.

So, in no specific order:

  • I like the syntax. I got past the comma-semicolon-full-stop confusion that many complain about within the first few hours of coding. It’s different, refreshing, and not too hard to understand.
  • Development cycles go really fast. More than once, I’ve hashed out some new functionality on my subway commute, then polished it at home and posted it the same evening. Part of this is the pattern matching used in function calls and branches – it translates almost directly from my pseudocode.
  • Some complain about the lack of hierarchy and types – I love it. It makes evening coding feel very free-form after eight hours of Java.
  • Erlyweb and Yaws are both very powerful and useful, yet their codebases are small enough that the thought of digging through their code does not intimidate me.
  • Erlang doesn’t have all of the libraries of other languages yet, but they’re not hard to get to.
  • Hot code loading and the ability to open a shell connected to your webserver doesn’t get enough press. I never stop my webserver unless I’m making a huge change that I’m too lazy to plan the transition for.
  • I dislike typing underscore. I do think it’s a good visual representation for “don’t care”, but I just don’t like to type it. I often use camelCase to define my own functions, but it looks a bit messy in mixed code.

So, yeah, some of these are reasons to use Erlang, some are reasons to use any language with similar features, some are just things to note. I just felt like there needed to be some conversation about Erlang other than its scalability.

If anyone has any specific questions about my experience with Erlang, please post them in the comments. I’ll either answer here or write another post to cover them all in a few days.

BeerRiot – Local

As some of you may have noticed, BeerRiot – Local is live. Thanks to Corey for planting the seed – it’s a mashup of Brewery locations and Google Maps. It’s not exactly what I had planned at the outset, but I think it may be even better. 🙂

I call it “Local”, but in reality, I just dump all of the breweries I know about onto the map. If you scroll away from wherever the map started, you’ll find all of the other breweries in the proper places.

This makes things a little slower – there’s over 100 pins on there. I checked out ACME’s “Clusterer”, but I just wasn’t happy with the interaction it gave. I’ll have to come up with some other solution soon, but for now, it looks like things actually run pretty decently as long as I’m not browsing with the G4 on which I’m also running my SQL server, web server, Safari with 10 other tabs, iTunes, emacs… You get the idea.

So, why Local as the next feature? Well, it has been one of the most requested features for one thing. For another, I really think it’s important to drink locally. Drinking locally immerses you in the culture of the location, supports the smaller-scale guys honing their craft, and saves energy. Try some homebrew for the ultimate in local, but barring that, seek out any professional in your area and find our what they’re pouring.

If you’re interested in more reasons that drinking locally (or even just drinking beer in general) is a good idea, I recommend finding a copy of Chris O’Brien’s Fermenting Revolution. Hey – and it looks like Chris has a wordpress blog too.

New things *are* coming…

Fear not! I have not forgotten about BeerRiot. No new features have come online yet because this week has been rather busy for me.

Tomorrow is no exception. I’ve gathered the ingredients for a honey porter. 🙂 It’s an all-grain recipe, so I’ll be busy most of the day with that.

Sunday, though. Sunday should be BeerRiot Development Day.

As a teaser, here are a few of the things in the pipeline:

  • Localization (Btw, does anyone have a good source for world cities and their latitudes and longitudes? I’ve covered the US with data from the USGS, but my best link to world data is over ten times as large.)
  • Personalization
  • Discussion forums (for things other than talk about specific beers)

I can’t say which will come out first (or even if some of them will come out), but I thought you all would enjoy the teaser.