Live data from Hacker News

Show HN: Cot: a Rust web framework for lazy developers

mackow.ski

51–60 of 115 posts

Re: Show HN: Cot: a Rust web framework for lazy developers

#51
post #35

Frameworks that do “everything” are not a good idea. I’m from the Java ecosystem. Spring is the “batteries included” framework there. If you have migrated any real world application to a new major version once, you’ve learned forever that “all in one” frameworks are bad. Please don’t do it! Instead, use scaffolding tools, that give you a head start on creating a new project, using smaller, specialized libs. Also, don…

Every one of the three points you made in your comment has been disapproved by Django.

It's a framework that does (or at least tries) to do everything (or as much as possible), and it's good. Really, really good.

I'm in the process of upgrading an app of mine after months of abandonment, and the process is so smooth it's boring.

Also, Django's ORM is the closest thing to a perfect tool. Sure, it has some dark corners here and there, but Django's ORM has considerably improved my quality of life as a programmer. Heck, I even moved from SQLite to PostgreSQL in an old project, and all I needed to do is to change a couple of config code.

Oh, and Django is both stable and enjoys a constant pace of updates adding useful features practically at every major version.

Re: Show HN: Cot: a Rust web framework for lazy developers

#52
post #50
post #35

Frameworks that do “everything” are not a good idea. I’m from the Java ecosystem. Spring is the “batteries included” framework there. If you have migrated any real world application to a new major version once, you’ve learned forever that “all in one” frameworks are bad. Please don’t do it! Instead, use scaffolding tools, that give you a head start on creating a new project, using smaller, specialized libs. Also, don…

> Also, don’t use an ORM. Just write that SQL. Your future self will be thankful. I have never understood this. I've been using the ORM for twenty years now, it's saved me countless hours, and I've very rarely needed to break out of it. When I did, I just wrote an SQL query, and that was it. What's the big deal?

It depends on the ORM. I've definitely seen a couple (popular, even) where it's worse than nothing at all, if you're comfortable in SQL. But most of them I'd agree, they're handy.

I think some of the blanket "just don't" comes from people who've had to onboard to projects written by teams that didn't understand SQL, but did (sort of) know how to use an ORM, and blame the ORM for allowing those teams to commit their atrocities. But that doesn't make an ORM a bad thing in capable hands.

Re: Show HN: Cot: a Rust web framework for lazy developers

#53
post #35

Frameworks that do “everything” are not a good idea. I’m from the Java ecosystem. Spring is the “batteries included” framework there. If you have migrated any real world application to a new major version once, you’ve learned forever that “all in one” frameworks are bad. Please don’t do it! Instead, use scaffolding tools, that give you a head start on creating a new project, using smaller, specialized libs. Also, don…

Every one of the three points you made in your comment has been disapproved by Django. It's a framework that does (or at least tries) to do everything (or as much as possible), and it's good. Really, really good. I'm in the process of upgrading an app of mine after months of abandonment, and the process is so smooth it's boring. Also, Django's ORM is the closest thing to a perfect tool. Sure, it has some dark corners…

Yeah. I can’t believe the alternatives that people try to glue together compared to Django.

Honestly Django has the best db migrations I have used from any language or library.

When I start a project, even if I am going to access the db from raw sql I start by modeling it in Django just because the rapid changes in data modeling allow me to not even think about it. I just have to think about what I want it to be and not about the changes to get there. Other ORMs or no ORM I am writing alter tables instead of focusing on the data model itself.

Re: Show HN: Cot: a Rust web framework for lazy developers

#54

What's funny is its obviously in early stages, but its homepage doesn't show an immediate code sample. I find it funny because you are trying to appeal to lazy devs but making them work to get to any code samples. The golden rule for making a website / readme for any programming language, web framework (or even GUI frameworks) is to have at least one or more code samples, so people can see what coding in your framewo…

[deleted]

Re: Show HN: Cot: a Rust web framework for lazy developers

#55
post #35

Frameworks that do “everything” are not a good idea. I’m from the Java ecosystem. Spring is the “batteries included” framework there. If you have migrated any real world application to a new major version once, you’ve learned forever that “all in one” frameworks are bad. Please don’t do it! Instead, use scaffolding tools, that give you a head start on creating a new project, using smaller, specialized libs. Also, don…

[deleted]

Re: Show HN: Cot: a Rust web framework for lazy developers

#56
post #2

> The ORM is very lacking at the moment and the automatic migration generator only works with a small subset of possible operations, I would have hoped that by 2025, new projects would have moved away from ORMs entirely. They really are a useless abstraction layer that always brings tons of trouble and usually makes queries harder to write. Looking at the first example in the docs https://cot.rs/guide/latest/db-model…

[deleted]

Re: Show HN: Cot: a Rust web framework for lazy developers

#58

Lots of “Rails but for X” projects exist in various states, for various languages, but have failed to gain traction and stand abandoned. …like, a lot . I thiiiink, fundamentally, it’s a harder-than-it-looks problem space and if you come out with something that’s rough and broken, it never gains enough critical mass for it to become self sustaining. What’s the “pitch”? It’s can’t be “Django but for rust but it’s kind…

[deleted]

Re: Show HN: Cot: a Rust web framework for lazy developers

#59
post #35

Frameworks that do “everything” are not a good idea. I’m from the Java ecosystem. Spring is the “batteries included” framework there. If you have migrated any real world application to a new major version once, you’ve learned forever that “all in one” frameworks are bad. Please don’t do it! Instead, use scaffolding tools, that give you a head start on creating a new project, using smaller, specialized libs. Also, don…

Every one of the three points you made in your comment has been disapproved by Django. It's a framework that does (or at least tries) to do everything (or as much as possible), and it's good. Really, really good. I'm in the process of upgrading an app of mine after months of abandonment, and the process is so smooth it's boring. Also, Django's ORM is the closest thing to a perfect tool. Sure, it has some dark corners…

Agreed, and what you mention here are the main reasons Cot has been strongly inspired by Django. Whether we'll achieve the same level of stability and ORM ease-of-use for the Rust-preferring community, only time will tell.

Re: Show HN: Cot: a Rust web framework for lazy developers

#60

What's funny is its obviously in early stages, but its homepage doesn't show an immediate code sample. I find it funny because you are trying to appeal to lazy devs but making them work to get to any code samples. The golden rule for making a website / readme for any programming language, web framework (or even GUI frameworks) is to have at least one or more code samples, so people can see what coding in your framewo…

Good point! I'll add some code samples soon, thanks!
Post reply on HN