Better HN
topnewbestaskshowjobs
Log inSign up

cryptos

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

Submissions

comment 3y ago · link · parent

Maybe we should go back to pay for software. I'm willing to pay for new Android releases if I could use my phone longer. This would be fair for both sides: the manufacturer would earn money with the software and I would save money for a new phone and the environment would be saved from a lot of waste. Win-win-win!

comment 3y ago · link · parent

You asked for JS (JavaScript) and you got a lot of suggestions for books or other resources about that language. But I suggest to not spend too much time with JS and learn TypeScript instead. It will make your life easier, because the compiler helps a lot - especially if your projects grow. The official documentation is very good and should be sufficient for almost everything that you would ever do with TypeScript. https://www.typescriptlang.org/docs/

comment 3y ago · link · parent

Why has D failed to get momentum? Some years ago (maybe 15?) there was some buzz around this language, which looks like a nice improvement for many C or C++ use cases (but not all!). The language makes a more ergonomic impression than Go, for example, and it is probably easier to learn than Rust, because you don't have to wrap your head around the borrow checker. However, today hardly anyone talks about D and I wonder where the train derailed.

comment 3y ago · link · parent

I guess this was already discussed elsewhere on HN, but I'm pretty confident that the world wouldn't be better with endless human live.

comment 3y ago · link · parent

The sweet spot for percent values is pretty sure between -1 and +1 ... 6000 % is just ridiculous. I'd suggest 60000 ‰ instead!

comment 3y ago · link · parent

You will never hear something again from developers trying to hunt down errors in infinite recursion ;-)

comment 3y ago · link · parent

Scala had a lot of implicit stuff before Scala 3, but while very powerful it was also very tricky and hard to understand at times. In Scala 3 there is still a lot of implicit features, but a bit less powerful and with a bit more explicit syntax.

When I see how some younger developers in our company struggle with some magic of the Spring Framework, I doubt that implicit code pays such a large dividend.

comment 3y ago · link · parent

It looks like Fly.io is just not a solid choice for cloud services.

See also: https://news.ycombinator.com/item?id=35044516 and https://news.ycombinator.com/item?id=34229751

comment 3y ago · link · parent

Doesn't Debian Stable have the very same problem? You get dated software with bugs that are solved in newer versions. The fundamental model of freezing and (endlessly) testing some state of the packages that makes up a distribution simply doesn't make sense in a world with so many and so big changes.

This model is the "waterfall" model for operating systems.

comment 3y ago · link · parent

I can only recommend not to use Markdown for larger projects like books (at least not scientific or tech books). Markdown simply doesn't provide the structural elements you'd need. AsciiDoc is a much better fit.

comment 3y ago · link · parent

I don't like "tc" because it is not self-explanatory and somewhat cryptic to me. The argument on name collisions is valid, although even "toolsconfig" is not 100 % safe.

comment 3y ago · link · parent

I've already thought about creating such a folder on my system. I'm happy to learn that I'm not alone :-)

comment 3y ago · link · parent

While UUIDs are pretty common, they are by far not the only or superior solution. To be able to easily generate IDs on different nodes in a distributed system something host-specific, pure random, or a mixture of both is needed. To be avoid problems with random numbers on DB indexes some time-based part would be useful. There are other approaches like Ulid or TSID which are similar to UUID v7, but are represented in are more compact way.

Example Ulid vs UUID:

    000360TJXZDDMSKJSQGBQHA5YA
    fb87f306-b613-4948-be24-00609cf9ccc8
https://github.com/ulid/spec https://tsid.com/de

comment 3y ago · link · parent

Incrementing integers doesn't work well in a distributed system, where the IDs might be generated outside of the database (to have it before the transaction ends, for example).

comment 3y ago · link · parent

I already mentioned the Python 2/3 problem, but the other things you listed sound like usual new features, which won't work on older versions, obviously. However, I'd expect Python 3.4 code to run perfectly fine on a Python 3.8 interpreter.

comment 3y ago · link · parent

