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

An Animated Guide to Node.js Event Lop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.