programming style poll
Suppose you have a function called pipe:
const addTwoAndSquare = pipe(
x => x + 2,
x => x * x);
console.log(addTwoAndSquare(1)); // 9
What is your preferred implementation?
const pipe = (...fns) =>
x => fns.reduce((z, fn) => fn(z), x);
VS
const pipe = (...fns) => {
return (x) => {
let z = x;
for (let i = 0; i < fns.length; ++i)
z = fn(z);
});
return z;
};
};
Do you want to generate your own beautiful stardew math plots? Well, now you can, with https://stardewmath.clodsire.social !
The web site probably doesn't even have any bugs! We'll see!
@wallhackio i'm always thinking this
this obscure, boring youtube short showing costco peanut oil with Halsey's Without Me playing in the background is hilarious to me for reasons I cannot explain
If you want to feel cool then add #dev to the URL to access secret options that I don't explain since I added them for as debugging options for myself!
Do you want to generate your own beautiful stardew math plots? Well, now you can, with https://stardewmath.clodsire.social !
The web site probably doesn't even have any bugs! We'll see!
the clodvestigator
i go by Clodsire, Clodboy and Bumby.
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"the thing you need to understand about @wallhackio is that he is utterly sick in the head. this is partially a compliment. but not entirely" ~aescling
30+
he/him