r/javascript • u/velmu3k • Jul 10 '16
r/javascript • u/DavidMukundi • Jan 09 '23
Forget about redux use jotai as your state management library
r/javascript • u/zsolt555 • Jun 01 '15
The Art of Hiring Javascript Developers
r/javascript • u/gdev816 • Dec 07 '16
My unpopular opinion: VueJS is a step backwards.
I know that what I'm about to say is an extremely unpopular opinion in the reddit web development space right now, but VueJS is a step backwards.
While everything is moving on to ES6 and TypeScript, Vue has kept itself in ES5. One example of this is computed properties in a Vue component. These serve the same purpose as ES6 getters and setters in a class.
If you want to see what I'm talking about here's a link to a quick egghead.io video in the new VueJS course they just released. https://egghead.io/lessons/javascript-use-vue-js-component-computed-properties
If you watch the other videos at that link you'll see it's all ES5.
For using ES6 and TypeScript with Vue I've looked at av-ts but it seems that it implements its functionality at runtime.
That means that the TypeScript transpiler will have to be bundled with your app so a user's browser can transpile your code at runtime. That defeats the purpose of Vue being a small and lightweight library.
If my statements here are wrong please correct me, but everything I'm seeing about Vue makes it look like a library that should have come out around the same time as Angular 1.
Edit: Accidentally linked the wrong awesome-vue library. The one I meant to link is av-ts.
r/javascript • u/magenta_placenta • Oct 02 '11
Node.js is Cancer - Node.js is a tumor on the programming community, in that not only is it completely braindead, but the people who use it go on to infect other people who can't think for themselves
teddziuba.comr/javascript • u/Not_Edward_Bernays • Oct 29 '10
c# programmer: JavaScript is "completely single threaded and blocking" in relation to fetching from a URL.
r/javascript • u/garybernhardt • Jan 18 '22
TypeScript Features to Avoid
r/javascript • u/andreinwald • Aug 02 '25
WebGPU enables running LLM in your browser with JavaScript. Check this demo AI chat. No API requests, no downloaded programs. iPhone (iOS26) and Android also supported!
r/javascript • u/R3n4g4t3 • Oct 28 '15
Javascript subreddit without fix my code questions.
Is there a Javascript subreddit that does not have all these please fix my code questions but only serious discussions and shameless self promotion of new libraries?
If not are there other people also interested in a place like this?
r/javascript • u/USer0mg • Nov 14 '17
LOUD NOISES A concise(r) comparison of JavaScript Web Frameworks
Angular 2: Never use. Use this and you'll become a legacy fossil. Yikes π¬
React: Good. You'll get a job with this. Very verbose though. Syntax unelegant. Only learn if you want to become a boiler-plate / unit-test cuck π½
Vue: Very concise, easy, and by far the best framework. Not used in industry because using it would vastly increase productivity and cause mass unemployment for web-devs. Good for hackathons π
Thots / impressions? Would love some feedback on my list π³
Shoutout to https://www.reddit.com/r/javascript/comments/7cp4kg/a_concise_comparison_of_javascript_web_frameworks/ for being first.
r/javascript • u/yonatan-kra • Nov 09 '20
How does the even loop work? (video)
r/javascript • u/craigtaub • Jun 17 '18
My most hated JavaScript features β Craig Taub β Medium
r/javascript • u/BeardScript • Dec 30 '24
Your App Should Have Been A Website (And Probably Your Game Too)
r/javascript • u/webuilddesign • Oct 19 '15
Four excellent Javascript Frameworks for developing your own games
r/javascript • u/keraito • Mar 17 '22
Why Did And Donβt You Need To Import React
r/javascript • u/dig0w0 • Dec 17 '25
I built a chess engine + AI entirely in JavaScript
r/javascript • u/toiletjs • Sep 06 '16
[Crockford] PR Nightmares: When Political Correctness Goes Too Far
r/javascript • u/AndyMagill • Jan 21 '26
Building a JavaScript Debugging Utility to Guard Noisy Production Consoles
Creating a function that wrapsΒ console.log()Β gives us a single point of control for all our logging needs, regardless of environment. Here is how I add this capability to any JavaScript project.
r/javascript • u/sonthonaxrk • May 13 '24
AskJS [AskJS] Is it bad practice in 2024 to extend native JavaScript objects?
JavaScript is an awful obtuse language at the best of times, that's slow to add basic features to its standard library because what exists is good enough'. For instance, most languages have Map types in their standard library that support 'popping' a value. While in JavaScript you have to do:
const v = dict[key]
delete dict[key]Extending objects in JavaScript has been said to be bad practice (refer to all the questions from a decade ago on this website). But with new APIs, build systems, the prevalence of TypeScript, is it still such a bad thing? Eg this:
Object.defineProperty(Object.prototype, 'pop', {
enumerable: false,
configurable: true,
writable: false,
value: function (key) {
const ret = this[key];
delete this[key];
return ret;
}
});
var foxx = {'player':{'name':'Jimmie','last':'Foxx','number':3}, 'date':'2018-01-01', 'homeruns':3,'hits':4}
var player = foxx.pop('player')
console.log(foxx, player);As I remember, the initial argument (decades ago) against extending native prototypes was performance, the overhead of cloning a non-native Object.prototype likely doesn't exist anymore due to opimisations in the JIT.
I don't touch frontend code that often, so I find the developer culture quite jarring: where it's both really keen to throw old things away and also extremely conservative; no offence to any FE developers, but I've often found pure JavaScript developers are often unwilling to make sensible trade-offs when engineering things because Dan Abramov said something once.
Being able to extend JavaScript objects would just make my life a lot easier, I just find myself writing really obtuse code to do simple things, like iterate over an object by it's Keys and Values, and then collect it back into an object:
Object.fromEntries(Object.entries(obj).map(...).filter(...))When ideally I'd like to do:
obj
.iterKeyValue()
.map(([k, v]) => ...)
.collectObj()Now I get the issue with globals, but surely there's a better way? Given how popular TypeScript is, why is there nothing like Rust traits as a language extension, where you could do something like this:
trait IterObject<T> {
iterKeyValue(): Array<[string, T]>
}
trait CollectObj<T> {
collectObj(): { [key: string]: T }
}
impl CollectObj<T> for Array<[string, T]> {
collectObj() {
return Object.fromEntries(this)
}
}It wouldn't even be that hard to write a compiler for such a thing as you could naively transform the traits into freestanding function calls.