Java’s advantage in shopping cart platform

e-commercejavaPHP

Open source PHP shopping carts platform/framework occupy most top list. They are hot, and we want start quick. So, we are going to make decision between Magento and Opencart, PHP programmers would be happy to this end. While my Java programming colleges feel not so happy, they were selling Broadleaf commerce or JadaSite. But more online reading and discussion pushing us to this way. PHP shopping carts get more use and so tested more and they get support multiple shops and multiple vendors.

What will be Java's advantage in this open source field? Or should we believe Java can give decent infrastructure in long run?

Best Answer

Popularity ≠ Quality. Most people using a shopping cart won't be testing it properly. Of course, that's true for all languages. I advise that you audit all proposed cart solutions for security, paying particular attention to SQL Injection and XSS issues. (This is important because you've got code that's going to be fairly close to handling money, so it will be more exposed than most of your site in any case.)

As for advantages of PHP over Java or vice versa, it really depends what you've done your web tier in. There's a big advantage in any case with keeping the number of languages in use within any particular tier down, as it lets developers specialize across the whole tier. (It's nice to be able to do anything, but there's only 24 hours per day for Earth-bound folks.) Fitting in with what you're doing currently is more important than chasing whatever is “hot”, particularly for core competencies (like selling your products).

Related Topic