[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]

Why does /g/ hate this again?

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: 117
Thread images: 11

File: python.png (3KB, 387x130px) Image search: [Google]
python.png
3KB, 387x130px
>Easy to learn
>has tons of libraries so you can get almost any task done
>massive community to seek help from
>if you need better performance you can use cpython

Its the best thing going
>>
>>61155846
because /g/ hates anything easy.
>>
>>61155846
It's popular and /g/ hates everything popular.
>>
>>61155865
fpbp
code blood sweat and tears or don't code at all
>>
Whitespace syntax and import addiction.
>>
>>61155846
>>Easy to learn
That's why.
>>
>>61155907
> not wanting a language that forces good practices
>>
>>61155846
I don't hate it, it's just that Ruby is technically better in that niche.

>if you need better performance you can use cpython
And if by that you meant
>if you need better performance you can use cython
Well, unless you jump through a lot of extra hoops at which point you might as well something else performance is still garbage
And if you meant
>>if you need better performance you can use pypy
Performance is still garbage.
You simply can't have nice performance from dynamic scripting languages. In the end, even LuaJIT/V8/[obscure scheme interpreter]/Julia don't get that done without the Cython hoops.
>inb4 trivial numeric benchmark
>>
>>61155950
>Oops i guess i accidentally hit the spacebar somewhere in this 1500 line file, and the interpreter is spitting out an error 56 lines away from where the mistake is
C# and Golang have the right idea for "enforcing" good practices.
The IDE (or gofmt in golangs case) will automatically realign everything to set standards, which means you get consistent readable code without some dumb bullshit breaking the fucking program because you didnt do it EXACTLY how the interpreter wanted it styled.
>>
>>61155993
>tfw it tells you the line the indentation is wrong on.
>>
>>61156048
Error reporting is never accurate.
I have to work with this piece of shit language every fucking day and half my time is spent debugging it because the interpreter doesn't know what line the actual error is on.
Enforcing consistent styling is fine. Letting the entire project fall apart because of one errant indent is fucking retarded.
>>
>>61156076
>>61156076
Never had this issue , every time I have indented something wrong I instantly get a message saying
"Line 264 Incorrect indentation"
>>
>>61155846
>why does /g/ hate Python

I don't know.

Why does EVERYONE hate Python?

Literally no one in the industry uses it. I never see, "Need a python developer" in all the job listings I don't apply for.
>>
>>61156123
Good for you. It doesn't make it any less of a horrible, time-wasting idea.
>>
>>61156134
I think you just should git gud.
>>
>>61156183
I think you should try working on a python project that wasnt written exclusively by you before opening your fucking mouth.
>>
>>61155846
I don't like weakly typed languages.

>>61155993
You could also use Python with a good editor, I'm sure there are some editors that handle the indentation well. Also, whitespace syntax can make code really clean if it's done properly.
>>
>>61156133
>Literally no one in the industry uses it. I never see, "Need a python developer" in all the job listings I don't apply for.

Where the fuck are you applying/what area?
>>
>>61156228
>whitespace syntax can make code really clean if it's done properly.
It can also make it a near-unreadable mess or again, break the entire fucking project.
It's dumb. Visual Studio and gofmt handle enforced-styling correctly, Python does not.
>>
>>61156261
What projects have you had to work on with other people?
>>
>>61156261
Someone needs to look at pip8 and use pycharm and stop worrying about half the ram you will never use.
>>
>>61156261
You realize you're now comparing IDEs with a language?
>>
>>61156293
*editing utilities; I thought of the Visual Studio first and forgot to include gofmt.
>>
File: crystal-h.png (15KB, 1368x552px) Image search: [Google]
crystal-h.png
15KB, 1368x552px
S L O W
L
O
W
>>
There are some actually valid criticisms in here.

I am pleasantly surprised.
>>
File: IMG_7678.jpg (161KB, 960x960px) Image search: [Google]
IMG_7678.jpg
161KB, 960x960px
Why is it so hard for you niggers to just man up and learn C?
>>
>>61156354
I could get something done in half the time with python.
>>
>>61156281
The deployment system at my job is custom-built in python and it's a fucking headache every time it needs some new feature.

