top | item 30699722

(no title)

MD87 | 4 years ago

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...

discuss

order

zihotki|4 years ago

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.

hayd|4 years ago

You can’t beat that kind of productivity.

zihotki|4 years ago

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.