A blog focused on programming, debugging, and refactoring real-world code

// Dev notes

function deploySafely()

if (isFriday()) {

console.warn(“Do not touch production.”);

return;

}

deploy();

}

Dev notes

Code is like a joke. If you have to explain it, it’s bad.


Practical code

Quick coding tips

Find Files by Name in Seconds

You can quickly search for files by name anywhere in the system using the find command.

find / -name "config.php"

It scans directories recursively and locates files even if you don’t know where they’re stored.

How to Exit Vim

You can exit Vim editor with a single command, no matter how “stuck” you feel.

# Save and quit
:wq

# Quit without saving
:q!

Just press Esc first to ensure you’re in normal mode, then type the command.

Make your font sizes responsive with clamp()

You can make font sizes or spacing fully responsive without media queries using the clamp() function.

font-size: clamp(1rem, 2vw, 2rem);

clamp() smoothly scales values between a minimum and maximum, making layouts more flexible and predictable.

Blog

Latest posts

Category

JavaScript

Category

Front-end Developer Tools

Category

Linux

Category

CSS