Live data from Hacker News

Ask HN: What novel tools are you using to write web sites/apps?

news.ycombinator.com

221–230 of 333 posts

Re: Ask HN: What novel tools are you using to write web sites/apps?

#221
It is somewhat whacky, but what I'm doing is:

I created a library to have distributed data types directly on the browser [1]. So there are no servers, data is sync'd directly between people's browsers.

Then I created a library to bind react components directly to my distributed data types [2]. So the app is just a static page, hosted anywhere, that works as an SPA.

[1] https://github.com/hyperhyperspace/hyperhyperspace-core

[2] https://github.com/hyperhyperspace/hyperhyperspace-react

Re: Ask HN: What novel tools are you using to write web sites/apps?

#222
I've been using my Datasette tool, originally intended for exploring databases, to build full-blown websites and it's working surprisingly well. It supports Jinja templates and runs on SQLite databases so it's actually a good fit for semi-static sites.

Here's what Datasette looks like by default:

- https://latest.datasette.io

And here are three websites that are actually just Datasette with some custom templates and plugins:

- https://datasette.io (data: https://datasette.io/content code: https://github.com/simonw/datasette.io )

- https://til.simonwillison.net (data: https://til.simonwillison.net/tils code: https://github.com/simonw/til )

- https://www.niche-museums.com (data: https://www.niche-museums.com/browse code: https://github.com/simonw/museums )

They're all hosted on either Vercel or Google Cloud Run at the cost of no more than a few dollars a month.

Re: Ask HN: What novel tools are you using to write web sites/apps?

#223

I am working on two alternative tools for building web apps: https://htmx.org - uses HTML attributes and HTML-over-the-wire for AJAX/Web Socket/SSE interactions https://hyperscript.org - an experimental front end programming language derived from HyperTalk that is event-oriented and that removes the distinction between synchronous and asynchronous code. Both tools are HTML-oriented and are designed to be embedded dir…

beautiful solutions, thank you for ur work

Is there similar solution for manipulating tables and json? I am not a front-end developer, so when i am preparing a poc, it always takes me so long to parse data in a table. Someone must have done the same thing as htmx for tables, or i hope ...

Re: Ask HN: What novel tools are you using to write web sites/apps?

#225
post #187

Earlier quoted context omitted.

This is slightly unrelated but I looked up Quasar and their homepage ( https://quasar.dev/ ) is the first website that literally makes me nauseous just by looking at it. That's a kind of UX problem I didn't even consider to exist a few minutes ago.

Oh my god that's bad. What a dumpster fire. - nauseating animaton - nervous animated chevron that looks clickable but isn't - scroll down to be greeted by a "youtube face" - feature descriptions written in light grey text on bright blue backround with white specks moving through the text This website really doesn't want you to stay.

> This website really doesn't want you to stay

yes, I guess it is pushing you to the docs to try out how great it is :) (I agree that the web page could have been better)

Re: Ask HN: What novel tools are you using to write web sites/apps?

#226
post #191

Earlier quoted context omitted.

Currently 4.29 EUR/month VPS on Hetzner. (Although I have some fun features planned and might need some more processing power so I might upgrade in the future.) They have great AMD-based VMs, 2x perf/$ over Intel. (I've benchmarked.)

How much traffic per month does it cover in this amount? I want to launch some toy projects and confuses whether go for AWS or vps.

I am currently using a bunch of AWS technologies, e.g. AWS EBS, RDS etc. I am also thinking to consolidate all projects to a single AWS LightSail, which offers pretty cheap instances, e.g. 512 Mb, 1vCPU, 20Gb SSD for 3.5$/month.

Re: Ask HN: What novel tools are you using to write web sites/apps?

#227

This partially might be more of a what's old is new again, but here's what I use: - 100% server side rendered - Progressively enhanced (fully works without JS, but having JS enabled makes it nicer) - In select places where I need SPA-like snappiness I use a ~100 line long DOM diffing algorithm (I request full HTML through AJAX and diff it into the current page; if the user has no JS enabled then the page just refresh…

My "old is new" setup is similar in spirit but quite different in effect.

I use rails, postgres, and docker. The only weird thing in the stack is that I use a pretty big base image - the ubuntu base image.

Where I need SPA-like performance, I use react-rails to just do that little bit in React.

Rails has so many batteries included, I just can't imagine being as productive in anything less mature.

Re: Ask HN: What novel tools are you using to write web sites/apps?

#228
post #198

This partially might be more of a what's old is new again, but here's what I use: - 100% server side rendered - Progressively enhanced (fully works without JS, but having JS enabled makes it nicer) - In select places where I need SPA-like snappiness I use a ~100 line long DOM diffing algorithm (I request full HTML through AJAX and diff it into the current page; if the user has no JS enabled then the page just refresh…

What Rust framework/crate are you using for webserver?

My own. (:

In general I was a little frustrated with the state of Rust's web server ecosystem since it has, what I personally call, the NPM syndrome. Pulling a single crate will often pull along with it hundreds of dependencies, and murder your compile times. I know that those dependencies are often necessary, but during development I do not need all of that.

So I made my own.

But of course it's generally a bad idea to run your own HTTP stack in production. So my framework works like this - it can be compiled either in development mode, or in production mode.

In development mode it uses my own crappy HTTP stack and my own crappy async executor and has *zero* dependencies, and compiles super fast. In production mode it uses `hyper` and `tokio`. In both cases the API is exactly the same. So I can have my cake and eat it too.

Re: Ask HN: What novel tools are you using to write web sites/apps?

#229
I've built a tiny pet project [0] that uses JSON Schemas [1] extensively.

Data is defined by the schema and it's used to build a static JSON API on GitHub Pages.

OpenAPI [2] definition for API reuses data schema and you can use OpenAPI Generator [3] to generate clients.

The site uses docsify [4] to display repo's README nicely.

[0] https://beatcracker.github.io/toptout/

[1] https://json-schema.org/

[2] https://swagger.io/specification/

[3] https://github.com/OpenAPITools/openapi-generator

[4] https://docsify.js.org/

Re: Ask HN: What novel tools are you using to write web sites/apps?

#230
Sounds like an incredibly slow way to handle a LAMP stack. On your website you mentioned manually writing the routing and other basic functions a framework covers out of the box.

From your website: "we transfer control to the first PHP file, the router, and begin by importing my little toolbox I've accumulated over the years." If you wanna "get stuff done" that doesn't sound simple or fast.

You don't use any js frameworks? You write CSS by hand and throw out all the benefits of SCSS?! This all applies just to your personal blog. It would not scale.

"It's a total hack achieved by careful output buffering, variable scoping, and function overloading" how is "a total hack" simpler than OOTB functions provided by a PHP framework?

You're even defending ragged-left aligned-right text. In any country where uses are used to reading left-to-right this is the slowest way to read, this has been studied well before the web existed.

Post reply on HN