You probably heard about Kik, NPM and left-pad saga this week. Shortly, a company Kik asked a developer Azer Koçulu to give the ownership on a NPM module. The module name matches the name of the company. The developer refuses and the company reaches the registry (NPM). The module was transfered to the company based on a NPM policy. The developer then decided to remove all his modules from the registry. The bad thing is that one of these modulesread more comments
left-padis a dependency of many other modules. As a result of the un-publishing all the packages that depend on
left-padcan not be built. Some really popular tools like Babel and React started getting broken builds.
Destructuring is one of my favorite ES6(ES2015) features. It just shortens my code and helps me be more explicit with my statements. Let’s see it in action.read more comments
I like reading code of other developers. It’s a nice way to learn patterns, techniques and small tricks. Recently I found something aboutread more comments
Array.prototype.lengthwhich caught my attention.
Well, I kind of lied in the title of this article. Of course that it is the end of the function. Once we callread more comments
returneverything else after that is simply not executed. Ops … I did it again, I kind of lied again.
If you build single page applications you probably know that one of the must-have parts is the router. The bit that knows how to tweak the content of the address bar and notifies the rest of the system for URL changes. In this article we will discuss the various aspects of the routing in the browser.read more comments
I love using functions likeread more comments
reduce. They are an important part of my arsenal and I simply can’t stop using them. Today I had to solve an interesting problem and I ended up using
I’m obsessed by making my code simpler. I didn’t say smaller because having less code doesn’t mean that is simple and easy to work with. I believe that big part of the problems in the software industry come from the unnecessary complexity. Complexity which is a result of our own abstractions. You know, we (the programmers) like to abstract. We like placing things in black boxes and hope that these boxes work together.
read more comments