1,795 karma · joined Sep 13, 2012 (14y ago) · 645 submissions
comment 2y ago · link · parent
Compare that with Kotlin where you have top-level functions, so that `main` is just like any other function.
comment 2y ago · link · parent
I understand why restricting the possibilities with an external DSL might be a good idea, but I consider Rego to be to restricted. I mean, in the the a policy is just a function saying basically "yes" or "no" (I know, it's not that simple with OPA, but it boils down to access yes/no, anyway).
comment 2y ago · link · parent
https://bitwarden.com/blog/accelerating-value-for-bitwarden-...
comment 2y ago · link · parent
comment 2y ago · link · parent
129.
A Splendid Scala Journey(degoes.net ↗)
1 points · by cryptos · 2y ago · 1 comment
comment 2y ago · link · parent
That doesn't really sound like security best-practices would be applied. Why don't they use a credential store?
comment 2y ago · link · parent
So, this cite applies to Go: “Everything should be made as simple as possible, but no simpler.”
comment 2y ago · link · parent
To enter the cloud market they are pretty late to the game ...
comment 2y ago · link · parent
comment 2y ago · link · parent
That doesn't make sense at all! Why should one do it without a need? To have NullPointerException with "primitive" types, too?
> Kotlin ecosystem is severely lacking compared to Java. FAANG has first-class support and commitments to Java, like providing JDK with multi-year support commitments.
It is not really needed to provide JDKs or something else especially for Kotlin, because Kotlin basically just uses the JVM (at least if you use the JVM as a target).
> To this day, there are significantly fewer Kotlin developers than Java developers.
Yes, that is probably true. Although almost every Android developer should know Kotlin these days and there are quite a few them. But even if a developer doesn't know Kotlin at all, it is relatively easy for a Java developer to learn it. In my experience it a takes a few days to a few weeks to be at least as productive as with Java (even not all Kotlin features are learnt in this time).
> Lack of progress: Compared to Java lately (e.g., records two years ago, pattern matching, and VT release this year), Kotlin has been stagnating in delivering the big features that would bring us (Infobip) value over alternatives.
Here, I agree. Some years ago I was super excited about Kotlin and couldn't wait for a new release. These days new releases are mostly boring. Maybe the most important stuff is simply done, but then there are enough interesting ideas to improve it (real pattern matching, meta programming, union types, ...). But JetBrains and Google decided that it is more important to improve the fundamental infrastructure first and decided to create a new, faster compiler (K2). As boring at it is feature-wise, I think it is a wise decision, because every project would benefit from it. The plan is to add new features, once the compiler is ready.
comment 2y ago · link · parent
> What to submit? [...] anything that gratifies one's intellectual curiosity.
https://news.ycombinator.com/newsguidelines.html
Maybe it's just me, but I don't feel very inspired on an intellectual level by news about a patch version ;-)
comment 2y ago · link · parent
comment 2y ago · link · parent
for (item in collection) {
...
}
list.map { it + 1 }
fun printAll(vararg strings: String)
constructor(...)
companion object
I like the `for..in` which reads like plain English. Or `vararg` is pretty clear - compare that to "*" and the like in other languages. Or `constructor` can not be more explicit, there is no need to teach anyone that the name must be the same as the class name (and changed accordingly). Same is true for companion object (compare with Scala).comment 2y ago · link · parent
Just compare Java streams with how collections are handled in Go and scratch your head how someone can come up with such a restricted language in this century.