There are 104 articles categorized as "Programming"
on March 27, 2018. in Programming, Development, Software. A 3 minute read.
This past weekend I was playing around on some pet projects and wanted to get up and running quickly. My initial reaction was to reach for a Vagrant box provisioned with Ansible. After all, that’s what I’ve been using for a really long time now.
Continue reading Docker containers for PHP with PHPDocker.io...
on March 20, 2018. in Programming, Development, Blablabla. A 5 minute read.
Back in October last year I wrote that I thought I understood bounded contexts, what they are and why we need them. Ever since realizing that a bounded context is a boundary of how a business sees a specific subject within a section of that business, learning anything and everything DDD became a lot easier.
Continue reading Bounded contexts and subdomains...
on January 28, 2018. in Programming, Development. A 3 minute read.
In dealing with legacy code I often come across some class that extends a big base abstract class, and the methods of that class call methods on that big base abstract class that do an awful lot of things. I myself have written such classes and methods in the past. Live and learn.
Continue reading Mockery partial mocks...
on January 24, 2018. in Programming, Software, Development. A 3 minute read.
I’ve been using VS Code for my Golang development needs for a few months now. Minor kinks here and there, nothing serious, and the development experience gets better with every update. I have also tried out IntelliJ Idea as the editor, and one feature that I’m missing in Code from Idea is the build-run-reload process. I thought to myself, that’s such a basic feature, it should be possible to have that.
Continue reading Build and run Golang projects in VS Code...
on December 25, 2017. in Programming, Development. A 10 minute read.
As any newcomer to Golang and it’s ecosystem, I was eager to find out what is this hubbub about these things called goroutines and channels. I read the documentation and blog posts, watched videos, tried out some of the “hello world” examples and even wasted a couple of days trying to solve the puzzles for day 18 from Advent of Code 2017 using goroutines and failed spectacularly.
Continue reading Buffered vs. unbuffered channels in Golang...
on December 12, 2017. in Programming, Software, Development. A 3 minute read.
Sometimes when working with Mockery mock objects, we want to tell a mocked method to return different values for different arguments. It is a rare occasion when I need this feature, but every time I need it, I’m happy it’s there.
Continue reading Mockery return values based on arguments...
on December 06, 2017. in Programming, Development, Blablabla. A 5 minute read.
A week or so ago, Luka mentioned this Advent of Code thing. I’ve been doing coding challenges and examples before, but never have I tried the AoC (this is the third year it’s running).
Continue reading Five days of Advent of Gode...
on November 29, 2017. in Programming, Development, Software. A 5 minute read.
I was working on something that includes the usage of ReactPHP promises. Given that I haven’t had the chance to take a closer look at it yet, I decided that this is the right time for it.
Continue reading Reacting to promises...
on November 23, 2017. in Programming, Development. A 2 minute read.
The other day I was going through the configuration file for php-fpm, when I noticed a configuration directive I haven’t before: slowlog
. I guess it’s been around for a while, I just never noticed it.
Continue reading PHP FPM slow log...
on November 02, 2017. in Programming, Development. A 3 minute read.
Creating and implementing interfaces in our code is important. It helps with swapping out components, eases testing, separates the what from the how.
Continue reading What implements an interface...