I don't understand the rating in the table. After the Python 2/3 migration I wouldn't expect compatibility problems for the forseable future. And why should Python not work as well for shell scripts as Perl? Why should Java not work for shell scripts? You can even run Java files without an explicit compilation step these days. Why should Python, JavaScript, Java, and C# not be extensible?

Honestly the whole post doesn't really make sense to me and it looks like someone is just paying homage to a thing of the past. You can clearly see the decline of Perl here: https://redmonk.com/rstephens/2021/08/05/top-20-june-2021/

comment 3y ago · link · parent

Laser printers are not necessarily cheaper. Business class ink printers have a lower cost/page in many cases.

comment 3y ago · link · parent

    $request->user()->orders->create($request->validated());
This looks so wrong from an architectural point of view! A request has a user (which in the context of HTTP should be more or less only an authenticated principal), which has orders, which are created from the same request, where the journey started. There is no separation of technical and business concerns.

See: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-a...

comment 3y ago · link · parent

Maybe the word "boring" scare some people away, but it is a good contrast to exciting new technology anyway. "Mature" would probably the more appropriate term. Many times the exciting stuff is the problem domain itself. But developers tend to be more excited about new technologies than about customer needs.

comment 3y ago · link · parent

There is more than Maven and Gradle. Maybe a new build tool callded "bld" could make life a bit easier: https://rife2.com/bld

comment 3y ago · link · parent

I see a pattern here ... (recent kill of dpreview comes to mind). Maybe entrepreneurs should value freedom and independence more. If the owners of dpreview and Book Depository wouldn't have sold their business to amazon, then maybe both would be still around for a long time. Don't blame Amazon, blame the former owners.

Btw.: A topic in DHH's book "Rework" is the actual goal and value of a company. It is a good read.

comment 3y ago · link · parent

If it is actually so terrible, I wonder why no player in the industry (e.g. Microsoft or some other big player) comes up with a better protocol.

comment 3y ago · link · parent

- https://www.baeldung.com/java-8-new-features,

- https://www.baeldung.com/new-java-9,

- https://www.baeldung.com/java-10-overview,

- https://www.baeldung.com/java-11-new-features,

- https://www.baeldung.com/java-12-new-features,

- https://www.baeldung.com/java-13-new-features,

- https://www.baeldung.com/java-14-new-features,

- https://www.baeldung.com/java-15-new,

- https://www.baeldung.com/java-16-new-features,

- https://www.baeldung.com/java-17-new-features,

- https://www.developer.com/java/java-18-features/,

- https://www.infoworld.com/article/3676699/jdk-20-the-new-fea...

- https://www.infoworld.com/article/3653331/jdk-19-the-new-fea...,

comment 3y ago · link · parent

I had the same experience. I owned such a small Brother printers 10 years back, but then I wanted colour and bought an Epson printer. This was a big, ugly business printer that wasted a lot of ink and didn't have impressive printing quality. Then I bought a cheap Epson ink printer with a scanner and a duplex unit (and better printing quality), but it stopped working after 2 or 3 years. I bet this initial Brother printer, which I sold for a few bucks, is still printing somewhere like on its first day.

comment 3y ago · link · parent

As far as I remember from a post of Brian Goetz changing the existing Optional type is exactly the plan! So, Optional will become a zero-cost abstraction™ in Java.

https://cr.openjdk.org/~briangoetz/valhalla/sov/02-object-mo...

comment 3y ago · link · parent

From my experience Kotlin's null handling works better than these external tools. Another point is that also the APIs need some support for it, to be convenient. Kotlin has methods like mapNotNull for example.

comment 3y ago · link · parent

At least Oracle is working on JVM stuff that could be used to introduce union types in Java. https://openjdk.org/jeps/8204937

comment 3y ago · link · parent

The issue will probably be solved this year with value types in Java. https://openjdk.org/jeps/8277163, https://www.baeldung.com/java-valhalla-project, https://blogs.oracle.com/javamagazine/post/java-jdk-18-evolu...

209.

It’s All Bad News: An update on how the LastPass breach affects LastPass SSO(medium.com ↗)

5 points · by cryptos · 3y ago · discuss

1
678
22