The entity-attribute-value pattern[PPR, en.WP] is one of those programming tools which is a hammer: once you know it, everything looks like a nail. And maybe, if you squint hard, you really can hammer just about any data problem with it. Which does not make it the right tool. Actually, it is almost never the right tool.
…when you – briefly – understand how something works, and how you can use it in a really cool way to substantially alter the way you have been doing something! Using data mapper[en.WP] and UUIDs in a steadily complexifying CRUD[PPR].
The current project which is breaking my mind is commonly called the Front Controller pattern[MFen.WP], which unfortunately is one of those simple phrases which is implemented in all kinds of ways for all kinds purposes. Continue reading “Front controller pattern”
This week the weather is heavily influenced by the season – the autumn leaves are all falling with a splat, and cool temperatures with the high humidity have me turning up thermostats again. But there are other additional heat sources, scripting for example… Continue reading “Alternative sources of heat”
Once upon a time I ate, breathed, and slept a certain codebase, and I almost got good with it. But what with one thing and another I let the skills rust for a long while, got off the jogging machine.
Now I am tentatively trying the water, different pools and different area – although still a CRUD for all that (or not). In my case all I wanted was a robust api to a set of relatively simple data store objects which are inter-related – the one is a library of the other which are containers for the third.
Every part of that ‘simple’ description is now in flux.
Except the robust api framework – Slim. As far as I am aware there are very few (actually, zero) http apis which are as stable, fast, and extensible. The onion model is brilliant. And, importantly, there is a large base of code in the wild to draw on for inspiration.
Beyond Slim, though… my data models have become increasingly weird and complex. I may be storing the rendered objects, rather than data. Some of the data objects which should be relative are now potentially independent. And depending on the point of view, the containers may also be libraries. And there are binary blobs. Somehow I need to consider the binary blobs.
The big issue to begin with, though, is authentication. And the attendant issues of security. Which has me trawling back through some old code I wrote.
I should likely trim back, and by that I mean take a machete to, the feeping creaturism and set a minimal spec and achieve it.