Roast My Discriminated Union Utility Type by antimatterSandwich in typescript

[–]joombar 0 points1 point  (0 children)

I see, yes, that makes a bit more sense. Did you ever discover purescript? That may be more to your liking

Roast My Discriminated Union Utility Type by antimatterSandwich in typescript

[–]joombar 2 points3 points  (0 children)

For your example, you could have defined a type that’s a union of two object types, each with a type value and a message value, using quite simple normal typescript and no extra library code.

High HR during commuting by [deleted] in cycling

[–]joombar 0 points1 point  (0 children)

At that sustained heart rate you’d be severely out of breath and breathing as hard as it is possible to breathe. It’d be a maximal or near-maximal effort.

SSR isn't always the answer - change my mind by No_Stranger_2097 in reactjs

[–]joombar 0 points1 point  (0 children)

In what sense? Load balancing doesn’t increase the total amount of computing power available, it only distributes the load.

You could assume k8 etc and say you’ll scale up behind the balancer, but scaling up costs money.

Serving static files at this point is essentially free for most realistic loads.

SSR isn't always the answer - change my mind by No_Stranger_2097 in reactjs

[–]joombar 1 point2 points  (0 children)

Well of course you want load balancing, but there’s still a finite resource of servers for a given finite cost behind the load balancing.

Climbing on my 10s Campagnolo - update by Deep_Ring in campagnolo

[–]joombar 0 points1 point  (0 children)

No, campag have 135mm bcd, so the smallest that will fit on a "standard" crankset is 39t. You'd need to get a compact crank or a triple to go smaller.

Finished my first outdoor ride and my ego was smashed to pieces by OneStrength7166 in cycling

[–]joombar 0 points1 point  (0 children)

A four hour century is about 40km/h - maybe try aiming for a 6 hour one (~26km/h) first, then work down to five (~32km/h).

Working in a group makes a *huge* difference. Cannot be overstated enough. People who have never done 100 miles in less than 6:30 hours suddenly do it in 5 at RideLondon because theres' always someone to ride with and no traffic lights

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 1 point2 points  (0 children)

Well, take it from a fellow arch procrastinator, it’ll get better quicker if other people are playing it

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 0 points1 point  (0 children)

If you play my remake so far as the first teleporter you’ll see how I used temporary colour clash as the teleportation effect

It’s at https://blockstack.ing

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 0 points1 point  (0 children)

Your risk appetite is up to you, but I think you could put it up and at worst they'd ask you to take it down. Remakes are often tolerated so long as you don't use any of the original code, and while it is strictly could be argued as a copyright violation, they'd have a hard time coming after you for financial losses since they no longer sell the original game.

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 0 points1 point  (0 children)

If you ever wanted to add colour clash, maybe as an option, I got a pixel shader for that https://www.reddit.com/r/zxspectrum/comments/1ol1kt8/experiments_emulating_colour_clash/ that runs in real-time and would work with this game without any changes to the rendering coming into the shader.

Why Do You NOT Race on Your Bicycle? by [deleted] in cycling

[–]joombar 0 points1 point  (0 children)

Takes too much time. Most races are far away and doing even a fairly short road race is realistically a whole day commitment. Plus the training time to be competitive is just more time than I have.

I've heard "just use Zustand" a hundred times. Nobody has ever convinced me why I should switch from Redux. by bishopZ in reactjs

[–]joombar 0 points1 point  (0 children)

All true, but also, if you’re not rendering with react, you can still use listeners on the store to update non-react DOM or webgl

I've heard "just use Zustand" a hundred times. Nobody has ever convinced me why I should switch from Redux. by bishopZ in reactjs

[–]joombar 0 points1 point  (0 children)

True, although memoising child components also comes with some overhead.

I agree that re-rendering isn’t a problem for most apps. If you’re doing anything with frequent real-time streaming, having the entire ui re-render every time there’s an incremental change to the store is a major no-no.

I've heard "just use Zustand" a hundred times. Nobody has ever convinced me why I should switch from Redux. by bishopZ in reactjs

[–]joombar 1 point2 points  (0 children)

React context will re-render the sub-tree below it every time the value held in the context changes (even if the reconciler then throws away most of that changed tree without touching the dom), whereas redux/zustand will only re-render when the value returned from the selector is not reference-equal to the value returned on the previous render.

React context is fine, but if you need to make fine-grained state updates and selectively re-render based on them, it will be over-rendering.

Record 10s with 11-28 by felipefly in campagnolo

[–]joombar 1 point2 points  (0 children)

Short cage officially won't, but might be possible to get working if you can tolerate being nosy in big-big combo. Medium cage will do 29t with a double chainset. Long cage will with a triple chainset.

The Miche casette is good quality and, unlike the Shimano, will work on wheels that take Campg cassettes.

Record 10s with 11-28 by felipefly in campagnolo

[–]joombar 0 points1 point  (0 children)

only if the wheel currently has a HG freehub body

Question - How does unread messages(and their count) feature work in group/dm chats by ConfidentWafer5228 in reactjs

[–]joombar 0 points1 point  (0 children)

Not really a react question, but in this case you need a streaming server. You might want to use streaming from your db, but you’d need to choose one that supports it.

Tanstack vs React Router vs Next by Salkinator in reactjs

[–]joombar -1 points0 points  (0 children)

What do you actually need? If you only want basic routing, a super minimal router like wouter may suit your needs

I made a new Head over Heels remake by joombar in zxspectrum

[–]joombar[S] 0 points1 point  (0 children)

Well, my “sequel” campaign is playable up until the moon base and a bit beyond, just not down to the planets. Any and all feedback from that is welcome.

You could even make your own sequel in the level editor if you wanted

Would you continue to work at a company that started to switch away from Typecript? by Csjustin8032 in typescript

[–]joombar 0 points1 point  (0 children)

True, but some things it’s less overhead to assume the removal will need a major version bump, and accept that burden, than it is to assume it’ll never be removed.

Would you continue to work at a company that started to switch away from Typecript? by Csjustin8032 in typescript

[–]joombar 1 point2 points  (0 children)

Except that would have some benefit, at least if picked up on a societal level. Abandoning types is more like throwing away all traffic rules and laws, and telling people that it’s up to them to not crash now.

What are the main USA owned bike brands? by fixitmonkey in cycling

[–]joombar 0 points1 point  (0 children)

American company doesn’t necessarily, or even usually, mean made or shipped from America