HBHenrique Barcelosinblog.hbarcelos.dev·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 Despit...00
HBHenrique Barcelosinblog.hbarcelos.dev·Feb 5, 2020TDD made simple with Mocha and ChaiIntro From the dark ol’ days of writing an entire application and only then starting to test it (often, manually) till nowadays, I have scoured a painful path of unending bug-fixing in production through the nights, many times not even knowing what w...00
HBHenrique Barcelosinblog.hbarcelos.dev·Feb 4, 2020Give your logs more context — Part 2Give your logs more context Building 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. https://blog.henriquebarcelos.dev/give-your-logs-more...00
HBHenrique Barcelosinblog.hbarcelos.dev·Feb 4, 2020Give your logs more context — Part 1Give your logs more context How 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 ...00
HBHenrique Barcelosinblog.hbarcelos.dev·Nov 25, 2019 · 20 min readA better approach for testing your Redux codeTL;DR When testing Redux, here are a few guidelines: Vanilla Redux The smallest standalone unit in Redux is the entire state slice. Unit tests should interact with it as a whole. There is no point in testing reducers, action creators and selectors ...02SF