15
atheist
55d

Being helpful and a c++ programmer has led me to trying to add a (tiny) feature to cpython.

The file I'm currently looking at is 2,000 lines long.

I have regrets...

Comments
  • 7
    This is making my regex project seem appealing. And I hate regex.
  • 6
    have you seen objective-c files with 16k lines of code? I have.
  • 2
    @Lensflare have you seen 10 hours of hey yay yay or some shit?

    https://youtube.com/watch/...
  • 1
    @Lensflare boilerplate or Business logic?
  • 2
    Ha! They are still waiting for my patch in auto-cpufreq. I don't think I'll get the time or will to get to it any time soon...

    Once you're done with yours, will you do mine too? Thanks in advance 😁
  • 5
  • 2
    @cafecortado I bet this is a generated class :)
  • 2
    @max19931 an unholy hybrid of both, boilerplate and business logic.

    The guy who wrote this was convinced that dictionaries were faster than CoreData (a local database) and so everything was a dictionary. Each property and method of each class was like 10 lines of code to get the data from the dictionary, do something with it and then store it back in some other dictionary.
    So about 90% of the code was dictionary access with an absurd amount of magic strings.
  • 2
    @cafecortado not surprised, actually. Java is the embodiment of boilerplate.
  • 2
    Seems to me that many open source contributors work too much in isolation

    At work - if a dev has to do anything in our codebase for the first time - they’d get a walkthrough.

    I would be kinda upset if I found out another dev studied a 2000 line file in my codebase (if I had such a thing) trying to figure it out on their own - so much time waste
Add Comment