# Imprisonment for Irresponsible Coding!

Source: https://www.yegor256.com/2015/11/24/imprisonment-for-irresponsible-coding.html

If I drive too fast and I get caught, I may get a ticket. If I drive
under the influence and get caught, I may go to jail. If I turn my
radio up too loud in the middle of the night and my neighbors call the police,
I may get into trouble if I don't stop it. The law basically protects
us from causing trouble with each other. Why don't we have a law
against _irresponsible coding_?


{% jb_picture_body %}

Software is part of my life. It actually _is_ my _life_, not just part of it. I stare
at this MacBook for much more time every day than I drive, talk, or listen
to the radio.

{% youtube kPmbRkSWYnY %}

Code is the _territory_ where I
[interfere]({% pst 2014/oct/2014-10-07-stop-chatting-start-coding %})
with others, and this is where
we may bother each other. Irresponsible coding is precisely how one
of us can really disturb the other. So why don't the _police_ protect
me against, say, authors of Apache Hadoop?

They created something that turns part of my life into a nightmare---much
faster and much more severely than drunk drivers. So, where is
the police? Why aren't they protecting me, for my tax dollars? Why
aren't those Java guys in _jail_ yet?

We need a law against irresponsible coding!

How about two months of imprisonment for a
[Singleton](http://stackoverflow.com/questions/137975/what-is-so-bad-about-singletons)?

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">How would you punish programmers for bad coding practices (like global variables, for example):</p>&mdash; Yegor Bugayenko (@yegor256) <a href="https://twitter.com/yegor256/status/1246683757576413185?ref_src=twsrc%5Etfw">April 5, 2020</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
