Finding ways to improve and optimize your code takes a lot of time, research and energy. Level up your coding skills one step at a time with this collection of quick tips and tricks.
JavaScript, Browser
Opening a link in a new tab comes with a security vulnerability that you may not be aware of. Protect your users with this simple trick.
JavaScript, Browser
Ever wanted to get the value of an HTML input element as a number? Learn an easy way to do it with this handy trick.
JavaScript, Browser
There are various ways to create an empty link, but some options are more appropriate than others. Learn the best way to handle empty links with this quick tip.
JavaScript, Array
When working with numeric arrays in JavaScript, you might find yourself in need of finding the minimum or maximum value. Here's a quick and easy way to do it.
JavaScript, Array
Learn how to quickly write code to sort JavaScript arrays with this handy one-liner.
JavaScript, Array
Easily remove duplicates from a JavaScript array using the built-in Set
object.
HTML, Webdev
Did you know you can use a native HTML attribute to add lazy load to images? Learn all you need to know with this quick tip.
JavaScript, Node
Did you know you can use Chrome Developer Tools to debug your Node.js code? Find out how in this short guide.
Use the HTML autocomplete
attribute to create more secure and accessible password fields.
CSS, Interactivity
Learn how to make your CSS transitions feel perfect when users interact with elements on the page with this simple tip.
HTML, Webdev
Resource prefetching is a great technique to improve perceived page speed on your website and one that requires little to no effort. Learn how to use it today.
Python, Error
It's generally not a good idea to use bare except
clause in Python, but do you know why?
Python, Dictionary
Learn the difference between two common ways to access values in Python dictionaries and level up your code today.
Python, String
Learn two ways to format a string in Python with this quick tip.
Python, Function
Mutable default arguments can trip up Python beginners and veterans alike. Here's a quick workaround to deal with them.