• 3 Posts
  • 279 Comments
Joined 2 years ago
cake
Cake day: August 17th, 2023

help-circle

  • Gonzako@lemmy.worldtoLemmy Shitpost@lemmy.worldmonumentale
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    2 days ago

    Yeah? If something is important being able to have it all on one file is the best way to ensure you get the behaviour you want.

    Having to file-hop is generally a strain on mental resources and it breaks the linearity of the project, ofuscating initial reads.

    And yes, the compiler does care, there are no 0-cost abstractions.


  • Gonzako@lemmy.worldtoLemmy Shitpost@lemmy.worldmonumentale
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    2 days ago

    I personally go by the monocre that if it’s something important, it’d be all on one file as not to lose the train of thought when debugging it.

    As jumping around between files

    tends to break up thought lines

    also, the compiler likes it better when there’s less layers