It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
low rated
Python is a widely-used general-purpose programming language. It is used for web development and scientific computing often.

The process of Python web development is typically broken into three stages: design, content and programming. The design stage handles the layout and looks of the site, while the content stage includes all of the articles and pages on the site. The final stage, programming, takes the information in the content stage and turns it into a working website.
There are many advantages to Python web development. It is easy to install, and it is available for all the major platforms. It is also a very powerful language that supports object-oriented programming, procedural, functional and imperative paradigms.

The tools available in Python can automate the process and make it easier for web developers to get things done faster. Here is how.

Parsing XML with Python. XML is a file format often used in data exchange. The structure of XML files is defined by the Document Type Definition (DTD). Parsing XML means reading or interpreting the information within an XML file. The standard Python library provides the XML.dom module that provides DOM-like interfaces for handling XML documents. Using this module we can parse an XML file into a Document Object Model (DOM).

A DOM is a tree-structure representation of an XML document. It is written in JavaScript, but it is supported by many different languages, including Python.

Streamline your web development needs and hire Python developers. At Eiliana, you can review the profiles of hundreds of freelancers and get them on board to ace the website development process.
low rated
snake?
i think you cant build websites with snakes they are just not smart enough
avatar
Orkhepaj: snake?
i think you cant build websites with snakes they are just not smart enough
You are right, you need spiders to build the web, not snakes.
low rated
Isn't it generally accepted that Python is a shitty programming language that only became well-known because Google was shilling it relentlessly for a decade or so?
low rated
avatar
Crosmando: Isn't it generally accepted that Python is a shitty programming language that only became well-known because Google was shilling it relentlessly for a decade or so?
oh is it a programming lang? why would anybody name it a snake then? makes no sense

hmm
checking it out looks like it is used by apple fans
avatar
Orkhepaj: snake?
i think you cant build websites with snakes they are just not smart enough
avatar
nightcraw1er.488: You are right, you need spiders to build the web, not snakes.
yeah a spider would be much more useful for that
Post edited December 16, 2021 by Orkhepaj
avatar
Crosmando: Isn't it generally accepted that Python is a shitty programming language that only became well-known because Google was shilling it relentlessly for a decade or so?
Stop chatting shit mate. Python is awesome.

It has a bad rep because of some old tropes though

"That Django's got your baby"
Post edited December 16, 2021 by lupineshadow
avatar
lupineshadow: Stop chatting shit mate. Python is awesome.

It has a bad rep because of some old tropes though

"That Django's got your baby"
Python is the most productive programming language that I know. If you're gonna do everything with one language and nothing you'll do will be too cpu intensive, Python is probably your Huckleberry.

That being said, compared to most other programming language, it runs pretty slowly, it has a dependency on the Python interpreter, plus any package you require, to run and last I checked, the packaging and bundling ecosystem for Python was rather fragmented.

If you're ok with knowing more than 1 language, for some specific problem domains (ex: Golang for devops on cloud solutions or for command line clients, Scala for big data, NodeJS or Golang for high performance io intensive web servers, C or Rust for performance critical system-level components, etc), better alternatives can often be found.

Also, imho, Flask > Django. It is less opinionated and more minimalistic.
Post edited December 16, 2021 by Magnitus
low rated
avatar
lupineshadow: Stop chatting shit mate. Python is awesome.

It has a bad rep because of some old tropes though

"That Django's got your baby"
avatar
Magnitus: Python is the most productive programming language that I know. If you're gonna do everything with one language and nothing you'll do will be too cpu intensive, Python is probably your Huckleberry.

That being said, compared to most other programming language, it runs pretty slowly, it has a dependency on the Python interpreter, plus any package you require, to run and last I checked, the packaging and bundling ecosystem for Python was rather fragmented.

If you're ok with knowing more than 1 language, for some specific problem domains (ex: Golang for devops on cloud solutions or for command line clients, Scala for big data, NodeJS or Golang for high performance io intensive web servers, C or Rust for performance critical system-level components, etc), better alternatives can often be found.

Also, imho, Flask > Django. It is less opinionated and more minimalistic.
slow? so if i move the gui does it lag?
Flask? Django? are those the movies?
avatar
Orkhepaj: slow? so if i move the gui does it lag?
Flask? Django? are those the movies?
Slow is a relative term. For a lot of tasks, it probably won't matter this much.

For some, where things will be iterated thousands or even millions of times with the expectations that those computation will still have a low latency (ex: games, system components that are near the kernel, busy load-balancers, etc), then yes, its too slow.

For many things, Python will use bindings against a C implementation (ex: its regex implementation or Numpy) which will compensate for a lot of things, but ultimately, libraries will put some limit on the kind of custom computation they support and if a lot of the processing is done by your Python code outside of your C libraries, then you'll have no choice, but to byte the performance bullet.

