Why Strong Typing Is Preferable To Weak Typing

There are many software engineers and web developers who really feel like all this typing is just annoying and gets in the way. But if you learn to embrace strong typing, you will actually write fewer bugs and have a more resilient system.

Repository Interfaces

Your application is not your data, and modeling your application solely on the underlying data can cause some serious problems, and the world can go topsy-turvy if the underlying data model changes and you don’t have a concrete way to keep that from rippling through your application.

SSR, Token Refreshes, and HTTP Streaming

You can’t set cookies via header with the HTTP Streaming API, which React makes copious use of for async data loading and suspense boundaries. What do you do when you need to update a token stored in a cookie then?

Behavior Belongs in the HTML(Link Post)

Separate your concerns they said, it will be fun they said. But were they wrong? I found this linked artcile to be a great read and I hope you will as well…

Arrays, Collections, and Types in PHP

Arrays in PHP are… interesting. But useful. Let me show you a really good use case for arrays as an implementation detail of a collection class…

Enumerate The Options

Enumerating options in your code can provide clarity of intent and ease of use. Let me show you an example from some work I’ve been doing…

The Technical Debt of Technical Debt

I’m not sure at this point whether the idea of “technical debt” is all that helpful. So many people import so many meanings onto it. Instead, I prefer to use the phrase “maintenance load.” Let me explain why…

Re-Thinking Namespaces: How Co-Location Can Make Us Better Engineers

Maintainability and comprehensibility are huge issues in software engineering. But it seems that many don’t optimize for either of those things when organizing their code. I’m here to help with that…

Service locator: an anti-pattern(Link Post)

The service locator pattern is everywhere, certainly in Laravel (most famously by means of “facades”) but it’s in other places too. this is a pattern we should avoid and Brent Roose gives us a few great reasons as to why…

Strangler Fig Mindset

How can you advance your software and applications by bits and pieces at a time? There is a way, and I’d like to talk about it…

AHA Programming(Link Post)

As a follow up to my post, “Incidental Duplication”, I thought I’d share this great article by Kent Dodds with you…

Incidental Duplication

Is your software feeling a little too DRY? A spoonful of duplication may be just what you need. Hear me out…

Welcome

I’ve decided it’s high time I started writing about software since software is what I do day in and day out…
© 2024 TJ Draper