News for hackers. Stuff that matters.
Re:Moving from TypeScript to Rust / WebAssembly by zaphar on Thursday July 09, 2020 @09:05AM (#23779731)
The dilemma was always a false choice. You don't need kotlin to get rid of your boilerplate. Java is just a capable of being concise as any other language. Java's verbosity is a cultural artifact not a technical one.
Re:Moving from TypeScript to Rust / WebAssembly by The_rationalist on Thursday July 09, 2020 @11:00AM (#23781006)
No it is not as capable. The cultural verbosity is only a subset of the verbosity in java. The cultural one is great as those long API names allows for standardized and maximal clarity. The one induced by language syntax is accidental.

https://www.mediaan.com/mediaan-blog/kotlin-vs-java Things like state of the art type inference, data classes and lambda syntax, no semi colon and ton of other things allow for reduced syntactic noise.

Re:Moving from TypeScript to Rust / WebAssembly by ed25519FUUU on Thursday July 09, 2020 @10:36AM (#23780732)
Don’t get me wrong. I use java every day and quite enjoy it, but when I compare it to writing in Go or Kotlin, java does sometimes feel a little like meta programming. Especially if it’s a spring app, which is quite common.
Re:Moving from TypeScript to Rust / WebAssembly by eitland on Friday July 10, 2020 @03:25AM (#23789049)
This is obviously a matter of taste but I enjoy Java more when I stay away from Spring.
Re:Moving from TypeScript to Rust / WebAssembly by mumblemumble on Thursday July 09, 2020 @01:56PM (#23782991)
So, technically, you can get rid of a lot of the more egregious clutter with things like Project Lombok.

But I'd argue that, if you need to lean on compiler plugins to do it, it's sort of a rhetorical Pyrrhic victory.

Re:Moving from TypeScript to Rust / WebAssembly by pjmlp on Friday July 10, 2020 @01:48AM (#23788550)
And I would argue that adopting guest languages, alongside the extra complexity that they bring on board regarding extra IDE plugins, more layers to debug (has to pretend to be Java to the JVM), FFI issues (calling coroutines from Java), and creating their own library eco-system is not worth the trouble, beyond some short term feel good.

As long as the platform exists, its main language is the one holding the keys.

Re:Moving from TypeScript to Rust / WebAssembly by runawaybottle on Sunday July 12, 2020 @05:30PM (#23814922)
Can you describe this a little more. How did the verbosity enter the culture?