Live data from Hacker News

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

news.ycombinator.com

321–330 of 333 posts

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

#321
post #319

Earlier quoted context omitted.

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

email me, my email in my profile.

There is no email in your profile. You've probably added an email to your HN account, not to your profile.

To make it appear in your profile, add it to the "about:" section in your account settings (the page you go to when you click your own username)

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

#322

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…

That looks a lot like ructe [0], a templating language that I really love. It compiles templates to functions that you can call from Rust using a build script. The functions parameters are accessible from your templates. You can even import and run arbitrary rust code from your app:

    @use any::rust::Type;
    @use super::statics::style_css;
    
    @(name: &str, items: &[Type])
    
    
       
         @name
         
       
       
         @name
         
         @for item in items {
           @item.title()
           @item.description()
         }
         
       
    

[0]: https://github.com/kaj/ructe

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

#323

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…

Why not use something like lmdb instead of writing raw files? It's a performant k/v store and memory mapped. It beats file access syscalls most of the time.

I'm well aware of lmdb and I did consider using it.

It is a reasonable option, yes. It's just mostly unnecessary in my particular case with my architecture, so I went for the simpler option.

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

#324

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 do the same thing with "no SQL db". The only thing I do differently is not make snapshot of the state but rather replay events to achieve the same state as before (or different t if we migrate to different logic). Also all the changes that are possible are typed events. It wont be a problem to save the state like you do but right now our application changes so often that we have to make sure we can replicate the state even if the logic changes.

Would love to talk to you about this.

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

#325

Earlier quoted context omitted.

I'm really looking forward to Hyperscript growing more capabilities. I love that it's very natural-language-oriented. I'm really interested in frameworks like this that could make HTML website creation more accessible for regular people. Watching a friend try to build a website with SquareSpace I was thinking... for the amount of effort she put into learning SS's tools and quirks, she could almost have just learned H…

yep, the tool chain startup costs in front end development are very high unfortunately

I honestly think for the sorts of websites you make in SquareSpace, they shouldn't be. There's no reason that to develop a static website (even with some dynamic elements like a shopping cart) that you should need e.g. a build process to target modern browsers (i.e. consumers in Western economies).

But this is probably me being idealistic. It's why I like things like hyperscript... it feels like we might be _just_ on the cusp of what I'm saying being true.

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

#326
post #309

Earlier quoted context omitted.

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…

Hello, just tried disabling extensions one by one and it seems that https://addons.mozilla.org/en-GB/firefox/addon/rikaichamp/ causes the problem. I can reliably enable/disable the extension to reproduce/fix the problem.

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

#327
post #310

Earlier quoted context omitted.

Fascinating. Would you like a full-time Rust job? :)

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

We're also looking for Rust developers. E-Mail is in my profile. Happy to talk :)

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

#328
post #83

For my personal projects I find particularly satisfying using my own stack: - https://h3rald.com/litestore if I need a RESTful searchable data store and some relatively simple middleware logic. - https://h3.js.org if I need to write a single-page application and I just want to get things done fast. - https://hastysite.h3rald.com if I need a static site generator. - https://min-lang.org for more complex things. It too…

Now I really want to know which operating system you use.

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

#330

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…

> 100% server side rendered > Progressively enhanced > request full HTML through AJAX and diff it into the current page These first three points are actually starting to be "in" again. They're called HTML-over-the-wire[1, 2]. And I am currently looking into implementing them for my site (which uses ASP.NET Core Blazor), because I think this approach is awesome. [1] https://hotwire.dev/ [2] https://alistapart.com/arti…

Have you seen HotChocolate's GraphQL (+Blazor +websockets)? https://www.youtube.com/watch?v=XLOZ3hhJKBE
Post reply on HN