Blog

May 25, 2024

xargs tips

XARGS things to remember xargs -p will show the command find . -name "foo" -print0 | xargs -0 (<<< print0 null, xarg uses null instead of space, in case file...

Read

May 24, 2024

Code Coverage VSCode With PHPUnit

Need: Get some code coverage up for unit tests in vscode. PHPUnit can handle outputting the necessary coverage information. Coverage Gutters can read the outputting coverage file (in xml). I'm...

Read

May 22, 2024

VSCode settings.json file

My settings.json file as of 2024-05-22, mostly for backup purposes:

Read

May 20, 2024

Hacky php file to do some auto-checks for pull requests

I wrote this hacky PHP file to assist me in doing pull request reviews as well as to check my own, to make the best use of my team's time. These are just things I wanted to examine every time without...

Read

May 18, 2024

Big O Notation

Used to analyze worst-case (usually) complexity to check resource requirements for runtime as inputs increase. Not about the hardware, etc. High level view. How long: time complexity. Memory...

Read

May 18, 2024

SOLID Progamming Principles

The Principles: Single Responsibility - the class should do one thing and thus would only have one stakeholder with a reason to change it. Open-Closed - add functionality without changing the...

Read

May 18, 2024

Redis client commands I want to remember

In laravel local, while devving vendor/bin/sail redis redis-cli (command, container, client) In forge/prod: Delete keys based on a part:

Read

May 17, 2024

Brew (homebrew) commands and tips

Homebrew/brew MacOSX:

Read

May 13, 2024

Mocking in Unit Tests

In testing a specific class, you mock it's dependencies to make sure that class calls the dependency correctly. Mock the dependency. shouldReceive - declare what should be called...

Read

February 4, 2024

How to do an SQL Delete based on a Join

I'm mostly used to simple deletes using where clauses, but I know a DBA who prefers to use joins. To get more familiar, I've been doing simple stuff like that. The syntax between MS-SQL and MySQL is...

Read