Prove me wrong, Sup Forums.
Python is the best programming language in the world
Other urls found in this thread:
I happen to agree.
I can't prove you wrong
>god tier for mathematical/scientifical research
>god tier for data analysis including images and neural networks surrounding images
>god tier for webdev because Django is the comfiest fucking thing ever, and Flask is decent
>god tier for menial tasks too like web scraping
I used C, C++, Java for 15 years, but goddamn is Python a smooth motherfucker
>itertools
>Using a script language
Absolutely disgusting.
god tier for high level
c++ best for low level tho
> God is the greatest in the world. Prove me wrong
>>god tier for mathematical/scientifical research
>>god tier for data analysis including images and neural networks surrounding images
I wish pykids would die out.
>he doesn't know
Those pics showing PHD students leading image-based neural network technology using Python's numpy, scipy and pillow, as well as top companies like Google pushing it like mad, were not all a meme
javascript
learn once, write anywhere
>Neural network technology
Why is this the only thing pyfags have? And they're not even that good at it.
It is a meme, just like the academic lispfags that never really got anything done but were supposed to be the new holy grail of scientific/academic computing were a meme. Python will always be a beginner language that a programmer should at one point grow out of.
Rock on, pykids, you're gonna grow out of it soon(I hope), but keep shitposting to a minimum please.
lmao you are the one shitposting and memeing
>Prove me wrong
I can't
UI libraries don't add anything new, graphical libraries seem to be under utilized, Perl is better for system admin scripts in my opinion, python needs extra security precautions. Not good for high performance tasks. not easibly portable, Still python is one hell of a swiss army knife because of the community.
it's the best programming language for non-programmers
i understand that the front-facing libraries and their interfaces are written in python but all those things are written in C
Neither numpy, scipy, or pillow are useful for front-facing libraries. And if you mean CPython is written in C, so are interpreters, compilers and VMs for many other languages
__magic_method__
what i mean is that "Python" libraries such as numby aren't written in python -- they are written in C commonly. scipy uses fortran and some others as well
Use a switch statement.
OH WAIT
Yes, people who make the bigger libraries can extend python with those libraries.
The people who use them for research, however, are using Python
This was a test. You all passed. Well done.
That doesn't make python good, it makes it easy to use.
It is objectively worse in every performance aspect than almost any other language.
def function(stuff):
return {
'a': 1,
'b': 2,
}.get(stuff, 9)
# if stuff not found print 9
are you realizing you're arguing against yourself yet or not?
Why do some people use Python 2 and some people use Python 3? What's the difference?
>implying there is a "best" language
It's my goto language for most tasks, but if you think I'm going to program my μC in Python you're dreaming.
As much as I enjoy python, I do miss switch statements.
Considering I was arguing for python library users and not python library developers, I'm not arguing against myself.
The alternative is that you are trying to imply that there are fewer languages out there because many are written in others
>instantiate a dictionary to do branching logic
kek
and people make fun of java programmers
>Python is the best programming language in the world
>has its shortcomings made up for it by other programming languages as modules
theres your argument since you couldn't read between the lines
>It's my goto language
really? mine is BASIC.
I think you spelled wrong "Assembly x86"
>additional libraries are shortcomings
loving every laugh, fyi most languages have foreign interfaces and dynamic library languages are still used by industry professionals
>performance is the only metric of value
Some major changes were made between versions making them somewhat incompatible. The only reason to not use 3 is if some module you desperately need hasn't been upgraded to be compatible with 3 yet.
you probably don't even remember the times when PC games were written in assembly
Oh, you mean "Ruby light"?
Yeah, it's kinda neat.
>inb4 "muh scientifc algorithms" that are used by 0.001% of all users
>ruby
nice meme
>additional libraries are shortcomings
i shulda figured since u couldnt read between lines that u would make some shit u[p
>I can't into meta programming
Yes you implied numpy, scipy, etc are th result of a language's shortcomings. Considering, you can extend the language to make it flexible, you are only promoting python, which may be your intention. Otherwise, come up with a better argument please
Any example of open source game written in assembly? Sounds interesting
Make a private class variable that is impossible for me to access.
Oh wait
But user I trust you, why shouldn't I let you access anything if you want to?
>he fell for the encapsulation meme
lmao
Why?
If you can access the code something went already wrong..
It's enough to up put a "do not cross" sign and expect other programmers know what they are doing.
For what ? I mean its best program lang for what purpose ? I bet there is plenty of which Python is really good at, probably the best really, but just stating its the best overall for all purposes its just stupid, friendo ;^)
Let me just touch your organs m8 just trust me I won't do anything bad.
*breaks brain*
I use python professionally and I've never had a moment where I thought "shit this guy shouldn't access this". I've written games in C and SDL as well, and you can access anything you see in its source code.
Why is private stuff good again?
python programmer program cocks LOL GAY!
>professional
>Why is private stuff good again?
how many scrum teams are on your project again?
Why learn any language besides Javascript ?
You can do everything in JS
Fuck if I know fampai, it's a pretty big company
Is there any reason to learn programming anymore I can just hire some Indian for $.50 an hour to do the shit for me
Cant break whats already broken
That's not a switch case.
I can use a handcart to move furniture across town or I can put it in a truck.
One requires nothing, the other means I have to know all the traffic laws and have a heavy vehicle license.
Does that mean the handcart is the best option?
someone might be able to change a small detail later without breaking it if you dont hire an indian
>Python doesn't even have consts
LMAO
Inb4 "professional" Python devs saying why do you need consts just don't edit it :^)
Inb4 some hacky property bullshit
If you don't change it, how will it change?
I got so far in life without learning python. Actually learning it killed the magic.
>shitty scoping rules
>shitty threads
>shitty lambda expressions
>no TCO
>whitespace has syntactic meaning
>the disaster of a transition from 2 to 3 that has somehow left a huge amount of vocal idiots still using and swearing by 2
What are some good plugins for python in vim?
>Does that mean the handcart is the best option?
It means you're shit at analogies son
This is a terrible comparison.
Owning a truck yourself is faster, but you have to be licensed, you have to own a truck, you have to insure the truck, you have to maintain the truck, you have to fuel the truck. This costs time and money.
Or I can just toss some guy some cash and not have to worry about any of that. Sure it may arrive a day later than if i had my own truck, but my life was made easier. I can also do other things while some other schmuck is driving the furniture for me.
It's still a flawed analogy, but in the end, if all I'm trying to do is crunch some raw data to create some human readable charts, is performance really the metric I give a shit about?
>global interpreter lock
>stock photos
Multi-threading is terrible anyway. Cooperative scheduling with co-routines is where's it's at (call it "green threads" or however you want).
If you need more performance:
1) Don't use CPython
2) Don't use CPython
3) Spawn multiple processes and have them communicate
>greenlets
kek, enjoy your single-core speed limit
>processes
expensive as fuck to spawn on demand
>don't use CPython
So use PyPy? What good python implementations are there?
>PyPy
Not compatible with a few packages either. CPython is the best
I just got into Python anyone have a good IDE to use with it. It really seems to rely on indentation much more than other languages.
Pycharm
underrated
I love Python but it's weakness is where C/C++ take over and vice versa.
When you program in python what you're actually doing is programming a programming language to program a programming language to program a computer. This can be called progprogprogramming, and just as three lefts make a right, three progs make an amateur linguistic twiddler.
Arguments against python being the best language in the world:
It's slow
It has quirks
No/whacky dynamic memory allocation
Easily replaceable, unlikely to be used that much 20 years from now
Seems to leave little legacy code, so if a better alternative shows up, python will disappear quickly (Compare with perl)
However:
It's easy to learn
It's fast to type
It's widespread
It has plenty of nice libraries for plenty of different things
It's multi-paradigm
Of course all languages have different applications. In its own category python is probably one of the best languages that you could learn. And given that most programming should be done (cycles are cheap, programmers expensive) in high-level languages python is probably one of the best languages to learn all categories as well.
Vim with Jedi
Python was like my 5th programming language and I still use it all the time for simple programs and scripts. There are plenty of applications where it really is a good tool for the job.
There is no single programming language that is suited to every task. If language X has some useful libraries and features that would make your project easier, then use that instead of being autistic. Language evangelists are so annoying, and most of them have never done any real-world programming outside of their mom's basement.
then tell me: how do I install matplotlib, if installing through pip and homebrew doesn't work, also downloading and using the .whl-wheel doesn't work. Is matplotlib not compatible with OSX 10.11 El capitan?
Crystal will rule the world one day. Learn ruby.
django is shit
no brackets around code blocks. that shit is totally messed up.
Golang desu.
indent block are really comfy after you write for longer time
its not lack of brackets that make syntax bad.
Look at js, functions with callback sometimes has 16+ brackets
Literally why do you need them though.
You gave an actual reason and then said 'lol I bet you'll say this :^)'
python list and dictionaries are mutable, rest are immutable
F# desu
I'm pretty sure you mean SPARC assembly, X86 is as shitty as assembly languages get.
>Py_Initialize();
Done.
Also:
>metaclasses
Also, see
>What good python implementations are there?
There aren't. That's the joke.
I was honestly hoping he'd try to post some python 2 interpreter so I could have a laugh
pun
defsystem "foo"
:version (:read-file-form "variables" :at (3 2))
:components
((:file "package")
(:file "variables" :depends-on ("package"))
(:module "mod"
:depends-on ("package")
:serial t
:components ((:file "utils")
(:file "reader")
(:file "cooker")
(:static-file "data.raw"))
:output-files (compile-op (o c) (list "data.cooked"))
:perform (compile-op :after (o c)
(cook-data
:in (component-pathname (find-component c "data.raw"))
:out (first (output-files o c)))))
(:file "foo" :depends-on ("mod"))))
(defmethod action-description
((o compile-op) (c (eql (find-component "foo" "mod"))))
"cooking data")
QED slacker
>what is a debugger
says whom has not used django
>vocal idiots still using and swearing by 2
Sup Forumstards will swear by a lot of shit.
There aren't any sane people who swear by Python 2, it's just because of legacy code or libraries that are in 2 and not supported in 3 so you stick with what you have.
I respect that. What I can't stand seeing is people getting newcomers to learn 2.
name a language where a private variable is IMPOSSIBLE to access
but pypy is gud
I don't believe you can in Ada. I could be wrong.
>name a language where a private variable is IMPOSSIBLE to access
In the language itself? Python
def foo():
x = 10
return 5
# Try to access x. Protip: you can't
For programmers that aren't shit yes, it's the only metric, since all others are in their direct control. Anything else you bring up like "ease of use" is just proof you're a shit programmer.
>Yes you implied numpy, scipy, etc are th result of a language's shortcomings.
No he didn't you moron, any language has libraries. He said you're justifying how great Python is through C libraries, which makes no sense.