This article is also available in Japanese. すごい! In a recent interview with Full Stack Radio DHH explains how he organizes Rails controllers in the latest version of Basecamp. Here is an enhanced transcript: What I’ve come to embrace is that being almost fundamentalistic about when I create a new controller to stay adherent to REST has served me better every single time. Every single time…
These days, I use environment variables for credentials and other sensitive data (secrets.yml could do the job but is too boilerplate-y for my taste). Fake environment values are stored in my project dotenv file and production values are deployed to the PaaS server of my choice with a simple heroku config:set / eb setenv / etc. But what about non-sensitive configuration values such as emails or…
EDIT: I have moved away from Prezto and now use my own minimal ZSH settings. 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.…
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 like C++ and Java, where explicit loops like for and foreach are part of your everyday life. Luckily, collection methods come built-in with Ruby.…
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 works, but you may think: “I just want to read/write in a file,…
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, with Ruby beginners (the targeted audience), but also teachers! It casually begins with a decent score on Reddit: Then, the unexpected happens: I get retweeted by Matz, the creator of Ruby! I can die in peace now. Minaswan. Finally,…
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.
Hi everyone, welcome to my blog! Let me tell you about an inspiring story. June: the idea of creating a blog springs in my head. Early July: I start talking about it to a couple people. July, August, September: ??? End of September: a coworker asks me how far I am into this blog project. I realize I’ve actually been binge-watching all Doctor Who instead. One day later: I frenetically spend…
🖥️ I am a software engineer with over a decade of experience building, maintaining, and scaling applications for companies of all sizes. 🤲 I like to give back to the community by mentoring and helping coworkers, and by contributing to open-source on GitHub. 🇺🇸 🇫🇷 The United States has been my home for the past 10 years, but I am originally from France! 🏞️ I love exploring nature, whether it…
Resources for the wine tasting lightning talk I gave at Buoy in 2025: Slides Wine cheatsheet. It is meant to be foldable so it can fit in your pocket. 2 cheatsheets can be printed per side for a total of 4 cheatsheets in one sheet of paper. Extra goodies: Aroma wheel Red wine aromas White wine aromas