I’ve just searched “reduce” on Unsplash and this was the first result, philosophical! Photo by Noah Buscher

Reduce has been getting a lot of “hate” recently: let’s spread some love!

I’ve seen a lot of debate in the JavaScript community lately. It’s strange ’cause it never happens!

The dish of the week seems to be Array.prototype.reduce(). Is it useful? Is it worse than loops? Is it readable? This is a recurring topic which has been brought up multiple times in the past: it’s a never-ending story. Which should be enough to conclude that there’s no definite answer and you should use what you prefer. Which is not always the most performant solution, and sometimes not the most readable code for everyone. …


Photo by Anders Jildén on Unsplash

Original article (written by me) in italian here: https://accademia.dev/componenti-stateless-stateful-dumb-e-smart/

It doesn’t matter the framework or library you use in your Front-end, if it’s based on components (like Angular, React, Vue…) surely you’ve already come across these terms: stateless, stateful, dumb, smart, container, presentational.

Knowing them and understanding their differences is not only important, it’s fundamental! And unfortunately, people tend to get confused and someone may think that one term means the other… In fact, there’s a lot of confusion online. Let’s make it clear!

Stateful vs Stateless

A stateless component is a component without an internal state. What’s a state? It depends, in…


Photo by Johannes Plenio on Unsplash

If you’re a programmer and you ran into the concept of Functional Programming, you either know how to complete this sentence or you will, eventually.

I will not demonstrate what makes a Monad a Monoid, that is Category Theory stuff and you may not want to know it. This article is to demonstrate the correlation between a Monad and a Monoid in the most practical terms and why it matters. Specifically, we’ll be able to see which problems are solved by a Monad and how a Monad composes functions.

Important disclaimer: I’m not going to talk about Category Theory here…


Photo by Blake Connally on Unsplash

Hi, I’m Michele Stieven, a front-end developer and consultant in Italy.
Over the last 2 years I’ve been working 90% of the time with Angular since it’s one of the most requested technologies in this field in my country. I’d like to make a quick recap of the problems I face most as a consultant, and I’d like to address some issues or questions that I get asked maybe too often!

Some of these points are only related to Angular, others may be applicable to any other framework, library, or even plain JavaScript.

Straight to the points!

Messy code

I may seem…


Hi folks! It’s been some time since my last article, I promise I’ll be more active! :)

Actually I’ve been pretty busy reviewing projects and helping devs structuring their apps, and what I saw most of the times is this: Angular gives you lots of features out of the box, which is why you probably chose it, but it appears that most devs are not taking full advantage of them. The features I’m talking about are Dependency Injection and Observables, but in this article I’ll be focusing only on Dependency Injection.

DI is not just an ‘add-on’ of the framework…


“War. War never changes.” ©Bethesda

A tale about a developer tired of useless and misleading articles

I’ll put it down as simple as possible: I’m tired, tired and disappointed. I’m sick of reading the same articles every day. I’m sick of this “the winner is” syndrome.
We don’t need another winner, and we don’t need developers to tell us which tool will be better for our job.

I really understand clickbaiting, I swear I do. And I don’t mind articles titled “This VS That”, as they’re meant to be read by curious AND unexperienced developers which will just Google that sentence.
But this is exactly the problem: unexperienced developers will tend to believe in whatever the community…


…and using them to better organize applications!

Here you are! You are starting to feel comfortable with this framework, and all of the sudden…

Where should I put my services? Am I importing them in the right way? Are my modules well-organized and ready to scale? Is this component in the right place?
How do I even name this folder?

I found that most developers struggle with this questions because they don’t have a clear vision of how Angular Modules work and how important they are for the Dependency Injection mechanism.

In this article we try to lay the foundation for all of your next projects, nothing…


In this lecture we are exploring the core features of WordPress: make sure you know at least how to use its Dashboard and how to write some basic posts or pages, because we’ll be covering some interesting stuff here! 👍

Pssssst…

A lot of WordPress wannabe-developers I met didn’t know exactly what PHP is and why it’s so important to have some experience with it before digging into WordPress, so I decided to write a few lines regarding the very very basics of its role in this platform!


In this simple article we’ll be talking about:

  • What’s Redux
  • How it works
  • Where does it work
  • Why should you use it

If you are reading this post, you’re probably having difficulties understanding what Redux does to your project, while it’d be better to have a clear vision of what it is. Let’s dive in!

What’s Redux

Redux is a library for handling the data logic (also called business logic) in front-end applications. It is an implementation of a pattern called Flux (created by Facebook), with some differences. Flux is a pattern, not a library, which means we can write a Flux…


In this article we’re going to see how to lazy-load Angular modules, a feature that could help you a lot with large and heavy applications. By lazy-loading a module we can tell Angular to load it only when its route is been visited, meaning that its weight won’t affect the size of your application at startup.

Set-up

We are going to initialize the application with the Angular CLI, which is an extremely useful tool for speeding up our development process. If you haven’t installed the CLI, make sure you installed Node 6.9.0

Michele Stieven

Web Developer & JS enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store