Earlier quoted context omitted.
To me Rust is more like "C++ done right". It's massively bigger, more complicated and slower to compile than C. The C ABI is also the de-facto lingua franca for language interop, something that's not easily achievable with Rust or C++ (or Go, for that matter).
Have you tried Rust? The ABI in Rust is doable: https://people.gnome.org/~federico/blog/rust-stable-abi.html And it doesn't feel like C++ when writing it. The syntax and language features are nice and feel modern. It does require more attention because of what it compiles down to, but the compiler is there to help with it. I haven't been excited about any programming languages in years, but Rust has certainly taken m…
Learn Go in five minutes
81–90 of 137 posts
Re: Learn Go in five minutes
#82Earlier quoted context omitted.
My main small day-to-day usability gripes with C are lack of type inference, lack of destructors and terrible ergonomics for error handling. Go solves two out of three, but it really dropped the ball hard on error handling which is very disappointing IMO. Things like generics and garbage collection involve some deep tradeoffs, so I get Go's take on them, even if I don't necessarily agree with it. On the other hand IM…
I agree that the error handling is terrible, but I'm not sure how much better it could be without generics. For me, the gold standard in error handling is Rust, where the type system simply does not allow you to ignore errors. This means that the existence of error handling is checked at compile time. Of course, this doesn't mean your error handling is _good_, but I think that's beyond any language design to enforce.…
Re: Learn Go in five minutes
#83Earlier quoted context omitted.
I agree. Go feels like it's aimed at creating applications that run at a level above where C traditionally runs while keeping the pared down feature set of C, and it just doesn't work well imo. I loved playing with Go, but eventually it feels like you're conditioning yourself to be ok with a lot of "bad" code. Tons of repetition, tons of boilerplate by other names. It's like the simplicity gets in the way of itself.…
The last couple of years are showing that Go delivers, it's pretty easy to find dozen of "real" software written in Go that are weidly used.
It's proponents are so quick to go defensive that no one is capable of reading any complaint in an even mildly charitable light.
I mean I shouldn't literally have to say "I'm not saying you can't use Go for real work before someone flies at me." When talking about a language as widely used as Go right? Like that's common sense!
And yet of course I'm getting replies that do exactly that because of how darn defensive people need to be about it.
Re: Learn Go in five minutes
#84Something it's missing in the CS teaching industry is material (and probably a method too) for experienced programmers who want to learn a new language. It's so hard to find resources to learn the spirit and philosophy behind a language and at the same time learn the syntax without spending time on basic stuff like declaring variables or functions.
I do still have trouble with standards or other huge documents, e.g. the Arm Architecture Manual. The kind of documents that are huge, yet assume a lot of previous knowledge so a lot of googling has to be done.
Re: Learn Go in five minutes
#85Learning Elixir was tough for me until I found Dave Thomas' "Elixir for Programmers" where he skipped all of the basic stuff that every programmer is assumed to know and went right to what makes Elixir unique and how to leverage it correctly. (https://codestool.coding-gnome.com/courses/elixir-for-progra...)
I have been hunting for the same thing for the Go language for years because frankly I haven't been able to grok the appeal. I am hoping to find a 'Go for Programmers' one day. I asked on Reddit a while back and was pretty much handed the "what are variables" document.
Re: Learn Go in five minutes
#86No offense to the author here ... but I need to vent some personal frustration. Every tutorial goes through these exact same motions for learning a new language. It sucks! Programmers can figure out what a variable is, or how to use an array or a map. Those things really don't change a whole lot between languages. What about how to import code from different modules? Best practices for organizing code? How your langu…
Re: Learn Go in five minutes
#87No offense to the author here ... but I need to vent some personal frustration. Every tutorial goes through these exact same motions for learning a new language. It sucks! Programmers can figure out what a variable is, or how to use an array or a map. Those things really don't change a whole lot between languages. What about how to import code from different modules? Best practices for organizing code? How your langu…
Yes! I'm always tempted to ask "How is this different or better than XYZ lang?"
I don't have the time/inclination to learn every new fangled language that comes by, so it would be nice to have an easy way to understand what scenarios any given language is best suited for.
For example, every time I read about Go, I'm left wondering: How is this better than C or Java? Presumably it's better in some ways I'm not perceiving, otherwise why would it be built and used?
Re: Learn Go in five minutes
#88Earlier quoted context omitted.
Someone make "Learn Haskell in 50 seconds"
[Ancient Aliens Guy Picture Here] FUNCTIONS I've gotten it down to about two seconds here....
Re: Learn Go in five minutes
#89No offense to the author here ... but I need to vent some personal frustration. Every tutorial goes through these exact same motions for learning a new language. It sucks! Programmers can figure out what a variable is, or how to use an array or a map. Those things really don't change a whole lot between languages. What about how to import code from different modules? Best practices for organizing code? How your langu…
Re: Learn Go in five minutes
#90No offense to the author here ... but I need to vent some personal frustration. Every tutorial goes through these exact same motions for learning a new language. It sucks! Programmers can figure out what a variable is, or how to use an array or a map. Those things really don't change a whole lot between languages. What about how to import code from different modules? Best practices for organizing code? How your langu…