Of course, you can always say "Yeah, I'll just move more of it in custom C libraries outside of Python", but at some point, you need to realize that what you're essentially doing is implementing most of it in C and putting a thin Python layer on top of it.
Post edited December 16, 2021 by Magnitus
low rated
avatar
Orkhepaj: slow? so if i move the gui does it lag?
Flask? Django? are those the movies?
avatar
Magnitus: Slow is a relative term. For a lot of tasks, it probably won't matter this much.

For some, where things will be iterated thousands or even millions of times with the expectations that those computations will still have a low latency (ex: games, system components that are near the kernel, busy load-balancers, etc), then yes, its too slow.

For many things, Python will use bindings against a C implementation (ex: its regex implementation or Numpy) which will compensate for a lot of things, but ultimately, libraries will put some limit on the kind of custom computation they support and if a lot of the processing is done by your Python code outside of your C libraries, then you'll have no choice, but to byte the performance bullet.
so it is not as slow as those java apps?
which is better java or python?
hmm found a compare
https://
benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/python3-gcc.html
Post edited December 16, 2021 by Orkhepaj
avatar
Orkhepaj: so it is not as slow as those java apps?
which is better java or python?
I'm not a Java fan so I'd be biased in that answer.

Over the years, I've specialized in C++, Python, NodeJs and more recently Golang. I've done some Java on and off but it never stuck (and after tackling some codebases implemented with Spring in later years, I can say I want to have as little to do with the modern Java ecosystem as humanly possible).

Java is often accompanied by burdensome frameworks (ex: Spring, JBoss, etc) that add a significant complexity overhead to anything you do (and are old-school in their opinions, they often assume for example that your Java app will be a persistent standalone application and won't be managed by an orchestrator like kubernetes or even systemd) and is dependent on the ram-hungry, slow to boot JVM (which also needs to be installed on whatever machine Java runs), which in the age of containers, leaner virtual machines and cross-platform compilation that produces self-contained binaries for a lot of platforms anyways, is a step backwards in my opinion.

That being said, in terms of cpu utilisation, yes, Java > Python, but for those use-cases, I much prefer to use Golang.
Post edited December 16, 2021 by Magnitus
low rated
avatar
Orkhepaj: so it is not as slow as those java apps?
which is better java or python?
avatar
Magnitus: I'm not a Java fan so I'd be biased in that answer.

Over the years, I've specialized in C++, Python, NodeJs and more recently Golang. I've done some Java on and off but it never stuck (and after tackling some codebases implemented with Spring in later years, I can say I want to have as little to do with the modern Java ecosystem as humanly possible).

Java is often accompanied by burdensome frameworks (ex: Spring, JBoss, etc) that add a significant complexity overhead to anything you do (and are old-school in their opinions, they often assume for example that your Java app will be a persistent standalone application and won't be managed by an orchestrator like kubernetes) and is dependent on the ram-hungry, slow to boot JVM (which also needs to be installed on whatever machine Java runs), which in the age of containers, leaner virtual machines and cross-platform compilation that produces self-contained binaries for a lot of platforms anyways, is a step backwards in my opinion.

That being said, in terms of cpu utilisation, yes, Java > Python, but for those use-cases, I much prefer to use Golang.
hmm arent those framework complexity part of every lang?
is golang that good? is it the same as Go?
Post edited December 16, 2021 by Orkhepaj
avatar
Orkhepaj: hmm arent those framework complexity part of every lang?
All languages have optional frameworks (usually for web development, but not always).

However, while optional, those frameworks often drive the ecosystem and "culture" of the language (how most code bases using that language tend to be managed).

While it is possible to do Java without any framework, all moderns Java projects I've worked on used Spring and were very much dependent on a complicated IDE to keep the codebase manageable. That put me off the language.

avatar
Orkhepaj: is golang that good?
Like most languages, it depends what you want to do. For devops work, it is great.

avatar
Orkhepaj: is it the same as Go?
Yes.
Post edited December 16, 2021 by Magnitus
low rated
avatar
Orkhepaj: hmm arent those framework complexity part of every lang?
avatar
Magnitus: All languages have optional frameworks (usually for web development, but not always).

However, while optional, those frameworks often drive the ecosystem and "culture" of the language (how most code bases using that language tend to be managed).

While it is possible to do Java without any framework, all moderns Java projects I've worked on used Spring and were very much dependent on a complicated IDE to keep the codebase manageable. That put me off the language.

avatar
Orkhepaj: is golang that good?
avatar
Magnitus: Like most languages, it depends what you want to do. For devops work, it is great.

avatar
Orkhepaj: is it the same as Go?
avatar
Magnitus: Yes.
thx

hmm so what kind of development doesnt require an IDE with lots of helper modules?
My understanding is that Python is the BASIC of the modern age. Absolutely fine if you're doing things slightly more advanced than shell scripts, but you should consider going to deeper languages.

As for a spambot suggesting websites be built with python instead of javascript, that is an interesting thought, too bad I have to tell the OP to FOAD.

Personally, I'm interested in seeing what going from C to Rust does.