Love Coding
A blog focused on programming, debugging, and refactoring real-world code
function deploySafely()
if (isFriday()) {
console.warn(“Do not touch production.”);
return;
}
deploy();
}
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.
Categories
CSS
Styling tips and techniques to create beautiful, responsive web designs
7 postsFront-end Developer Tools
Essential tools and workflows to boost your front-end productivity.
2 postsHTML
Best practices for writing clean, accessible, and semantic markup
12 postsJavaScript
Modern guides and tips for dynamic, interactive web development
3 postsLinux
Developer-focused tutorials for mastering Linux and the command line
1 postPHP
Practical tips for building powerful and secure web applications
4 postsProgrammers mindset
Improve your problem-solving, focus, and growth as a developer
0 postsPrzykładowe projekty juniora
7 postsReact
Learn to build fast, reusable UI components with React
12 postsReact Native
Guides to creating cross-platform mobile apps with React Native
4 postsWordPress Development
Advanced tips for customizing and optimizing WordPress sites
Blog
Latest posts
Optimizing events in JavaScript: debounce and throttle
In modern frontend applications, interface smoothness and browser performance are critical. Many JavaScript functions are triggered by fast, repeated user…
JavaScript – Recursive function example
What is a recursive function A recursive function is a function that calls itself. It keeps doing so until it…
strict_types in PHP – How It Works and Why It Matters
strict_types in PHP By default, PHP uses what is known as “type juggling”, which means automatic type coercion. In practice,…
Git – How to restore deleted branch?
Most developers have accidentally deleted the wrong branch at least once. Fatigue, distraction, or just a bad moment – it…
Git – Ignoring Files Locally
If you use a version control system like Git, you’ve probably encountered situations where certain files exist in your project…
What Is JSX (JavaScript XML)?
What Is JSX (JavaScript XML)? JSX is a syntax extension for JavaScript that allows you to write HTML-like structures directly…
Category
JavaScript
Optimizing events in JavaScript: debounce and throttle
In modern frontend applications, interface smoothness and browser performance are critical. Many JavaScript functions are triggered by fast, repeated user…
JavaScript – Recursive function example
What is a recursive function A recursive function is a function that calls itself. It keeps doing so until it…
What Is JSX (JavaScript XML)?
What Is JSX (JavaScript XML)? JSX is a syntax extension for JavaScript that allows you to write HTML-like structures directly…
Category
Front-end Developer Tools
Git – How to restore deleted branch?
Most developers have accidentally deleted the wrong branch at least once. Fatigue, distraction, or just a bad moment – it…
Git – Ignoring Files Locally
If you use a version control system like Git, you’ve probably encountered situations where certain files exist in your project…
Multiple SSH keys configuration for GitHub and GitLab accounts
If you have multiple GitLab or GitHub accounts (for example, a personal account and a company account) and each of…
Category
Linux
Login to server using SSH key
To log in to a server using an SSH key, you first need an SSH key pair. You can learn…
Generate SSH keys on Linux or Mac
What is SSH? SSH (Secure Shell) is a network protocol that allows you to securely connect to a remote server…
Midnight Commander (MC) and color customization in linux
Midnight Commander (MC) is a free and open-source file manager that provides a text-based user interface. It is available on…
Category
CSS
CSS background image and color
In CSS, the background property is used very often. It lets you add background colors, images, gradients, and many other…
CSS text-decoration property and new styles 2019
New styles, tags, functionalities – this is what tiggers like best 🙂 In this post I will show you how…
Styling chosen links on site, e.g only links to PDF file
In previous post: styling lists with pseudo-classes I described how to change the color of active, clicked or hovered links….