Blog o programowaniu, błędach w kodzie, debugowaniu i refaktoryzacji

// Dev notes

function deploySafely()

if (isFriday()) {

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

return;

}

deploy();

}

Notatki programistki

Kod jest jak dowcip. Jeśli musisz go wyjaśniać, jest kiepski


Praktyczny kod

Pigułka wiedzy

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

Najnowsze posty

Kategoria

JavaScript

Kategoria

Narzędzia Front-end Developera

Kategoria

Linux

Kategoria

CSS