Home » Php » Need advice for taking or not the decision to switch from PHP to Python for developing a web app and integrate machine learning algorithm

Need advice for taking or not the decision to switch from PHP to Python for developing a web app and integrate machine learning algorithm

Posted by: admin February 25, 2020 Leave a comment

Questions:

I did a lot of research but it still not clear on my head.

First of all, I’m new to web development since I’m more focused on machine learning algorithms.

For an important project, I built a web application to retrieve information from sensors and display to the user for then be able to take good decisions. This app has a login and sensors management system. I can see raw data and display beautiful charts.
As I wanted to do things quickly (lean approach), I started building that with PHP + MySQL + HTML/CSS/Javascript as I knew a bit of these web language.
I did not use any PHP framework and built my own MCV thank to tutorials in order to understand well what’s going on. I’m proud of the current app that is working well.

In parallel, I developed a neural network algorithm based on Python 3. I wanted to do it with PHP and MySQL but it was really a pain and found definitely that it was easier to do it in Python (thank to Panda and great inbuilt functions) in order to see first if it works.

Now I’m in a point where I don’t know where I should go as I need to develop my project and integrate my neural network algorithm to my web app.

These are the first solutions that come to my mind :

  • Switch from PHP MVC to Python with Django (I think more relevant than FLASK) ==> Takes time and I think important learning curve
  • Integrate the Python algorithm with PHP thank to input/ouput ==> Maybe there is a nice way to do it and this is something common that developers do ?

Then, I read a lot that I should rather use a Javascript framework like Node JS or VUE.JS because more and more developer are using these framework and it would be easier for futur integration and maintainability.
Besides that, with my current project I use a lot NPM (and Bower) and so far I know there is no NPM with Python.

What’s important to take in consideration as well is the fact that the code should be maintainable as some people will join the project.
Moreover, the neural network algorithm will stay in Python regarding my results.

So I’m bit lost and I need some advice or insights.

It’s like the world of web development is huge and as I need good foundation for my App, I would like to make a good choice and especially establish good practices for what web developers usually do. It would be a great way for me to learn as well.

How to&Answers: