Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ahem. Try "import antigravity" (really!).
https://xkcd.com/353/
("Python" by Randall Munroe; CC BY-NC 2.5 licensed) -
On the other hand, this is really useful if you actually do want to do it in 2 lines, quick and dirty. It has its place.
-
@calmyourtities agreed, but consider the audience. Python is used by a large community for whom programming is a supporting thing or a hobby, like physicists, artists, statisticians, economists, accounting folks, pretty much every kind of researcher, etc. This kind of stuff is meant for them, not for professional programmers.
-
@RememberMe
Python probably indeed is the very first real multiparadigm general purpose _and_ audience language. -
@Oktokolo yeah. It's easy to forget that its design goals are different from most other languages - it's actually *trying* to cater to the layman, and that's a good thing because it fills that niche like nothing else does.
-
>>> import bitcoinminer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'bitcoinminer'
:(
Related Rants
-
linuxxx14Happened a while ago but I still find it funny. *phone rings* Me: good morning sir, how can I help you? Cli...
-
linuxxx44Just watched a video where someone (in relation to the new mass surveillance law in the netherlands) asked peo...
-
linuxxx20That moment when an SEO 'expert' asks if changing ip addresses will put his sites lower in Google. I'm a fuck...
fuck off with the “do x in y lines of python code” it’s getting so goddamn annoying. yes python is concise. yes libraries do everything. you don’t need to show off someone else’s work with clickbait.
everything is like
“make a web server in 2 lines of python code”
import http.server
server = http.server.serve()
“mine bitcoin in 2 lines of python code”
import bitcoinminer
bitcoinminer.mine()
“do crazy math with 4 lines of python code”
import complex
import numpy
num1 = 1
num2 = 1
num3 = complex.addVectorMagnitudes(num1, num2)
rant
satire
fuck off