task of simplifying is kinda tough. i always misunderstand the simplifying part. it's not the "make the job very easy and clumsy" it's "make everything short and readable as hard as you can". there really should be an example of simplifiying a code, because withotu an example, stuff might be understood wrong
atleast that's what i think, i'm not really a programmer yet
Short does not mean readable. Common point of confusion.
You can shorten by simplifying, which does help with readability. But you can also shorten by making more implicit instead of explicit, and that hurts readability (which the writer often forgets in the moment, because in that moment the implicit is perfectly clear to them. For now.)
i know that moment haha, pythonists make the worst one liners ever to exist. i thought shortening stuff helps because the bigger the stuff looks, the harder it is to remember relations between things and the more it looks overwhelming, atleast for me
because the bigger the stuff looks, the harder it is to remember relations between things and the more it looks overwhelming, atleast for me
This tends to improve as you gain expertise, because your brain learns relevant patterns, which it can use to chunk and store the information more efficiently.
But even then, that's still about optimizing for your working memory to remember all the moving parts, and not about optimizing how easy it is to understand how it works. The former is only a part of the latter.
13
u/vadiks2003 Sep 23 '22
task of simplifying is kinda tough. i always misunderstand the simplifying part. it's not the "make the job very easy and clumsy" it's "make everything short and readable as hard as you can". there really should be an example of simplifiying a code, because withotu an example, stuff might be understood wrong
atleast that's what i think, i'm not really a programmer yet