Re:My Favorite Language Has Changed to PHP
by MD87 on Wednesday March 16, 2022 @11:08AM
(#30699722)
There's a much more sensible C# merge sort implementation in the same repo as the oddly-over-the-top one linked in the article, which is very very close to the PHP one: https://github.com/TheAlgorithms/C-Sharp/blob/master/Algorit...
[ Parent
| on HN ]
Re:My Favorite Language Has Changed to PHP
by zihotki on Wednesday March 16, 2022 @01:28PM
(#30701615)
If we strip whitespaces in the merge sort version you provided and apply same formatting it becomes a 30-liner https://pastebin.com/KmWBMC0M vs 31 lines of PHP.
You can’t beat that kind of productivity.
Re:My Favorite Language Has Changed to PHP
by zihotki on Wednesday March 16, 2022 @01:27PM
(#30701589)
How do you measure productivity and how can you prove that productivity in PHP is higher than in C#? In my career language was never a productivity bottleneck. Good quality frameworks and libraries do make a big difference on the other hand.