9
amoux
4y

I fucking enjoy writing python code, how can a language be so elegant, clean and perfect?

Comments
  • 2
    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.
  • 0
    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.
  • 0
    You're lucky that your favorite language is super popular :)
  • 1
    @ArtOfBBQ It means everybody is shitting on it for all sorts of reasons.
  • 0
    Better to have some haters than to be ignored! But the overwhelming majority of devs have a good impression of Python no?
  • 0
    Python is a sin to all people that coded with other languages before because TAB
  • 1
    Clean and human-readable, yes.
    But fuck ROS in the arse for ruining python for me.
  • 1
    @Ranchu not only because of that, but that IDEs cannot learn from your indentation pattern and bring arbitrary spacing based just on visual cue.
  • 0
    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)
  • 1
    @Ubbe I can think of java and its baggage of a virtual machine as a worse alternative, tbh. 😛
  • 0
    In 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.
  • 2
    @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...
  • 1
  • 1
    @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.
  • 1
    I 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.
  • 0
    @amoux I was queried under "I don't like it" which is not true, my statement was a (somewhat) I like python.
  • 1
    @theuser Idk man, roBERTa doesn’t lie.
Add Comment