Open in app

Sign In

Write

Sign In

Marcellin Nshimiyimana
Marcellin Nshimiyimana

14 Followers

Home

About

Published in

Friday Knowledge

·Jun 11

NGINX — conditional variables

This week I learned how to use nginx map directive Suppose you have an API server running on https://api.example.com and would like to make sure your API’s get used by https://shop.example.com and https://marketing.example.com. One way to achieve this is through CORS (cross origin resource sharing), which helps you tell browsers…

Nginx

2 min read

NGINX — conditional variables
NGINX — conditional variables
Nginx

2 min read


Mar 2

Importing scripts in the browser

This week, I learned how to use dynamic import to load legacy script into an Angular app Suppose you are building a book reading app in Angular, and you decide to use turn.js in order to save time. You decide that Angular will take care of authentication and listing available…

Angular

2 min read

Importing scripts in the browser
Importing scripts in the browser
Angular

2 min read


Published in

Friday Knowledge

·Jul 15, 2022

Better package management with npm

How can npm help you remove unmaintained packages from a big repo? TL&DR You can use npm i <wrapper-old-package> --global-style to prevent your teammates from accidentally importing old-package . Introduction One of many approaches to removing a package from a big project that many developers contribute to, is to Keep existing functionality…

Nodejs

3 min read

Better package management with npm
Better package management with npm
Nodejs

3 min read


Published in

Friday Knowledge

·May 17, 2022

Image Preview made easy

Leveraging createImageBitmap to create image previews In Google I/O 2022, the web team announced that most major browsers now have implemented createImageBitmap api. So, we will look at one feature that used to require too much effort to achieve, and how we can easily implement this feature with the help…

JavaScript

2 min read

Image Preview made easy
Image Preview made easy
JavaScript

2 min read


Published in

Friday Knowledge

·Feb 14, 2022

Typescript with eslint

This week, I learned how to write custom eslint rules TL;DR Eslint provides a quick and easy way to write and use custom rules! One of 2022 year resolution is to improve my rxjs knowledge. And that led me to start replacing Promises with Observables in most of my projects. …

Eslint

3 min read

Typescript with eslint
Typescript with eslint
Eslint

3 min read


Dec 27, 2021

Do you really need Strict Typescript?

How can strict mode help you prevent runtime errors In order to answer this question, we will look at an example. Supposed you are asked to Create an API that allows an account manager to view a list of transactions when they provide an account number. Since, you are using…

Typescript

2 min read

Do you really need Strict Typescript?
Do you really need Strict Typescript?
Typescript

2 min read


Published in

Friday Knowledge

·Nov 7, 2021

Multiple Webpack builds

This week, I learned how to run multiple webpack builds on same website sing jsonpFunction There are times when you want to run multiple JavaScript applications on the same page. For example, you have a main Angular app and a chat widget written in Reactjs. If you are using Webpack…

Webpack4

1 min read

Multiple Webpack builds
Multiple Webpack builds
Webpack4

1 min read


Jul 26, 2021

Simple trick to optimize your Typescript code

Import type in older versions of Typescript Audience Anyone who works on a project that uses outdated Typescript. If you write Typescript on the backend and frontend like me, you know that sometimes your backend code can end up in the frontend bundle. The Typescript team came with ingenious idea to…

Typescript

2 min read

Simple trick to optimize your Typescript code
Simple trick to optimize your Typescript code
Typescript

2 min read


Published in

Friday Knowledge

·Dec 26, 2020

Webpack fails to load TS files?

This week I learned how to setup Webpack module resolution for Angular compiler. TL;DR Angular compiler creates a virtual file system that contains transpired code. So, Webpack may load JS files even if you were expecting it to load TS ones. You can prevent this uncertainty, by reordering extensions in…

Webpack

3 min read

Webpack fails to load TS files?
Webpack fails to load TS files?
Webpack

3 min read


Published in

Friday Knowledge

·Dec 21, 2020

Supercharge Caching with Service Workers

This week I learned how to cache API calls using a Service Worker Most website owners face a challenge of keeping users around for a long time. One solution to this challenge is removing any experience that bores the user, such as long site loading times. For example, this book-reading…

Service Worker

3 min read

Supercharge Caching with Service Workers
Supercharge Caching with Service Workers
Service Worker

3 min read

Marcellin Nshimiyimana

Marcellin Nshimiyimana

14 Followers

Always debugging, because problem knowledge equals half the solution!

Following
  • Medium

    Medium

  • Thor Chen

    Thor Chen

  • Freehand by InVision

    Freehand by InVision

  • Christo

    Christo

  • Christian Wimmer

    Christian Wimmer

See all (22)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams