I recently took advantage of a mandate to rip out the most complex part of my app and rebuild it from scratch. I had deep experience with the application already so this was much easier. The requirements were set in stone so I knew all the different unit tests I had to write. For a lot of reasons this functionality didn't get enough dev and test time during implementation and it came back to bite every few months. The defects were always corner cases too. Grr.
This time I created interfaces and stubbed out some classes. I knew what I needed to test for so I wrote JUnit tests before implementing the real deal.
As I was developing the new code, it was such an awesome experience to catch bugs minutes after they're introduced. A few days later when I finished rewriting the logic, I was pretty confident in what I had written. Every day the tests would run dozens of times. I've never had this much reassurance before...
Monday, February 25, 2008
Saturday, February 9, 2008
Setting up JRuby on Rails with PostgreSQL
After a long hiatus I've started reading again. Current topics of interest: Flex, Hibernate, and JRuby.
I ran into some problems getting a JRuby on Rails environment with PostgreSQL set up on my Mac. After reading some documentation I started over and installed the latest version of all the required gems. It's working like a charm and I can finally get into some code.
1) JRuby v1.1 RC1
2) activerecord v2.0.2
3) activerecord-jdbc-adapter v0.7.1
4) activerecord-jdbcpostgresql-adapter v0.7.1
I ran into some problems getting a JRuby on Rails environment with PostgreSQL set up on my Mac. After reading some documentation I started over and installed the latest version of all the required gems. It's working like a charm and I can finally get into some code.
1) JRuby v1.1 RC1
2) activerecord v2.0.2
3) activerecord-jdbc-adapter v0.7.1
4) activerecord-jdbcpostgresql-adapter v0.7.1
Subscribe to:
Posts (Atom)
