Offler
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @03:24PM (#39898058)
That's basically every major framework apart from React and it includes some major React libraries.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @12:25PM (#39895891)
They weren't used in virtually every single frontend framework though while Signals are
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @09:46AM (#39894135)
Nah I use Legend-State with Context to provide component stores and it's much nicer than the foot gun riddled useEffect standard React. Fine grained reactivity is fantastic.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @09:42AM (#39894099)
React isn't in the list because the creator had a bad experience with backbone.js in 2013 and dislikes Signals. The team have kept true to his preferences without considering modern Signal approaches, concepts like components, dependency injection and TypeScript, npm packages which provide better encapsulation, discoverability and modularity than the state of the art in 2013.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @09:12AM (#39893798)
I work on FX trading applications with hundreds of thousands of lines of code. Full fat desktop application replacements. Good luck not using a framework. 20-30 developers with multiple clients with their own devs.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @07:40AM (#39893055)
Look at legend-state, it's most definitely not Redux (in a good way IMO).
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @07:38AM (#39893036)
Signals are used in every framework except React. Observables weren't. That's a huge difference.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @07:30AM (#39892985)
Indeed at a certain scale the "easy" approach ends up becoming a mess. A simple counter isn't complex enough but this is a great idea and would be a positive for the language.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @07:25AM (#39892955)
Every framework is moving to signals, apart from React and I'd say if this became a standard even they will. This is like Promise. It's a sensible shared concept.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @07:14AM (#39892870)
I much prefer the explicit get/set methods. MobX I think used the magic approach as did svelte and I believe svelte have realized it's a mistake. It makes it harder to reason about the code, better to be explicit.
Re:A proposal to add signals to JavaScript
on Monday April 01, 2024 @06:01AM (#39892414)
Signals are fine grained reactivity. React is coarse grained reactivity. Legend-state adds signals to React and I'd recommend it over Redux/zustand which we used to use.
Re:Software firms across US facing tax bills that threaten startup sur...
on Wednesday April 19, 2023 @04:58AM (#35625954)
I'd rather have the Irish electoral system then the American one any day.
Re:AstroNvim/AstroNvim: AstroNvim is an aesthetic and feature-rich Neo...
on Monday March 13, 2023 @08:52AM (#35135021)
Another vote for LazyVim, it's been great.
Re:Why I Use Old Hardware
on Saturday March 11, 2023 @01:24PM (#35111042)
Linux is great on such hardware. I've a 10 year old XPS 13 running Pop_OS and it's perfectly usable.
Re:Simple Modern JavaScript Using JavaScript Modules and Import Maps
on Friday February 17, 2023 @04:02AM (#34832478)
A React project wouldn't have the same issues.
Re:The Japanese Urban Zoning System
on Saturday August 20, 2016 @04:24PM (#12328170)
There are many countries in the world who would love to have an economy as strong/modern and prosperous as Japan.
Re:Angular 2 Beta released
on Wednesday December 16, 2015 @02:22AM (#10742858)
Angular 2 also requires that level of tooling (both allow you to use ES5 and don't require tooling but most devs won't use them like that).
Re:Vue.js 1.0.0
on Tuesday October 27, 2015 @10:18AM (#10458107)
It sounds like the sort of mistake newbie React developers make, you quickly learn to decompose your render into smaller components.
Re:Khan Academy's React style guide
on Wednesday October 21, 2015 @01:02PM (#10426756)
It sounds to me like you are doing React development incorrectly. You should aim to break down your mockups into small components, preferably stateless components (introduced in React 0.14) and only have the higher level components act as wrappers that pass down data into the small stateless component leafs (which should be the majority of your UI).
Re:TypeScript and JSX
on Sunday September 13, 2015 @08:41AM (#10211177)
Mithril appears harder to read than equivalent JSX.
const links = ctrl.pages().map(page => <a href={page.url}>{page.title}</a>);
return <div> {links} <button onClick={ctrl.rotate}> Rotate Links </button> </div>;
Compared to
m("div", [
ctrl.pages().map(function(page) {
return m("a", {href: page.url}, page.title);
}),
m("button", {onclick: ctrl.rotate}, "Rotate links")
]);
I can see what the UI will be with JSX at a glance with Mithril I have to parse the code.edit: Mind you both look awful due to HNs poor formatting ability. Honestly how did this website become so popular with tech people?
Re:Ember.js 2.0 Released
on Thursday August 13, 2015 @09:25AM (#10053954)
Really? You have React, Angular and Ember. Three libraries or frameworks for building web applications. If you aren't building a web application you might not need any of them.
Just use React as the other two are copying/converging toward React.
All the other web app UI frameworks? Noise, they won't amount to much and add very little. The last release worth paying attention to was React 2 years ago. Hardly a breakneck pace.
Re:Why Rent Is So High and Pay So Low
on Saturday August 08, 2015 @04:56AM (#10026740)
Respect disease let people die when they contract them.
Re:Browserify vs. Webpack – Configuration isn't evil
on Monday July 27, 2015 @04:17PM (#9957732)
npm is getting its house in order when it comes to browser package management. I wouldn't bet too heavily on something else.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling
on Sunday July 26, 2015 @03:36PM (#9951971)
Well the question is why bother with those other tools if one tool (Webpack) can do everything you need?
It reminds you of React because he's talking about React :)
Re:A History of London at Night
on Monday July 13, 2015 @08:29AM (#9877690)
Fairly standard for such a low rent, she's lucky she didn't have mice skittering over her feet in her kitchen...
Re:React on ES6+
on Wednesday July 08, 2015 @03:24PM (#9854030)
Basically JavaScript is a tool that I can leverage in more places then CS and CS offers me very little advantage over ES6.
Re:What kind of Web Components do we need?
on Saturday July 04, 2015 @03:16PM (#9831283)
I think the reason React is so popular is due to the developer experience. It's a simpler mental model where you no longer have to worry about your previous state and how to transition the view to the correct current state based on it.
Re:React Performance
on Saturday July 04, 2015 @03:12PM (#9831267)
I'm not sure why it's terrible practice, the only reason I can think of is a performance one. As I said earlier in the thread though that's only a problem if you create infinite lists and never clean up after yourself.
The correct way to design such components would be to only create DOM for elements in view. Which is why this test is flawed.