A few weeks ago, there was a post on Reddit, when the author asked a very interesting question, which I’m paraphrasing as “Are there any concrete examples where mutability has introduced a software bug?”.
We all (hopefully) know mutable state is bad, unfortunately it’s the standard set by decades of programming. However, as hyped as functional programming is at the current era, it’s still not at large, and some principles are not well understood.
Almost one year ago, Node 8 was released. It was a major release and brought quite a bit of ESnext to the masses. Even then, back in June I recognized that one of the major pitfalls when working with Node are the callback-based APIs that (IMHO) pollute your code.
Somewhat hidden in that release, was util.promisify, a native way of converting an errback (or Node-style callback) into a Promise.
A Promise-based fs As Node 10 just landed a few days ago, I was excited to see the most common case for such an util (dealing with filesystem APIs) was being addressed in some fashion.
Glamorous is my favorite CSS-in-JS library for React and React Native. Coupled with styled-system, polished and prop-styles, it brings you the most complete and flexible approach to component styling.
Among the many reasons to prefer Glamorous, is the ability to use JSX props for styling and not having to…
Let’s take a look at an example of what I mean:
<Box flex={1} justify="center" align="center"> {/*...*/} </Box> See? I didn’t have to name this particular instance of Box, and there’s only a couple of style overrides I was interested in, I didn’t have to create a new component for it.
If you’ve been around my site lately, you would not only have noticed a big redesign and a move to Gatsby, but something more subtle, hiding under the covers, almost unnoticed… That is, of course, links.
As a visual cue for the readers, which will now know instantly which site they’re about to be brought to there’s an icon attached to them. This applies to only the ones I thought to be relevant to the content and audience of this site.
A lot … has … been … written about good commit messages and how it’s a very important part of team communication, specially in an open-source setting, and the benefits that such an approach would bring.
But, as most things in programming life, unless there’s a clear blueprint and tools that aid with enforcing good patterns, these tend to be ignored, leaving us unable to reap their benefits.
In this post, we’ll discuss not only what makes a good commit message, but we will focus on the benefits of following conventions, how to enforce them, and tools that will aid us along the way.
If you’re doing software development these days, more often than not you would be working on a social application of some kind. Engaging user interaction, communication and sharing of content is pretty much what made the Internet become what we’re seeing now.
In this quick post I’ll share with you some tips, snippets, pointers or links on how to add some of the most common social features to your web application.
Recently I was talking all things Front-End development (ES2015, Babel, JSPM, you name it), with a friend, specifically how we should structure his application in order to have a smooth migration to Angular 2 when time comes.
I had an application that heavily relied on the principles outlined by John Papa’s Angular Style Guide, but was also using Redux (a Flux-like state manager library), had some important modifications, conventions, and tools; and throughout this article we will be describing most of them, some of the concepts might be new to you, some might not, feedback is always welcome that’s why I encourage you to leave some on the comments section.
I think Ember.js has the potential of becoming the go-to JavaScript MVC framework. The architectural decisions made, boilerplate added, auto-updating templates, a class system and property bindings make it stand above the crowd. But, speaking for me personally, it’s a tricky project to get your hands on. This part will be introductory trying to build some foundation for the upcoming parts.
A Quick JavaScript MVC Refresher If you’re familiar with other JavaScript MVC frameworks (such as Backbone, which I’m a big fan of) feel free to skip to the next section.