Hacker News new | ask | show | jobs
by EVa5I7bHFq9mnYK 636 days ago
Everyone knows the best pl are created in Denmark.
3 comments

As a Dane I'm curious which ones you're thinking of. The ones which are typically associated with Denmark are C++ and PHP and neither were developed in Denmark and I think it would be fair to call PHP more Canadian than Danish. Ruby on Rails is another but Ruby was developed by Matz.

I'm not sure BETA or FCL are really in the "Best" category. :p

C# was developed by a Dane, but it wasn’t developed in Denmark. The creator of PHP was born in Greenland, but again the language was developed elsewhere.
C# wasn't created by just Anders Hejlsberg. There wouldn't be a C# without Scott Wiltamuth or a Peter Golde (and a lot others). Though I guess you could argue that there wouldn't be a "modern" C# without Mads Torgersen who is also Danish.

That being said. "GP" jokingly said languages which were considered "best". I'm not sure what C# is supposed to be "best" at? It's not Java and it's certainly not LISP.

IMHO C# is a very good, pragmatic language. It is not unique and groundbreaking like say Lisp, but it has a very well balanced set of features which makes is both productive and maintainable. It doesn’t have the level of boilerplate which make Java tedious, but its strong static type system makes it (IMHO) more maintainable than say Python for larger projects.
I think C# is a perfectly fine language, but as you say it's not really groundbreaking or unique. It's probably not even my top-five choice for general purpose language in 2024 but it's obviously gotten (is still getting) "the job done". If we're to praise Anders Hejlsberg's work I would personally pick Typescript above C#. Just look at how influential Typescript has been for global development in the previous decade.
I disagree with C# not being groundbreaking or unique, at least to some extent. Yes, a big part of the language could be considered "vanilla object oriented", but that's not really a bad thing. These are some things that C# pioneered:

* Expression Trees and LINQ (still a pretty unique feature)

* async/await/yield syntax, adopted later by many others

* get/set property methods

* null coalescing (??) syntax

* extension methods and partial classes

Even if C# was not the originator of some of these, it definitely played a key role in popularizing them and offered a good reference syntax and semantics that others could draw inspiration from.

C# also has great synergy with the F# language which is so unique and innovative that it might seem 'alien' at times. :-) I think some of the C# features appeared in some form in F# first (citation needed :-).

What is your top 5?
The languages created in Denmark does not seem particulary notable?
Anders Hjelsberg and Bjarne Stroustrup are both Danish, who together account for what feels like 90% of all popular programming languages ;)
And your most reasonable language is missing! (Futhark)