Live data from Hacker News

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

news.ycombinator.com

311–320 of 333 posts

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

#311
post #174

Earlier quoted context omitted.

I'm not trying to impress anyone, I just want to solve business problems quickly, get paid, and go golf. I firmly believe that high productivity can be achieved by using boring technology. https://expatsoftware.com/articles/happiness-is-a-boring-sta...

Here is transcript of a talk about that same idea: http://boringtechnology.club/

Cheers. Found a recording of the talk: https://www.youtube.com/watch?v=wUmx-dlYS34

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

#312
post #306

Earlier quoted context omitted.

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

You have to do it yourself. But it's not that hard. The easiest way of hosting multiple sites is probably to just assign multiple IPs to a single VM and simply run multiple servers simultaneously, each listening only on a single IP.

As far as the backup is concerned, Hetzner has the option of handling it for you for 20% extra money.

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

#313
post #310

Earlier quoted context omitted.

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? :)

...are you offering one? (: If so I would definitely be interested.

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

#314
post #309

Earlier quoted context omitted.

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!

Okay, so this is indeed very interesting. I just launched the same version of Firefox in a Win10 VM, and it works there too. So it might be one of your extensions, maybe? (I use uBlock Origin too, so that's not it.)

Could you try these things out please?

1. Try disabling all of your extensions and try again. (IIRC by default private mode disables all of the extensions, so that should be an easy way to do it.)

2. Can you open the dev console and try running something like this in it?

    document.querySelector("audio").play()
Based on your original error either the `previousElementSibling` is not an `` tag, or for some reason audio tags don't have a play method, so it'd be good to know which one it is.

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

#315

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?

Well, to me it's more of a "no one I know develops like this; tell me more" kind of a thing rather than a normal critique of my architecture. (:

I've posted this link in another comment already, but this is one of my projects where I'm using this approach: https://jpdb.io

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

#318

Earlier quoted context omitted.

Which Rust templating tools are you using for server side HTML rendering?

I have my own crate for template rendering. I tried various existing ones but I ended up not liking any of them for one reason or another, so I've made my own. Some of the features are: * Fully static. It's compiled into Rust code instead of being dynamic. (I wanted to be able to use normal Rust code in my templates instead of a special template-only language, and I wanted the extra speed.) * Built-in automatic HTML…

I love the overall simplicity of your approach. Any chance of sharing your template rendering crate with us?

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

#320
post #306

Earlier quoted context omitted.

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

In my opinion this question seems like a good reason to get your feet wet just a bit. Just gaining some understanding of how things work under the hood is worth it even if you end up never using it professionally.

The basics of operating a (virtual) server to run your apps on could be seen as similar to learning the basics of cooking food. You can eat fairly well for the rest of your life without knowing a thing about it but if you just spend a single hour every week preparing your own food, you will become more familiar with the food itself. You would larn what individual flavors you prefer and where they come from, and you'll even be able to survive on less money if you would need to, or even survive more easily in a potential crisis where home delivery isn't an option.

If you spend an hour every week to learn some system administration (what people call "ops" nowadays) you'll be able to realize when you're being overcharged for simple services, feel the power of building a larger part of your stack yourself, play with new things, etc. Running multiple apps on a single host with proper backups is a trivial problem, especially if you know how to code, and in my opinion these things shouldn't be "left to the devops team" or seen as "IT stuff".

Not that long ago most developers had to know what environment their software ran in as part of their job, and despite many attempts to move away from it, this is still mostly true even if we have switched from the Linux CLI to cloud dashboards, CI/CD pipelines and Terraform scripts...

Post reply on HN