PHPNews

First post

Written by Jerome's Adventures in Software - Published on Jerome's Adventures in Software
Aggregated on Wednesday October 2, 2013 - Permalink

Hi everyone, welcome to my blog! Let me tell you an inspiring story of honor and glory. June: the idea of creating a blog springs in my little head. Early July: I start talking about it to a couple of people. July, August, September: ??? End of September: a fellow coworker asks me how far I am into this blog project. I realize I was vegetating the whole time, watching all of …

Continue reading »


A diagram of the Ruby Core object model

Written by Jerome's Adventures in Software - Published on Jerome's Adventures in Software
Aggregated on Saturday October 5, 2013 - Permalink

I am a visual learner. A picture is worth a thousand words. When I started learning Ruby, I could not find a decent diagram that would just sum up the Ruby classes, modules, and their hierarchy. So I made mine. By hand. On an A4 sheet. Here is the result (click for a full size view): Most of Ruby’s guts at one glance: pretty neat, huh ? Modules are on the top left. The …

Continue reading »


What traffic do you get when mentioned by several Ruby authorities?

Written by Jerome's Adventures in Software - Published on Jerome's Adventures in Software
Aggregated on Sunday November 10, 2013 - Permalink

EDIT: Some of my latest articles have had traffic orders of magnitude larger than the one mentioned below, making the figures completely obsolete. It looks like my latest blog post, A Diagram of the Ruby Core Object Model , has had quite a bit of a success in the Ruby community. Mostly in the educational sphere, that is, Ruby beginners (the targeted audience) but also… trainers! Well, as …

Continue reading »


Dead simple file handling in Ruby

Written by Jerome's Adventures in Software - Published on Jerome's Adventures in Software
Aggregated on Sunday November 10, 2013 - Permalink

Common scenario You are writing a basic Ruby script that needs to read or write in some text files. So you search “ruby write file” and “ruby read file” on Google. You end up on the usual tutorials and Stack Overflow answers that tell you to open files with r or w mode, “1970 C style”. It’s OK, it works. But you may think: “I’m in the 21st century goddammit. I just want to read/write in a …

Continue reading »


Ruby: How to iterate "the right way"

Written by Jerome's Adventures in Software - Published on Jerome's Adventures in Software
Aggregated on Sunday January 5, 2014 - Permalink

If any of you have written code in the last year that had an explicit loop […], you don’t understand collections. Professor David West OOP Is Dead! Long Live OODD! You may be baffled by this quote if you come from a C-flavored language such as C++ and Java, where explicit loops like for and foreach are part of your everyday life. Luckily, collection methods come built-in with …

Continue reading »


Migrate from Oh-my-zsh to Prezto

Written by Jerome's Adventures in Software - Published on Jerome's Adventures in Software
Aggregated on Tuesday May 6, 2014 - Permalink

Zsh is an amazing shell, and Oh-my-zsh is very good at showcasing its power without having to dive into too much configuration. I recommend it to Zsh first-timers: within minutes they can enjoy autocompletion on steroids, crazy prompt tweaking, git integration as well as many other plugins. BUT. It’s God. Damn. Slow! Wanna spend the night happily coding and hacking in the “zone”? Here, …

Continue reading »