Hacker News new | ask | show | jobs
by embedding-shape 13 days ago
Using the right data structures for the right usage later on is like half the battle. People get really annoyed when you show them a Python program that is faster and shorter than someone's C# program, merely because they used the wrong data structures for how it's being used.
1 comments

One of the nicest things of Java is that a list is a List<>. You can start with the default ArrayList or use a ton of other variants, or write your own, and all that changes is one line of code
One of my biggest beefs when moving Java -> C# back in 2004 was the paucity of collections in C#/.NET. There was C5, which was good, and the framework itself did eventually improve a little, but it was still no match for the Java standard library + Apache Commons Collections.

That and WinForms absolutely sucked compared to Swing. Layout options, tables/grids, and trees in particular were very poor in WinForms. Not to mention custom control development was far better in Swing than in WinForms. It was annoying because the one thing I’d expected to be better with .NET was the desktop UI framework.

Ow… Swing! I can definitely live without!
Yeah, I mean, I probably wouldn’t want to do it now, but at the time it was a better desktop UI experience than building complex WinForms apps.