Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkolaczk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
72 ms
·
781.
▲
by
pkolaczk
7y ago
Depends on the criteria and the group of companies you survey. In our customer survey done mostly among top 100 enterprises it comes at #3 very close to Python (which is #2), and it is much stronger in absolute numbers than C# or JS. And th
782.
▲
by
pkolaczk
7y ago
I didn't say you got benefits of JS GC nor lack of JS GC. And that's the point: you don't get benefits, but you pay the price in lower productivity. Rust is a pleasant language to write in, but it is nowhere as expressive and
783.
▲
by
pkolaczk
7y ago
While Rust is a very cool technology, I don't think it is the best tool for web development. Manual memory management and constant thinking about ownership and memory sharing is additional productivity overhead, and you don't gain
784.
▲
by
pkolaczk
7y ago
I could easily find 11 collection types in Java as well. Any industrial language will have many data structures, because they have different tradeoffs and there is no single container that suits all needs. Scala standard library is a bit in
785.
▲
by
pkolaczk
7y ago
The link you gave confirms what I've said here. > The quote is either wrong or outdated. In the second edition, it's on page 521: "Industry average experience is about 1 - 25 errors per 1000 lines of code for delivered sof
786.
▲
by
pkolaczk
7y ago
Same is true for any other mainstream language like Java, C# or Python. There are many ways to do the same thing, and this is why teams have code style guides and code reviews.
787.
▲
by
pkolaczk
7y ago
But Kotlin doesn't have 100% interoperability! There are features in Kotlin which don't map nicely to Java features. For example you can't call methods with default arguments from Java without resorting to unreadable hacks re
788.
▲
by
pkolaczk
7y ago
To some degree, yes. They allow to write software much faster, but in order to be truly proficient, you need to know a lot of what's in the layers below anyway. And when writing in a high level language, there are many more layers belo
789.
▲
by
pkolaczk
7y ago
My experience tells me the opposite. Scala codebases written by professionals are very readable even to people not knowing Java, but Python. Many analysts use Scala and Python. The only people I met who complained on Scala complexity were g
790.
▲
by
pkolaczk
7y ago
It is only because you are familiar with Java. Scala is much different language so it looks unfamiliar to you. But familiarity is not objective simplicity. Java has many more gotchas and irregularities than Scala, and you just got used to
791.
▲
by
pkolaczk
7y ago
Companions are in Kotlin too. Apply and unapply - I never saw this being a problem even for some new programmers switching from Python. Implicits are kinda harder to use, but this is an advanced feature meant for library writers, not applic
792.
▲
by
pkolaczk
7y ago
No they aren't contradictory. What is the compatibility of a feature that even doesn't exist in Kotlin? How can be the lack of way to call a Scala macro from Java a disadvantage, when Kotlin doesn't allow you to call a macro
793.
▲
by
pkolaczk
7y ago
You're missing the fact that the constant factor differs between languages. The density (bugs per LOC) of memory handling bugs is much different in Rust than in C.
794.
▲
by
pkolaczk
7y ago
Once you learn the Scala way of e.g. parsing JSON or defining any custom parser or working with collections/optionals you don't want to look back. I had to move back to coding in pure Java for a while after coding Scala many years
795.
▲
by
pkolaczk
7y ago
Scala compatibility with JVM is the same as Kotlin's. It is implemented the same way in both languages - they compile to JVM bytecode and as long as you keep away from non-Java features, interoperability is good both ways. If you start
796.
▲
by
pkolaczk
7y ago
Kotlin is less orthogonal than Scala. For example nullability in Kotlin is a special language feature that can't be abstracted nicely, when in Scala it works just as any other monad. Also I don't agree it is like Rust or Closure.
797.
▲
by
pkolaczk
7y ago
Scala doesn't have a ternary operator as well.
798.
▲
by
pkolaczk
7y ago
My limited experience with bare metal programming tells me they are not. This is just a different abstraction layer to learn. Often low level abstractions are much simpler and less broken than high level programming. Even if something goes
799.
▲
by
pkolaczk
7y ago
I believe it could be theoretically done, but I doubt it would be economically viable. Consumer grade electronics is produced with much lower quality standards and designed for much lower physical endurance than aerospace or military electr
800.
▲
by
pkolaczk
7y ago
Scala / Dotty, or its smaller brothers like Kotlin or Swift
801.
▲
by
pkolaczk
7y ago
Just a few minutes ago I had a very similar situation, although at day time. I was going at about 40 kmph straight forward my lane near a bus standing at a bus stop at the right side of the street. At the moment I was passing the bus, a you
802.
▲
by
pkolaczk
7y ago
I don't know why you're downvoted, because I find your comment funny. Reminds me of a similar real fix for a race condition I found somewhere in one of the companies I worked before: Thread.sleep(Random.nextInt(1000));
803.
▲
by
pkolaczk
7y ago
A single strong password you can memorize.
804.
▲
by
pkolaczk
7y ago
Huh, I got 48%. Am I more random than random? :D
805.
▲
by
pkolaczk
7y ago
All other things being equal, megapixels do count. DSLRs have both better quality in terms of dynamic range and noise AND more MP. More MP means more details, less grainy, nicer noise patterns, more cropping flexibility. 12 MP is good for i
806.
▲
by
pkolaczk
7y ago
And the final upgrade will be a round plug allowing infinite number of orientations for plugging it in. What an upgrade! I can't wait to get a charger with such a plug... oh... wait... it happened before: https://www.indiama
807.
▲
by
pkolaczk
7y ago
Some IDEs show type hints on hover, or if type mismatch is detected, they display inferred types inline in code. E.g Intellij Idea does that for Scala and it is really useful. I wish it did that in Java as well.
808.
▲
by
pkolaczk
7y ago
If maintained properly and built from high quality materials, reinforced concrete buildings have lifespan much longer than 80 years. I have a house from 1960s which was modified in 2000s and it is quite funny to see the parts originally bui
809.
▲
by
pkolaczk
7y ago
Also Java (annotation processors) and Scala (macros with full access to type system). Java is considered good enough systems language for some definition of a system - there are successful high performance database engines, web servers, web
810.
▲
by
pkolaczk
7y ago
Even in this case, after a failure of one engine, the other engine(s) are set to a higher thrust, which increases likelihood of their failure.
More ›