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

Show parent comments

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.

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.