# State-of-the-Art Shitcode Principles [![State-of-the-art Shitcode](https://img.shields.io/static/v1?label=State-of-the-art&message=Shitcode&color=7B5804)](https://github.com/trekhleb/state-of-the-art-shitcode) ## Get Your Badge If your repository follows the state-of-the-art shitcode principles you may use the "state-of-the-art shitcode" badge: ``` [![State-of-the-art Shitcode](https://img.shields.io/static/v1?label=State-of-the-art&message=Shitcode&color=7B5804)](https://github.com/trekhleb/state-of-the-art-shitcode) ``` ## The Principles ### πŸ’© Name variables in a way as if your code was already obfuscated Good πŸ‘πŸ» ```javascript let a = 42; ``` Bad πŸ‘ŽπŸ» ```javascript let age = 42; ``` ### πŸ’© Always write comments in your local language Good πŸ‘πŸ» ```javascript // Π—Π°ΠΊΡ€ΠΈΠ²Π°Ρ”ΠΌΠΎ модальнС Π²Ρ–ΠΊΠΎΠ½Π΅Ρ‡ΠΊΠΎ ΠΏΡ€ΠΈ Π²ΠΈΠ½ΠΈΠΊΠ½Π΅Π½Π½Ρ– ΠΏΠΎΠΌΠΈΠ»ΠΊΠΈ. toggleModal(false); ``` Bad πŸ‘ŽπŸ» ```javascript // Hide modal window on error. toggleModal(false); ```