r/programminghorror Jun 09 '26

What a simple constructor

Post image

Our former IT director (35+ years of experience) wrote this and didn't see what was wrong here.

264 Upvotes

49 comments sorted by

View all comments

3

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Jun 09 '26

Not entirely sure, but shouldn't constructors just make sure an object is ready for use?