published 3 months ago (26.07.2009 19:38)

London and Rails Underground recap

Update: added links to conference-related stuff at the bottom of this post.

Some notes, roughly chronological, left in draft state.

  • Rails developers usually don’t seperate data access layer and domain model.
  • This can constrain how easily the domain model can be changed. If done, saving/loading and validating data is on the DAOs, and “the interesting stuff” (business logic) lives in the model objects.
  • Q: how do you develop a domain model? A: may should be explained in Analysis Patterns
  • SASS and lesscss are nice extensions to css. They require processing the CSS, however.
  • at least three German-speaking universities now have courses where they use Rails (Bremen, Potsdam, Salzburg).
  • Refactor vs. Rewrite. First, “find out the hard core of what the client actually needs”. Be brave and delete, change.
  • clients of “rescue mission” projects didn’t get what they wanted from their last dev shop. The time and money reserved for the project are usually already spent, so they are in a hurry. => as a dev team, you need to show progress as early as possible.
  • do the agile thing as well—prioritize by business need
  • Don’t change code that you don’t like but which works well. Overcome your own prejudice and deal with the client’s money responsibly. Part of being professional, imho. Resist the Not invented here syndrome. Especially if the code is well tested. You can always refactor it when continue to work in that area.
  • don’t dive into removing complexity as a first refactoring step. Look for easy targets first.
  • Watch team morale on legacy code projects. Always pair.
  • Read the Refactoring book before starting, and really apply the techniques step by step when doing non-trivial stuff. Always keep the application running while changing structure.
  • When coding normal apps, refactor as you go, don’t see it as a separate activity, don’t speciallly reserve time for it.
  • always manage your client’s expectations. Underpromise, overdeliver.
  • JRuby has the by far best compatibility of the alternative Ruby implementations. It has an extensive test suite.
  • It allows you to change between 1.8 and 1.9 with a command-line switch.
  • ActiveRecord via JDBC is slow.
  • JRuby is the only Ruby implementation with real native threads.
  • Rack allows inserting code before and after the application handles a request. And allows plugging together different frameworks and components, and access session data from one in the other via Rack::Session. “Middleware” examples: Rack::Profiler, Rack::MailExceptions, Rack::Cache.
  • Rails 3 release: “could roll it up and ship” any time. Rails development has always been like that. There’s never a “Todo” list of what will go into a release.
  • They will do so when they feel they have done enough. But at least one thing Yehuda would like to do is get ActionMailer on the rewritten ActionController code.
  • London’s monthly Rails usergroup meetings easily exceed 100 people.
  • to introduce new technologies in places reluctant to change, first do ugly or boring stuff no one wants to do anyhow. With Ruby that could be: automate manual processes, write a test tool, small internal applications, quickly build prototypes, wire together systems. Realize that Ruby is perfect for glue code. Introduce the techniques (agile), not only the technologies.
  • A couple of experienced people fear that the new JVM Scripting languages (Clojure, Scala, ...) may stop the stream from Java-resignees to Ruby.

  • CouchFoo is intended to allow smooth ActiveRecord/RDBMS => CouchDB migration. This is a good first step to get on the couch. Then you can start wrapping your head around how to persist stuff with document-oriented databases, which I find the hardest part. “Performance tuning” of CouchDB is a whole new topic to be discovered.
  • With couchDB, the cost of index updates is incurred at read, not at write as with RDBMS. Index updates at read can be suppressed with :update => false. Read CouchFoo::Base for performance info.
  • #bulk_save for performance.
  • a good use for document-oriented DBs is when the data structure changes often and future “schema” development is unpredictable.
  • CouchFoo generates views for simple AR-style finders on the fly. Nice!
  • Dr Nic once more proved to be the best Rails entertainer (_why is in his own league, of course, but wasn’t present to present).

  • the i18n gem has great new features in 0.2.0 and edge: pluggable extensions, translation procs, advanced pluralization rules (implemented with procs), translation fallbacks, backend fallbacks, etc. Using it in current Rails currently requires a hack, however. See the Unicode CLDR Project for a massive amount of localization information.
  • Globalize 1 happily overused metaprogramming, had to hack into Rails big-time, and as such is a PITA to migrate to the new Rails i18n. Any solutions?
  • Kasabian kick Oasis’ ass on stage (according to London press).
  • Rough trade in Brick Lane reminds you what’s cool about a real-world record store.
  • LBI has 400 employees, a large terrace where you can work, and friendly people doing lots of barbecues.
  • ExtJS is a useful rich client library with nice client-server data transportation, interface elements and data binding. It doesn’t have to look like Windows. It lacks a high-level architecture, though. It’s not free for commercial work (150 per developer), only for open source.
  • Food in London is better than expected; even the traditional (Lamb stew, Apple Crumble & custard). Girls are cuter than expected, as well.
  • London weather follows the same patterns as in Hamburg. Quick rains, lots of grey skies, sometimes sun. A bit warmer.
  • Kevin Davy played the trumpet for Lamb, on tracks like Merge. Today he has fun playing around with electronic effects at his Jazz gigs.
  • ””Now wash your hands””:http://www.flickr.com/photos/phil76/3759350196/in/set-72157621719325175/ was a design agency that built cool stuff in their time. Today only toilets in Indian restaurants remind of their glory.
  • Hashrocket has guest pairs regulary. You can visit them at Jacksonville, Florida, stay at their guest house, and pair with them on the regular work.
  • London is green, can be sunny and beautiful.
  • a taxi from Russell square to Denmark Hill costs less than 20 pounds. Good if you’ve already spent the same amount on beer.
  • the mapping of the British pound shapes and sizes to their value is only obvious to the British themselves. They lovingly call the coins shrapnel.
  • Conaissence can be seen as underlying principle of many OOP design rules. And it’s a word that only Jim Weirich uses, so far.

  • the Rails community is as great as ever.
  • Smaller conferences are better.

