Better HN
topnewbestaskshowjobs
Log inSign up

cryptos

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

Submissions

comment 4y ago · link · parent

While I consider it a bit unrealistic to follow this approach in a big style, I like the idea. However, I would suggest to use asciidoc instead, since markdown is a bit to constrained. For examples image captions or tables are not possible in markdown.

comment 4y ago · link · parent

Why isn't there more competition? Or, as Jeff Bezos would say: "Your margin is my opportunity."

comment 4y ago · link · parent

If this statistic is true, it would mean that Google's Android will have a poor future - at least in the USA.

comment 4y ago · link · parent

Can the taskbar be moved to the left side, so that it is vertical?

comment 4y ago · link · parent

For me even the top bar on macOS doesn't make that much sense, since the menu might be far away from the related window. This UI concept is not a good fit for large screens (and was never intended to be used with such screens, since the design is from stone age).

comment 4y ago · link · parent

What do you mean exactly with "the last release"? I think Kotlin is on a good way and JetBrains is investing in the right things like the new compiler. There are also a lot of low-hanging fruits in the Kotlin YouTrack issue tracker, but then again I accept that is better to focus on fundamental things like the compiler where every developer profits from.

comment 4y ago · link · parent

JetBrains employs 70 people working on Kotlins core.

> Today, 70+ people work on the core Kotlin project team at JetBrains

https://kotlinlang.org/assets/kotlin-media-kit.pdf

Plus a bunch of Google employees working on Kotlin stuff like the new K2 compiler.

comment 4y ago · link · parent

I was part of a team that processed really large files (hundereds of GB) in an Akka cluster. At that time Akka seemed like a clever choice to us, since we were Scala enthusiats and Akka was the framework of the day, but it took us many weeks to master (more or less) Akka. We could have done the same in a more robust and manageable way with Spring Batch in a fraction of the time.

Akka had a really steep learning curve for doing relatively boring things. Technically it was quite interesting, a from a business perspective it was a desaster.

comment 4y ago · link · parent

A good middleground is Kotlin. You get some of the nice features / syntax from Java without the problems. While Scala is actually a way more powerful language, Kotlin is more than good enough for most real world tasks and the tooling is so much better.

comment 4y ago · link · parent

That was meant as a foundation to build some interview questions that might filter out the worst of the crowd.

comment 4y ago · link · parent

At least Google was so honest to remove "Don't be evil." from its code of conduct.

comment 4y ago · link · parent

The only argument why fast typing could be important that comes to my mind is that you're less distracted (from thinking) if you can type fast without looking at your keyboard.

If you're payed by lines of code, than it's a different story, of course ;-)

comment 4y ago · link · parent

It is somewhat funny that the Twitter CEO uses a picture to circumvent the character count limit of his own service.

comment 4y ago · link · parent

At least it is Helium and not only hot air!

comment 4y ago · link · parent

Yes, I know (although they promoted it as a "systems language", but it was not really defined what that should mean in the beginning), but it is a restriction, you don't have in Rust. Basically, Rust can do everything Go can do, but not the other way around. That _might_ help to make a decision for a language.

comment 4y ago · link · parent

Rust is the more elegant and powerful language. Creating a new language and repeating the "billion dollar mistake" by including null (sailing under the brand name "nil" in Go) is just crazy. Error handling is another strange thing in Go. And generics have been only introduced recently, but there is hardly any support for libraries in it (now). While Go is definitely fast enough for most scenarios, it is not the best language for low level code like drivers or kernel development.

So, depending on your goals, I think Rust is the better language in general. But if your goal is to get something done fast, then Go would probably be better, since it doesn't require that much learning effort.

comment 4y ago · link · parent

That sounds like a case for regulation. If the support fee doesn't exceed a certain level, it would be hard to much money with support. Basically it should only cover actual costs, because it would unethical to earn money from problems they have caused.

comment 4y ago · link · parent

