Recent submissions

Comment · 1 month ago
JavaScript didn't "win" because it was a good language (it is not), it "won" because it was the only language that ran in the browser.
Comment · 1 month ago
Agreed on async. You better know if a function does IO, hiding that can lead to nasty surprises.
Comment · 4 months ago
> JavaScript is faster than C#

Are you joking? C# is in another leage, when we talk about performance.

Comment · 5 months ago
That's not how TDD works. You test the whole chain and all the components with tests and you can move from top to bottom with TDD, it's actually how you should do it.
Comment · 5 months ago
> while if you wrote it exactly like Java, you'd probably end up with slower code.

That's not the case for some time already, at worst you get similar performance with Java and with a little effort you can get significantly better performance.

Comment · 5 months ago
I don't get what the big problem is with function coloring. You basically only need async when doing IO, and you had better know when a function does it, or you may have a bad surprise at some point in the future.
Comment · 5 months ago
Maybe startup time was a problem before AOT?
Comment · 5 months ago
So you try to say that Java gets to be more semantically sound by making bad choices early on? That does not make sense. Those choices are very difficult fix today and many of them can't be fixed. Say what you want but semantically more sound Java won't be. And the boxing with C# unions can and will be addressed later, this was a deliberate choice by the team to bring unions earlier.
Comment · 5 months ago
For almost 10 years now, we have not published anything .NET to the Windows platform. .NET is more performant on Linux today than Windows, and I would say development is also better there (using Rider). However, we do still have devs who prefer Windows. We have built many critical systems on .NET and they just work, so they may be boring to some of the folks who like to have more excitement from their systems.
Comment · 5 months ago
As if C# is Windows only? Today C# runs also almost everywhere.
Comment · 5 months ago
C# (.NET) would probably be the winner here. Go standard library is rather minimalistic compared to it.
Comment · 5 months ago
Fun it is not.

    if err != nil
It's amazing how they managed to design a new language with all the flaws of '90s languages.
Comment · 6 months ago
C# will have more advanced sum types this year, it's currently in preview.
Comment · 6 months ago
Well, C# has more powerful pattern matching, only compiler exhaustiveness on types is missing today. In Java, sum types (sealed interfaces/classes) require all members to have the same parent, so they can be used only in very narrow cases.
Comment · 6 months ago
Reified generics, value types, nullable reference types, LINQ are only some of the things that would give C# an edge in DevEx today.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton