Software development is all about collaboration.
Rare will be the moments in your life as a developer where you won’t be working in a group and sharing the same project with other people. Version control is an essential (please read as: ESSENTIAL) practice for anyone that aspires to develop software. The nightmare where I overwrite a functional build of my project has jolted me awake on many nights. …
In this intro to my series on hooks, we cover the useState hook and how to use it.
Many of us have spent most of our time in React working with class components. They are comfy, and we understand them.
But the future is here, and hooks are the future. Hooks allow React developers to write cleaner, more concise code that is easier to debug.
“How do hooks even work?”
“But how do you use state? And how do you update it?”
I hear you. I hear you. I would be lying if I said hooks don’t come with a little, teensy bit of anxiety for a developer used to mostly writing class components, but there is no need to be afraid. …
If you are like me and just diving into front-end frameworks like React then you’ve probably been amazed by the speed at which these frameworks take your code and render nodes to your DOM. It honestly feels like a magical power. But in reality, this is just an invisible friend helping you out. So let’s meet our new friend: The Virtual DOM
“But Alex, isn’t the DOM already virtual?”
I mean yes, but that DOM and the Virtual DOM aren’t the same thing. …
The druid sighs as they size up the craggy gap. “That’s a solid 30 feet,” they think to themselves. After a moment of consideration, the druid walks over to a couple of trees.With a touch of their hands a flitter of magic races through the trunks as the wood begins to reconfigure itself into a makeshift bridge. The druid smiles and enjoys an apple as their magical logs fall into shape.
Coding often feels like magic. I mean c’mon, “invoking” functions??
Coders like to play with the weave of the digital world much like the mages of fantasy settings. …
“A monster is defined as any creature that can be interacted with and potentially fought and killed. Even something as harmless as a frog or as benevolent as a unicorn is a monster by definition.”
— Monster Manual, Dungeon and Dragons Fifth Edition
What does this spell mean by ‘creature’? I asked this question often when I began playing Dungeons and Dragons. My adventures would grind to a halt as I poured over the core rulebooks looking for an answer. Eventually I learned and internalized that D&D Fifth Edition(5e) classifies anything with a stat block as a creature.
The undead Lich locked up in that tall tower, the dragon resting deep within a dead volcano, the kind tavern keeper, even your character. …