News for hackers. Stuff that matters.
Re:Rust on Nails: A full stack architecture for Rust web app... by yashasolutions on Wednesday April 13, 2022 @03:17PM (#31018968)
I love the name, might not be a real framework but the name is awesome. Someone make it a framework.
Re:Rust on Nails: A full stack architecture for Rust web app... by cies on Friday April 15, 2022 @12:37PM (#31042285)
> might not be a real framework

so what's lacking? i'd say it already beyond rails 1.0 :)

Re:Rust on Nails: A full stack architecture for Rust web app... by turnsout on Wednesday April 13, 2022 @05:45PM (#31020694)
Hopefully someone rolls this into a framework, not just a pattern/architecture. The beautiful promise of Rails is "convention over configuration." In contrast, the workflow in the post involves a heavy degree of configuration and customization.
Re:Rust on Nails: A full stack architecture for Rust web app... by cies on Friday April 15, 2022 @12:39PM (#31042326)
> not just a pattern/architecture

I'd argue that the "pattern/architecture looking frameworks" show a higher degree of loose couple and are thus better.

Re:Rust on Nails: A full stack architecture for Rust web app... by legalcorrection on Wednesday April 13, 2022 @04:37PM (#31019928)
Interesting question whether this violates the Ruby on Rails trademark. When someone made a clothing company called The South Butt, The North Face sued and had a pretty decent case. They settled so no court decision, but seems analogous.
Re:Rust on Nails: A full stack architecture for Rust web app... by throwaway81523 on Thursday April 14, 2022 @12:24PM (#31029123)
http://www.coboloncogs.org is still going strong ;)
Re:Rust on Nails: A full stack architecture for Rust web app... by paulryanrogers on Wednesday April 13, 2022 @06:38PM (#31021196)
Trade dress should only apply where there is a real risk of user confusion. Doubtful anyone would confuse this with ROR.
Re:Rust on Nails: A full stack architecture for Rust web app... by legalcorrection on Wednesday April 13, 2022 @08:55PM (#31022198)
Risk of confusion is the overall standard but that doesn't always mean what you think it does. In a case where it's two products competing in the same market (i.e. two web frameworks, assuming that someone develops this into an actual framework), similarity of the marks is usually enough to establish risk of confusion.

And generally, risk of confusion doesn't just mean that people will literally confuse the two products as identical. It's also about the risk that someone would think there is an affiliation or other connection between the two products.

Finally, this would not be trade dress. It's about similarity of the product name, so just a plain trademark.

Re:Rust on Nails: A full stack architecture for Rust web app... by radicalriddler on Wednesday April 13, 2022 @10:04PM (#31022645)
This is a pretty cool article for web stuff in Rust, definitely getting more in depth than what I know of Rust and Rust Web stuff.

I would like to see something in this article to address the > 1 second index.html response time that the cloak website seems to have. Are there caching options for views?

Otherwise, it looks clean.

Re:Rust on Nails: A full stack architecture for Rust web app... by Valodim on Thursday April 14, 2022 @03:46AM (#31024340)
Maybe I'm missing it, but there seems to be no mention of i18n. That's a pretty integral part of any kind of serious website or one that might become one, but it's for some reason often just skipped.
Re:Rust on Nails: A full stack architecture for Rust web app... by lionside on Wednesday April 13, 2022 @10:27PM (#31022813)
Haha love the name. Sad to see it’s not an actual framework. For those looking for something more akin to a framework, try create-rust-app [1]. I plan to add a templating plugin soon!

[1] https://github.com/Wulf/create-rust-app

Re:Rust on Nails: A full stack architecture for Rust web app... by viccuad on Thursday April 14, 2022 @03:08AM (#31024154)
Nice conventions! Would be cool to have the frontend be wasm-compiled rust instead of typescript.
Re:Rust on Nails: A full stack architecture for Rust web app... by waf on Wednesday April 13, 2022 @10:24PM (#31022782)
I'd love to see an additional section on unit testing -- if we wanted to write some assertions on our async http handler that queries the database, what would that look like? Would we need to structure the code differently in order to test it?
Re:Rust on Nails: A full stack architecture for Rust web app... by Crabber on Wednesday April 13, 2022 @03:06PM (#31018847)
Unless I'm missing something this article just appears to be a tutorial on how to use existing web libraries together, not a framework.
Re:Rust on Nails: A full stack architecture for Rust web app... by danappelxx on Wednesday April 13, 2022 @03:59PM (#31019516)
It looks like the article describes a series of conventions for Nails projects to follow, and I think that still provides value. If it was packaged up for you (or even a template), would it be missing any functionality you would expect from a framework?
Re:Rust on Nails: A full stack architecture for Rust web app... by neura on Wednesday April 13, 2022 @04:03PM (#31019563)
IIRC this is how TurboGears started out.