Why I Chose Ruby over Python
This year I spent a bit of time playing with Python, after having mostly ignored it since 2005 when I was learning it originally. I did like Python back then, but a few years afterwards I discovere...
Wayward Predicates in Ruby
Recently I’ve been wondering how to name Ruby methods that have predicate looking names (e.g. foo?), but don’t behave like predicates - namely they return other values besides the canonical true an...
How to Vim: Fixing Typos
Here’s another small Vim tip - how to deal with typos quickly. Generally, most people do something along those lines: enable :spell (the built-in spell-checking) use [s and ]s to move between...
How to Vim: Take Control of Split Positioning
One of my pet peeves with Vim is that by default the buffer splitting behaves a bit weird: horizontal splits (:split) appear on top vertical splits (:vsplit) appear on the left That’s exact...
Learning OCaml: Having Fun with the Fun Module
When I started to play with OCaml I was kind of surprised that there was no id (identity) function that was available out-of-box (in Stdlib module, that’s auto-opened). A quick search led me to the...
Learning OCaml: Numerical Type Conversions
Today I’m going to cover a very basic topic - conversions between OCaml’s primary numeric types int and float. I guess most of you are wondering if such a basic topic deserves a special treatment, ...
zoxide: tips and tricks
zoxide is a smart and fast alternative to cd that learns your directory usage patterns and allows you to jump to directories quickly. It’s one of my favorite command-line tools and it’s an essentia...
How to Fish: Moving Between Recent Directories
I love Fish, because it makes a lot of common everyday tasks easier and more convenient. One such task is moving (switching) between folders you’ve visited recently. In my case I often jump between...
How to Vim: Proper Ways to Escape
ESC (Escape) is one of the most central keys in the world of Vim. It takes you from Insert mode to Normal mode and it also serves to interrupt operations in progress in Vim. You’ll be using it a lo...