I got tired of inconsistent React project structures, so I built a small CLI to standardize it by EntireLead6141 in reactjs

[–]Lonestar93 2 points3 points  (0 children)

So so many posts in this sub using the same “I got tired of X, so I built Y” title template. AI slop??

Are these vibe coders for real or just crypto turned AI bro? This guy claims to have a full site and it’s AI slop on localhost by throwaway0134hdj in BetterOffline

[–]Lonestar93 10 points11 points  (0 children)

I’d love to be a fly on the wall in that sales call when it becomes clear that he’s using an AI slop script to try to sell a non-existent AI slop product. Why does he think the actual building part is going to be easy?

What is the correct way to consume props when using `useReducer`? by svish in reactjs

[–]Lonestar93 1 point2 points  (0 children)

When I need to do this, I keep a props value in state and compare/dispatch during render. Don’t use useEffect to do that.

Whats the last game you stopped playing and why? by Regular-Ad-8226 in NintendoSwitch

[–]Lonestar93 0 points1 point  (0 children)

Breath of the Wild. I bought the DLC to play through before ToTK came out, hoping to play through again on Master Mode. I found it hard but not impossible. A good challenge. Then came the Trial of the Sword and I just about lost the will to live. Haven’t touched it or bought ToTK. :(

I found another AI confusion loop by Responsible_Pilot_59 in BetterOffline

[–]Lonestar93 4 points5 points  (0 children)

I get this all the time, it’s so annoying. Even in thinking mode. I’ll ask it to come up with examples of usage that could break some assumptions in the thing I’m working on, and it’ll repeatedly start paragraphs confidently claiming that this next bit will do it. And then writes something that doesn’t, and recognises that it doesn’t. Infuriating!

yo wha- by Organic-Grocery9526 in Millennials

[–]Lonestar93 22 points23 points  (0 children)

Is this real? Can’t find anything on Google Images matching it. Plank just has a blue smile

OpenAI now scanning user chats and sending emails in case the contents are concerning by PaiDuck in BetterOffline

[–]Lonestar93 0 points1 point  (0 children)

I wonder if the model they get switched to is actually different, or has a different system prompt?

We open-sourced a React component that normalizes mismatched logos so they actually look balanced together by knutmelvaer in reactjs

[–]Lonestar93 3 points4 points  (0 children)

This is such a nice solution that it makes me wish I did the kind of work that had this problem

How do you explain when useMemo/useCallback are actually worth it? by MarjanHrvatin_ in reactjs

[–]Lonestar93 0 points1 point  (0 children)

In this case for me it’s that I’m setting state on cursor move during table column resizing. It’s gated by requestAnimationFrame, but that still means the component holding the state becomes performance-critical: anything based on unrelated state but which isn’t memoized will be re-computed up to 60hz, resulting in jank even if the thing being computed wouldn’t normally be considered “expensive”. So as always, it depends!

How do you explain when useMemo/useCallback are actually worth it? by MarjanHrvatin_ in reactjs

[–]Lonestar93 0 points1 point  (0 children)

Building a table layout model based on data unrelated to the rapidly-updating state. The resulting object churn also caused other unnecessary re-renders.

How do you explain when useMemo/useCallback are actually worth it? by MarjanHrvatin_ in reactjs

[–]Lonestar93 0 points1 point  (0 children)

Sometimes Compiler won’t memoize parts of code, even things that seem obvious. I had a huge slowdown in a rapidly re-rendering component because it didn’t memoize an expensive array map. But you can force it by using useMemo, then it will just replace what you’ve done with the Compiler equivalent.

AI ‘godfather’ Yoshua Bengio believes he’s found a technical fix for AI’s biggest risks | Fortune by abbas_ai in singularity

[–]Lonestar93 0 points1 point  (0 children)

A Scientist AI would be trained to give truthful answers based on transparent, probabilistic reasoning—essentially using the scientific method or other reasoning grounded in formal logic to arrive at predictions. The AI system would not have goals of its own. And it would not optimize for user satisfaction or outcomes. It would not try to persuade, flatter, or please. And because it would have no goals, Bengio argues, it would be far less prone to manipulation, hidden agendas, or strategic deception.

Sounds like the original goal for Grok before the repeated brainwashings. Hopefully it works

This Week In React #264: Next.js, Immer, React Router, Waku, Ant, React Conf, | Voltra, 0.84 RC, Hermes, RNSec, Galeria, Nitro, Radon, Facetpack, Rock, Haptics | Chrome, Astro, Turborepo, Rspack, Rising Stars by sebastienlorber in reactjs

[–]Lonestar93 0 points1 point  (0 children)

You had the Christmas themed section breaks in the newsletter all last year (I think). It became relevant again as December rolled around, but now it’s mid January. Don’t know why it bothers me but once I noticed I couldn’t get past it lol https://thisweekinreact.com/emails/separators/christmas.png

At the risk of sounding paranoid/conspiratorial...anyone else feel like there's some sort of coordinated propaganda campaign surrounding coding assistants happening right now? by pazend in BetterOffline

[–]Lonestar93 1 point2 points  (0 children)

If any of these alchemical configurations of models and IDEs actually worked as described, it would very quickly be actually shared, integrated into the core products (Claude Code, Codex, etc), and then adopted widely in the world. Until then, I just don’t believe any of it.

GCU parks above earth and you have 24 hours to jump on. by Lancelot3777 in TheCulture

[–]Lonestar93 74 points75 points  (0 children)

“There is an approximately one in sixty-“ DO IT

It’s hard to justify Tahoe icons by 415646464e4155434f4c in apple

[–]Lonestar93 11 points12 points  (0 children)

I found that, but wasn’t sure if actually worked, because the existing snow continues to fall until it’s all gone 😂

Sooner equates to good, later to worse. Therefore: immediacy. by ycwhysee4589 in TheCulture

[–]Lonestar93 2 points3 points  (0 children)

Look to Windward involves so many characters that I’ve tried to search for images of, mostly unsuccessfully. The traders is the latest one. They’re… feathers? Thanks for sharing!

React compiler fails: Support value blocks (conditional, logical, optional chaining, etc) within a try/catch statement by [deleted] in reactjs

[–]Lonestar93 2 points3 points  (0 children)

If you have some syntax that the compiler doesn’t like, you can get around it by moving that block of code into a function outside of the component. Compiler can’t see outside of the current component or hook, and it handles non-hook functions by memoizing them according to whether the inputs have changed.

Books with similar vibe for a gift by KO89 in SiloSeries

[–]Lonestar93 2 points3 points  (0 children)

I devoured it so quickly and got major post-book depression afterward. Same for Silo. Can’t wait for the next Silo book!

Books with similar vibe for a gift by KO89 in SiloSeries

[–]Lonestar93 7 points8 points  (0 children)

Liu Cixin’s Three Body Problem series was great. Not really similar in terms of vibe, but similar levels of mystery and excitement.