Tonight was the second session of the Silicon Valley Patterns Group’s Rails track. Last week was setup. By the end of tonight, just about everyone who wanted to was connected to some flavor of database. The group tonight was split 60/35 MySQL/SQLite, with a few outliers on Oracle or PosgreSQL.
Aside from a few specific issues (e.g., transactional fixtures don’t work with the Oracle driver), the problems people had getting Rails installed and configured fell into three clumps:
- Missing pieces
- People were coming at rails from several directions. Many people use Eclipse, so the Rails plug-in seemed an obvious choice. Two people didn’t realize that they also had to install Rails. Simple to resolve, thanks to a Wi Fi connection. There were a few cases of missing database drivers tonight.
- Getting database.yml set up correctly
- We had most of the problems with database.yml ironed out last week, but a few persisted. Most of the problems were formatting: Putting # in the wrong column when trying to comment out a line leads to strange failures. Trailing spaces lead to strange failures. Having your editor insert hard tabs leads to strange failures.
- Mangled test fixtures
- Same issues as above: One or both of hard tabs or trailing spaces bit at least a third of us. A few people didn’t get the idea of fixtures on their first attempt. The recent switch from instantiated to non-instantiated features confused a few people who’d read previous Rails walkthroughs.
Tonight’s session came off well, with lots of good energy in the room. Most folks who wanted to had worked through the single-table tagging exercise by the end of the evening, including the “left as an exercise” and “can you find the latent bug?” parts. (Leaving one failing unit test at the end of an excercise can leave people with with a sense of accomplishment.) Most people paired or trippled up, with a few singletons. Several people headed off toward building UIs, and one worked on ahead towards a many-to-many things-to-tags implementation. It’s normal in this group for folks to head off in whatever direction whim takes them.
Our plan is to take one-to-many and many-to-many relationships next week, and then head into Controller/View land, with an eventual sprinkling of magic AJAX dust.