• 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle


  • kshade@lemmy.worldtoScience Memes@mander.xyzCalculus made easy
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    5 months ago

    Algebraic notation breaks just about every rule programmers are taught about keeping their code human readable. For example:

    • Variable and function names should be descriptive
    • Don’t cram everything into one line
    • Break up large statements
    • Consistency is key
    • Don’t be fancy for fancy’s sake, don’t over-optimize (this is for learning, remember?)
    • Add in-line comments for lines that aren’t easily grasped
    • Be explicit where possible (it’s a convention to omit the multiplication operator when multiplying variables because variables are only one letter anyway…)

    And then we force kids to cram the whole stdlib (or rather its local bastardization) into their heads or at best give them intentionally bad (uncommented) documentation during exams while wondering why so many just don’t seem to get it, even resent it.