A lot of talk has been given around React Fiber since it was first announced last year. And even five months later, there are still a lot of questions about it. This article seeks to answer one of them: What question does Fiber answer when it comes to rendering in ReactOr, in other words, what problem does React Fiber solve?

Author’s note: Unlike most of my other articles, this one benefits from some understanding of Javascript, as well as familiarity with ReactJS.  Stephen Grider‘s Modern React with Redux is my personal favorite course for learning this topic, and the one I recommend to most people. I should also mention that, while this article will focus on the web version of the framework, the core concepts can be applied to React Native as well.

React Fiber is an ongoing reimplementation of React’s core algorithm. It is the culmination of over two years of research by the React team.

This is a quote from Geoffrey DhuyvettersWhat is React Fiber and How can I try it out today? Which offers some pretty good guidance towards mastering this new technology, and is definitely worth a read.

But more importantly, this definition tells us two things:

  1. Fiber has been in development for half of React’s open source lifetime.
  2. Fiber is going to change React’s core algorithm.

What is it actually changing though? In very simple terms: Fiber seeks to change the way in which React renders our applications. But, before we can tackle how it will be doing that, we need to understand some core concepts that it aims to improve upon:

Continue Reading "What problem does React Fiber solve?"

Now, now. I know I just threw a bunch of buzzwords at you. And you may even be thinking: “How dare this guy say that Good User Experiences don’t feel good”. But I don’t mean that UX can’t be enjoyable, that would just be a lie coming out of my mouth (or fingers, in this case.)

What I am saying, however, is that “Feeling Good” is not what a good User Experience is about. It can be a delightful side product, but it should not be the goal to aim for.

However, before I can illustrate my point any further, I’d like to tell you a story:

Continue Reading "Good User Experiences aren’t about "Feeling Good""

Before we can talk about clean, well designed and beautiful code, I would like to ask you a few questions:

Have you ever written a piece of code, and then looked at your creation and wished you never had to open that thing again? Ever opened a file only to find yourself immediately overwhelmed by its contents?

Does this image bring back fond memories of college?

Screen Shot 2017-03-11 at 12.11.53 PM
For some, minimized JQuery. For others, Tuesday.

If that’s the case, then you’ve probably experienced the bizarre world of code that was never meant to be read by a person. And that means that this article, my friend, is for you.

Continue Reading "Beautiful Code (and how to write it.)"
Why it's okay to take a break from work (with coffee.)

“I can’t take a break right now, I’ve been trying for three straight days and It just won’t work” my friend was telling me this as he sat hunched on top of his desk, bags under his eyes and a worried expression on his face. “That is precisely why you need to stop working on it for now”, was what I told him as I took a couple of cold ones out of the fridge.

He looked at me like I was crazy, he couldn’t possibly relax and drink beers with me, and specially not when he had already spent three days to work on code that been estimated in hours. I promised him that if he had just one drink with me, he would find the answer he had been looking for these past three days.

No more than two hours had passed, and we were sitting on the floor talking about life and whatnot; when all of a sudden he lighted up completely and jumped back to his pc.

He had this look on his face like he had just heard the answer of life, the universe and everything; and it didn’t take long before he finished all the work that he wasn’t able to wrap his head around for days.

It happens, we focus so hard on the work we’re trying to do that we lose sight of the original idea. Tiredness, tunnel vision and outright stubbornness can prevent us from being able to think outside of the box we ourselves created around the problem we’re facing.

You can push through all these obstacles and move forward to reach your goal. And there are definitely times when you’ll have to do this.

But most of the time though, I would argue that what you really need is to take a break.

Continue Reading "Why it’s okay to take a break from work."