Author Archives: troessner

About troessner

I am a Ruby enthusiast currently working for dealvertise in Berlin. I like dynamic languages in general with a strong focus on Ruby. Headhunters, don't bother. No, I do NOT want to be a Java architect for a mid-size company in the middle of nowhere. I probably would love Python if it wouldn't force me to write `self` all over the goddamn place. I really suck at functional programming. I should have paid more attention at university. NoSQL is worth the hype. Or is it? I am a big advocate of Behavior Driven Development. Yes, really. I tried to love node.js, but in the end, it's still fucking javascript. I was a devoted SCRUM believer. I have a deep interest in Erlang but haven't had a chance to really use it. I try to contribute as much as possible to open source. Right now I am the maintainer of the transitions gem (https://github.com/troessner/transitions), the ecircle gem (https://github.com/troessner/ecircle) and the has_uuid gem (https://github.com/troessner/has_uuid). Besides that I recently got fascinated with Rubinius and I am trying to really understand why this works. Furthermore, I have made some rather petty contributions to Rubinius: https://github.com/rubinius/rubinius/commits/master?author=troessner You can find most of the code I write on github - https://github.com/troessner Sometimes I write down stuff on: http://troessner.wordpress.com/

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