• 0

php or python for web development?


Question

I am trying to get into web development and I have been researching the different languages that I can use to start learning these things. I have a little bit of php knowledge, enough to allow me to make customization and changes to some things in wordpress but not enough to really do anything with it.

With so many different languages that can be used to code websites I am confused what would be the best one to chose to start learning. I have read good things about django (python) and how it is a better language that is more cleaner for bigger scale projects and that such. php is more widely used/supported and basically ready to go out of the box, however it has its own set of problems also. The more I read about the two different languages, the more I get indecisive.

Can you help sway me in the right direction?

Link to comment
https://www.neowin.net/forum/topic/1115375-php-or-python-for-web-development/
Share on other sites

Recommended Posts

  • 0

A good part of this article has be debunked. I'm too lazy to post link but do a simple google search. Anyone who write such a long blog post to critize a language clearly has an agenda. You know i hate web forms with a passion. I don't waste my time writing a 20 pages blog about it. I just don't use it when i can avoid it.

Is it actual debunking or people just disagreeing with the points he raises?

And it's fairly obvious that he has an "agenda" by posting about something, if he didn't care he wouldn't post about it, good or bad.

  • 0

Sorry for the late reply, but I wanted to get all my information together before deciding. So I want to thank everyone of you for helping sway me towards the right language.

I decided to learn php. I have been reading there is the "right" way of learning it and the "wrong" way that makes you a bad php programmer. The more I search there is no consensus from people on what to do / what way / what to read to learn php the right way. Can anyone direct me in the right direction?

Thanks. :)

  • 0

Use PDO instead of any of the mysql_* or such APIs, they've been deprecated for years yet they're still prevalent in tutorials.

And double check the usage of every API call, they're all over the place in behaviour.

Edit: Oh, and use prepared statements with PDO, they're faster and more secure against attacks like SQL injections.

  • 0

One thing I think is important to consider if you are new to web programming is that PHP errors are very clear - it pretty much tells you what is wrong. No idea what Python is like as I've never used it, but other languages (both web and desktop) that I've used are totally obtuse with errors, giving you little clue as to what needs to be fixed (which is really irritating when trying to learn a new language). However, this isn't to say you should depend on them later on. When you are comfortable enough you should look into handling errors and how to use exceptions correctly. But when starting out, the clear PHP errors are very useful IMO.

I think one big mistake people make with PHP is to just use a framework from the outset. You don't learn how to do various things that are quite important (and some just do little more than try to turn PHP into something it isn't, abstracting things over and over for the sake of abstraction). I've written my own frameworks and CMSs and the lessons I learned have been invaluable.

The other big mistake is to just copy tutorials without looking for more information. For example, if security is a big concern, read everything you can on protecting against attacks. This ties in with the former point - when I started I learned to use the mysql_ methods (news to me that they've been deprecated, but I've been out of it for a year), which in turn taught me how to properly sanitize user input. (Never trust the input!) I've come across code from developers who've only existed in frameworks and they don't have the foggiest on what to look for and how to detect various types of attacks because their framework of choice did it for them (or they assumed as such anyway). This is fine as long as they can use their framework, but what about situations where the framework can't be used?

My thoughts from 8 years of web development with PHP/MySQL/Javascript.

  • 0

Hi,

I do not think you will get the answers you are looking for and I also think you are thinking about this "backwards" - What does the project demand? I produce very few (Python, RoR or Nodejs projects) vs PHP and the reason is "standardization" and costs. Large companies frequently are slow adopters and out of the few companies who did use Python / Nodejs - this was a specific purpose that PHP itself would not lend itself too. For smaller companies the cost of hosting PHP is too low to ignore - buzz words like "Word Press" are still king.

  • 0

Thanks for the tips and information guys. But what about books? Any good books that you guys recommend?

Any intro book, to get the basics. Buy the book, rip out the chapter on mysql_ statements, then go read the PHP documentaiton on PDO and prepared statements, and you'll be more or less good to go on a basic site.

After that, you'll want to learn about object oriented php, and AJAX, and whatever else strikes your fancy, but you need none of that to get up and running. Correctly executing database read / writes you absolutely need from the beginning.

