RSSAmplifier

Blog

layer|twenty|two

Functional Web Applications

layer22.comRSS feed ↗10 posts

Latest posts

Swift and Cute Framework: Setting up a project with CMake

Cute Framework is a simple, yet powerful C/C++ framework for building 2D games using the modern GPU pipeline. While C or C++ is fine, Swift is a modern language that many developers prefer for its safety and expressiveness. In this post, we will explore how to set up a project using Cute Framework with CMake, enabling you to write your game logic in Swift while leveraging the performance of C/C++…

Configure MacVim to Automatically Switch Colorschemes Based on macOS Dark or Light Theme

Introduction

My Journey From QWERTY to Norman and Back: A Vim User’s Tale

As a programmer and avid typist, I’m constantly on the lookout for ways to improve my typing experience. In my quest for a more efficient keyboard layout, I decided to embark on a journey to switch from the traditional QWERTY layout to the Norman layout, only to find myself back at QWERTY due to some unforeseen difficulties with Vim. In this blog post, I’ll share my experiences, the pros and cons…

Fish Shell abbreviations–what are they and how to configure them?

Fish Shell abbreviations are a fantastic way to configure what is commonly known as aliases for your day-to-day use.

Keep your Heroku Ruby version and .ruby-version synchronised

Not everybody realizes that the Gemfile is just another Ruby script that can contain arbitrary Ruby code. Sure, it does understand some DSL such as gem, ruby or source but we can use it to make our lives a bit easier if we use Heroku to deploy our app and rbenv or rvm to manage Ruby version locally.

TIL: Use Rails travel functions instead of timecop or time-warp

If you were using timecop or time-warp gems like me before, you will be happy to hear that Ruby on Rails provides its own travel and travel_to methods that allow you move in time and test time sensitive methods.

Standardising coding style across the team with RuboCop

As some of you realise, there are times when you open an old file containing code and you think “WTF”. It’s also very likely that it is a file that you have created months or even years ago, and completely forgot about it.

How to create a website spider

Creating a spider that generates a list of URLs for a given domain is very easy to do.

Spring-load your Rails development environment to speed it up

There is a wide selection of tools that allow you to pre-load your Rails development environment to make it faster. We have Zeus, Spork or Spin.

Automatically bundle controller-specific assets

It’s very convenient to be able to automatically bundle some of the assets in a separate file eg. when you have a lot of controller/resource specific CSS or JavaScript.