If you are using React or React Native to build web or mobile apps, you probably know that managing the state of the app is key, and with hundreds or — even thousands — of components it can quickly become a complex puzzle. So what are the different methods used currently, and what are theirs pros and cons?
React has two types of components: class and function. The function components were initially meant to be “dumb” and not contain any state, while the state was meant to be stored in class components. The state values get initiated in the
Let’s see what we can take from it.
The famous example of
0.2 + 0.1 === 0.3 returning
Thankfully, there are simple ways to deal with this…
As a developer, good knowledge of Git or any version control software is more than a skill — it is a must. And among the many good things that Git has to offer, there is Git Stash. Why is it great? Because it prevents you from committing every tiny change when working on several Git branches at the same time.
Discovering it as a junior dev helped me a lot, so here is a basic rundown of the main commands and the way they can be useful.
In an ideal developer workday, one would be able to focus on a…
I became a developer without following the “traditional path” of computer science or engineering degree, but through a mix of self-learning, attending a bootcamp, and then learning on the job for while working as a developer. We are quite many in the same case, and this is perfectly fine, as most of the needed skills are learned by practice. But why tickle our curiosity a bit and check what it takes to know in depth the fundamentals of computing? In this article, I decided to explore and share some of the most meaningful resources I found.
Computer Science studies usually…
MapBox allows lots of customisation, including the total freedom in designing own pins to spot locations on the map. As their official tech documentation shows, the pin is basically a div which is rendered on a location specified by coordinates, and the inside of the div can be tailored to fit any app. What we’ll focus on here is the exact location shown by our custom Marker if it is in form of a pin or pointing object.
Let’s now go through the gaming logic and explore how the score, timer, win and lose mechanics are done.
When the user plays, they hear a beat coming from the computer, and then they have a limited time to recreate it. …
Beginning of 2019, I decided to switch career and become a web developer. Although I started my learning journey in an autodidact way, the decision to attend a coding bootcamp started to make more and more sense: it should help me getting to the next level, learn faster, and — probably above all — be among a community of people like me. This is how I hopped on board of Ironhack Web Dev Bootcamp: an intensive 9 weeks full stack training.
Some common interrogations about this type of programs are:
For my first project at Ironhack, I had to build a mini-game in four days. I chose to play around with DOM manipulations and the HTML audio element to build a 4x6 pad where the 4 columns are “beat times” and the 6 rows are different sounds that can be played at these times.
To add spice, the player has to hear a rhythm and then reproduce it in a limited time to score points.
Yes, that’s right, as trivial as it sounds, we all enjoy learning by watching, and that’s why Youtube channels are a goldmine in terms of learning resources. In this article I will talk about some “code-fluencers” whose content deserves some attention.
It turns out: quite far! Many people have been in my situation once and their efforts to help others along the way resulted in an impressive collection of high quality tools, resources, videos and platforms…