Learning mysql, as presented in most into books, is a complete waste of time, and it's borederline irresponsible how many books are still being published new that still do inserts using mysql_query.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Dragon's Dogma 2: Dark Arisen expansion to bring snowy region, new updates also coming by Pulasthi Ariyasinghe Capcom had a surprise waiting for Dragon's Dogma fans today in the Nintendo Direct presentation. The company revealed an expansion for the second installment with a name that should be familiar to series veterans. Coming later this year, Dragon's Dogma 2: Dark Arisen is promising a massive new region to explore, new monsters, fresh skills to learn, and more. The studio says players will be heading to the Northern region of the world, named Norgan, to find new secrets about an undying "Fallen Dragon." There will be forgotten relics that the protagonist can find to unlock fresh weapons and skills the expansion is introducing. Players will also be able to find mysterious equipment from a previous Arisen as a part of the expansion, all part of 12 Lost Rites Dungeon Challenges they must complete to gain access. In Neowin's own review, I found Dragon's Dogma 2 to be an impressive RPG when it launched back in 2024, giving the title an 8.5/10 for its class variants, companion system, and immersive exploration. "Once a prosperous region of the kingdom of Vermund, it was abandoned many years ago for reasons unknown," says Capcom about the new region. "Long has it been since any soul traveled its paths. Blanketed in heavy snow, these frigid lands are home to savage hordes and creatures of unbelievable power. Those who are capable of vanquishing such fearsome foes, or those who possess a keen eye for exploration, will find themselves rewarded with powerful relics." Dragon’s Dogma 2: Dark Arisen expansion launches on October 9, 2026, with a $29.99 price tag. Ahead of the expansion release, Capcom is also planning to release two free updates to the base game. The first will land tomorrow, June 10, bringing more accessible fast travel with an Eternal Ferrystone and other quality-of-life adjustments. The second update will land sometime in August, aiming to improve frame rates, add more save slots, and bring even more community-requested adjustments. This expanded Dark Arisen edition is also launching on the Nintendo Switch 2 on the same day the content comes to PC, Xbox Series X|S, and PlayStation 5.
    • Classic themes are just the colors on the bar like the olden days, if you use the image themes, it does fancy transparent backgrounds and it makes the elements of the app look like they are transparent bubbles. This sample image shows what it looks like.  
    • Good point, unfortunately. NextDNS has far more filters and workarounds than uBlock, and it's easy to implement.
    • Windows 10 KB5094127 Patch Tuesday improves File Explorer search and more by Taras Buria The June 2026 Patch Tuesday updates are here, bringing mandatory patches to users with PCs enrolled in the Extended Security Update program for Windows 10. Microsoft is rolling out KB5094127, with build numbers 19045.7417 and 19044.7417. Changelog includes the following: [File Explorer] This update improves File Explorer search, including support for Chinese text, and UTF 8–encoded files without a byte order mark (BOM). Text now displays more clearly and consistently across search results, Content view, and tooltips. [Secure Boot] This update enables dynamic status reporting for Secure Boot states in Windows Security App. This update adds a new policy setting, LimitSecureBootRequiredServiceData, under Computer Configuration > Administrative Templates > Windows Components > Secure Boot. When this setting is enabled, Windows limits the Secure Boot service data it sends by suppressing the event normally sent to Microsoft. This policy is also included in the Windows Restricted Traffic Limited Functionality Baseline package. For information about the policy, see Manage connections from Windows 10 and Windows 11 operating system components to Microsoft services. With this update, Windows quality updates include additional high confidence device targeting data, increasing coverage of devices eligible to automatically receive new Secure Boot certificates. Devices receive the new certificates only after demonstrating sufficient successful update signals, maintaining a controlled and phased rollout. As for known bugs, Microsoft has the following to say: A workaround is available in the official documentation. Today's updates are available for PCs enrolled in the Extended Security Updates program only. If your PC is eligible, you can download the update from Settings > Windows Update or from the Microsoft Update Catalog here.
    • Then the solution is to not let children have easy access to smart phones or internet until they are older, not mass surveillance. Only this would require parents to do actual parenting, most likely, as with any good solution to the problem.
  • Recent Achievements

    • Week One Done
      rubentuben8 earned a badge
      Week One Done
    • Week One Done
      ARaclen earned a badge
      Week One Done
    • One Year In
      jojodbn earned a badge
      One Year In
    • One Month Later
      jojodbn earned a badge
      One Month Later
    • Week One Done
      jojodbn earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      523
    2. 2
      PsYcHoKiLLa
      231
    3. 3
      +Edouard
      124
    4. 4
      ATLien_0
      87
    5. 5
      Steven P.
      83
  • Tell a friend

    Love Neowin? Tell a friend!