-
Recent Posts
Recent Comments
Archives
Categories
Meta
Author Archives: troessner
How to make objects behave like ActiveRecords models…
…and make them usable with rails form helpers as well. 1.) Use ActiveModel Add to the top of your class in question. Now you have all the standard validations like at your hands. 2.) Make it possible to initialize your … Continue reading
Posted in rails, Ruby
Leave a comment
Elastic Beanstalk and Ruby / Rails – Stay away
Recently I wanted to switch our deployments from manual setups to something more suitable and automatable in terms of scaling, process management and so on. Since we were already on EC2, Elastic Beanstalk was the first thing that came to … Continue reading
Posted in Uncategorized
Leave a comment
Why you should always merge feature branches as one atomic commit
Since I’ve had this discussion quite often I thought I’d summarize my arguments here
Posted in Uncategorized
Leave a comment
My glorious vim setup
Ok, so maybe it’s not that glorious. Plugins: Syntastic – Syntax checking pathogen – Proper plugin management for vim. nerdtree – File management and stuff nerdcommenter – Convenient comment functions supertab – Autocompletion when possible vim-autoclose – Autoclose “[“, “{” … Continue reading
Posted in vim
Leave a comment
Here is why you should never outsource coding
…unless you really made sure that the team is actually any good. If you don’t, you get back gems like below. We like it explicit, don’t we: Why restrict yourself to just one way of saying that something doesn’t exist? … Continue reading
Posted in clusterfuck, java
Leave a comment
Contributing to Rubinius – work on Ruby 1.9 compatibility
So, recently I got fascinated with Rubinius. In all brevity I’d like to show all necessary steps to contribute to Rubinius by helping to make Rubinius Ruby 1.9 compatible: 1.) Check out the repo git clone https://github.com/rubinius/rubinius.git 2.) Switch to … Continue reading
Posted in Rubinius
Leave a comment
Over-Testing
Very good article about over-testing by DHH himself: Testing like the TSA
Posted in rails, TDD
Leave a comment
Why ruby predicate methods should return true or false and not something truthy or falsy
A rather long but interesting discussion on why ruby predicate methods should return true or false and not something truthy or falsy just because the language allows it: Rails pull request: request.xhr? now returns boolean as expected, rather than nil … Continue reading
Posted in Ruby
Leave a comment
Rails traps into which I fall every damn time
If the return value of a method in your tests is totally different from what you see in the source code, chances are 100:1 that you (or your colleague) stubbed it out before the test run You can’t set the … Continue reading
Posted in rails, Ruby
Leave a comment
Rails 3 and geokit
Or: A quick tutorial to get your application up and running with rails and geokit. Say you’re running a webapp which realizes where the user is located and offers this users the nearest yoga courses. Or the best deals in … Continue reading
Posted in Geokit, rails, Ruby
Leave a comment