4 ms·
"One feature I needed to remove, which was essentially a boolean check, touched over 40 files across four applications." What does this mean? How does a featu
by kenjackson 16y ago
"One feature I needed to remove, which was essentially a boolean check, touched over 40 files across four applications."
What does this mean? How does a feature span four applications?
- weaksauce 16y agoMaybe it was a common utility function called from 4 applications that looked into 40 files to see if you had permissions to do something or to see if an operation was safe to do? Seems excessive but....
- cschneid 16y agoMore likely it was a call like: if (permissions["whatever"]) { Do code} instead of if (has_permission("whatever")) And the first if was copy/pasted across the entire app. So when you have to change the logic of that permission, you don't have a central, official, way of figuring it, instead you have checks all over the app.
- TheSandyWalsh 16y agoYup, that was pretty well it.