HNHacker News
TopNewBestAskShowJobs

simon_void

54 karma · joined July 19, 2018

submissionscomments
simon_void··on Ask HN: Are there any easy Rust tutorials out there?
this is literally the opposite advise that is generally given! Rust isn't considered to be a language that you can simply pick up, code in a style that is idiomatic in another language, and become Rust-idiomatic over time. (People who attempt this normally give up after trying to implement a linked list. Do not try to implement a linked list (or other self-referencial data types, that's advanced stuff in Rust)! So first read the book that try something, and now that Rust is hard to get into (apparently hard for C/C++-folk because they think they already know how this kind of programming, and therefore Rust, has to work). Since it's hard, you know that you're not doing anything wrong, when it feels hard. There aren't really any shortcuts since Rust is made off of several parts that work closely together, so you kind of need at least have heard about it (so read the book first). My advice: in the beginning it's ok to use clone() whenever you run into a lifetime issue. Over time while you get better, your usage of clone will decrease naturally. Check out: Learning Rust the wrong way https://www.youtube.com/watch?v=DL9LANLg5EA to see why the hard way is the fast way (at least in Rust).
simon_void··on Java 21 makes me like Java again
I agree, Go has had generics for a little while (of course they are different from Java's generics because Go's type system is different from Java's type system) and I don't think the parent comment writer was aware of that.
simon_void··on Java 21 makes me like Java again
Familiarity comes to mind. Dart has developed into a nice direction with sound null-safety, extension functions, sealed classes and compilation to native&wasm. (The libaries weren't very mature when I used Dart, not sure if that changed.) I'd pick Kotlin because I'm familiar with it, but if mdhb is familar with Dart, maybe from his work with flutter, maybe from a time where you'd mostly use Dart to compile it to js, then go for it. Dart is a nice enough language to earn my thumbs up. (not that that would be important to anyone.)
simon_void··on Ask HN: What programming languages are you using at $WORK?
server-side Kotlin, Java (which soon becomes Kotlin if I'm in charge of the codebase) and some Rust. Groovy for Jenkins configuration.
simon_void··on RustRover – A standalone Rust IDE
I did for years and it was perfectly fine. But then I got hooked on the additional Spring configuration support that comes with the Ultimate edition But yes, IntelliJ Community edition feels very complete for a lot of programming tasks (my experience is mostly Java/Kotlin projects with a bit of web frontend & Rust on the side). It comes with debugging but not with a profiler (which I still haven't used ) So try the community edition and see if you miss anything! Chances are you won't.
simon_void··on Moonbit: Fast, compact and user friendly language for WebAssembly
how do you intend to handle nulls? allow nulls, nullable types or Option/Maybe type?
simon_void··on Ask HN: Why would you choose to buy good from sites other than Amazon?
How about because you don't want to support Amazon's abysmal work culture: https://www.theguardian.com/commentisfree/2015/aug/22/amazon...
← PreviousPage 3 of 3