Welcome to issue #16 of One Minute Better Developer, where you become a more successful software developer by reading short nuggets of knowledge, one minute at a time.
Take a moment to look at this snippet and try to figure out what it does.
Don’t scroll to the solution yet!
Really try to figure out the result, It’s not as easy as it seems…
Don’t scroll anymore until you know the solution!
Now, I bet you thought…
Welcome to issue #2 of Deep Dives, where we gain in-depth knowledge about a topic through simple explanations.
Scalable Vector Graphics (SVG) allow you to present pictures that are lightweight and can scale without being pixelated.
However, we can implement them in several ways in our websites, and some methods allow for some features that others don’t.
Here’s a list of features that you can have or not depending on how you serve your SVGs.
alt attribute sets a text description rendered when the image is not available, whereas a
title attribute is usually shown in a tooltip when hovering…
Welcome to issue #1 of Deep Dives, where we gain in-depth knowledge about a topic through simple explanations.
A Content Distribution (or Delivery) Network (CDN) is a group of servers distributed geographically with the purpose of providing fast delivery of Internet content.
The CDN’s servers act as reverse proxies for your origin servers, where the content is hosted.
Servers are contained in facilities called Points of Presence (PoP), which are spread around the globe.
Servers in a CDN can help provide a better user experience by caching content closer to the user and delivering it instead of the origin server.
Welcome to issue #14 of One Minute Better Developer, where you become a more successful software developer by reading short nuggets of knowledge, one minute at a time.
We are implementing a text editor with a Google-Docs-like draft system, where content gets saved server-side when the user stops typing for a second.
We are going to use the
keyup event and
The key to this snippet is that the
timerId has to be set declared in the scope of the
keyup callback, in order to be reassigned to the new timeout id every time the
Writing is part of your daily routine.
In my experience, that’s easy to implement if you follow some simple steps. Keep on reading to know how to exactly how.
In the beginning, I was writing long-form articles, which took me between 2 to 3 hours to write.
It was difficult to find such a big empty spot in my schedule, and almost impossible for me to do it regularly.
Moreover, if I did write, I didn’t want to spend so much time again on the same task the next day.
So how can you keep motivated to write often?
Welcome to issue #23 of One Minute To Become a Better Developer, where you become a more successful software developer by reading short nuggets of knowledge, one minute at a time.
A local branch deleted by accident, squashed commits that we would like to be un-squashed… when a catastrophe occurs, wouldn’t it be great if we could time-travel in Git?
Let’s learn how to use
git reflog. First, a bit of context.
Reference logs, or “reflogs”, record when the tips of branches and other references were updated in the local repository.
git reflog by default targets HEAD — a symbolic…