kshade,
@kshade@lemmy.world avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • science_memes@mander.xyz
  • kavyap
  • InstantRegret
  • khanakhh
  • ngwrru68w68
  • osvaldo12
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • everett
  • Youngstown
  • slotface
  • rosin
  • GTA5RPClips
  • JUstTest
  • Durango
  • cubers
  • modclub
  • tester
  • tacticalgear
  • cisconetworking
  • ethstaker
  • anitta
  • Leos
  • megavids
  • normalnudes
  • provamag3
  • lostlight
  • All magazines