GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can someone explain Python on the web to me? I dont get it at all (https://gfy.com/showthread.php?t=1107957)

clickhappy 04-28-2013 08:09 PM

Can someone explain Python on the web to me? I dont get it at all
 
how does Python work on the web?
I understand PHP and ASP totally because they're embedded into the html page, but with Python how does that work on the web?

Where does the code go, and how does it work with web pages?

lagwagon 04-28-2013 08:39 PM

http://www.vyperlook.com/wp-content/...long-snake.jpg

digitaldivas 04-28-2013 08:43 PM

Python is a programming language that lets you work more quickly and integrate your systems more effectively... Although Python, includes some modules that are helpful for creating plain CGI programs. 70 % is backend database 2 cents:

harvey 04-28-2013 08:50 PM

you don't use Python for web development. You could, but you shouldn't. Slow as fuck, you need special servers, coding to work between WSGI and HTML is a nightmare (let alone mod_python), you gotta restart the server every time yo make a change... well, unless you're a real geek who doesn't plan to use the site, can't even imagine why would you want to use Python on a web environment, at least on its current state.

The above being said, Python for desktop apps is amazing :thumbsup

Fetish Gimp 04-28-2013 08:52 PM

Quote:

Originally Posted by clickhappy (Post 19602169)
how does Python work on the web?
I understand PHP and ASP totally because they're embedded into the html page, but with Python how does that work on the web?

Where does the code go, and how does it work with web pages?

Google is your friend. Do not fear it.

http://wiki.python.org/moin/PythonVsPhp
http://www.sitepoint.com/the-real-di...hp-and-python/

clickhappy 04-28-2013 09:05 PM

Quote:

Originally Posted by Fetish Gimp (Post 19602198)

How dafuq will searching for "python php differences" tell me how python is used for the web?
If they're that different then I might as well be searching for "Apple Banana differences"

clickhappy 04-28-2013 09:09 PM

Quote:

Originally Posted by lagwagon (Post 19602189)

Actually its named after this ;o)
https://encrypted-tbn1.gstatic.com/i...Ng_r3m28tHUs5w

clickhappy 04-28-2013 09:11 PM

Quote:

Originally Posted by harvey (Post 19602196)
you don't use Python for web development. You could, but you shouldn't. Slow as fuck, you need special servers, coding to work between WSGI and HTML is a nightmare (let alone mod_python), you gotta restart the server every time yo make a change... well, unless you're a real geek who doesn't plan to use the site, can't even imagine why would you want to use Python on a web environment, at least on its current state.

The above being said, Python for desktop apps is amazing :thumbsup

Quote:

Originally Posted by digitaldivas (Post 19602192)
Python is a programming language that lets you work more quickly and integrate your systems more effectively... Although Python, includes some modules that are helpful for creating plain CGI programs. 70 % is backend database 2 cents:


thanks guys. I just felt so confused how "Google is written in python" and "youtube is written in python" so I dont understand how its done.
thanks

harvey 04-28-2013 09:27 PM

Quote:

Originally Posted by clickhappy (Post 19602215)
thanks guys. I just felt so confused how "Google is written in python" and "youtube is written in python" so I dont understand how its done.
thanks

none of them are written in Python. They use specific features written in Python, which are undisclosed, but I assume they're using Python for the heavy burden of algorithms and back end tools, like video processing and database management. For that, Python is impressive, it just doesn't handle web well (At least not directly or not known, who knows what 2 of the most technologically advanced companies in the world have under their sleeves) .

Anyway, take what I say with a pinch of salt: I'm a noob at Python, what I'm telling you comes from my professor since the first thing i asked him (obviously) was the same question you're doing here. And that's the answer I got: use it for desktop, avoid web for now until new tools and frameworks are developed.

If you still wanna try it, I suggest Django+Jinja , it's pretty easy for people like me, and I'm a retard! :1orglaugh

Fetish Gimp 04-28-2013 09:29 PM

Quote:

Originally Posted by clickhappy (Post 19602208)
How dafuq will searching for "python php differences" tell me how python is used for the web?
If they're that different then I might as well be searching for "Apple Banana differences"

I'm sorry if suggesting you use Google or any other search engine to find information about a subject you're curious about, something which is one of the main purposes of the internet, offended you.

Please accept my most sincere and humble apologies.

clickhappy 04-28-2013 09:36 PM

Quote:

