[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Python

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 40
Thread images: 5

File: Ministry_of_Silly_Walks.jpg (14KB, 300x237px) Image search: [Google]
Ministry_of_Silly_Walks.jpg
14KB, 300x237px
Python is the best programming language and there's nothing you can do about it

> muh C / Lisp / Haskel / Rust

Python has best of those worlds an none of the drawbacks. Prove me wrong.
>>
>>61766673
QED
>>
>unorganized pseudo-OO crap
>forced indentation because BAWW WE WANNA FORCE PEOPLE TO ORGANIZE and everything breaks because you remove one goddamn whitespace character
>newline as line breaks like fucking BASIC
>ass-backwards coding ideas
"It is practically impossible to teach good programming to students that have had a prior exposure to python: as potential programmers they are mentally mutilated beyond hope of regeneration. "
- "How do we tell truths that might hurt?", 2017 edition, originally by Edsger Dijkstra
>>
>>61766872
Python can't into performance.

Unless you write in C and call from Python.
>>
>>61767802
or how Fortran is 100x faster than Python for math operations
last i checked Python doesnt have the option to impliment things needed for growing HPC needs
>>
>>61766872
>british "comedy"
>>
>>61766872
sorry no, forth is the best language and theres nothing you can do about it
>>
>>61768779
there are no paid forth devs. there are plenty of python devs on /g/ who make $150k/yr
>>
>>61768713

Yet Python has really caught on among scientists. Explain that?
>>
File: 1498108612020.webm (924KB, 600x336px) Image search: [Google]
1498108612020.webm
924KB, 600x336px
>>61766872
>>
>>61766872
You cant code a retractable usable cybertronic rocket with pythons
>>
>>61768713
Nigga you must not understand how HPCs and Python work

That and R is most of my job
>>
>>61766872
I tried writing a clone of Chips Challenge in python with tkinter.

It didn't work, 25% CPU usage minumum. Even when barely doing anything.
>>
>>61768987
>write shitty code
>it's python's fault!
ok lad
>>
>>61769011
Try it then, I dare you.
>>
>>61768987
to be fair tkinter is a super shitty library
there are alternatives
>>
>>61769033
Yeah, I mainly tried it for the novelty. I gave up though.
>>
>>61768943
Junior data scientist here. I know good bit of R, is it worth it for me to get into Python as well?
>>
>>61768809
>Explain that?

Scientists don't give a fuck about programming, software principles, it's all a distraction from time they'd rather spend thinking about science.

If a scientist can either:

Spend 5 minutes writing a program
Spend 15 minutes waiting for said program to run while doing calculations on the back of an envelope about supernovae and drinking coffee

OR

Spend 30 minutes writing a program
Spend 3 minutes waiting for said program to run because they painstakingly implemented it in epic insta-fast C and microoptimised the hell out of it.

You can see why they'd rather take the first option. I don't blame them since my degree is in science and to be honest I'd rather not be a programmer anyway.
>>
>>61766872
>Python is the best programming language
Python is a scripting language
>>
File: scipy.png (19KB, 200x187px) Image search: [Google]
scipy.png
19KB, 200x187px
>>61768713
if only there was some way to use that fortran code from python
>>
>>61766872
Python is too slow
>>
File: lisp.jpg (100KB, 312x251px) Image search: [Google]
lisp.jpg
100KB, 312x251px
>>61766872

> Mentions Lisp
> Doesn't show how to do Lisp Macros in Python
>>
>>61768800
>Python major
>300k starting
>any job I want
>>
with open('/path/to/some/file/you/want/to/read') as file_1, \ 
open('/path/to/some/file/being/written', 'w') as file_2:
file_2.write(file_1.read())

This won't run, despite it looking like perfectly valid python.
Go ahead and tell me why you think it won't.
(Hint: It's not a visible error)

And that's why it's a bad language.
>>
>>61769058
python is easy as fuark do it
>>
>>61772944
its the space and youre a cuck
>>
>>61773452
>its the space
Which one?
>>
>>61773657
3rd line, 3 spaces instead of 4.
>>
>>61773680
Nope. That's indented in with 4 spaces.
>>
>>61769083
I was going to reply to him.

Because it's easy as fuck. My old ass professor can use it even.
>>
Horrible packaging + virtualenv.
That's fucking bullshit. I don't need to do that in Node.js or Java.
>>
File: hmm.png (5KB, 356x334px) Image search: [Google]
hmm.png
5KB, 356x334px
>>61772944
>>
>>61772944
For the people here that can't tell what's wrong with this: there is a space AFTER the backslash on the first line, which prevents "line continuation" part of the parsing grammar from being invoked.

It's a bit extreme to say that this one wart makes it a bad language--it's just part of the language's C heritage.
>>
no thanks.
the lack of type safety is horrid
>>
>>61766937
>>forced indentation because BAWW WE WANNA FORCE PEOPLE TO ORGANIZE and everything breaks because you remove one goddamn whitespace character
OMG this
>>
>>61766872
Python is slow, and it is designed to be slow, because it is a language meant to write programs fast, not to run fast.
So, in cases where you need a program to be done fast, not a program to be fast, you python, otherwise you C, preferably with some library that check bounds for you, like the safe C library.
>>
>Le ____ is trhe BEST pogramming language !!1!

They're all shit you fucking reddit faggot
>>
>>61768800
>150k year
>a lot

GO TO LAUGH
>>
>>61766872
Julia exists
Thread posts: 40
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.