Better HN
topnewbestaskshowjobs
Log inSign up

cryptos

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

Submissions

comment 6y ago · link · parent

How is the performance compared to Cypress (which is limited to Chromium)?

comment 6y ago · link · parent

I have the same experience. Once you do more with Scala than "better Java" it is easy to create a mess full of "try to be clever" code you will regret a year later.

It is really hard to become a good Scala programmer, but it is not hard to become a good Kotlin programmer. All the little things that make Scala theoretically better are not worth the learning effort. In Kotlin you get 80 % for 20 % of the effort.

Scala is separated in subcultures. Some developers use it as "Haskell for the JVM" and other as a "better Java", or something between. That makes hiring and picking up existing projects hard.

Tooling is another weakness of Scala. Scala IDE (Eclipse) is more or less dead. IntelliJ with the Scala plug-in is ok, but the Kotlin support is much better.

comment 6y ago · link · parent

I'm on Reddit, but I would probably have never signed up if I were not able to read comments without login.

comment 7y ago · link · parent

Light themes are superior from a usability standpoint: https://ux.stackexchange.com/questions/53264/dark-or-white-c...

comment 7y ago · link · parent

I tried DocBook a long time ago. Back then the tooling was so terrible that I gave up. However, the XML syntax made sense to me, but was not fun to write.

Today I'm using AsciiDoc with AsciiDoctor. The AsciiDoc syntax is as pleasant as MarkDown, but much more powerful and more consistent. AsciiDoc can be converted to DocBook if needed, but I've never needed this possibility, because all I need is PDF and HTML output.

comment 7y ago · link · parent

It would be nice if the Python web site would be mobile friendly.

comment 7y ago · link · parent

What Java framework (for concurrency) do you use?

comment 7y ago · link · parent

I mean primarily financial support, but I don't want to exclude a more direct contribution in the question. However in my concrete case it would be easier to donate than to engage directly.

429.

Ask HN: What organization to support to prevent climate apocalypse?

3 points · by cryptos · 7y ago · 3 comments

comment 7y ago · link · parent

After reading "Functional architecture is Ports and Adapters" [1] and using ORMs (Hibernate) for some time now, I'm wondering whether a functional approach wouldn't be better in many cases. With such an approach you would have the following flow:

HTTP adpater receives request -> object is loaded from database as immutable object -> business operation creates a modified copy -> DB adapter persists the new object.

The last step could be improved if the DB adapter would look what was actually changed. Since everything is immutable it is as easy and fast as comparing references (like React does btw). This works even with Domain Driven Design, what is usually used with mutable entity objects.

[1] https://blog.ploeh.dk/2016/03/18/functional-architecture-is-...

comment 7y ago · link · parent

There was a funny story going on in 2005: Ferrero changed the face on the packaging of the popular "Kinderschokolade" and many buyers didn't like the new face and were hence calling the boy "Kevin". There was even a campaign "weg mit Kevin" with 20.000 supporters, which handed over a petition to Ferrero.

https://www.spiegel.de/wirtschaft/kinderschokolade-wuetender...

Translation:

https://translate.google.com/translate?sl=auto&tl=en&u=https...

comment 7y ago · link · parent

I wonder if a CO2 tax would fix that, too...

comment 7y ago · link · parent

There is no JVM part of Kotlin coroutines, it just uses plain JVM features as every other Java program.

comment 7y ago · link · parent

What is called continuations in Java is available as "coroutines" in Kotlin, today. Both terms means more or less the same, from a programmers point of view, actually Continuations are part of Kotlins coroutines.

https://kotlinlang.org/docs/reference/coroutines-overview.ht...

comment 7y ago · link · parent

This is not a balanced argument. Spring offers a lot of helpful things and can increase productivity. But it also has it's downsides like when something is not working because all the magic behind the scenes, making you more productive normally, just doesn't work in your case.

If I look at Go code, for example, I can hardly bear all the tedious repetition and dumb code! There is hardly any magic in Go, but the downside is, that you have to write every `filter`, `map` and `reduce` by hand.

comment 7y ago · link · parent

This slide deck might be nice as a wallpaper for a presentation, but it is not a good read.

Is there a blog post targeting readers in the web?

comment 7y ago · link · parent

As far as I know Google is supporting JetBrains in making the Kotlin compiler faster.

comment 7y ago · link · parent

I've always found the .io domain somewhat laughable for tech companies. Maybe its popularity was fueld by Google's I/O conference.

But except of legal affairs the climate crisis is the next reason not to rely on this domain. If the humanity continues its course the ".io island" will soon be under water.

comment 7y ago · link · parent

Google has a track record of "uuups, it wasn't intentional" issues.

comment 7y ago · link · parent

I'm not a Rust "fanboy". I'm not even a Rust developer, but I know the language somewhat. I've had my time with Go, but wasn't satisfied with it. Some things I didn't like in Go are better solved in Rust (generics and error handling for example).

But thanks for replying seriously, even if you doubted that I wasn't only trolling (what was not my intent).

comment 7y ago · link · parent

My thought was a bit deeper than that. Actually I wonder why are not more companies sponsoring PostgreSQL to get the features they need instead of paying Oracle?

comment 7y ago · link · parent

Kotlin is also no longer in the hands of a single company. https://kotlinfoundation.org/

comment 7y ago · link · parent

Why not? I consider Rust to be superior in almost all respects apart from learnability and compile times. So if these two downsides are not more relevant than the downsides of Go (in a certain context), I don't see any reason why Go could not be replaced by Rust.

comment 7y ago · link · parent

This could be done, of course. But how likely is such an approach to succeed? It would effectively create a new language and in turn to a new ecosystem. Why not just use a different language (Rust comes to mind) then?

comment 7y ago · link · parent

Actually there are relatively few real (TM) open source projects driven by the community, at least if you look at important projects. Many open source projects are just commercial projects driven mainly by a single company. Look for example at Redis, MongoDB, MySQL, and Elasticsearch. They follow exactly the model described in the article. Technologies like these could have been developed by a community, too, but it is hard to form such a community and keep it alive.

For a community-driven project from the size of a database some serious sponsors would be needed. Good examples are Rust, Linux, and PostgreSQL. I wonder why so many companies are happily paying Oracle (and the likes) tons of money instead of sponsoring an open source project like PostgreSQL.

comment 7y ago · link · parent

What Alan Key describes reminds me of actor systems like Akka. Each actor is like a "cell" isolated from other "cells". An actor receives messages of arbitrary types ("messaging" and "late binding") and can do what it wants and whenever it wants. Actors can form a hierarchy to handle errors. This again is much like how cell handle injuries.

Interesting is that the Akka community put a lot of effort in implementing statically typed actors. But as far as I know (I'm not quite up to date) there is no final solution to it. It is controversial if it is even the right thing to do.

comment 7y ago · link · parent

I feel depressed if I read something like this. It is possible that there would be no human live in only 100 years or so! We would need a revolution right now.

Do you have any hope that the humanity is able to turn it around?

448.

Future UI Design Without Buttons(toptal.com ↗)

2 points · by cryptos · 7y ago · 1 comment

comment 7y ago · link · parent

The problem with orphan CSS is adressed very intuitively in Vue.js with single file components (HTML + JavaScript + CSS).

https://vuejs.org/v2/guide/single-file-components.html

comment 7y ago · link · parent

I think it would be far more manageable to just plant more trees. They were optimized for millions of years to pull CO2 out of the air and store it in the form of wood which is a fantastic material by the way. And trees are not only a simple but a scalable solution.
1
141516
22