Better HN
topnewbestaskshowjobs
Log inSign up

simon_void

54 karma · joined Jul 19, 2018 (8y ago) · 67 submissions

Submissions

comment 3y ago · link · parent

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).

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.)

comment 3y ago · link · parent

server-side Kotlin, Java (which soon becomes Kotlin if I'm in charge of the codebase) and some Rust. Groovy for Jenkins configuration.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

how do you intend to handle nulls? allow nulls, nullable types or Option/Maybe type?

comment 8y ago · link · parent

How about because you don't want to support Amazon's abysmal work culture: https://www.theguardian.com/commentisfree/2015/aug/22/amazon...
123