In 23 days
I created a library to produce web animations. Glorious Demo simulates the use of a Code Editor and a Terminal to demonstrate some code in action.
In 24 days
I created a multi-language static blog generator based in Markdown. Triven powers my personal blog and allows me to post articles also in Portuguese.
In 45 days
I created an English Augmented Dictionary called Typenik - available for Web, Windows & Mac - to solve peculiar needs of non-native English speakers.
All those side projects are fully covered with automated tests.
My name is Rafael Camargo. I code, design, and believe it's quite possible to build very quickly software that works very well.
Handling leading zeros with JavaScript
Leading zeros never really meant much and are often unnecessary. But believe it or not, there are some cases where they are crucial. So, for these latter cases, how would you easily format strings that need one or more leading zeros? Find out how some native JavaScript methods can help you with that task.
February 28, 2024Testing and implementing an in-page scroll link in React
Smooth scroll between sections of the same webpage provides a seamless and pleasant experience for visitors, but how can we test and better implement a component that is easily reusable in other places of the codebase? The solution suggested by this post uses Jest, Testing Library, and React.
January 30, 2024Using flexbox to make elements fill all the remaining space
Flexbox is by far one of the most challenging CSS features to become familiar with, but behind its complexity, lie superpowers. Discover how to solve this common challenge in flexible layouts in a robust and straightforward fashion.
December 20, 2023Handling HTML within React i18next translations
Dealing with plain text in translation files is a trivial activity. But when part of the translation needs to be in bold or contains a link, challenges may arise. Discover how to overcome these challenges with the aid of the i18next library.
November 29, 2023Testing copy-to-clipboard interactions with Jest and Testing Library
Copy buttons are everywhere on the internet. Using the keyboard to copy data from a website nowadays feels uncomfortable. But would it be possible to write tests that access data stored in the clipboard?
October 30, 2023Mocking search params in tests for React components
The use of search params in front-end applications is common. However, testing the behavior of components that depend on these parameters may not be as simple as we'd like. Learn how to simulate the parameters found in the URL easily using the History API.
September 23, 2023