News for hackers. Stuff that matters.
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...
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.
Re:My Favorite Language Has Changed to PHP by hayd on Wednesday March 16, 2022 @12:15PM (#30700689)
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.
Re:My Favorite Language Has Changed to PHP by WalterGR on Wednesday March 16, 2022 @02:14PM (#30702125)
That’s an excellent question, but they were just quoting the article.