Recent submissions

Comment · 2 years ago
RawJS-style development (using whatever library to accelerate document.createElement) becomes more appropriate the more divergent your UI is. This is the kind of thing I've found myself working on over the years.
Comment · 2 years ago
RawJS library author here.

What I meant was that it's a small library with a relatively small surface area for bugs, and it's been under pressure from a few different projects for some time now, and it's been quite a while since we have discovered any behaviour I would consider to be buggy.

I'm sorry you took this as a "brag". This wasn't the intention.

Comment · 2 years ago
You can already do encapsulation without them by using TypeScript namespaces. It's sad that namespaces didn't become part of JavaScript.

I really dislike having to include every last identifier that exists in other files. Yes I know that IDEs will sometimes do this for you

I guess the main thing is that they result in your needing a bunch of additional infrastructure (webpack, rollup, bun.js, HMR solutions, etc) just to get your app to run, when TypeScript can already do all this.

Comment · 2 years ago
RawJS author here.

I've been working on said large scale projects for 20 years.

Thank you for your positive encouragement.

Comment · 2 years ago
RawJS author here.

I think it's probably more fair to say that SolidJS is "insanely close" to React rather than RawJS.

Comment · 2 years ago
RawJS library author here.

The main thing RawJS brings is ergonomics when creating element hierarchies of plain HTMLElement instances. I don't see JSX as something that does this very well. A lot of people don't like JSX, because its not JavaScript. There are other libraries that are better document.createElement() that work somewhat similar. RawJS isn't new in this regard, I just believe that it's better executed than the others.

Comment · 2 years ago
Library author here.

I didn't fork anything.

And your link just pr0n'd me in a coffee shop.

Thank you.

Comment · 2 years ago
Author here. It was a tongue-in-cheek comment. Let it slide.
Comment · 2 years ago
Example author here.

I have to say this is a bit disingenuous. You pulled the segmented button component which in a real-world environment would just be a part of a library. You should show the part where it gets used. From my experience, how this ends up playing out in a real-world environment is that these things end up getting boxed into higher-level UI libraries that turn all this stuff into quick function calls.

The vast majority of devs aren't (and shouldn't be) writing their own custom components.

Comment · 2 years ago
RawJS library author here.

Honestly this whole thing blew up so fast I wasn't expecting any of this. The home page for the website isn't even done yet.

Comment · 2 years ago
Repo author here.

You have to admit at least admit that minimizing dependencies is an admirable goal (despite my tougue-in-cheek comments in the readmes I write)

Comment · 2 years ago
Cool. My arm is available if you need a donation.
Comment · 2 years ago
RawJS library author here.

I wish I could upvote your comment a thousand times, after spending literally the whole day so far trying to pour water on a burning building.

Comment · 2 years ago
RawJS library author here.

There's a demo app here: https://github.com/squaresapp/rawjs-sample

(Does that help you? Or do you think it still needs more?)

I'll get on updating the readme shortly.

Comment · 2 years ago
RawJS library author here.

Thanks for +1'ing this idea. I like what that website did and I might need to build something similar.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton