https://www.gravatar.com/avatar/576fb625b682acc8f3a535c0668c11f4?s=240&d=mp

Tips on Working Remotely

Last week I wrote up some quick tips on using zoom for remote work meetings, but I also wanted to write up some suggestions about remote work in general. As a disclaimer, I’ve been working 100% remote for around 18 months. Before that, I worked in your typical “open plan” office settings. The following is based on my experience and research, I don’t claim to be an expert on remote work and I’ll include links to some helpful resources if you want to dig further. I also work as a software developer which is undoubtedly one of the easier roles to perform remotely, I don’t pretend to have answers for more collaborative occupations.

Tips on Using Zoom For Remote Team Communication

With the recent explosion in companies using zoom.us for remote communication, it seemed a good time to share a few tips as someone who’s used zoom (along with various other video/audio chat platforms while working 100% remotely for almost 18 months.

Caveats

Zoom has had some questionable security issues raised recently (I won’t reiterate them here, just put ‘zoom security’ into your favourite search engine). We still use it at my workplace but you’d do well to do some due diligence in determining if it’s the right tool for you. Personally, I like Google Meet as it all runs in-browser so there’s nothing to install. The catch is you need a paid G-Suite account to host meetings, but if your company already has G-Suite accounts it’s worth considering.

Delegation: an Alternative to Dependency Injection

In Object-Oriented Programming, one object will often depend on another object in order to function.

For example, if I create a simple class to run finance reports:

class FinanceReport
  def net_income
    FinanceApi.gross_income - FinanceApi.total_costs
  end
end

We can say that FinanceReport depends on FinanceApi, which it uses to pull information from an external payment processor.

But what if we want to hit a different API at some point? Or, more likely, what if we want to test this class without hitting external resources? The most common answer is to use Dependency Injection.

Reducing Developer Friction With Rails 6’s Actionable Errors

One of Rails 6’s new features is ActionableErrors, which allows you to add buttons to Rails’ default error page to perform certain actions. Out-of-the-box Rails 6 includes one for the common “pending migration” error, where you can hit a button on the page and run the migrations without having to jump back to a terminal.

Creating Custom ActionableErrors

To create your own “actionable error” is quite simple. You create an error class that includes ActiveSupport::ActionableError, then you can use the action method to create the button and its behaviour. Here’s a simple example from Rails itself:

Introducing GitArborist.com

Paved road through trees

Carving a Path Through Wild Branches

Photo by Studio Dekorasyon on Unsplash

Git is a fantastic version control system, no question. I’ve been using it since maybe 2012, though at that time it was through a TFS-Git bridge so I could enjoy local (and cheap) branches while the rest of the company used TFS.

Of course, with git you also need a central place to push your code where other developers and your infrastructure can access it. This is where places like Github come in.

Running Ruby on Rails 6 on a Raspberry Pi Zero as Easy as Heroku

In this post, I’m going to take a look at what it takes to get the latest version of Ruby on Rails (at the time of writing that is Rails 6.0.0 on Ruby 2.6.3) running on a Rpi Zero W.

First, let’s answer the burning question of why would anyone do this:

  1. Because I can
  2. I work with Ruby on Rails in my job every day, so I am familiar with it
  3. A learning exercise about what it is like to work with balena.io
  4. An experiment about what is possible with the balena.io infrastructure beyond what they support out-of-the-box

Let me also get this out of the way: Ruby-on-Rails is not particularly suited for embedded devices, so I would probably never want to do this in a real-world scenario. balena already offers pre-baked images for Rust, Go, C++, Node, etc. All of which are probably better suited to the job.