Live data from Hacker News

Cot: The Rust web framework for lazy developers

cot.rs

1–10 of 71 posts

Re: Cot: The Rust web framework for lazy developers

#5
I'd describe this more as a batteries-included Axum, which is fine on it's own. Don't compare it with Django in this stage, because if I'm being honest, the examples aren't very snappy.

I love the idea and I've toyed around with a Symfony/RoR framework in Rust, but other projects like loco.rs are already doing god's work, so I saw no reason to design another wheel.

Re: Cot: The Rust web framework for lazy developers

#6

I am too lazy to deal with Async at this time.

I do not understand how async/await got introduced into a language with no garbage collector.

The mountains Rust has to move, in invisible magical ways, to get the tokio runtime to work without a garbage collector is deeply disturbing (`pin` anyone?)

I do not understand that if you are happy to have an invisible runtime run your programme why you do not want a garbage collector?

But what gets me most is that asynchronous programming is not hard (harder than it should be in Rust due to the absence of non-blocking file handles....) and async/await makes the easy things a bit easier, whilst making some difficult things very very difficult.

The trade offs are all wrong, it is very popular and widely used.

Reminds me of Microsoft in 1997

Re: Cot: The Rust web framework for lazy developers

#7
> ORM integration

I don't trust a web framework that's opinionated about how I use my database.

It's very hard to get a web framework right, and it's very hard to get an ORM right. Getting both right is nearly impossible. In a situation like this, try to be the best web framework you can be, and then gravitate towards whatever ORM(s) becomes popular.

Take a look at Express for Node.js. It's my favorite web framework because it can both do a lot, and it's very transparent. It's also not opinionated about things like the ORM.

> web framework for lazy developers

Rust is not a language for lazy developers. (Lazy developers won't fight with the borrow checker.) Instead, think more critically about why a Rust developer would need a web framework; and what they need out of it.

Re: Cot: The Rust web framework for lazy developers

#8
post #7

> ORM integration I don't trust a web framework that's opinionated about how I use my database. It's very hard to get a web framework right, and it's very hard to get an ORM right. Getting both right is nearly impossible. In a situation like this, try to be the best web framework you can be, and then gravitate towards whatever ORM(s) becomes popular. Take a look at Express for Node.js. It's my favorite web framework…

[deleted]

Re: Cot: The Rust web framework for lazy developers

#9
post #2

On the website: > Cot empowers you to build production-ready web apps in record time In github: > Cot is currently missing a lot of features and is not ready for anything even remotely close to production use.

To be fair, that was added on Jan 20. A whole lot could have changed in a month ;) https://github.com/cot-rs/cot/commit/19b1d897e0af20616a4afa4...

Re: Cot: The Rust web framework for lazy developers

#10
post #9
post #2

On the website: > Cot empowers you to build production-ready web apps in record time In github: > Cot is currently missing a lot of features and is not ready for anything even remotely close to production use.

To be fair, that was added on Jan 20. A whole lot could have changed in a month ;) https://github.com/cot-rs/cot/commit/19b1d897e0af20616a4afa4...

Too late, it’s probably alteady used in prod at many F500 companies ;)
Post reply on HN