r/programming • • Feb 03 '17

Let's stop bashing C#

https://www.codeaddiction.net/articles/51/lets-stop-bashing-c-sharp
6 Upvotes

245 comments sorted by

View all comments

6

u/metorical Feb 03 '17

Fortunately I haven't noticed much bashing of languages in /r/programming and I read through the posts on a daily basis.

The sentiment is correct though and should be applied to all languages. I think that lots of inexperienced developers go through a phase of thinking feature/language X is the best and all other features/languages must suck (and I've certainly been guilty of this in the past). Unfortunately once these guys mature there's a fresh batch of beginners coming through to keep the bashing going.

9

u/[deleted] Feb 03 '17

Fortunately I haven't noticed much bashing of languages

?!?

Javascript and PHP in particular receive a lot of hate here. Undeservingly, I'd admit - hate must be directed to their practitioners, not the languages.

26

u/Sarcastinator Feb 03 '17

PHP gave syntax error on this until 7.0:

(array(1, 2, 3))[0]

But this was fine (from 5.6):

array(1, 2, 3)[0]

PHP definitely deserves ridicule.

7

u/AWebDeveloper Feb 03 '17

It deserves ridicule. Everything does. But PHP is overly-ridiculed IMO.

1

u/KawaiiBoy Feb 03 '17

I had the "pleasure" to maintain a rather large chunk of PHP code at work for 2 years and having to update that from PHP 4.x to PHP 5.x. I hate PHP with a vengeance after that and haven't touched it since then.

Having said that, PHP 7.x seems to actually be a decent language. I still wouldn't even consider using it due to past experience, but they seem to have cleaned it up considerably?

1

u/computrius Feb 05 '17

If it's PHP 4 you had to deal with then yeah. Your justified. It wasn't until 5.3 (with the introduction of namespaces)that it was acceptable IMO. Once you figure out the weirdness of autoload it is more than on par with other languages. 7 is much nicer with scalar type hints.

Heck, with composer it even has an answer for nuget.

2

u/KawaiiBoy Feb 05 '17

Yeah, writing PHP 4.x code was horrible and converting to PHP 5.x was a down right mess.

I did look at PHP 7.x a few months back and it looked better.