4 ms·
Again, because PHP has such a low barrier of entry, more developers use it. So it's only logical that you'd see more tutorials and questions for it.
by Pewpewarrows 15y ago
Again, because PHP has such a low barrier of entry, more developers use it. So it's only logical that you'd see more tutorials and questions for it.
- Achshar 15y agocan you elaborate a little on how does it have low barrier of entry? as my current understanding stands, python has all the basic things like loops, conditional, functions, variables etc just like php. What makes python difficult to start learning? (or if put another way: what makes php easier to start learning?)
- Pewpewarrows 15y agoThe languages themselves are pretty equivalent. But with PHP it's easier for newbies to grok things when you can just point a web server at a directory that has a "blog.php" file in it, and visit "myserver.com/blog.php" to execute that script and see results. With python you have to understand the basics of what WSGI is and how it works, which is pretty poorly documented for people just starting web development. The "visit a file from my browser's address bar" motif is easier to grasp than "my url gets interpreted as a string that I then parse and route to a function imported from some other file".
- Achshar 15y agoThat makes sense. thanks for clearing it up. I didn't know it was necessary to have url formatting to write python. but then its not a language problem. its a framework problem. And php can have its framework too. But I guess it doesn't matter if its a language problem or a framework problem when we choose our favourite language :)
- keymone 15y agoit's not a problem. it's a solution to a problem.