Coding 📘
Introduction
This section covers snippets, setups, and reference notes I frequently use while coding personal or open-source projects.
Useful Snippets
// Quick debounce in JS
function debounce(fn, delay) {
let timeout;
return (...args) => {
clearTimeout(timeout);
timeout = setTimeout(() => fn(...args), delay);
};
}
Tools & Tips
- Use
prettier
andeslint
in all JS projects - Leverage GitHub Copilot and ChatGPT for boilerplate and refactors
- TailwindCSS + Alpine.js is perfect for quick prototyping