3 ms·
Ya, maybe. But it's easier to develop bug free code on C#. Speed has its advantages but it's not the only criteria used to decide what language to use.
by WheelsAtLarge 5y ago
Ya, maybe. But it's easier to develop bug free code on C#. Speed has its advantages but it's not the only criteria used to decide what language to use.
- CharlesW 5y ago> But it's easier to develop bug free code on C#. Wow, that's a claim I've never seen before. What's it based on? (As an example, I'm wondering if you may not be aware that there are several static analysis tools for PHP.)
- WheelsAtLarge 5y agoI'm going by an article I read a few years ago. https://cacm.acm.org/magazines/2017/10/221326-a-large-scale-study-of-programming-languages-and-code-quality-in-github/fulltext https://cacm.acm.org/magazines/2017/10/221326-a-large-scale-... Also, I used to program in both and known issues within the PHP language would make my development so much harder. But it's been pointed out to me that PHP has improved over the years so it might not be as difficult as before.
- 40four 5y agoI respectfully disagree. Modern PHP is an excellent language to work in, despite all the gripes old timers have from the old version 4/5 days. You can write top shelf Object oriented patterns, with first class dependency injection support. Type hinting. Built in Interface support. A really nice module/ import system. Composer is a fantastic dependency manger, and automatically gives you a magical class autoloader script with a small amount of configuration. Also PHP 8 includes all the modern conveniences you’d expect, like arrow function notation for closures, Enums, the Null Coalescing Operator, need I go on? :)
- WheelsAtLarge 5y agoYou have a point. It's been years since I worked on both so things might have changed. I'm thinking of a time when you not only needed to know PHP but you also had to know the work arounds of known issues with the language. PHP is very popular so maybe all that stuff has gone away or reduced greatly.
- 40four 5y agoI respect your response. To be fair, I’m biased because I’ve only been doing web development for about 5-6 years. And I just so happened to land a job at a company firmly entrenched in the PHP world. So I came into the game late. I missed all the nonsense, and reasons a lot of more experienced web developers hate PHP. But working in Laravel is fantastic, and I equate it to the same reasons many developers love working in Ruby on Rails. The framework gives you high level design patterns out of the box, and the ecosystem surrounding it is incredible.