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

Find a flaw. PS: you can't..

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: 58
Thread images: 5

File: python.sh-600x600.png (126KB, 600x600px) Image search: [Google]
python.sh-600x600.png
126KB, 600x600px
Find a flaw.

PS: you can't..
>>
Virtual machine
Speed
Logo
>>
>>60300869
>Logo
it looks like 2 balls were touching each other, the flaccid uncut penises are also noticeable
>>
>>60300848
We're talking CPython, right? Global Interpreter Lock's a bit of a pain.
>>
>>60300848
Devs still too lazy to switch to Python3, cling to Python2 with all their might.
Slow as fuck, everything in python that actually needs performance is written in C anyway.
Shit logo
Shit packaging
Dependency hell with larger programs
"Pythonistas" refuse to learn how programming actually works, think that importing libraries is some magic feature of python and advocate stupidity
> Everything should be written in Python, just abandon everything that compiles
> You need x lines for that?? Python can do that in 2! <Insert language here> should be abandoned and deleted from existence immediately
>>
>>60300848
GIL
>>
>>60301361
>Slow as fuck, everything in python that actually needs performance is written in C anyway.
>"Pythonistas" refuse to learn how programming actually works, think that importing libraries is some magic feature of python and advocate stupidity
Are you retarded? If you can find an optimised and well-used (hence well-debugged) module for a given task, you should generally speaking use it instead of coding your own.

It's like you're some basement autist instead of an actual programmer.
>>
Impossible to feel superior to everyone else when typing psuedo code
>>
>>60300848
Slow,shit to deploy, half baked OOP,functional programming, non type system, still war python 2 vs 3
>>
>>60301563
I had a similar experience with this mentality at work today, albeit a different language.

>an exposed method return's a c# datetime object in json
>front end developer wants it conerted to specific format - mm-dd-yyyy with daylight savings time
>ask why wtf
>explains that he can't use the string of numbers since epoch
>confused, I ask him why not
>he patiently explains that angular doesn't have a module for that yet
>look at him tucker Carlson dumbfounded
>just convert it to a java script time object
>with an air of finality he explains that you shouldn't mix pure java script with angular


I contemplate suicide daily.
>>
def __init__(self):


Says it all really
>>
>>60300848
/g/ doesn't like it.
>>
>>60300914
t. totally not gay chronic trap masturbater
>>
>>60302129
That's not quite the same. The idiot developer confused mixing angular and raw javascript when it comes to manipulating the DOM with just mixing them. Nothing wrong with writing something that manipulates strings. But if they were so adamant about it they could have written the module themselves.
>>
>>60300848
Ditching Python for Julia
>>
Less modules available than node.js
>>
>>60300848
scoping
>>
>>60300848
>Find a flaw.
motherfucking GLOBAL INTERPRETER LOCK

it's a fucking joke of a language
>>
It's not a serious problem solving language like Java. its a toy language for children
>>
>>60302887
but it sucks lol
>>
>>60300848
Stupid mandatory whitespace that forces you to turn on whitespace visualization in your IDE in order to see if you've spaced the code correcty.
>>
File: 1369228076313.jpg (58KB, 700x479px) Image search: [Google]
1369228076313.jpg
58KB, 700x479px
>>60300848
>interpreted
>>
>>60300848
Behind-the-scenes, every variable is a pointer IIRC, which makes lists a fucking pain in the ass;

>>> foo = [1,2,3]
>>> bar = foo
>>> bar.append(1)
>>> print bar, foo
[1, 2, 3, 1] [1, 2, 3, 1]


^^^bullshit
>>
it's just bad.

it filled a niche and did some things but nodejs is simply a better runtime--with tons of useful tools, for scripting on.
>>
>>60300965
>Global Interpreter Lock's a bit of a pain.
Oh boy, do we have a winner here. I didn't care about GIL until I realized what it was doing.
It also is a wontfix afaik
>>
>do i need v3
>do i need v2
>what the fuck is going on
There you go.
>>
>>60303568
>nodejs
oh boy
>>
>>60303538
bar = foo.copy()

Next time read
help('list')
>>
>>60302129
These niggas are out in industry while I struggle to find a job. Disgusting.
>>
>>60303538
>python2
fucking kill yourself
>>
>>60300914
is this a therapy session for you? I've never seen someone project so well
>>
everybody here thinks it is shit, so what is the Python alternative that /g/ recommends?
>>
http://benchmarksgame.alioth.debian.org/u64q/python.html
It's speed borderlines on obscenity
It is an insult to real computing
>>
>>60300869
Yup, preddy much this but who cares as long as there are numpy and tensorflow to do stuff in pure C++ and CUDA
>>
>>60300848
Encapsulation
>>
>>60303538
why the fuck should it behave differently?
>>
>>60305747
>actually slower than java
>by a factor of 50
wew
>>
>>60305747
this shit downloads tv shows and movies for me automatically and puts the shit into ocd level categorization. literally find me 10 chinese illegal immegrants to do the same thing
>>
>>60303538
Read how a language works before you use it, moron.
Python has its flaws. One of them is an idiotic user base
>>
I'll format my code the way I want to, thanks.
>>
>>60305711
assembly code
>>
>>60301361
>Devs still too lazy to switch to Python3

The a lot of the packages i use haven't been ported to python 3, so i'm stuck using 2.
>>
>>60302186

That's fantastic though.
>>
>>60300848

Some of the syntax is pure garbage. For example, the lack of switch/case and the ternary operator.
>>
>>60300848

>https://stackoverflow.com/search?q=python%20encoding
>>
File: einguido.png (34KB, 720x540px) Image search: [Google]
einguido.png
34KB, 720x540px
>
>>
The flaw are fuckwits still using python 2.7
>>
>>60300848
Python makes it super easy to just glue in different modules and get things done.

But god help you if you need to do something that import can't solve.
>>
>>60303538
this is CS101 pass by value and pass by reference shit anon
>>
>>60307763
the ternary operator exists, it's just 5x more verbose than it needs to be
verbose = True
value = "hello" if verbose else "goodbye"
amazing = "really" if not verbose else "long" if False else "barely" if False else "readable" if False else "statement"
>>
File: 1299118210904.jpg (51KB, 446x412px) Image search: [Google]
1299118210904.jpg
51KB, 446x412px
>>60308022
>if not
>if false
>>
>>60308080
it was an example to show how ugly and long the chaining would be, did you want me to do if not verbose 5 times a row instead
>>
ONE WORD: FORCED INDENTATION OF CODE
THREAD OVER
>>
>>60308198
Just think of indents as semi colons on the wrong side
>>
>>60308238
Or


get this

or

just hear me out my man

or you know


just


don't use it
>>
>>60307763
The lack of switch/case is because python relies on iteration instead of cases.
Pythonic switch cases would instead have a list of 'cases' and the switch would be an iteration through the cases against your variable.

Which I think is still dumb, but it's better than a long ass list of elifs.
>>
>>60308022

I think Python has a couple of flaws/quirks, but to me your example is not really an issue:

verbose = True

value = "hello" if verbose else "goodbye"

amazing = "really" if not verbose else \
"long" if False else \
"barely" if False else \
"readable" if False else "statement"
>>
>>60301361
Yeah, the python2/3 split is the worst part about python, being based heavily on modularity and importing as it is, it was a dumb idea to make a new python incompatible with the old style.
They should have at least thrown in some kind of legacy interpretation and then said 'it results in worse performance'.
Then people would be jumping over themselves to port it to python3.
Thread posts: 58
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.