Apr 20, 2020Flexbox Gotchas ReloadedImportant: this article describes a problem that cannot be reproduced with Google Chrome, only with Firefox and Edge (I did not test with other browsers). Spoiler alert: it seems like Chrome intentionally deviates from the spec standard. Intro Despite of all the jokes saying it is not even a real programming…CSS6 min readCSS6 min read
Published in ITNEXT·Nov 27, 2019Member-onlyA better approach for testing your Redux codeThe article bellow has been previously published to my blog: A better approach for testing your Redux code TL;DR When testing Redux, here are a few guidelines: Vanilla Redux The smallest standalone unit in Redux is the entire…blog.henriquebarcelos.dev I will eventually move all my content here on Medium there, so if you like what you read here, just follow me there too. I will probably be posting more regularly as well.Redux18 min readRedux18 min read
Published in ITNEXT·Feb 20, 2019Assessing performance of group-wise max queries in MySQLHow to efficiently find the latest related row in a JOIN — Introduction Relational databases can be tricky sometimes. I am currently working on an application that deals with some assets owned by our clients. Those assets are created in our platform and from time to time they have some of their information updated. Let’s take Vehicles for example. I had a table…My SQL6 min readMy SQL6 min read
Published in ITNEXT·Aug 25, 2018Give your logs more context — Part 2Building a contextual logger — This is the continuation of my previous article about logging context. Check it out to better understand the purpose of what we will build. Give your logs more context How to make sense out of your Node.js web app logsitnext.io TL;DR The code we are going to build on this story is on my Github. …Java Script6 min readJava Script6 min read
Published in ITNEXT·Aug 9, 2018Give your logs more context — Part 1How to make sense out of your Node.js web app logs — Logging might be one of the most difficult things to do right when building a real world application. Log too little and you will be staring at your screen trying to make sense of them (or the charts generated from them). …Java Script7 min readJava Script7 min read
Jul 20, 2018Why I banned ‘null’ from my Javascript code and why you should tooThere are only two kinds of languages: the ones people complain about and the ones nobody uses. — Bjarne Stroustrup, creator of C++ I love Javascript and the freedom that comes with it, but some of its parts are definitely broken. I recently realized that the null keyword is one…Java Script3 min readJava Script3 min read
Feb 4, 2018The crypto-revolution is going to change the world faster and in a deeper way than you thinkNo, this is not “yet another article on he hype of blockchain”. Some people tend to see the crypto-currencies and the blockchain technology as the holy-grail of the 21st century, the think that can save all humanity from perdition. However, I do believe that the blockchain technology is the right…Bitcoin7 min readBitcoin7 min read
Dec 7, 2017Using promises as timeout handlers in JavascriptToday I had a problem with one application that was happening only in production. For some reason, the application was freezing on the server, while it started normally in my computer. Classic: “It works on my machine!” It took me a while to figure out why, because I had to…Java Script2 min readJava Script2 min read
Published in ITNEXT·Sep 14, 2017Things I wish I knew about Terraform before jumping into itA few weeks ago I wrote about my journey into Terraform. You can read more about this quest here: How I learnt to love and hate Terraform in the past few weeks The tale of a joy/pain-ful lonely journey into the infrastructure-as-code worldmedium.com Now I’ll try to summarize some learnings I had during the process. Foreword Before really started exploring this infrastructure-as-code world, I’ve heard a lot of blabbering about Terraform.AWS9 min readAWS9 min read
Aug 4, 2017How I learnt to love and hate Terraform in the past few weeksThe tale of a joy/pain-ful lonely journey into the infrastructure-as-code world — Once upon a time… I might have said this a couple of times, but the best and the worst part of working in a startup environment is the diversity of activities you enroll in. …AWS10 min readAWS10 min read