The article ignores the fact that you can have use case specific resources and/or views with REST, too. If you're only interested in a picture and a title from a book, you could crete a content type that includes just that. And advantage of this approach is, that you can tailor the database query to return just that, what is not directly possible at the abstraction level of GraphQL.

comment 4y ago · link · parent

Maybe its time for Microsoft to invest a bit more in Bing ...

comment 4y ago · link · parent

The rant is really about how bad Google went or how good SEO experts are today. Google search results are basically unusable for some subjects and Google should fix it, if it doesn't want to end up like Altavista!

comment 4y ago · link · parent

That depends on the context!

comment 4y ago · link · parent

The bas thing with existing third-party URL shorteners is that they might (and do) go out of business at any time! I'm not sure whether we need a standard for it, but it might be a good idea to be indendent of such external services.

A simple, generic way could be a hash of the original URL with a compact representation:

    http://example.com/some/path/to/stuff?filter1=asdf&filter2=90#positionX
    http://example.com/s/Wq_2
/s stands for "short" and the ID is the hash representation. If you use a-zA-Z0-9 plus some URL safe characters like _ it should be reasonably short even for large sites. The CMS or whatever software doesn't have to to implement something, because it is mostly just a generic URL shortener running on the same host.

comment 4y ago · link · parent

I've been a fan of Hugo (even if I don't like the strange Go template engine), because it offers a lot like tagging, generation of overviews etc. But Hugo breaks backwards compatibility on a regular basis and I'm bored of "fixing" my project just to be able to get a bugfix!

I will not go back to plain HTML, though. That is the other extreme, which is even harder to maintain, because changing the general structure, navigation or layout would require a lot of manual work. Maybe I'll write a site generator on my own ...

comment 4y ago · link · parent

This article seems to attract Spring sceptics or even haters. Spring is not that bad.

First, XML configuration in Spring is mostly a thing of the past. Most applications are configured with annotations and component scan these days. While it is true that there is some magic in it, it is relatively rare to cause problems. With proper tooling like IntelliJ Ultimate it is mostly easy to manage and understand. If that still feels too magical, you can use a Java API to manage your classes: https://docs.spring.io/spring-framework/docs/current/referen... Even nicer in the Kotlin edition: https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/s...

> Importing other Spring files

That sounds like mixing different projects or poor API design.

> Spring is now so complex that it has it's own framework, Spring Boot

That is not true as such. Spring Boot is not an abstraction over the Spring Framework. It is more a convenience layer with useful defaults and some auto-configuration.

From my experience Spring brings some advantages:

- Quick start with https://start.spring.io/

- Auto-configuration of several frameworks like Hibernate, Spring sets up all the project infrastructure for you

- Transactions are provided out of the box

- Useful additions like metrics can be added almost without effort - Good support for integration tests

- Easy to use AOP

- Powerful dependency injection (for example the support for generics is pretty good)

comment 4y ago · link · parent

It is pretty easy to run into truble with user accounts due to privacy regulations like Europe's GDPR. This stuff is definitly not fun in a side project.

comment 4y ago · link · parent

Be prepared. It is only 13 years from now on!

comment 4y ago · link · parent

PMD and Sonar are not that good in detecting possible NullPointerExceptions. You would need something like the Checker Framework additionally.

The (not) nullability story is much better in Kotlin.

comment 4y ago · link · parent

I really think that Oracle does a great job with Java! It looks like they'd have a pretty clear roadmap with what is really important for Java in the long run. Just think about virtual threads (project Loom), or values types (project Valhalla) or GraalVM. They invested many man years in each of it and take care of considering all relevant aspects. If it is done you can trust to have a proper solution. That is the kind of technology you want to build products on!

comment 4y ago · link · parent

You name it! Most of the code I've written in my carrier was for projects eventually canceled.

comment 4y ago · link · parent

At least it wouldn't hurt to always have some flowers around for the next Google project entering the Google Graveyard ;-) (I don't expect that Fuchsia would end there any time soon.)
1
8910
22