Better HN
topnewbestaskshowjobs
Log inSign up

cryptos

1,795 karma · joined Sep 13, 2012 (14y ago) · 645 submissions

Submissions

comment 3y ago · link · parent

Does anyone actually like the policy language of OPA? Maybe I didn't invest enough time in learning, but I found it a terrible experience and the language to be counter intuitive.

comment 3y ago · link · parent

This phenomena is calls Stockholm Syndrome. https://en.wikipedia.org/wiki/Stockholm_syndrome

comment 3y ago · link · parent

What I really miss is a "web companion" for Thunderbird, basically something like https://roundcube.net/ or https://www.horde.org/apps/webmail, but a bit more powerful and with better UX. I'd like to use a Google Addressbook within such app, for example (there is a completely outdated plug-in for RoundCube). Another important thing would be powerful and fast search.

comment 3y ago · link · parent

The point to tooling was based on the original authors assessments. My own experiences are a bit dated, but I had problems with valid Scala code that wasn't understood by IntelliJ. The reason was probably that this IDE relies on its own analysis and not on the official compiler and nothing has changed in this regard. But I'm happy to hear that you are satisfied so far.

The problem with Java/Scala interop is that you can hardly use idiomatic Scala code from Java, while this no issue with Kotlin.

You're right about patter matching. It is sad that Kotlin doesn't have more to offer. But Kotlin has some nice things not present in Java like named parameters with default values, (limited) reified generics, proper covariance / contra variance, extension methods, first-class functions and what not.

comment 3y ago · link · parent

Maybe Rust is close enough to this ideal imaginary Scala-like language. I'm not a Rust expert, but I really like how Rust combines power with a certain minimalism (not in the Go sense, though). There are, for example, no classes with inheritance in Rust, but traits, whereas Scala has traits an all the Java OOP heritage. Another thing is error handling that is handled with return types in Rust, where Scala has also exceptions from the JVM. Same is true for null, what probably shouldn't exist in any modern functional language. Rust doesn't have it while Scala needs it.

comment 3y ago · link · parent

I was a big fan of the Scala language some years ago and really like the improvements made in Scala 3. But I lost my confidence in Scala and the article is more a confirmation of this assessment than something that would give me hope that I would return to this powerful and beautiful language in the future.

Let me go through some of the points of this excellent write-up.

> However, Java has a very simple type system that is static and well-defined. Scala’s type system is extremely complex and defined only by the implementation, which itself has numerous quirks, edge cases, and of course bugs. Moreover, the semantics, quirks, edge cases, and bugs all vary somewhat between minor versions of the Scala compiler, and are completely different between major versions.

This is a very good summary of why Scala is not a good fit for tool support.

> Perhaps their next-generation editor Fleet is an acknowledgement both of the fact that JVM desktop applications are truly dead

The author probably doesn't know that Fleet is also built upon the JVM!

> The truth is Fleet is built on a reliable, performant and wonderful platform called the JVM.

https://blog.jetbrains.com/fleet/2022/01/fleet-below-deck-pa...

> In short, there are no IDEs for Scala right now with a modern experience suitable for commercial software development, nor any obvious path to a commercial-grade IDE.

Even the best Scala IDE (IntelliJ IDEA) is poor and nothing better is to be expected in the next years. This is basically the point where you could cross out Scala from your short list of programming languages!

Akka, once the most prominent Scala framework, is essentially doomed since the company behind it decided to switch to "Business Source License".

> Thus, every company I have talked to about Akka has told me they are ripping it all out.

The former killer application of the Scala ecosystem no longer drags any new developers into it.

ZIO as a potential Akka (and Spring) alternative is stil not mature, so probably not the reason to switch to Scala.

> It is virtually impossible for Java or Kotlin code to call into Scala code. [...] Scala’s support for newer versions of Java, as well as new JDK or JVM features, lags behind. When the JVM gets value objects, for example, it is quite likely Scala support will severely lag; or as another example, the Scala compiler itself has been known to crash on modern JVMs.

