r/javascript • • Dec 22 '19

Why Svelte won’t kill React

Thumbnail
medium.com
80 Upvotes

r/javascript • • Jun 02 '25

I built a lighter, more natural, and faster front-end framework: QingKuai

Thumbnail qingkuai.dev
10 Upvotes

Hi 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 • • Apr 01 '16

The MECH Stack β€” Solving JavaScript Framework Fatigue

Thumbnail
medium.com
17 Upvotes

r/javascript • • Oct 03 '21

Join Hacktoberfest 2021 with your squad and contribute as a team to win swag

Thumbnail
hacksquad.dev
0 Upvotes

r/javascript • • Apr 27 '19

Ember is faster than React in certain benchmarks.

Thumbnail
twitter.com
3 Upvotes

r/javascript • • Oct 11 '15

Inside the Dev Team Death Spiral

Thumbnail
medium.com
0 Upvotes

r/javascript • • Sep 10 '24

Use react hooks in classes

Thumbnail
github.com
3 Upvotes

r/javascript • • Jul 13 '26

JavaScript Magic Objects

Thumbnail
noeldemartin.com
11 Upvotes

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 • • Dec 21 '21

AskJS [AskJS] unpopular opinion: promises suck

0 Upvotes

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, Promise and async

  • The callback code has extraneous information in (result)=> console.log(result) vs console.log(await x).
    However this is only due to the syntactical sugar built into javascript's await. 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 extraneous then

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 • • Jun 28 '22

AskJS [AskJS] How did javascript.info helped you learn javascript and implement it in real world?

5 Upvotes

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 • • Mar 14 '21

I build a front-end "framework". Nothing fancy. Just plain old HTML and ES

Thumbnail
github.com
5 Upvotes

r/javascript • • Nov 13 '21

JavaScript: Four Differences between var and let

Thumbnail
codetopology.com
28 Upvotes

r/javascript • • Oct 23 '26

AskJS [AskJS] :Recently got a PR merged into TanStack Query

0 Upvotes

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 • • Jan 17 '14

JavaScript: The Right Way

Thumbnail
jstherightway.org
0 Upvotes

r/javascript • • Mar 14 '19

Why I Write CSS in JavaScript

Thumbnail
mxstbr.com
0 Upvotes

r/javascript • • 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!

Thumbnail
ncov2019.live
0 Upvotes

r/javascript • • May 12 '13

Introducing Augmented JavaScript

Thumbnail
blog.alxandr.me
0 Upvotes

r/javascript • • Feb 16 '16

Angular: Angular 1.5.0 released!

Thumbnail angularjs.blogspot.hr
0 Upvotes

r/javascript • • Nov 30 '17

[Case Study] Why we chose Vue to build our desktop messaging app

Thumbnail
medium.com
0 Upvotes

r/javascript • • Jan 29 '09

Three real good reasons to use JQuery, from a Mootools lover

Thumbnail sweetvision.com
0 Upvotes

r/javascript • • Jan 06 '15

Bubble Sort Algorithm in JavaScript

Thumbnail
github.com
0 Upvotes

r/javascript • • Nov 18 '10

IE 9 preview 7 - finally beats Chrome and Mozilla in JavaScript benchmarks

Thumbnail
blogs.msdn.com
0 Upvotes

r/javascript • • Nov 04 '21

Angular v13 is now Available

Thumbnail
blog.angular.io
0 Upvotes

r/javascript • • Aug 10 '18

I wrote an article about @VueJS and why it's so good

Thumbnail
prismic.io
0 Upvotes