Tag: javascript

Building Resilient Systems: Why Your Code Should Expect Failure
devops

Building Resilient Systems: Why Your Code Should Expect Failure

Every production system eventually faces the same uncomfortable truth: things fail. Networks partition, services crash, databases timeout, and disk space runs out at 3 AM. The difference between a system that survives these events and one that doesn't comes down to one word: resilience. Why Resilience Matters Imagine

davide
Parcel web bundler pros and cons
JS

Parcel web bundler pros and cons

Recently I've been using Parcel (https://parceljs.org/) for some small web apps I'm developing in my free time. Parcel is a modern javascript bundler that is used to package a JS app into a single, or multiple files. We could argue that the state of

davide
3d force directed graph visualisation with ThreeJS
javascript

3d force directed graph visualisation with ThreeJS

I needed a cool way to visualize a force directed graph with many datapoints, so I thought that webGL was the way to go as it should be able to handle the heavy load better than d3 SVG. The library I've used for this small proof of concept

davide
Client side routing explained
javascript

Client side routing explained

Client side routing explained React router is the defacto standard for client side routing in React SPA application. To understand how React router works ( and other type of client side routing libraries), first, we need to understand how client side router works. Server side routing On a server side web

davide
javascript

ASCIICAM

Simple webapp that turns your webcam into ASCII art. code is available on github at https://github.com/david1983/ascii_cam I've done this in 2015 when I realised that I did not know JS enough ... so it is done in vanilla JS, without any libraries and using

davide
Charge Stripe Processing Fee to the user
javascript

Charge Stripe Processing Fee to the user

Following is how I've implemented the possibility to charge the stripe fee onto the user. Unfortunately, Stripe does not offer any API endpoint to get the stripe fees for a specified country so I had to do it manually. It is not perfect nor elegant but it works.

davide
First react app
javascript

First react app

So it's been two days that I'm trying to figure out how React works and how to use it for my projects. I have to admit that I don't like React and I prefer to work with frameworks like Angular or Ember. I know

davide
Control flow with promises
javascript

Control flow with promises

Promises are very powerful and allow us to create really complex asynchronous data flows. When we want to execute tasks at the same time we can use Promise.all(), but if we want to execute tasks one after the other, we need to use a different solution. Here is an

davide
Best way to install ghost
ghost

Best way to install ghost

Ghost is a nice blogging platform based on ember.js and running on node.js. During the configuration of this machine I have found a lot of issues in the install steps described on the official github page. After different tries I've found that you can also install

davide