>>61156284
>Why don't you like this shit? If you coat the shit in ketchup it tastes like ketchup! Eat my shit or you're a faggot!

>>61156293
I'm comparing a language that explodes if you don't indent EXACTLY how it wants you to, to formatting tools that accomplish the same "force good practices!" (which whitespace syntax doesnt even do) without breaking the entire fucking thing if you decide not to.
>>
>>61156319
>FIOC
>slow
>muh libs

These are the same crits that have always come up you stupid retard.
>>
>>61156354
different uses.
>>
>>61156134
>Good for you. It doesn't make it any less of a horrible, time-wasting idea.
>I know my argument is bullshit but I still want to complain

Same
>>
>>61156370
So you could just use Python with a formatting tool that keeps your indents right. It's not like there is no editor that's capable of tracking Python indents, is it? You end up with the same combination of a language + formatting tool and the same result being enforced clean syntax.
>>
>>61156416
>Why don't you like this shit? If you coat the shit in ketchup it tastes like ketchup! Eat my shit or you're a faggot!
>>
>>61156477
Well, if talking about it feels too hard, that's fine. We don't have to go deeper Anon.
>>
What about Ruby, why does /g/ shit on it at every opportunity when it's basically a cleaner Perl?
>>
>>61155846
>not good for long running processes
>not good for apps with 1000s of lines of code
>not good for webdev, you have to force it, like ruby
>noobies spam stackoverflow asking how to make gaymes with it
>>
>>61156354
I don't want to learn unixisms.
>>
>>61156491
My point is that there being formatting tools available doesnt make it any less of a fucking stupid idea, or less of a goddamn nightmare to work on with other people
>>
>>61156541
>not good at webdev

Have you looked at Django,pyramid and flask?
>>
>>61156735
They all suck. The only languages worth using on the backend are PHP for standard templating shit, java for long running processes, and perl for the occasional regex.
>>
>>61156775
>php
hahahhahahahahahhahahaha
>>
>>61156494
ruby gets shit because >rails
>>
File: 1482988768654.png (194KB, 448x468px) Image search: [Google]
1482988768654.png
194KB, 448x468px
>>61156775
this is the best i can do
>>
>>61157315
>>rails
What about it
inb4 hipsters
>>
>>61155846
but muh C
>>
Its bad as a first programming language, it requires little self-discipline, one of my tutors referred to it as a "Californian" language.

But its god tier if youve already developed good programming practices.

Its just a really fun language to use.
>>
>>61156775
I bet you think shit tastes good too huh?
>>
>>61155865
I love easy and I hate python. The syntax sucks in comparison to lua and ruby. The metaprogramming sucks. Pep-8 is cool but no one follows it. Instead its a competition to write the most obfuscated code ever. That's because it's generally taught as a first language and every programmer goes through that stage of trying to write compacted code because they don't have the experience of maintaining legacy software and see it as writing advanced code.
>>
>>61156354
What kind of programs would I want to use C for? Am curious.
>>
>>61155846
>lacks proper lambdas
>ignores 10k years of CS research
>>
>>61158483
Even JS and PHP are better, this says something about how shit Python is.

>>61157991
>Its just a really fun language to use.
If you are a fool maybe, it actually tries to regulate the amount of fun that you may have.
>>
>>61158506
Python is fun for what you can accomplish fast, you can implement an idea very fast
>>
>>61158556
Considering its broken lambdas and its crippled support for FP I would claim that this is not the case, instead languages like JS are actually better for that.
>>
>>61158592
FP isn't necessarily a prerequisite for rapid prototyping
>>
File: 1485774983169.png (408KB, 558x689px) Image search: [Google]
1485774983169.png
408KB, 558x689px
>>61158619
Sure thing buddy, sure thing.
>>
>>61156208
>working with monkeys
>complaining about the language
>>
>>61155846
Sounds like the mentality of someone who copies and pastes shit off stack exchange. I don't want "libraries" that make it "easy".
>>
File: C_RqiewUwAA4snH.jpg (189KB, 630x891px) Image search: [Google]
C_RqiewUwAA4snH.jpg
189KB, 630x891px
>>61158659
>>
>>61158728
Nice, I love you.
>>
>>61158691