I'd say that Scala is not a good citizen in the Java world. This is problematic in existing code bases. Kotlin is a much better fit there.

Scala Native (LLVM) and Scala.js or WASM are far from production ready yet. One major problem is missing tool support and I can not imagine any responsible software engineer would pick it as the basis for a new critical product. If anything else than the JVM is needed as a runtime, you should probably use somete other language, maybe Rust or Go (or Kotlin?).

> It is absolutely true that Scala 3 is not a perfect language. It is also true that Java is not a perfect language. Yet Java remains backward compatible with the very first Java program ever written, which allows the ecosystem to continuously improve, and which gives companies confidence in investing in the Java programming language.

That is absolutely the core of the "Resurrection". The Scala community was too long focussed on the language itself ignoring all other aspects like tooling and existing code bases. Maybe this is no surprise if you look at Scala's history, but it is a big problem in practice. The best language is worth nothing if everything else is poor compared to the competition (be it Java, Kotlin, Go, Rust or whatever ...). Essentially Scala is the Haskell of the JVM, but the Haskell community decided early on that academics is their focus and that it should stay that way. However, Haskell is therefore a niche language in commercial projects. The Scala community should really make a bold decision for one of the sides, but it should no longer wander between the two camps.

As the author writes, Scala need completely new tooling: a new IDE, a new build tool replacing the horrible SBT, and a new package manager. But who should build it in a sensible time? Who should invest money?

> Does Scala really need 20 JSON libraries, 5 schema libraries, 9 CLI libraries, 4 effect system libraries, and so on? Probably not. We need to consolidate, and rally around strong projects; merge our strengths, cancel our weaknesses.

This assumption is simply not realistic. What was the original motivation to create those libraries? Has anything fundamentally changed? It is not like in a big corporation where you would should down one of two competing projects (like Microsoft did with Atom in favor of VS Code). Just look at the Linux desktops ...

