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
-
As much as I enjoy the elegance and user-friendliness of Python, I must confess that I also like to roast a close friend of mine(who is into deep learning) for calling his python code as "code" in response to him mocking me for not knowing deep learning.
-
I find PEP8 rough and incomplete. It may be ok to have argument names and values separated by single equal sign without whitespace.
BUT put lambda function or conditional, that contain whitespace, right after that equals sign w/o whitespace, and logic of enforcing no whitespace is being tarnished.
Though this inconsistency can be easily overridden via PyCharm's settings I use. -
ArtOfBBQ3784yBetter to have some haters than to be ignored! But the overwhelming majority of devs have a good impression of Python no?
-
@Ranchu not only because of that, but that IDEs cannot learn from your indentation pattern and bring arbitrary spacing based just on visual cue.
-
Oh my, wait till you get to some strange pip issues and spend days solving it :-)
Even if I also love python, package manager can drive me insane (at least we have —user now which lowers the pain a bit) -
NoMad136534y@Ubbe I can think of java and its baggage of a virtual machine as a worse alternative, tbh. 😛
-
ArtOfBBQ3784yIn a fictional world with only assembly and C you could say 'if you want the worst possible performance, C is your tool. I just don't get why it's popular'
I think Python lovers just value other stuff than performance. They most of all want code to be easier to read and I think they really accomplished that and it resonated with a lot of people. -
amoux2684y@alcatraz627 @vintprox @10Dev @ArtOfBBQ @theuser @Ranchu @NoMad @pxeger @stefanjarina @Ubbe
I used "Ai" to get roasted by @alcatraz627 and Python (the best coding lang in the universe) to analyze and find out who could be the real hater in this rant. Check out the notebook in Google-Colab to see the results and the code :)
Btw, you can test your own hated posts by copying and pasting the datas and running the code. Notebook link:
https://colab.research.google.com/d... -
@amoux heh, seems not bad to me, except this part where you put all arguments *together* to separate line. It easily can go chaotic: either place each argument on separate line or don't use line breaks in declaration at all. Also, many function calls lack whitespace around equal signs, which isn't consistent with what you chose for arguments list in function declaration.
-
amoux2684yI agree with you as my linter in vscode would automatically format the arguments and spacing.
Unfortunately, since i did write the code in a notebook - I did not find it precisely necessary to format the code to meet best-practices (plus there’s no linter). Also, I did write the code in an hour as a response in a ”non-serious” way.
Thanks for pointing that out regardless. -
theuser47814y@amoux I was queried under "I don't like it" which is not true, my statement was a (somewhat) I like python.
Related Rants
I fucking enjoy writing python code, how can a language be so elegant, clean and perfect?
rant
dyslexia
python