They would have to start by actually following the monad laws though... Just spent a couple of hours trying to figure out how to write a `sequence` function to avoid deeply nested and completely unnecessary `then` callbacks. Turns out there's some kind of global state going on so it's never going to work, just great...
If you define a function called foo
```
function foo(actions) {
const [action, ...rest] = actions;
action.then(x => cy.log(x));
}
```
and then call it like this
```
const list = [cy.wrap(7), cy.wrap(8)];
const nine = cy.wrap(9);
foo(list);
```
You would expect 7 to get logged -- but nope, 9 does… Makes no sense whatsoever, just prevents any kind of user-defined abstraction. What utter garbage
QT: https://qoto.org/@rlamacraft/109432671384151555
One of the things I keep hearing here, over and over, is that "new" people on this platform shouldn't complain about things they find confusing or that don't meet their needs.
That's exactly wrong. New uses, who've not yet adapted themselves to possibly unworkable or inscrutable interfaces and limitations, are often in a unique position to have insights that old hands can no longer see.
Perhaps you're tired of hearing the same complaints over and over. But think about why people make them.
https://www.theguardian.com/commentisfree/2022/nov/21/taking-photos-in-venice-men-dont-take-them-like-women "Are women taking on another responsibility, as family archivist and chronicler of daily life?" -- maybe the issue is her, not him. Why does she feel that her family needs an archivist? Who does she think she is, royalty?
Similarly, Atomic Shrimp's series on pottery (https://youtube.com/playlist?list=PLk5KvJPikK02pBEQWZn2oxDGavY0fopQ0) has got me wanting to give that a go too
Been really enjoying learning about flint knapping lately via Dr James Dilley's #knaptime videos https://youtube.com/@ancientcraftUK -- definitely going on the list of things to do when I have a garden
Just had the realisation that as long as a language has parametric polymorphism and higher order functions, it implicitly also has a mechanism for defining an abstraction independently of its implementation (e.g. interfaces, protocols, etc), by defining lenses/prisms. These allow code module to depend on being able to get/set part of a large data structure without having to know it’s internal structure, simply by being passed lenses over the parts, and only parts, that it depends upon.
Dunno if I've said this in mastodon yet, so here goes:
EVERY union should have an explicit goal for % of board seats to control and the funding for this should be separate from all other pooled funds.
This may mean stock purchases on the open market, it may mean negotiating with institutional investors to punch above your weight. For unions at privately held companies, you should be first in line any time there is a whiff of equity being raised OR credit being sought.
"1D languages require jumps for flow control, but since any graph can be embedded in three dimensions, languages of three or more dimensions can be written jump-free. An easy way to do this is to allow changing the direction of the instruction pointer rather than its position."
http://evincarofautumn.blogspot.com/2012/04/frighteningly-ambitious-programming.html
Hilarious if it weren't so near the truth?
🙄
https://video.twimg.com/amplify_video/1583270633861173249/vid/1280x720/zKgmDGsjDZO_q5KY.mp4?tag=14
This (https://twitter.com/wtwiwf2/status/1570130245365420032) suggestion really isn't as silly as it sounds. I think it would have been far better to have had a procession snaking down the country rather than flying the coffin to London and then having everyone queue. They could even put a stone cross-like marker at each point where the procession stopped each night…
Charles will not cool on climate action, say friends
https://www.bbc.co.uk/news/science-environment-62876790
Good, I say. Climate change is not and should not be a political issue; it's time everyone in society stood up and took action on the reckless behaviour of our civilisation. But if he's going to be vocal though, then that action had better start at home -- a commitment to travel by train instead of private jet would be a start.
Software engineer by trade. Programmer by hobby too (in addition to basketry and spoon carving). Personal website: https://rlamacraft.uk/. Gemini capsule: gemini://gemini.rlamacraft.uk