Re:Rust is a hard way to make a web API
by PhantomBKB on Friday January 15, 2021 @10:25PM
(#25799750)
I've seen my co-workers talk about similar things about Go. They especially like the verbosity. I personally like features that make code smaller, concise and at the same time readable. I'm referring to the syntactic-sugary things like the `for` comprehensions in Scala and `do` notation in Haskell which are pretty much built to do the same thing. Wish Go had a little more of those, it would have made things a little more exciting for me.
Yeah, my experience with go is there is a lot of boilerplate, and the verbosity actually makes it harder to read imo, because the core logic is cluttered with less important details.
I've had the opposite experience. Go is one of my least favorite languages. Out of the dozen or so I know pretty well.
Re:Rust is a hard way to make a web API
by krferriter on Friday January 15, 2021 @11:27PM
(#25800033)
I find some of its syntax choices pretty hostile and the lack of generics is a problem, unless that has been solved already, I'm not sure.
Soonish. Maybe. https://blog.golang.org/generics-proposal
Re:Rust is a hard way to make a web API
by throwaway189262 on Saturday January 16, 2021 @06:12AM
(#25801534)
Classic .NET is slow as hell.
One of our Java backends handles a few thousand requests/second with no real optimization.
The ORM story in Go is terrible compared to Java and C#. Probably due to lack of generics. I won't touch it personally till this changes
For a point of reference, which other languages have you learned?
Re:Rust is a hard way to make a web API
by rad_gruchalski on Friday January 15, 2021 @10:46PM
(#25799845)
I share the opinion of the person you are asking this question to and I can share my list of languages I delivered production systems in: Scala, Erlang, Java, Ruby, Python. In the past life C# (.net on Windows).
Now 4 years of golang. It beats all of them at development pace and ease of integration, especially since modules are working as they should. The killer features of golang: modules, http stuff, channels, ssh in stdlib, fantastic, easy to use crypto.
Where I work we've shipped Go APIs using just the standard library running on like 1/10 of the hardware we were using in the .NET (not core) world and handling 10,000s requests per second. Perhaps that was just because we had really old shitty .NET code though.