For a more throrough summary of the talks, continue reading at rubypond: day 1, day 2.

Links:

Posted in , , , ,  | Tags , ,  | no comments | no trackbacks

published 4 months ago (26.06.2009 00:50)

my latest tweet

“And then she goes grocery shopping like that, completely unconcerned. Interesting country #leggins #running #keep24h #copenhagen”

Wanted to keep this. #archive is not yet implemented in all_tweets_must_die.

Edit: #archive is implemented in the even better tag, #keep

lalala

Posted in  | Tags , , , ,  | no comments | no trackbacks

published 8 months ago (20.03.2009 22:49)

DHH is simply grand :-)

»Never let your schooling interfere with your education, someone clever once said. Being willing to sacrifice at the edges is one of the most important skills you’ll ever learn. [...] And I did. During my undergrad, I created Instiki, Rails, Basecamp, and got on the path to being a partner at 37signals. Do you think I could fit all that and still get straight As and have lots of time left over for playing World of Warcraft? No.«

Excerpted from There’s always time to launch your dream.

Posted in ,  | Tags  | no comments | no trackbacks

published 8 months ago (20.03.2009 18:49)

Adicolor videos

These adidas short films are beautiful, bizarre, just amazing. They used to live at places like http://rgb255255255.com but sadly have been taken offline. Fortunately, youtube remembers!

pink
green
white
yellow
black
blue
red

Posted in ,  | no comments | no trackbacks

published 8 months ago (15.03.2009 17:06)

The correlation of income and happiness

I rediscovered this chart in Mihaly Csikszentmihalyi’s talk on flow at TED. The green dots show income, the red dots perceived happiness. I’m certainly no statistics pro, but it looks like the correlation is zero (these are figures for the US).

