Forum Moderators: phranque
I have been pondering for some time now whether or not it is really time for me to start changing from ASP.NET and moving to strictly PHP. The company I work for has a strictly PHP website and I understand both languages pretty well. I am just not sure if I should stick to either language or learn one language more than the other. I basically do coin tosses for new web projects...lol...and I was wondering if I could talk this out in here! Can't wait for responses!
Dontate your coin... and learn both languages (Hint- When your done learn some others).
This question has been asked 100 times or more here. It's the wrong question. The right question is "Whats the best tool for the job at hand?"
Somtimes it will be php; other times you'll find it's asp.net. Guess what, you'll no doubt get something handed to you someday and c++ (or some other language) might be best for that particular job.
Having all of those skills and knowing when to use them goes into the good developer recipe and that's how you bring tremendous value to your career and your employeer.
I've spent a few years doing each. I recently moved from an all PHP/Apahe/MySQL shop to a hard-core nothing-but-microsoft ASP.NET employer. C# is the newest language added to my already-crowded resume.
In almost any situation I'd choose PHP. It can do everything ASP can do - for FREE.
Both are robust enough to do just about anything you need... in many ways it's akin to a religious choice.
a statement like
if(you==smart){languages+="PHP";} Compared to VB - ugh, why would anyone still be using VB?
if you=smart then
languages=languages+"PHP"
end if
I find myself still using PHP habits in my C#.NET pages... I haven't progressed to using Visual Studio, I don't compile DLLs, and I don't see the benefit of "codebehind" when I can just put the raw C# into an SSI. I suppose those habits will develop as my skill becomes more sophisticated.
Another reason I really like PHP: Associative Arrays! I love them! And Love is not too strong a word to use in this instance.
$myitem['price']=9.89;
If there is a way to do that in C#, I haven't discovered it yet.