r/programminghorror • u/Nomergraw • Jun 09 '26
What a simple constructor
Our former IT director (35+ years of experience) wrote this and didn't see what was wrong here.
268
Upvotes
r/programminghorror • u/Nomergraw • Jun 09 '26
Our former IT director (35+ years of experience) wrote this and didn't see what was wrong here.
View all comments
Show parent comment
1
u/GrossInsightfulness Jul 21 '26
The code you wrote won't close the file if the file is valid but the array is not.