Python vs PHP: Why are there so few (free) shared hosting offers?
Key Takeaways
The video discusses the differences in hosting options for Python and PHP, highlighting the advantages of using platform-as-a-service providers like Heroku, Microsoft Azure, and Google Cloud Engine for Python applications.
Full Transcript
hey guys I got this Python hosting question in my inbox and in this video I want to share some of my thoughts so here's the question why are there so few Python shared free hosting offers compared to PHP this is a really interesting question because I never really thought of it that way you know by by comparison I never really felt there was less hosting or shared hosting offers for Python compared to PHP and in every occurred to me I think if you specifically look for shared hosting or you know the kind of hosting or just FTP up a bunch of files and then you have your web application running that way then I think this is an accurate observation though right like this kind of hosting setup it exists much more for PHP and not so much for Python I think there's actually a ton of free Python hosting out there it just follows a different methodology than what most PHP hosts offer so so let me explain what I'm what I'm saying here right typically when you host a Python application what I personally do and what I see most other people do is that you would just host it on for example a platform as-a-service kind of offering like Heroku or the Microsoft Azure cloud or the Google cloud engine or something like that where you can just you know bundle up your application hosted in the cloud somewhere and it'll run if it's a Python web application the the hosting model where you get FTP credentials and you upload a file and it just runs through CGI on a server and you have some kind of web app website running there like it's often done with PHP that isn't really that popular in the Python world and I could totally go on a rant here and say some very bad things about PHP and maybe how it has like a less professional developer audience but I'm not gonna do that I mean fundamentally we all just want to get stuff done and we use whatever means whatever means and whatever tools we have at hand right whether that's PHP or Python so I don't want to be all smug about it but on the other hand I think there's a certain truth to that so you know takes a little bit more skill and more experience to use these platform as a service providers but they actually offer you a ton of advantages right by comparison if you need to upload your your Python file or PHP file just through an FTP server then that doesn't really give you scalable deployments and it doesn't really help you you know maintain that code base and and deploy it in any kind of reproducible fashion with something like Heroku you can just deploy straight from your git repository you can rollback deploys you can do these deploys atomically and you can do them seamlessly so that the new version of your app comes up as the old version goes down and there's kind of a seamless deploy process and and you can do it's very hard to do that with the kind of FTP upload run a CGI script kind of hosting so well - to answer this question or maybe to give some some advice on how to do your Python web application hosting well I think you have to just pick up these skills you know figure out how to package up your application so you can deploy to Heroku and then do that it's actually a great thing for you and you don't want to do the classical you know upload an FTP file to some server and run that on shared hosting I've been my mind that is a bad development or bad deployment practice and if you can get away from that then that's actually a great thing and if you few the if you view the world from that perspective or the hosting world from that perspective you'll see that there's a ton of options for Python hosting out there and the reason for that is that usually these hosting options they're not advertised as Python hosting specifically it's just a cloud provider a platform as a service where you can take your programs and run them on there whatever the programming language and Python is just a very popular target in that respect all right if this video was helpful dand click the like and subscribe button and maybe post your own question in the comment below and I'll try and tackle it in a future video
Original Description
https://dbader.org/python-tricks ► Free tips for writing more Pythonic code
"Why are there so few Python shared (free) hosting offers compared to PHP?" -- Interesting question I got from a web developer who's also a dbader.org newsletter reader. In this video I'll share some of my thoughts on the matter.
Whether you're a PHP developer looking to learn Python, or a Python developer looking at PHP hosting options with envy I'll explain what's going on in the hosting world and how this perceived difference in the number of hosting options comes down to differences in advertising and the preferences of PHP vs Python developers.
Where do you host your Python web applications? Leave a comment below and let me know!
FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery
SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube
* * *
► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com
► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com
FREE Python Coding Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter: https://twitter.com/@dbader_org
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Real Python · Real Python · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
A better Python REPL – bpython vs python interpreter
Real Python
Introducing large-type.com – A Utility Website
Real Python
Reading Hacker News Without Wasting Tons of Time
Real Python
Forward References and Python 3 Type Hints
Real Python
Using Sublime Text as your Git Editor
Real Python
Python Code Linting and Auto-Complete for Sublime Text
Real Python
Make your Python Code More Readable with Custom Exceptions
Real Python
Write Better Tests with Sublime Text's Split Layout Feature
Real Python
How to Use Sublime Text from the Command Line
Real Python
Rename Variables with Multiple Selection in Sublime Text
Real Python
Sublime Text Settings for Writing PEP 8 Python
Real Python
Write Cleaner Python with Sublime Text's Indent Guides
Real Python
Sublime Text Whitespace Settings for Python Development
Real Python
Function Argument Unpacking in Python
Real Python
Python Code Review: Debugging and Refactoring "Conway's Game of Life" + Automated Tests
Real Python
Using "get()" to Return a Default Value from a Python Dict
Real Python
A Python Shorthand for Swapping Two Variables
Real Python
Python Code Review: Refactoring a Web Scraper, PEP 8 Style Guide Compliance, requirements.txt
Real Python
Click & Jump to Test Failures from the Command Line (iTerm2)
Real Python
Setting up Sublime Text for Python Developers
Real Python
Sublime Text + Python Guide Overview
Real Python
Python Code Review: Adding Pytest Tests to an Existing Python Web Scraper
Real Python
Type-Checking Python Programs With Type Hints and mypy
Real Python
A Shorthand for Merging Dictionaries in Python 3.5+
Real Python
Python Code Review Flask Web Security Tutorial + Virtualenvs, requirements.txt
Real Python
My Python Code Looks Ugly and Confusing – Help!
Real Python
Setting Up a Programmer Portfolio/Developer Blog – How To Get Started
Real Python
Do I Need a GitHub/GitLab/Bitbucket Profile as a Developer?
Real Python
Programmer Portfolio – Example and Walkthrough
Real Python
How to Get Your 1st Speaking Gig at a Tech Conference
Real Python
How to Build Your Public Speaking Skills as a Developer
Real Python
The Object-oriented Version of "Spaghetti Code" is "Lasagna Code" ?!
Real Python
Setting up Sublime Text for Python Developers – Lesson #1
Real Python
Cool New Features in Python 3.6
Real Python
"is" vs "==" in Python – What's the Difference? (And When to Use Each)
Real Python
Emulating switch/case Statements in Python with Dictionaries
Real Python
Python Function Argument Unpacking Tutorial (* and ** Operators)
Real Python
What Code Should I Put On My GitHub/GitLab/BitBucket Profile?
Real Python
A Crazy Python Dictionary Expression ?!
Real Python
String Conversion in Python: When to Use __repr__ vs __str__
Real Python
Method Types in Python OOP: @classmethod, @staticmethod, and Instance Methods
Real Python
Optional Arguments in Python With *args and **kwargs
Real Python
Python Context Managers and the "with" Statement (__enter__ & __exit__)
Real Python
Installing Python Packages with pip and virtualenv / venv
Real Python
"For Each" Loops in Python with enumerate() and range()
Real Python
Python Code Review: LibreOffice Automation and the Python Standard Library
Real Python
Managing Python Dependencies With Pip and Virtual Environments – Lesson #1
Real Python
Python Tutorial: List Comprehensions Step-By-Step
Real Python
Leveraging Python's Implicit "return None" Statements
Real Python
What's the meaning of underscores (_ & __) in Python variable names?
Real Python
Python Data Structures: Sets, Frozensets, and Multisets (Bags)
Real Python
Writing automated tests for Python command-line apps and scripts
Real Python
How to find great Python packages on PyPI, the Python Package Repository
Real Python
Immutable vs Mutable Objects in Python
Real Python
PyPI vs Warehouse, the Next-Generation Python Package Repository
Real Python
pep8.org — The Prettiest Way to View the PEP 8 Python Style Guide
Real Python
My Experience at PyCon 2017 in Portland
Real Python
Pylint Tutorial – How to Write Clean Python
Real Python
"Reverse a List in Python" Tutorial: Three Methods & How-to Demos
Real Python
Python Refactoring: "while True" Infinite Loops & The "input" Function
Real Python
More on: AI Workflow Automation
View skill →Related Reads
📰
📰
📰
📰
The Modern Browser Testing Stack: AI, CI, Human Review, and the Cost of Maintenance
Dev.to · Simon Gerber
Build an AI Error Explainer in Python
Dev.to AI
I Built 4 Interactive Engineering Tools You Can Run in Your Browser
Dev.to · Dhananjay kumar Seth
Teaching Smarter with AI: How Teachers Can Save Time, Create Better Lessons, and Personalize…
Medium · AI
🎓
Tutor Explanation
DeepCamp AI