• Deebster@lemmyrs.org
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    This bit made me laugh the most:

    The TerrariaClone.init() method, which is over 1,300 lines long, actually grew so large that it hit the limit hardcoded into the Java compiler for the maximum memory that can be taken up by a single function! The solution? Copy half of the init() code into a new method, called codeTooLarge(), and call that from init().