Python: Overrated meme or underrated crap?

Python: Overrated meme or underrated crap?

Attached: control-arduino-python-670x335[1].jpg (670x335, 44K)

Other urls found in this thread:

youtube.com/watch?v=Al3zQWAAQ3E&t=19s
twitter.com/SFWRedditGifs

it just werks

embedded pithon

ima embed my python in u bb

More like underrated meme.

>overrated or underrated?
it is good, but popular enough to not be underrated
it is used as jack of all trades, and not when a specific language is used
it is good where it is now, it is neither

Attached: 1535642914439.png (548x582, 19K)

Good, but used in the wrong places.
If you want to automate shit, throw things together, or use it as the main script driving a more complex program, it's great.
If you want to make time-critical code, performance heavy shit, massive programs and infrastructure, or game engines (with a few, limited exceptions), it's trash.

It's highly versatile, making it very powerful, but that's not an excuse to use it for absolutely everything.

works for literally everything but my only irk is naming stuff like __main__ or __init__

>works for literally everything
>as long as you're ok with everything taking 30 seconds to happen and using up 100x more memory than it should
STOP FUCKING USING THIS RETARDED LANGUAGE FOR ANYTHING OTHER THAN PROGRAMMING PRACTICE TOYS

Attached: 0AC4A0BE3FD44485A26AEF257C7036BA.png (859x799, 99K)

Alright as a scripting language

Attached: python-logo-master-flat.png (1487x645, 43K)

if __name__ == "__main__":
main()

Annoys the hell out of me, especially on one-time use scripts that do not act as a library. I don't give a fuck if it's convention to do so, it's pointless and a waste of time in that context.

Meant for , I'm tired as fuck.

its working fucking great for this json parsing i have to do for a personal project. I'm not fuckin around with jq and bash scripts while json and requests libraries exist

Attached: 1553397577588.gif (344x344, 236K)

Whats the fastest method of learning python? Kinda interested in it.

pick a project you want to implement
write your pseudo code
google the python conversion for your pseudo code

fuck spaces use tabs you heathens

Have you taken the Julia red pill yet ? Really fast prototyping like python, speeds close to C.

Attached: julia.png (654x150, 15K)

Great for just throwing together some script that works. If you want performance look elsewhere.

Another code academy grad take your job, op?

This, a little json, a little requests and you can scrape entire pages
Except when it is a stupid site that uses javascript and when you try to parse it it goes
>Hurr, javascript not detected, install another browser
Then you can kiss your script goodbye, because now you have to use fucking selenium
>Inb4 phantomjs
iirc this doesn't work anymore

from shitpost import *

Anyway it depends on what you want to do with it. I do data science so python is pretty god tier.

"Python is slow" is a meme. Just about any task where you need speed can be passed off to a library that implements things in C.

I'm mainly a Tensorflow/Pytorch person so I'll probably use python for everything until Swift for Tensorflow is a thing.

Lisp is better

Can someone post cute snek image?

Attached: 1541270357096.gif (500x375, 249K)

I like to program in python because I pretend this cute anime girl is cheering me on when I do

Attached: 1549627955431.png (278x416, 38K)

sneks are cute

Attached: serveimage.gif (500x600, 238K)

based and Julia pilled

works great for learning and prototyping. It has okay to good performance. If you are diving into a complex topic, it's great.
If you want to specialize, you'll either find libraries with bindings or look into other languages.

Once you know the potential pitfalls, it's a great language.
Choose the right tools for the job and don't fall for the overrated/underrated meme.

>significant whitespace
>shitty documentation
>2.x vs 3.x
>le space weed man approved
It's Baby's First Scripting Language and that'd be fine if people didn't latch onto it and confidently declare it The Best without ever exploring anything else.

Attached: Screenshot_20190417-095746_Firefox.jpg (810x2062, 505K)

So Musk is a brainlet, not surprising.

Try Cython

youtube.com/watch?v=Al3zQWAAQ3E&t=19s

I think he likes C too
Hard to decipher his tweets sometimes

Attached: untitled.png (565x425, 347K)

Attached: Screenshot_20190417-102507_Firefox.jpg (1080x1227, 507K)

PYTHON!!!

Attached: 1555385805508.jpg (252x251, 30K)

Good for what it is. It's the BASIC of the modern age. It's really powerful for writing scripts, but if you're writing a proper program in it you're a fucking moron

/thread

Passing all the performant stuff down to C is a terrible crutch. It results in dumb shit like people using weird NumPy stuff to avoid slow Python loops.
We should really start ditching Python in favor of things like Julia or more performant high-level languages like Crystal and Nim when it comes to data science.

>It results in dumb shit like people using weird NumPy stuff to avoid slow Python loops

That's called broadcasting and vectorizing operations, aka the most basic aspect of computational linear algebra. Julia does that too.

Yeah, so simple yet Python can't seem to do it

You know you don't have to use namespaces in one time use scripts, right?

It will just werk without "if name eq das it mane"

Scrapy + Splash render server is the best scraping framework I have ever used for dynamic page scraping. No joke: I tried a lot of different tools, even Selenium but Scrapy turned out to get me quick to prod and is maintainable and modular.

But there's no need because we have C, CPP and CUDA bindings for numerical libs anyway.

It is shit as usual.

Why use libraries to make up for its poor performance? Then you're just using Python as glue between different lower-level libraries.
Everyone's made an ecosystem around a language with little to no inherent advantages.

Only girls like python
And that says a lot.

The inherent advantage is its declarativeness and flexibility. Leave the low-level code to the specialists.

You don't have to mess with the low-level code in other performant high-level languages, either.

requests_html

Can't even check for wrong spelted variables.

r u cute?

Might go for Julia or scala don't know yet, aiming for data scientist role.

Actually a bit of both.
Grossly overrated by the fanboys who think it's the perfect solution to every problem and has no issues whatsoever.
Underrated by the autists who think C (or Haskell or Lisp) is the only true programming language.

Python fanboys are everywhere because the vast majority of programmers are noobs (since it's a fast growing field). Noobs like to spout random stupid opinions authoritatively. Unfortunately no one knows you are a noob programmer in the internet.