I spent about an hour today doing a factoring experiment, taking a promises-based API and transforming it into a callbacks-based API.#
Well no surprise they're isomorphic. When you do the translation, you end up with the same thing with different names. #
The promises syntax is slightly more compact. A long distance to go and a lot of introduced complexity for very little gain. #
It's like getting nice fat clothes instead of just losing the weight. #
I have a philosophy in programming, one I thought was stolen from, but actually mis-attributed to Einstein, who ironically said as much in a lot more words.#
"Everything should be made as simple as possible, but no simpler."#
This is a basic mathematics thing. They're always looking for a way to find one theorum that encapsulates and makes unnecessaray two or more. A more fundamental truth. The hope is ultimately to have one concise way of saying everything. A Rick and Morty kind of idea. But why do programmers always seem to do the opposite? Solving a problem of too much complexity by adding even more complexity. #
I was a math major before I was a programmer, so I find this whole thing super frustrating.#
copyright 1994-2021 Dave Winer.
Last update: Tuesday September 7, 2021; 11:09 PM EDT.
You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)