Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:C# (Score 1) 106

"Anybody" who has used both will tell you how much a pile of shit Java is compared to C#?

Well, you sure don't speak for me, so make that "anybody except for one".

The syntax of the languages is very similar.

In 2008-2010 C# had some syntax bits I wished Java could have had... but now has (var (from Java 11) and try-with-resource (which it has had since at least Java 8, I think...?)).

When porting a plugin-based Java application (using OSGi) from Java to C++, in 2008-2010, we ran into assembly loader issues: you have to make remote calls across AppContext boundaries, which had a serious performance impact. And when you wish to load and unload and reload it's hard to get around using at least two AppContexts.

Also... C# AssemblyLoaders made Java classloaders seem simple and predictable and understandable in comparison. No mean feat, that!

And no package private, which made unit testing of classes very hard. We were under the restriction that all public methods would become part of a public API that needed to be documented, and supported for the foreseeable future (i.e. we were locked in and not allowed to change things).

We finally were able to make a hack where we made the unit test DLLs friends of the DLLs that were to be tested and then we could access internal methods from the tests (internal methods did not become part of the public API). Dependency arrows going the wrong way, but hey...

Side note: Annoyingly Kotlin has the same approach towards packages (no package private).

Anyway most of the time, Java and C# look the same and behave the same, so saying that one of them is shit compared to the other, means you have an agenda or a bias.

Another plus on the Java side: #JavaZone (a lot cooler than NDC here in Oslo. Cooler atmosphere, much better food and greater afterparty. Oh yeah! Great talks too!)

(Bias...? Me...? Nah!)

Comment Yeah, that's kinda dumb (Score 1) 85

Sounds like someone with zero experience of software development speaking. Hint: producing the initial code is the least part of the job, Getting the damn thing working on the actual stuff it is supposed to work on, is what takes time, and I don't really see how ChatGPT and friends can help with that. ChatGPT only knows what it already knows. But it may be that stackoverflow will disappear?

Comment Re:As an oil/gas exporter, Norway ... (Score 5, Insightful) 240

Common misconception.

It isn't oil revenues that finances Norway's infrastructure, such as e.g. the chargers.

The oil money is kept out of the home economy as much as possible. Instead the oil revenue is put in a fund that invests abroad.

Public works, such as the mentioned chargers, are financed with taxes on the public and businesses.

Slashdot Top Deals

A committee takes root and grows, it flowers, wilts and dies, scattering the seed from which other committees will bloom. -- Parkinson

Working...