writer://
October 8, 2024
Package Managers
Here’s a detailed table summarizing popular package managers and their key features, along with links to their official resources: Package Manager Software Ecosystem Versioning...
ReadOctober 7, 2024
Kubernetes Hierarchy
Hierarchy: Cluster (parent) --- Nodes Group (collection of machines) ----- Node (machines) ------- Pods (workload units on nodes) --------- Containers (running applications) Think of the Node as...
ReadSeptember 29, 2024
Examples of Abstraction in the Real World
The reason we can even use things in this modern world is because of abstraction. No single person could know how everything we use on a daily basis works, much less how they were made in the first...
ReadMay 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...
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...
ReadMay 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:
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. A class that handles a report. Two things can change: the...
ReadMay 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...
ReadMay 17, 2024
Brew (homebrew) commands and tips
Homebrew/brew MacOSX:
Mac with M1/M3/M4: arch -arm64 brew install
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...