Live data from Hacker News

I love building a startup in Rust but wouldn't pick it again

propelauth.com

1–10 of 496 posts

Re: I love building a startup in Rust but wouldn't pick it again

#2
I can't get it why people would prefer to add "?" to everything instead of just having exceptions which automate that behavior.

In the bad old days of C there were two kinds of programs: programs without correct error handling, and programs where half the loc are unhappy paths that do what exceptions do... with a huge amount of work.

Today people are repeating the same mistakes of the past, putting a "?" on everything is a lot better than what you had to do in C, but why do that when you can just use a language with exceptions?

It is like somebody showed cavemen fire (exceptions) and they decided it wasn't worth anything and went to go screw around with other things.

Re: I love building a startup in Rust but wouldn't pick it again

#4
The doc about pinning seems really good. But I don’t understand what about it is necessary for something like middleware.

Glad Rust is working for others, and I find it interesting to read about. but I don’t know if I could or would ever use it myself.

Re: I love building a startup in Rust but wouldn't pick it again

#5

I can't get it why people would prefer to add "?" to everything instead of just having exceptions which automate that behavior. In the bad old days of C there were two kinds of programs: programs without correct error handling, and programs where half the loc are unhappy paths that do what exceptions do... with a huge amount of work. Today people are repeating the same mistakes of the past, putting a "?" on everythin…

I prefer having extra work done writing code (adding "?") than having to do extra work reading code. Exceptions are functionally invisible control flow; it isn't clear to the reader that a function may blow up if the exceptions are unhandled.

Re: I love building a startup in Rust but wouldn't pick it again

#7

I can't get it why people would prefer to add "?" to everything instead of just having exceptions which automate that behavior. In the bad old days of C there were two kinds of programs: programs without correct error handling, and programs where half the loc are unhappy paths that do what exceptions do... with a huge amount of work. Today people are repeating the same mistakes of the past, putting a "?" on everythin…

They are not the same. Errors force you to explicitly handle unexpected conditions. Exceptions don't. And "?" is for making error handling not take up half of loc.

Read up on how exceptions work in C++ implementation-wise. It's not pretty.

Re: I love building a startup in Rust but wouldn't pick it again

#8

I can't get it why people would prefer to add "?" to everything instead of just having exceptions which automate that behavior. In the bad old days of C there were two kinds of programs: programs without correct error handling, and programs where half the loc are unhappy paths that do what exceptions do... with a huge amount of work. Today people are repeating the same mistakes of the past, putting a "?" on everythin…

> and programs where half the loc are unhappy paths that do what exceptions do... with a huge amount of work.

This made me laugh harder than makes sense. I'm sure I've been guilty of doing said code, as well.

Re: I love building a startup in Rust but wouldn't pick it again

#9
Rust is a systems language, not a business language.

If you're building an operating system or a software platform, to for it; the robustness will pay for itself in time to fix hard-to-find errors.

But if you're iterating fast to find out what the program should be about to begin with, use a prototype-friendly language instead. With garbage collection.

Re: I love building a startup in Rust but wouldn't pick it again

#10
This is something I hear a lot from other founders.

Spinup time of new engineers is like 6mo+, some devs who can churn out normal CRUD product work just fine in Rails or React ~never become productive with Rust, and hiring skilled Rust devs is just crazy hard (though maybe now that Blockchain/Solidity things have cooled there may be more supply).

Post reply on HN