Originally Posted by harvey (Post 19602229)
none of them are written in Python. They use specific features written in Python, which are undisclosed, but I assume they're using Python for the heavy burden of algorithms and back end tools, like video processing and database management. For that, Python is impressive, it just doesn't handle web well (At least not directly or not known, who knows what 2 of the most technologically advanced companies in the world have under their sleeves) .

Anyway, take what I say with a pinch of salt: I'm a noob at Python, what I'm telling you comes from my professor since the first thing i asked him (obviously) was the same question you're doing here. And that's the answer I got: use it for desktop, avoid web for now until new tools and frameworks are developed.

If you still wanna try it, I suggest Django+Jinja , it's pretty easy for people like me, and I'm a retard! :1orglaugh

awesome just what I was looking for thank you

clickhappy 04-28-2013 09:40 PM

Quote:

Originally Posted by Fetish Gimp (Post 19602230)
I'm sorry if suggesting you use Google or any other search engine to find information about a subject you're curious about, something which is one of the main purposes of the internet, offended you.

I took "google is your friend" to mean that im so stupid I dont know how to search on Google for my question, which wouldnt be answered with your suggestion anyways.
thanks anyways

Fetish Gimp 04-28-2013 09:44 PM

Quote:

Originally Posted by clickhappy (Post 19602237)
I took "google is your friend" to mean that im so stupid I dont know how to search on Google for my question, which wouldnt be answered with your suggestion anyways.
thanks anyways

Any time :thumbsup

lagwagon 04-28-2013 10:01 PM

Quote:

Originally Posted by clickhappy (Post 19602212)


I concede, you win!

Klen 04-29-2013 01:21 AM

I hate phyton, linux gnome is written in it and i cant figure out where it store it's configuration files no matter what.

adultmobile 04-29-2013 04:41 AM

Python is for scientists and NASA so no one in GFY should ever touch it.

EddyTheDog 04-29-2013 04:59 AM

I tried it with a Google apps site - It gave me a headache - Don't worry about it would be my suggestion....

Ferus 04-29-2013 05:14 AM

I don't know if it still is, but reddit used to be powered by web.py - a phyton framework.

It have powerful libraries for data manipulation and analysis, that makes it great for "big data".
(Huge linklists, tubes, image db's and that sort of functions)


The code is all serverside, so you don't embed it as you do with PHP, JS and the likes.

edgeprod 04-29-2013 08:22 AM

Quote:

Originally Posted by clickhappy (Post 19602215)
thanks guys. I just felt so confused how "Google is written in python" and "youtube is written in python" so I dont understand how its done.
thanks

Google has since been re-written in compiled languages, but the reason for originally being developed in Python was pretty simple: Python is well-suited to rapid prototyping, and is an excellent "glue" language for combining programming languages.

When we released Python version 2.0, Guido and the rest of us concentrated on adding features that would enhance the evolution and adoption of the language. In addition to releasing the language from the restrictive CNRI license (which was of critical importance to us), we saw some of these features (garbage collection, etc) as opening Python up to a broader user base.

I personally left the team shortly after the release of 2.0, and don't currently code in Python for anything other than prototyping .. but it's still great for that.

fris 04-29-2013 10:58 AM

here is an example of python for the web

Open-source project, using Django, Python, jQuery, Bazaar, Launchpad, HTML5, Bootstrap from Twitter

http://www.bashoneliners.com/

edgeprod 04-29-2013 01:49 PM

Interesting link, fris.

clickhappy 04-29-2013 05:55 PM

and Dropbox is "Written in python" i still dont get it.
are the modules written that go on the server? Like microsoft COM components with ASP.net?

marlboroack 04-29-2013 05:59 PM

Quote:

Originally Posted by lagwagon (Post 19602189)

lolololollol:pimp

Zoxxa 04-30-2013 04:12 AM

Python is slow and difficult? Python has to be one of the easiest languages to learn, this is the reason it is used by NASA/ google as it is so close to a prototyping language. Also for speed you should be concerned about memory/cpu as none of us will probably ever come across a project where php, ruby or python would be an issue in our projects. You should choose a language as a tool based on what feels more natural to you and gets the job done correctly and quickly.

Check out django book for more on python/django:
http://www.djangobook.com/en/2.0/index.html

Ferus 04-30-2013 09:27 AM

Quote:

Originally Posted by clickhappy (Post 19603982)
and Dropbox is "Written in python" i still dont get it.
are the modules written that go on the server? Like microsoft COM components with ASP.net?

It's serverside, like ASP.net
The output is the HTML-file.


Google "Server-side scripting"


All times are GMT -7. The time now is 09:38 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123