Live data from Hacker News

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

news.ycombinator.com

301–310 of 333 posts

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

#301
post #121

Earlier quoted context omitted.

I seldom write CSS. I tried tailwindcss on one of my recent projects that required to closely follow a custom design (a portfolio for a graphic designer friend). I like it, with some caveats. Main benefit for me is that I don't need to remember how to write css. 95% of what I need is a shortcut away from tailwind docs. The result is "prettier" than any other website-from-scratch I've done (that's purely on me, not mu…

> add non-default variations (mostly different heights/widths than what it ships with). Check out https://github.com/tailwindlabs/tailwindcss-jit . It got released 3 weeks ago, and supports variable variables in width and height now.

Ah thanks! Will check out.

By the way, the project I linked is actually the same idea as tailwindcss-jit, but made from scratch, and in Clojure.

I'm not sure how easily I'll be able to use tailwindcss-jit since my projects are in clojure (it won't be able to automatically pick up the classes I use), but I might be able to feed them to it somehow.

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

#302

Python + Fast API. It's the minimal web framework I always dreamed of.

you should take a look at sanic https://github.com/sanic-org/sanic It's very popular among people writing async web services in python. It's like 10% faster than fast api.

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

#304

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…

I'm really impressed at how many people have come back with critiques or suggestions about your architecture without actually even knowing what your app does!

So, what does it do?

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

#305
post #132

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…

The post was about 'novel' tools. I really dont see what is novel about your approach

He is using a novel templating library, novel HTTP server, novel JS diffing algorithm ... and this approach has generated more questions than any other on this thread so clearly it is unfamiliar to much of the audience.

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

#306
post #271

Earlier quoted context omitted.

are you also installing the DB within the VPS? I would be needing a web app connecting with MySQL and a bunch of Crons. Also, could I host multiple domains?

I don't use a DB. But sure, you could run both your app and the DB on a single VPS. Yes, you can host multiple domains. You can either point multiple domains to a single IP of your VPS, and configure your web server to use name-based virtual hosting, or you could buy an extra floating IP, assign it to your VM, and use IP-based virtual hosting.

Is it done by hosting guys or I have to do on my own? Also what about backup? I am not quite good at devops/admin stuff hence asking

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

#308

Chiming in here with my latest "weird but cheap" stack: * Use a Trello board as a free CMS. * Write cloudflare worker code to read cards from the board via Trello APIs and render card content as plain old HTML. I use labels as tags for the categories, and have specific formatting in the card descriptions. If an attachment is a YouTube URL, it renders the video as an embed, otherwise it uses image attachments as post…

Nicely done! In pre-COVID-19 times, Atlassian used a similar hack for its catered lunch menus: a hand-updated Trello board stored the menu items, along with some data about which items are vegetarian, gluten free, etc (using labels?), and then that spat out a nicely formatted menu at a well known URL / on some TVs. Little bit of ingenuity goes a long way to avoid having to maintain yet another piece of software :)

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

#309
post #127

Earlier quoted context omitted.

The search works great. Having furigana next to kanji is very useful. Fantastic work! While playing around, I got the play button to work only once and then got this error: Uncaught TypeError: this.previousElementSibling.play is not a function onclick https://jpdb.io/search?q=ごめんあさい#a:1

That's interesting! It works for me, both on Firefox and Chromium. May I ask what web browser and OS are you using?

Firefox 87.0 (64-bit) on Win10. It is reproducible. Disabling uBlock Origin didn't make a difference. Let me know if I can help debug!

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

#310
post #198

Earlier quoted context omitted.

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…

Fascinating. Would you like a full-time Rust job? :)
Post reply on HN