Sunday, July 12, 2009

What is harder to learn PHP or C#?

I only know some html and I am planning to learn PHP. Once I tried to learn C# and I could not do it. Had trouble figuring out the OO stuff. Will PHP be easier for me? And how long will it take me top learn it if I study about 2 H per day . Thanks.

What is harder to learn PHP or C#?
I think PHP would be more difficult only because it's a scripting language. It's still object oriented programming, so you're not gaining any simplicity over C#.





You don't compile a scripting language like PHP. You just run it. You might get some error messages with line numbers when you try to serve the page, but a C# compiler will definitely give you better error detection. Additionally, you'd be able to debug and step through C# code to see what's actually happening.





If the OOP aspect is giving you trouble, you're not going to solve it by switching to PHP. Start small and learn some basic OOP concepts if you're having trouble.
Reply:If you don't have a good foundation in programming, any language is going to be challenging to learn. PHP is designed to be fairly easy to impliment, but you still need to understand how the logic works.





And don't "study" PHP... it's much easier to learn by example. find a tutorial and go through it. Make sure you understand what each line of the code does and why it does it before you move on.
Reply:i think C# is difficult.....





PHP is easy


No comments:

Post a Comment