DEV Community

Cover image for Art of shit coding
Gourav Singh Rawat
Gourav Singh Rawat

Posted on

Art of shit coding

What is Shit Coding?
Shit coding is just what the name suggests, it's probably the encrypted code which only you can read. Not using comments, weird variable names are some of the techniques to master it.

How to Master the Art of shit coding

---- Don't use Comments
Comments are meant to be avoided, don't use them unless you really have to try continuous writing without any comments and you'll be good.

---- Variable names and useless variables
How do you name your variables?
Like if you had to make a variable that will store user's ID what do you name it? If you name it 'ID' or 'userID' you're doing it wrong! try naming it as varA, a, dik, or something like this.

dik = res.status(404).send("not found bruh!");
Enter fullscreen mode Exit fullscreen mode

Do make useless variables it's important.

---- Kill the Indentation
The most stupid thing that ever existed is indentation, to be honest your code is likely to work even without indentations sometimes, so please stop indenting your code.

---- DIV Volcano (divcano!)
Stop using different HTML tags like

<section>
   <nav>
      <div>
      </div>
   </nav>
</section>
Enter fullscreen mode Exit fullscreen mode

DON'T DO THIS!
Try doing this instead...

<div>
   <div>
      <div>
         <div>
            <div>
            </div>
         </div>
      </div>
   </div>
</div>
Enter fullscreen mode Exit fullscreen mode

Div volcano looks satisfying who cares about readability anyways?

---- Use your native language to write comments (if you have to)

//वाह क्या गांड फाडू कोड लिखा है
<div>
   <div class="what">
      <div class="da">
         <div id="dog">
            <div class="doin?">
            </div>
         </div>
      </div>
   </div>
</div>

Enter fullscreen mode Exit fullscreen mode

---- Don't show your mistakes <3

try{
   //Something that works
} catch{
  //Bruh!
}
Enter fullscreen mode Exit fullscreen mode

---- Don't add node_modules to .gitignore
Stop it let people know what modules you're using...

If you do all of these you'll reach new heights, just don't code with me I already dead inside. Hope this guide was helpful. Byeeeee

Top comments (4)

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Here's another one for you - you can put comments in your code, just don't bother changing them when you change what is happening...

Collapse
 
seek4samurai profile image
Gourav Singh Rawat

Lmao XD

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

We've specific languages for that as well:

('&%:9]!~}|z2Vxwv-,POqponl$Hjihf|B@@>,=<M:9&7Y#VV2TSn.Oe*c;(I&%$#"mCBA?zxxv*Pb8`qo42mZF.{Iy*@dD'<;_?!\}}|z2VxSSQ
Enter fullscreen mode Exit fullscreen mode

This prints "Hello World!"

Collapse
 
lestrae profile image
Alex

Shit coding this is when you cant understand your code, what you wrote yesterday