Reading List

The most recent articles from a list of feeds I subscribe to.

Untitled

Been taking a few shots in Red Dead Redemption 2 recently. Will share them out very soon.

Sprinklings of Docker for local development

When I search for docker-related topics online, it almost seems to me that there are two trains of thought for the most part: I believe either of these is a valid approach — whatever feels right to you. Of course it does also depend on how your company / team works. But I’d like to… Continue reading Sprinklings of Docker for local development

PHP’s __call magic method and named arguments

Whilst working on a little library recently, I discovered some interesting behavior with PHP’s __call magic method. Specifically around using named arguments in methods that are caught by the __call method. Given the following class: Calling a non-existing method without named parameters would result in the arguments being given to __call as an indexed array:… Continue reading PHP’s __call magic method and named arguments

What is the PHP __call magic method?

Consider this PHP class: We could call the bar method as follows: However, in PHP, we have the ability to call methods that don’t actually exist on a class. They can instead be caught by a “magic method” named __call, which you can define on your class. So if you instantiated the BazClass above and… Continue reading What is the PHP __call magic method?

100 Days of Vim

I’ve attempted the 100 days challenge multiple times and completely failed each and every time. Over the recent Christmas break I began learning Vim from Jess Archer’s and The Primeagen’s videos. My first week back at work I forced myself to use vim as a way to force my brain into picking it up as… Continue reading 100 Days of Vim

The post 100 Days of Vim appeared first on David Peach.