Author of this content has low reputation.
Imagine the following Scenario.
You have 3 variables: Year, Month and Day
- Objective: to create a Date variable, in the format Year/Month/Day, so you can simply sort the dates without any hassle.
(Image Source:
In PHP:
It's as simple as doing Date = Year + '/' + Month + '/' + Day
Time Needed: 5 seconds.
In C#:
- Create an Array;
- Fill it with the 5 elements you want to join together, in the correct order: Year, "/", Month , "/", Day;
- Traverse the array, while using a function to pick each element from the array and concatenate it in a single variable.
- Time Needed: 5 minutes.
In the end, you should have your variable plus an array you don't need and 5 variables you won't use again.
Conclusion:
PHP is much simpler and straightforward, no need to keep reinventing the wheel as you go.
No wonder every time I am in a .NET site, it take ages to load. If every little task needs to be broken down into 3 or 5 steps, it's obvious the processing power needed to achieve the same result will have to be higher, much higher.
Oh, hell, Microsoft. Why do you always need to complicate what could be so simple?