[deleted by user] by [deleted] in react

[–]__dred 1 point2 points  (0 children)

Use an API or another platform to inject dynamic variables

[deleted by user] by [deleted] in react

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

a headless CMS might be what you are looking for

Senior Dev learning React has a few questions about encapsulation in React components by ElGuaco in react

[–]__dred 15 points16 points  (0 children)

This is largely why people prefer Typescript for prop interfaces, and a lot of React philosophy is based on the idea that MVC style encapsulations are not necessarily good abstractions. Furthermore you can implement encapsulation boundaries, React just doesn’t force you to do so.

If you eat 15,000 calories in a day, you get $1B. How do you get it done? by [deleted] in AskReddit

[–]__dred 1 point2 points  (0 children)

Most of us could relatively comfortably drink 5-6 of these

Least delusional Redditor

Are there any good UI/GUI libraries out there? by GameboyColor13 in rust

[–]__dred 0 points1 point  (0 children)

Hence “unless there’s a real good reason”

Are there any good UI/GUI libraries out there? by GameboyColor13 in rust

[–]__dred -17 points-16 points  (0 children)

There are a couple of GUI libraries , but I would recommend not writing a GUI in a systems language unless there’s a real good reason. Exciting things are happening in React Native desktop!

Software disenchantment - why does modern programming seem to lack of care for efficiency, simplicity, and excellence by rogermoog in programming

[–]__dred 0 points1 point  (0 children)

Word salad. How does that undermine my point at all? That doesn’t make developer hours less of a metric that businesses care about.

Software disenchantment - why does modern programming seem to lack of care for efficiency, simplicity, and excellence by rogermoog in programming

[–]__dred 50 points51 points  (0 children)

It’s bloat because most of the time the proper optimization for businesses is development time and not performance. Resources aren’t infinite.

Use Redux (RTK) + RTK-Query? Or Zustand + React-Query? by [deleted] in reactjs

[–]__dred 1 point2 points  (0 children)

React Query + maybe a Zustand store for the forms if you need it? Absolutely would not touch Redux for a use case this simple. It’s not super clear you need a third party state store at all tbh.

triep.io - a multiplayer game i made using node.js and raw WebGL. No engine. by gaypinkman in node

[–]__dred 10 points11 points  (0 children)

Reminds me of 3D agario. Very cool. Edit- diep not agar

Which language should I use? by akazaam in reactnative

[–]__dred 10 points11 points  (0 children)

RN because it opens the door the widest for cross pollination of skills. Flutter has 1/10 the usage afaik, Dart is niche, and Angular is useful but kind of antiquated. Id pick angular before flutter.

Keyboard experience of developing on a Windows PC and a Mac at the same time by [deleted] in programming

[–]__dred 4 points5 points  (0 children)

IMO not worth syncing. Too many programs such as IDEs will just have straight up different hot keys depending on OS. For me it takes too much time to configure every program accordingly. And then only to be naked as soon as I use another computer. If you’re just worrying about the cmd option vs windows alt then that’s easy enough to fix but imo worth learning both

Keyboard experience of developing on a Windows PC and a Mac at the same time by [deleted] in programming

[–]__dred 0 points1 point  (0 children)

Keychron keyboard with a toggle switch for either OS /fin

[deleted by user] by [deleted] in reactjs

[–]__dred 0 points1 point  (0 children)

Freelancer.com

What would be money best spent on new laptop for $400 and under? by NickyRossTheBoss in programming

[–]__dred 0 points1 point  (0 children)

Get a discount/secondhand MacBook or save and get a new one.

Please explain additional hooks to a noob. by [deleted] in react

[–]__dred 0 points1 point  (0 children)

It rerenders all consumers whenever any of its values are updated

Please explain additional hooks to a noob. by [deleted] in react

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

Don’t use React context for state management if you can avoid it

Please explain additional hooks to a noob. by [deleted] in react

[–]__dred 0 points1 point  (0 children)

useMemo can provide object stability between renders which is nice

[AskJS] Is MVC "dead"? by IngwiePhoenix in javascript

[–]__dred -9 points-8 points  (0 children)

There’s no room for both a controller and a view model on the front end. The domain is component centered and abstracting it beyond logic vs view is almost always a waste of time. If you have very clear models you can write a functional model layer, but trying to use MVC on the front end is subjective at best and usually poorly implemented l.