Even if there’s hardly any money, people aren’t necessarily unhappy. Instead, happiness spreads to both sides – there are very happy and very unhappy countries. It seems like the Latin American and East Asian people are much less affected by little available money than the Eastern European – compare the happiness of Brazil, the Domenican Republic and Vietnam to Macedonia, Lithuania and Bulgaria. They have roughly the same purchasing power.

Posted in , ,  | Tags , , , ,  | no comments | no trackbacks

published 8 months ago (27.02.2009 07:53)

Oakley Surf Report for iPhone

How depressing, no worthy surf spots in my 300km range :-( . On the other hands, it doesn’t even list anything around the Brazilian surf town Itacaré, (like Itacarezinho beach), either, so maybe things aren’t that bad here after all.

P.S.: Amazing Surf photo in the background by konaboy.

Posted in , ,  | Tags ,  | no comments | no trackbacks

published 8 months ago (21.02.2009 10:56)

giving_it_all_for_high_cheekbones

What a waste. Music to support the melancholy: Frank Turner—The ballad of me and my friends

Posted in ,  | no comments | no trackbacks

published 9 months ago (07.02.2009 14:05)

Out with Excel, in with Numbers

Such a pleasant experience. It took less than ten minutes to enter, calculate and layout this diagram. Having opened Numbers for the first time, without reading the documentation, searching for features, swearing. This is what working with computers should be like, all the time.

See also: simple is difficult.

Posted in ,  | no comments | no trackbacks

published 9 months ago (01.02.2009 14:54)

Obey! The Leo zodiac is the boss, sez da horoscope!

A friend just forwared me my “life horoscope” by email. So let’s read up on the zodiac signs. They have been around in many different cultures, for thousands of years. Does that make them valid, esoteric, outdated, flattery? Judge for yourself.

“Very organized. Need order in their lives – like being in control. Like boundaries. Tend to take over everything. Bossy. Like to help others. Social and outgoing. Extroverted. Generous, warm-hearted. Sensitive. Creative energy. Full of themselves. Loving. Doing the right thing is important to Leos. Attractive.”

Read more...

Posted in  | Tags , , ,  | no comments | no trackbacks

published 9 months ago (29.01.2009 12:06)

Moleskine thoughts

The Moleskine notebook is a classic, as the leaflet that comes with it explains: »Moleskine is the legendary notebook, used by European artists and thinkers of the past two centuries, from Van Gogh to Picasso, from Ernest Hemingway to Bruce Chatwin«.

I have a couple of them. I like them because they are simple, well made, beautiful, easy to carry around, and the inventors paid attention to detail (the back pocket for loose notes, for example. Mine is full).

In the last years, I bought and received a couple of variations of it: small and large, thick and thin, regular and travel version. Checking the Moleskine website and Amazon, today there are over 50 variations of the original. Moleskine sponsors city blogs to promote their City Notebook, have special editions for museums, you can have it branded with your logo as a business present, and there even is a Japanese Pocket Album version, whatever that may be. Next time we check, the notebook will be available in pink, designed by Philippe Starck and Karl Lagerfeld,
and pre-deep-fried.

Today, Moleskine is not the notebook of »artists and thinkers« they praise in their leaflet. It’s a brand. A brand with a company and heavy machinery behind it, living off the original idea. The notebook has become an arbitrary item, like the thousands of other consumer products around us. But it fits our times well. We like things that are “retro”, and have been around and used for a while. They offer us depth, and we trust, without us having to get engaged too much.

Today, it seems to be mandatory that things successful in the small have to be scaled to the large, although the original spirit may get lost on the way. Ordering the notebook by the thousand, a single one still costs €10. How many »artists and thinkers« will buy them today?

P.S.: I’d be happy to give away my unused travel version (in the picture on the right) to someone who will use it. It has a register that divides the notebook into travel-relevant sections, like “Bed”, “Food” and “People”. Like many things I have, it seemed a nice idea at the time, but I never used it.

Posted in , ,  | Tags ,  | no comments | no trackbacks

Older posts: 1 2 3 ... 12