r/javascript • u/archivedsofa • Dec 22 '19
r/javascript • u/Strict-Owl6524 • Jun 02 '25
I built a lighter, more natural, and faster front-end framework: QingKuai
qingkuai.devHi everyone! π
Iβm the author of QingKuai β a lightweight, fast, and natural front-end framework. I built it to solve a few pain points I experienced with existing frameworks:
Large compiled bundle sizes
Verbose, unnatural reactive syntax
DOM updates not fine-grained enough
Too much syntax sugar and inconsistent code styles
So I designed QingKuai with these goals:
Ultra-small compiled size β only 20%β50% of other frameworks
Natural reactivity β just plain JS/TS variables
Node-level DOM updates β no extra diffing or overhead
Unified directive-based design
Full TypeScript + VSCode language service support
π Try it out: https://try.qingkuai.dev
π Docs: https://qingkuai.dev
π GitHub: https://github.com/qingkuai-js/qingkuai
Iβd love to hear what you think, and happy to answer any questions!
r/javascript • u/tomdale • Apr 01 '16
The MECH Stack β Solving JavaScript Framework Fatigue
r/javascript • u/scopsy • Oct 03 '21
Join Hacktoberfest 2021 with your squad and contribute as a team to win swag
r/javascript • u/nullvoxpopuli • Apr 27 '19
Ember is faster than React in certain benchmarks.
r/javascript • u/noeldemartin • Jul 13 '26
JavaScript Magic Objects
I just published a blog post to my website about a pattern I've been using for a while that I think you will find interesting (and probably very divisive!): Magic Objects.
class Parrot extends MagicObject {
__get(property) {
return `${property}! ${property}!`;
}
}
const parrot = new Parrot();
console.log(parrot.foo); // "foo! foo!"
console.log(parrot.bar); // "bar! bar!"Basically, I'm borrowing the idea of Magic Methods from PHP and porting them to JavaScript. You've probably seen something like this done with proxies before, but I still like to use some OOP in my JavaScript, and I also came up with a way to make it work nicely with TypeScript.
It may seem a bit over the top at the beginning, but I've been using this for a while and I've found it very useful.
Let me know what you think!
r/javascript • u/Trev4Dev • Dec 21 '21
AskJS [AskJS] unpopular opinion: promises suck
Promises suck and here's why:
promise code:
const x = new Promise((resolve)=>setTimeout(resolve(1),100))
( async ()=> console.log(await x) )()The same code with callbacks:
const awaitX = (resolve)=> setTimeout(()=>resolve(1),100)
awaitX((result)=> console.log(result))The promise code has extraneous information:
new,PromiseandasyncThe callback code has extraneous information in
(result)=> console.log(result)vsconsole.log(await x).
However this is only due to the syntactical sugar built into javascript'sawait. Similar syntactical sugar could and should be implement for callbacks. It's probably fairer to compare this to.then((result)=> console.log(result))which has an extraneousthen
The callback code is simpler than the promise code and has the added benefit of not requiring an entire promise library's code, nor learning how to use promises. All javascript programmers should learn about callbacks, irrespective if they use promises or not.
When I started my javascript journey, I spent a lot of time learning and trying to understand promises as promises was touted as the way to go. Only after I mastered them, did I start to learn about callbacks - mainly due to functional programming. Once I understood callbacks, I realised promises are not required and do more harm than good. The same way classes are not required.
One argument that will be made for promises is that they force more structure than callbacks. However if structure is the goal, then there are other simpler and better ways to achieve that outcome. For example a simple naming convention could be used to identify all promise-like callbacks. Or a typescript type could be used to standardise resolve and reject callbacks.
Promises seek to reduce the complexity of infinity by providing limited structure, however after implementing promises infinity remains and so they solve nothing, but they do introduce a raft of additional problems and complexity.
A far better solution to the problem of infinity, is to educate developers to understand javascript and how to use it well, clearly and concisely. And as callbacks are fundamental to javascript it's far better to learn callbacks than promises.
Promises taught me a lot about asynchronous programming, but I feel if I had invested equivalent effort into understanding callbacks first, I would have arrived at the destination sooner, with far less frustration on the way.
Anyway, that's my opinion, I'm sure not everyone will agree - but I thought I would share it for junior devs and encourage them to understand callbacks before learning promises as I wish someone had told me that.
r/javascript • u/[deleted] • Jun 28 '22
AskJS [AskJS] How did javascript.info helped you learn javascript and implement it in real world?
I just wanna ask those people who used javascript.info
in the past on how did it helped them learn js. I'm basically new to it, i just finished learning html/css for 2 months now i wanna deep dive on js.
r/javascript • u/[deleted] • Mar 14 '21
I build a front-end "framework". Nothing fancy. Just plain old HTML and ES
r/javascript • u/ct_author • Nov 13 '21
JavaScript: Four Differences between var and let
r/javascript • u/wasay-inc • Oct 23 '26
AskJS [AskJS] :Recently got a PR merged into TanStack Query
I recently got a PR merged into TanStack Query's ESLint plugin to fix a false-positive issue in the no-unstable-deps rule
.
The existing tests missed a few JavaScript edge cases, so I fixed the underlying issue and added regression tests.
It's a good reminder that passing tests don't always mean every edge case is covered. Sometimes the real work is finding what the tests missed.
How do you usually spot gaps in test coverage when the existing suite is already passing?
r/javascript • u/cinlung • Mar 20 '20
A great tool to know about the current world information on corona virus record. Very useful and created by a high school student. Made from javascript and maybe other, but the js is stunning!
r/javascript • u/AlxandrHeintz • May 12 '13
Introducing Augmented JavaScript
r/javascript • u/[deleted] • Feb 16 '16
Angular: Angular 1.5.0 released!
angularjs.blogspot.hrr/javascript • u/bobert99 • Nov 30 '17
[Case Study] Why we chose Vue to build our desktop messaging app
r/javascript • u/gst • Jan 29 '09
Three real good reasons to use JQuery, from a Mootools lover
sweetvision.comr/javascript • u/checksinthemail • Nov 18 '10
IE 9 preview 7 - finally beats Chrome and Mozilla in JavaScript benchmarks
r/javascript • u/magenta_placenta • Nov 04 '21
Angular v13 is now Available
r/javascript • u/[deleted] • Aug 10 '18