How to keep a consistent coding style and avoid bugs before production.

This story was originally published here.

In an ideal world there would be no errors, because errors are bad, especially when writing code. Some errors cause glitches that frustrate users or compromise security. The best thing is to avoid them, as good as you can. As a developer you have the benefit of modifying your workflow, hence you can easily add a linter.

Linting can help us to reduce errors and improve code quality. …


Divide and Conquer — simply explained without Fibonacci.

This story was originally published here.

Let’s start with a Google easter egg for developers. Stop reading and head over to google.com and search for ‘recursion’. What do you see?

The result should look like this. Click on the suggestion “Did you mean: recursion”.

As you just have experienced, the page reloads and you see the same results. So it called itself, this is basically called recursion and you just used it. 😊

Recursion simply means “self reference”.


Architecture style, methods and constraints simply explained.

This story was originally published here.

REST stands for REpresentational State Transfer. It’s a software architectural style that defines a set of constraints to be used for creating Web services. Roy Fielding created this architectural style in 2000 in his disertation.

So REST is a architectural style or a design pattern for APIs. It relies on a stateless, client-server, cacheable communications protocol, basically HTTP. The World Wide Web, which is based on HTTP, can be viewed as a REST-based architecture, if you want to go this far.

When a REST API is called, the server will send data (a representation of the state) of the requested resource to the client.

About

Mario Kandut

Software Engineer skilled in React, Redux and Node.js with Expertise in Digital Marketing