#we committed the sin of using global variables πŸ˜”
Explore tagged Tumblr posts
mlembug Β· 2 years ago
Text
#blurry/unknown#we committed the sin of using global variables πŸ˜”#we had no motivation to pass endless parameters into our subroutines#our grade will suffer for it but Β―\_(οΏ½οΏ½οΏ½)_/Β―#coding hell
It's pretty annoying to avoid global variables early on in programming courses because you're not even taught structs (which allow you to group all the related variables into one) or classes and object-oriented programming (and in functional programming you don't even have mutable variables which make the whole reasoning behind avoiding global variables moot)
This is one aspect where enforcing good programming practices before teaching the tools of which the purpose is to make it easy to adhere to them is harmful IMO.
when your programming teacher talks about bad programming practices but every single thing she mentioned is something you did do even though you knew not to do it, and only did those bad things because you had neither the time nor the executive function
17 notes Β· View notes
tesco-finest-aromantics Β· 2 years ago
Text
when your programming teacher talks about bad programming practices but every single thing she mentioned is something you did do even though you knew not to do it, and only did those bad things because you had neither the time nor the executive function
17 notes Β· View notes