>i prefer to waste time and money re-inventing inferior wheels every time i start a new project

i bet you complain about how "poojeets" are stealing programming jobs
>>
>>61155846
I don't hate it, although I do wish people stop with the whole PEP-8 meme.

Enforcing something that isn't required by the language seems stupid (if you didn't want it, why tell the interpreter to allow it anyway?). Not to say that coding style isn't important (fuck those guys that don't comment their code), but telling everyone PEP-8 is the law is stupid.

Also i wish it had the ternary operator.
How hard is it to fucking allow me to write
 a ? b : c 

inline instead of something stupid like
 b if a else c 
>>
>>61155846
>>Easy to learn
What you are "learning" is bullshit.

Learning Python for real is learning what elements of Python are in C. See the problem?
>>
>>61158907
Oh, and increment and decrement too.
I never got why language designers hate on ++ and --
>>
>>61158907
Don't forget the lambdas that can only contain a single expression.
>>
>>61156133
We use python in physics because we aren't programmers but need to program to get our job done. Learning C++/C or anything that is actually fast would take way more time than just doing it in python and letting the analysis run over night.
And hiring a programmer to just code for us would be even less efficient since we often need to change things to see how the plots change.
>>
>>61158907

pep 8 is a good guideline to keep your code relatively standardized and can be a nice reminder of good coding practices, like making sure that your function parameter counts are not ballooning out of control

but i agree the people who treat it like some kind of gospel annoy the fuck about of me

you can ignore rules with some command, i forget what it is, something like "PEP8 IGNORE:1101" at the beginning of the file or something
>>
>massive community to seek help from

I asked a question once and no one helped me. massive my ass.

>cant do shit without libraries

this is such a joke and im glad i left this shit early instead of later
>>
>>61159417
>I asked a question once and no one helped me. massive my ass.
I ask stupid questions and no one answers me, clearly the community is retarded...
>>
>>61155907
>Whitespace syntax
Is that a confession that you indent your code inconsistently with mixed spaces and tabs?
>>
>>61156133
>I never see, "Need a python developer" in all the job listings I don't apply for.
Are you literally blind?

http://www.codingdojo.com/blog/9-most-in-demand-programming-languages-of-2016/
https://www.codementor.io/codementorteam/beginner-programming-language-job-salary-community-7s26wmbm6
>>
>>61156228
>weakly typed
Python is strongly typed. How about you understand what the fuck you're talking about before mouthing off.
>>
>>61155993
>will automatically realign everything to set standards
>letting your IDE mess with your code

wew, lad.
>>
>>61156133
>Literally no one in the industry uses it. I never see, "Need a python developer" in all the job listings I don't apply for.

Because python is a utility language. Need to wireframe or script something quick? Python.
>>
>>61161008
It seems you're right, what I meant was that it's not statically typed.
>>
File: django.png (8KB, 1200x418px) Image search: [Google]
django.png
8KB, 1200x418px
Python djagno is the bomb for webdev
>>
>>61156494
It's slow, has a terrible module system and the community cares more about aesthetics than writing reliable, maintainable and debuggable code (see the ridiculous use of monkey patching everywhere). It's also rarely used outside of Rails projects and Rails is a huge mess these days largely because of the aforementioned issues.
>>
My least favorite thing about python is that it isn't installed by default on Windows.

It's great for when I have to throw together a test station to characterize a new product and need to automate a shitload of parametric sweeps and dump the data to excel or generate plots. The problem is that I have to interface with the IT department to get anything installed on lab machines.

I wish there was a more portable way to distribute scripts. Freezing things is always a mess with tkinter, pyVISA, and pyserial.

