info | twitter | github
J-_-L | Writings on Ruby Programming
05.12.13

The CARB stack: Coffee + Angular + Rails + Bower

AngularJS is a great way to build modern web apps and this affects Rails programmers. The combination of both is an excellent choice: Build your single-page app in Angular and let it communicate via JSON with your Rails-API backend (btw, this is exactly what we did for palava). However, you might ask yourself, what the best way to combine Angular and Rails is. Should you use the JavaScript tools world (grunt, yoeman, etc.) or should you prefer the Ruby tools (thor, sprockets)? […]

23.11.13

5 Ruby Syntax Edge Cases

My lightning talk from this year’s eurucamp: […]

30.01.13 04.02.13
2 comments

Ruby and Random

Wrongly used randomness can be the source of hard-to-detect bugs and security holes. This is relevant every time you use randomness, for example, when implementing an existing protocol/interface that requires random values or generating tokens for your next raffle. This article describes when to use which of Ruby’s randomness methods. […]

03.12.12

ActiveSupport 4 by Example: Numeric#to_s

hints · rails · rails4 · ruby

The NumberHelper functionality is now available as Numeric#to_s […]

05.11.12

value_struct: Read-only structs in Ruby

gem · hints · ruby · stdlib · talk

Ruby’s structs are one of my favorite data types in Ruby. They help you to keep some defined structure in the dynamic world of Ruby. Often, it makes sense to use them instead of hashes or arrays. Read-only structs take the idea a level further. […]

02.10.12
1 comment

6 basic cd tricks you should know and use!

And you’ll never want to miss them again! […]

19.08.12

What's in your Gemfile?

A little #whyday project, finished at eurucamp 2012, that displays the urls and summaries of all the gems of a Gemfile. Put the code somewhere in your $PATH (I keep little helper scripts like this one in ~/r) and run gemfile from within a the project. […]

03.07.12

Connect to an oracle database using jdbc on JRuby in a jar file

This is how you can use JRuby to connect to an oracle database without requiring Ruby to be installed on the system, but only Java. […]

30.05.12 03.06.12
1 comment

Things I learned while implementing version 1.0 of pws

After releasing version 0.9 of my cli password manager, I received friendly feedback and suggestions, which encouraged me to further improve it. Here are some of my experiences implementing pws 1.0: […]

19.01.12 24.05.12
5 comments

pws: The ruby-powered command-line password manager

  • stores your passwords in a file on your disk
  • encrypts the file with a master password
  • is designed for every-day-use
  • is written in 234 lines of understandable Ruby code… Read it!
  • is tested with 222 Cucumber steps […]