Open in app

Sign In

Write

Sign In

Kevin Le
Kevin Le

299 Followers

Home

About

Jan 14, 2022

Find a matching element in a list and move to first: A journey from a novice JavaScript to an elegant TypeScript solution

Here’s the problem we’re trying to solve. We have an array of users as follow: const users = [ { firstName: 'Jane', lastName: 'Foo' }, { firstName: 'John', lastName: 'Bar' }, { firstName: 'Jill', lastName: 'Err' } ] Given a user, for example, John Bar, we want to re-arrange the…

Typescript

4 min read

Typescript

4 min read


Aug 27, 2021

Securely store and access secrets in Azure KeyVault from Docker-based App Service

Storing secrets such as database passwords, API keys, tokens, et cetera in .env files or appsettings.json or similar config files are not very secure. This is probably universally-known and requires no further elaboration. If you work with Azure as your cloud platform and want to learn how to do programmatically…

Docker

10 min read

Securely store and access secrets in Azure KeyVault from Docker-based App Service
Securely store and access secrets in Azure KeyVault from Docker-based App Service
Docker

10 min read


Nov 3, 2020

Learn Xamarin.Forms Control Template by making a Button with built-in Loading Indicator in 4 steps

In Xamarin.Forms, Control Template offers a powerful way to build a template. The template is built by composing smaller parts. But building a template is not the end goal. …

Xamarin Forms

3 min read

Learn Xamarin.Forms Control Template by making a Button with built-in Loading Indicator in 4 steps
Learn Xamarin.Forms Control Template by making a Button with built-in Loading Indicator in 4 steps
Xamarin Forms

3 min read


Apr 3, 2020

Accelerating to delivery: Quickly build an Admin Panel or Dashboard-like app using ReactJS and Tailwind CSS.

Part I Building a ReactJS app is like building with LEGO blocks. We build larger components out of smaller components and keep repeating that until we have something like an Admin Panel/Dashboard-like UI below: To do quickly, we will use the Admin Panel template built on Tailwind CSS by tailwindadmin. Instead of…

Reactjs

3 min read

Accelerating to delivery: Quickly build an Admin Panel or Dashboard-like app using ReactJS and…
Accelerating to delivery: Quickly build an Admin Panel or Dashboard-like app using ReactJS and…
Reactjs

3 min read


Oct 24, 2019

Correctly capture iOS 13 Device Token in Xamarin

Cross posted on dev.to Capturing the Device Tokens is necessary for push notification to work. A Device Token is nothing but an ID that uniquely identifies a combination of a device and an app. So if we have 2 apps running on the same device, they will have different Device…

Push Notification

2 min read

Push Notification

2 min read


Nov 13, 2018

Build an iOS front end to verify a numeric code using RxSwift

There are use cases, commonly related with passwordless authentication or second-factor authentication where iOS users are required to enter some 4-digits or 6-digits numeric code that they received in an email or text to their phones. Here are the requirements of what we are going to build: There are 6-digits…

Swift

5 min read

Build an iOS front end to verify a numeric code using RxSwift
Build an iOS front end to verify a numeric code using RxSwift
Swift

5 min read


Nov 1, 2018

Everything you need to know to write, debug, deploy and monitor Azure Functions

Step by step guide using a light weight approach — 1. Introduction Learning how to correctly write and deploy with Azure Function beyond a “Hello Azure Function” is difficult. It is that way because although Azure documentation is plentiful but just not well organized. Conceptually it’s actually easy, if the documentation is not such a big mess. Recently I had to re-architect…

Azure Functions

10 min read

Everything you need to know to write, debug, deploy and monitor Azure Functions
Everything you need to know to write, debug, deploy and monitor Azure Functions
Azure Functions

10 min read


Apr 27, 2018

Securing C#/.NET WebAPI with public-private-key-signed JWTs signed by NodeJS

This article was cross-posted on dev.to In this article, I will show how to implement and secure a C#/.NET (hereinafter I will only say C#) WebAPI. To secure the WebAPI, we will use JWT. The JWT is signed by a NodeJS backend using Private Key. …

Jwt

6 min read

Securing C#/.NET WebAPI with public-private-key-signed JWTs signed by NodeJS
Securing C#/.NET WebAPI with public-private-key-signed JWTs signed by NodeJS
Jwt

6 min read


Nov 28, 2017

Closure explained in an elevator

…without saying the words “close over” — There are plenty of articles discussing about the closure, too many to be listed here. They all eventually incorporate long code examples in various languages into the explanation, which is fine. …

Closure

2 min read

Closure

2 min read


Oct 6, 2017

A small gotcha with NodeJS Application settings on Azure that can surprise you

The following code runs perfectly fine on a NodeJS server that’s hosted outside of Azure App Services: During development, running NodeJS on a local server, the environment variable API_AI_ACCESS_TOKEN are set in package.json file. Just for completeness, let me show the constants.js …

Nodejs

1 min read

Nodejs

1 min read

Kevin Le

Kevin Le

299 Followers

Driven by passion and patience. Read my shorter posts https://dev.to/codeprototype (possibly duplicated from here but not always)

Following
  • Stefan Smiljkovic

    Stefan Smiljkovic

  • Simon Ng

    Simon Ng

  • alpha2phi

    alpha2phi

  • Eric Elliott

    Eric Elliott

  • Bruno Teixeira

    Bruno Teixeira

See all (197)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams