+ 13

Is it considered bad practice to have PHP in your JavaScript or vise versa now that both have grown up in 2018

Some developers say they should be in their own only - Bad practice as one will not work well with the other. Some say wrap one or the other and call it through json - while others ~ again multiple levels of confusion of language to work with ~ Some also mention using Ruby in the PHP another mentioned using Pearl By the way, there was no mention about c, c#, c++, or python in any of the discussion groups so your added input would be great ~ Mostly I'm looking at the application around floating forms which ondrag disappear from client side but is processed via server side and passed along to 5 local departments secured and the utilize the needed bits of information as needed and pass along the addition to possible 5 under departments ~ the inclusion of as many as 5 to 10 full page forms or 300 plus questions as in an sf171 application

22nd Aug 2018, 7:57 PM
BroFar
BroFar - avatar
9 odpowiedzi
+ 6
part of the problems I see is the load times and logic ~ as well as the cache the need for gzip and zip files and execution files ~ again slowing the cross over times - bogging down the backend and the need for a strong handler ~ There Are probably other issues I haven't considered Right now the process is being handled with ancient RPG 2 & 3 Really need some strong advice ~
24th Aug 2018, 7:59 PM
BroFar
BroFar - avatar
+ 4
KrOW the bottom part is the why and the top part is the how the original question and answer is from here https://softwareengineering.stackexchange.com/questions/126671/is-it-considered-bad-practice-to-have-php-in-your-javascript but the question is old and things have changed somewhat both in languages and technologically.
22nd Aug 2018, 8:54 PM
BroFar
BroFar - avatar
+ 3
I tried to read your question more times, but really i dont understand it. Anyway browsers (client side) understand only html, css and js (mostly) then your server have to output they. I dont think that mix PHP (or any server side language) and js is bad. Its the unique choice for real support dynamic web site/app. Anyway, what do you want get? Can you explain better what you want develop?
22nd Aug 2018, 8:16 PM
KrOW
KrOW - avatar
+ 3
In your example (that for my lacks dont understand fully) i think that js its needed for client actions (dragging) and for start a request of processing (executed by php/python or other server side technology)... i dont see problems
22nd Aug 2018, 9:14 PM
KrOW
KrOW - avatar
+ 2
As you could tell from the conversation ~ they back then were not as appreciative of utilizing them in tandem and although one could they more or less recommended keeping them separate because or so it seemed and php parse was enjoyed as a quicker response.
22nd Aug 2018, 9:23 PM
BroFar
BroFar - avatar
+ 2
Well from my view I use both interchangeably and I enjoy using Js for Ajax request and php for handling the server side aspect even though nodejs is increasing steadily
24th Aug 2018, 3:55 PM
MrHumble
MrHumble - avatar
+ 2
BroFarOps Im would like help you (if my knoldgment allow it) but i dont understanded well your real problem (in practice) for my lacks in english translation i think
24th Aug 2018, 9:52 PM
KrOW
KrOW - avatar
+ 2
We, in general, are cleaning out the original mainframe programming and reconstructing and reconfiguring everything to an internet security sealed protected section - The internet, itself, runs millions to trillions of bits and bytes super quickly on the semiconductors in split split seconds compared to the slug of a mainframe operative system ~ adminstratively as project manager I'm seeking alternative php wrapped in JavaScript which I believe will work okay but some believe there may be unforeseen crashes ( systems analysis review ) - additional we all want the project to move smoothly in the transition as old files are installed ~ new employment files are being created by future employees themselves. Mainframes are becoming outdated and or archaic so everything is set for completion on a five year track ~
25th Aug 2018, 1:24 AM
BroFar
BroFar - avatar
24th Aug 2018, 7:27 PM
Marlina