"Worse is better." (https://en.wikipedia.org/wiki/Worse_is_better) seems to apply to Scala very well. Go, which is probably on the other end of the spectrum of programming languages in expressiveness and the type system, is probably a much better bet for most companies. Java is also quite good these days and in any case "good enough" for almost all commercial projects (as long as technical constraints don't require something without a VM). Kotlin is somewhere between Scala and Java, highly productive with world class tooling and a healthy ecosystem. I can not really see in what niche Scala could exist.

So, as sad as it might be, I think Scala has no bright future.

comment 3y ago · link · parent

But than I have bad news for you! Hibernate is also an important part of Quarkus. Anyway, neither Spring nor Quarkus force you to use Hibernate.

comment 3y ago · link · parent

XML is nowhere near "hip" these days, but I think it is underrated. Yes, a lot of bad things have been done with XML, but the technology itself is just fine and sometimes hated for the wrong reasons.

XML is considered overly verbose, which is not always the fault of XML, but of how it is used.

    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.9.2</version>
    </dependency>
Could (in principle) be written as:

    <dependency groupId="org.junit.jupiter" artifactId="junit-jupiter-engine" version="5.9.2" />
What really stands out is XML Schema. It is so much more powerful and precise compared to Json Schema.

See also: http://www.nichesoftware.co.nz/2017/04/25/in-defense-of-xml....

comment 3y ago · link · parent

Prettier for Java is just terrible! It is super slow and buggy. Use the Google Java Formatter instead.

comment 3y ago · link · parent

J2EE? The latest version from J2EE is from 2003. It was called Java EE for some years and it is known as Jakarta EE. Almost everything has changed since 2003.

https://en.wikipedia.org/wiki/Jakarta_EE

comment 3y ago · link · parent

You could use Quarkus as a convenience layer on top of Vert.x.

comment 3y ago · link · parent

Quarkus is more or less in the same complexity league as Spring Boot.

comment 3y ago · link · parent

I developed with Grails some years back and my experience was not that good. It is indeed impressive how fast you can produce a functional first version of an application, but there is price to pay for it. Groovy/Grails contain a lot of (dark) magic which is hard to understand/debug/refactor at times. The generated code (which makes the fast progress possible) needs to be rewritten sooner or later in my experience, so this is not a big time saver in the long run. In my opinion Groovy is just not a good programming language. Kotlin is much better and would also prefer the good old Java.

My personal impression is that Grails lost much of the momentum it had years ago.

comment 3y ago · link · parent

In 2015 I worked in a project where really big servers (lots of RAM, fast SSDs) where needed for large database. The client had preferred AWS, but the monthly bill would have been something like 30K Euros. So, they went with Hetzner for a few hundred bucks a month ...

comment 3y ago · link · parent

Keep that in mind if you have qualms about leaving your company for a higher salary (or more meaningful position) elsewhere. You are just a "human resource". Get used to it.

comment 3y ago · link · parent

I'm wondering why they don't put more effort into such release notes. There was so much effort during the implementation and then they come up with this half-assed page what should be better now. This makes the work invisible. A few screen shots here and there would make the release notes much more appealing. JetBrains makes a good job in this regard: https://www.jetbrains.com/idea/whatsnew/

comment 3y ago · link · parent

Recursion is sometimes very useful. A good example is traversing a file system tree. You could do the same thing with loops, but not as elegant and understandable (once you understood recursion itself, for what you need to understand recursion).

comment 3y ago · link · parent

Maybe some of the issues could be addressed by using another tool like AsciiDoc (or subset from it) or reStructuredText. Another approach could be to define a strict and slightly extended Markdown dialect (everyone is doing it, anyway ...).

comment 3y ago · link · parent

You nailed it! I'm always wondering how someone takes responsibility and then absolutely nothing changes for him personally.

comment 3y ago · link · parent

Why use server resources for sending emails when you can simply lock the access badge? You know, Google lays off people to safe money ...

comment 3y ago · link · parent

That's a useful feature. Maybe you want to create a ticket for it in the KeepassXC issue tracker.

comment 3y ago · link · parent

Yes, but password sharing in a team is no fun. You could use a completely separated password file, but then you might end up with a lot of password files with different passwords that need to be managed in another Keepass file. In theory there are child databases in Keepass, but using them with different clients and cloud sync never worked for me.

comment 3y ago · link · parent

I tested Bitwarden recently and found the UX really disappointing. Some basic operations are so counter intuitive that I felt completely lost. This is definitely not the application I would recommend to non tech-savvy people. 1Password has much smoother UX.

comment 3y ago · link · parent

Yes, this is one of those talks. The book doesn't really cover much more.

comment 3y ago · link · parent

Yes, I read the book and it is quite good. That is not the merit of the publisher, but the merit of the author. You can buy the book (more or less) directly from the author on https://leanpub.com/get-your-hands-dirty-on-clean-architectu... , so PacktPub seems only to be the printing partner.

comment 3y ago · link · parent

A good example for such a bloated book is "Clean Architecture" by Robert C. Martin. The ideas of the book are more or less completely explained in a single blog post or one of his talks (about 1 hour), but the book has a few hundred pages (432) where he delves into history and talks to you about how he used archaic computers 40 years ago (to render himself as a veteran and to underline some point in the main text).

Another book on the same topic (https://www.packtpub.com/product/get-your-hands-dirty-on-cle...) has only 156 pages and is far more useful in practice - but you'll learn less about the authors adventures in history.

comment 3y ago · link · parent

There is almost nothing that would make Windows desirable. It looks a bit different, but there is no compelling reason to switch, so far. Therefore I'm not surprised.

comment 4y ago · link · parent

Yeah, I don't get it. Google happily shows all the useless Stackoverflow copies in the search result and I guess that Google could easily filter such garbage out. But they do not. Why?

comment 4y ago · link · parent

I really like https://github.com/ai/nanoid which is available for a wide range of programming languages. It creates short, random, and URL-safe IDs.

comment 4y ago · link · parent

Twitter is simply the wrong tool to community larger pieces of text. Maybe we can return to blogs, once Elon has finished his job at Twitter ...
1
789
22