paint-brush
Breaking the rules of Sane Programmingby@schahriar
7,905 reads
7,905 reads

Breaking the rules of Sane Programming

by Schahriar SaffarShargh3mJanuary 19th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Not long ago a colleague of mine and I got into a semi-intellectual discussion about the use and horrendous dangers of Meta Programming <strong>if abused</strong>. He talked about a Python class used in production at a once popular social networking site where he used to work at, this class was written in such a way that it would return two very different values depending on how many times it was initialized. This meant that any small refactor had a chance of breaking critical pieces of software with little to no indication for debugging.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Breaking the rules of Sane Programming
Schahriar SaffarShargh HackerNoon profile picture
Schahriar SaffarShargh

Schahriar SaffarShargh

@schahriar

L O A D I N G
. . . comments & more!

About Author

Schahriar SaffarShargh HackerNoon profile picture
Schahriar SaffarShargh@schahriar

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Porter
Aryan