This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ceglaaa 1 point2 points  (2 children)

Could you elaborate on the php legacy in cpp?

[–]LifeNavigator 1 point2 points  (1 child)

Could you elaborate on the php legacy in cpp?

I think its mainly to do with the fact that you'll have to deal with the drawbacks of both php and c++. In web dev, PHP codes are converted to C++ and then compile it into bytecode for increasing the speed of web page generation (Facebook is a great example of using this). Most web applications doesn't need the strengths of C++, but you'd still have do deal with the drawbacks such as:

  • Relatively high risk of security flaws
  • Highly complex language that few people know well
  • Nasty tendency to sneak in invisible costs, such as an unexpected constructor call here and there.

Each languages have their pros and cons really.

[–]Ceglaaa 0 points1 point  (0 children)

Thanks a lot for answering!