How I use tmux in my workflow to make my life better.
What is a terminal multiplexer, and why do I care? When you split up a terminal screen into sub-terminals, that’s called terminal multiplexing. This is nothing new, GNU Screen has been around since 1987. Tmux is just screen’s younger, nubile cousin. I’m about to explain how this simple technology can:
Keep you organized. Lower the bar to get to work. Save you time. Enable teamwork. Here’s a quick demonstration:
TLDR Choosing a text editor is a very personal decision. You grow with your editor, as your editor grows with you. As I use my text editor more and more over the years, I’m constantly constantly learning new techniques for working more efficiently. Some of them stick, others are forgotten. I find that sequences and shortcuts that I most use stay. But just as importantly VIM accommodates my changing needs through configuration, plugin, or otherwise.
What is a singleton anyway? How do we use them to put large blocks of text in code.
The singleton design pattern I’m relatively new the the concept of the singleton, even though I’ve been programming for a number of years. I’ve run into several instances in which I new that this was exactly what I needed, but did not have a name for it. Here, I’m going to try to explain it to myself a year ago. There are a few questions I’ll try to address.
As of writing this, I’m running Ruby version 2.3.0. Not all of this, particularly the stripped heredoc, is available in plain ruby before 2.3.0.
Heredoc Basics So, you need a string that’s longer than a line, and you’re sick of quotes and backslashes? And you might like to retain formatting? You want string interpolation too? Enter, heredoc.
Here’s your basic, run of the mill, heredoc. You’ll notice we use the <<- operator, and our safe-word, which we will use to end the heredoc.