Every language has things you can gripe about, but I yet to find something else that lets me just get the job done so I can move on to working with hardware.
>>
It's popular, and it is easy, so anon kiddies can't pretend it is a secret club. Same as anything else.
>>
>>61157545
It's slow and heavy as shit
>>
>>61155846
http://githut.info/ still growing surprisingly despite many new competitors
>>
>>61155846
Dropped it like a 1000degC knife on the first day when it tried to force indentation on me.
>>
File: 1385503926068.jpg (15KB, 441x411px) Image search: [Google]
1385503926068.jpg
15KB, 441x411px
>>61155846
>has tons of libraries so you can get almost any task done
>>
File: 1415668654416.jpg (16KB, 214x219px) Image search: [Google]
1415668654416.jpg
16KB, 214x219px
>>61155846
>A simply twitter bot
import twitter
>>
>>61156315
this btw desu
>>
>>61163566
desu filters to desu
wtf
>>
>>61163590
Fuck off, you spewing newfag.
>>
>>61163628
>spewing
what does that mean?
>>
>>61155971
luajit most certainly does get that done, and there are *several* scheme interpreters that do aswell.
>>
>>61156366
prove it
putting the types of the variables doesn't add any significant delay, and unless you're just spending hours feebly attempting to pass arrays around and getting pissed when sizeof doesn't return the length, i can't honestly imagine anything adding a ton of development time.
hashed strings don't count, you can do everything you can in python in c with minimal difficulty.
>>
>>61163989
k what's your preferred hash map implementation for C
>>
>>61164021
i usually design around it or use the one from k&r version two. it's not like python's strings are cryptographic-level, anyways.
>>
>>61155993
>C#
>Golang
>Laughing girls.jpg
>>
>>61164092
do the girls have an argument?
>>
>>61156542
Then get off of /g/
>>
Python syntax's are easy to learn .
>>
Node is simply better, easier and faster.
Also, significant whitespace is for cucks.
>>
>>61156133
>Literally no one in the industry uses it. I never see, "Need a python developer" in all the job listings I don't apply for.
because you're looking at junior codemonkey jobs and not $150k/yr remote data science gigs
>>
I feel like most people in the thread have never written a line of python in their lives
>>
>>61165441
print("You dont say")
>>
>>61163989
can you do this in C in only a few minutes?

didnt think so bitch
>Python - 1
>your low (as in low-life) level language of choice - 0
>>
File: rabbits_and_foxes_2v3.png (132KB, 800x600px) Image search: [Google]
rabbits_and_foxes_2v3.png
132KB, 800x600px
>>61165491
>>
python is good, but only if your using python 2.7

if you're not using python 2.7 you might as well kill yourself
>>
>>61155993
The whitespace being part of the syntax is the main reason I hate Python. It's easy to deal with when you're just writing a small program, but the language doesn't scale up well when used for large applications.
>>
>>61162174
Just learn powershell...
>>
>>61165491
i honestly don't even know what that is, or what part you're referring to.
if you want a ez little baby man graphing library you're not gonna find that for c (rev sbcl/racket (ew)/general math languages), but if you're talking about just general math you're probably far better suited with octave/mathematica/whatever, since those are actually made for it.
>>
>>61165761
>but if you're talking about just general math you're probably far better suited with octave/mathematica/whatever, since those are actually made for it.

what i wrong with python? numpy is awesome
>>
it shits me that your code can run fine for hours, pass all your tests and then crash because of some bullshit type problem.

Template strings have largely solved that for me but, it keeps popping up every now and then. REEEEE
>>
Just a reminder blender one the best 3d modelling tools is wrote in python.
>>
>>61166396
Blender is written in C, you idiot.
>>
>>61166569
t.brainlet
>>
I only use it as a replace to batch file, i'm too lazy to find a tutorial on batch programming
>>
File: tcl.jpg (35KB, 500x333px) Image search: [Google]
tcl.jpg
35KB, 500x333px
>>61158506
>>61158592
>some language exists which is inferior in some way to javascript
>>
because I'm not technologically handicapped and can quickly write and compile a program in C that uses 100x less resources and works 1000x faster
>>
>>61156208
I feel your pain. We were working on a project for uni, didn't have the best workflow, but a lot of the time there were logical errors caused by indentation issues... shit code yes but also shit standards...
>>
>>61155846
it's pretty nice for when i want to do something that would be difficult to accomplish with a bash script.
>>
>>61155846

it's got a lot of issues as a programming language, but as a scripting language it's pretty nice. still hate the global interpreter lock and fuck guido for not fixing that.
>>
>>61167155

how long until you have scrapy/scapy equivalents? i need to parse packets and web sites stat.
Thread posts: 117
Thread images: 11


[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.