lray138ahh... actually this was going to be in response to all 'social' sites being the same and when I...
ahh...
actually this was going to be in response to all 'social' sites being the same and when I log ...
nah
I was looking at
var container_class = ls.try("fluid")
.fork(
() => 'container',
(x) => x.isTrue() ? "container-fluid" : "container"
);
and again, this is me trying to apply these functional concepts to my particular domain of expertise, which is content management.
WTF is going on here? tracking back I see
let ls = Kvm.of(locals);
I don't like that variable name and I think a helper like tryProp('prop', Kvm ...) or ... see here is where the endleess loop and eternal madness can start.
again, bouncing between a PHP and a JavaScript implementation of the same concept. A single approach to programming through the lense of functional programming.
if the method was tryProp, then I would understand what was going on at a glance. it's not.. it's not clear what is going on.
then... I'm mis using "fork" it shoudl at least be called "fold" here...
I periodically entertained "match" but I think GPT was leading me down the wrong direction...
so...
we want it to be the same ... PHP to JS the methods and approach. We have dubbed the toolkit Pipeline.