All of todays articles come from dev.to, which is another excellent developer community platform. If you aren't already registered, I'd highly encourage you to do so. We start with a great comparison between Vue and React, before moving on to testing in React. Finally we have an article on how to write your very own webpack plugin!
Quote of the Day
“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.” - Anon.
By Tom Grabski
Testing is one of the crucial parts of the software development process and mostly overlooked by developers. Usually, developers avoid writing tests, because it takes more time than just simply developing a product if you are not familiar with tests. But there is only one way to make sure your code works as you keep working on it. Imagine a scenario where you develop a new component that works with your old component, you might be somehow modified your components, so how do you make sure your old component is working as you expected?. You can't if you avoid writing tests. Period.
By Jasmin Virdi
In the last post I discussed about the bundling and architecture of Webpack. In this post I would be focussing on building webpack plugins and how it can help you to solve your bundling problems. Webpack is built on plugin system which is used in webpack configurations and helps us in extending webpack's implementation which cannot be achieved by loaders and parsers. I will be taking a simple example of a plugin which takes few arguments and prints them when webpack's lifecycle hooks are emitted. So let's begin building our own webpack plugin.