Open in app

Sign In

Write

Sign In

TRAN SON HOANG
TRAN SON HOANG

1K Followers

Home

Lists

About

Oct 13, 2022

My Journey to 144k Views Technical Story

This is a story to welcome me to back after long time resting and mention my most view story since 2019 — In this story, I will share about how I start to write on Medium and get 144k views on story about Angular only. How I know medium What we can learn about writing on Medium My most view story ever How I know medium Hi there, if you are a Medium reader and never…

Programming

4 min read

My Journey to 144k Views Technical Story
My Journey to 144k Views Technical Story
Programming

4 min read


Published in Level Up Coding

·Mar 28, 2021

Setup a Good Angular Starter Project

Learn how to setup a project by adding Jest, State Management, Prettier, and Eslint. — In this article, I will share about an Angular starter project that I created last year, and I just migrated it to Angular 11 a few days ago. hoangtranson/angular-jest-starter This project was generated with Angular CLI version 11.0.3. git clone…github.com Table of Contents Setup Jest Setup Ngxs State Management

Angular

4 min read

Setup a Good Angular Starter Project
Setup a Good Angular Starter Project
Angular

4 min read


Published in Level Up Coding

·Mar 11, 2021

How I Refactored a JavaScript Library to TypeScript

A Guide to setting up an npm library with TypeScript, Jest, Prettier, and Eslint — In this story, I will refactor one of my libraries (nric-validator). The scenario is that the code is written in JavaScript + Ava (unit test), and the structure is not good. So, I want to re-structure this npm library to archive these points: Able to write by TypeScript and export…

Typescript

4 min read

How I Refactor JavaScript Implemented Library to TypeScript
How I Refactor JavaScript Implemented Library to TypeScript
Typescript

4 min read


Published in Level Up Coding

·Oct 26, 2020

A Note on Ways to Do Looping in JavaScript Array

This article will take note how many ways we can use to do looping in JavaScript, pros and cons. — In this story, I want to share about the many ways to do looping in JavaScript and some notes on the advantages and disadvantages of each way. Sequential for Loop Array.prototype.forEach ES6 for-of statement ES6 for-in statement Bonus — Combination Iterators and For Loop Sequential for Loop Loops offer a quick and easy…

JavaScript

4 min read

A Note on Ways to Do Looping in JavaScript Array
A Note on Ways to Do Looping in JavaScript Array
JavaScript

4 min read


Published in Level Up Coding

·Sep 10, 2020

Filter Object Properties by Using JSON.stringify

A simple technique to filter JavaScript object properties by using replacer as an array or a function. — In this article, I will share about using replacers with JSON.stringify(). Syntax Re-introduction Using Replacer Argument Syntax Re-introduction I think that most of us know the JSON.stringify() first argument. But, only some people know about there is a second argument called a replacer. So I want to re-introduce again the method syntax.

JavaScript

3 min read

Using JSON.stringify to Work with JavaScript Object
Using JSON.stringify to Work with JavaScript Object
JavaScript

3 min read


Published in Level Up Coding

·Sep 8, 2020

How to Add Version to Angular Application

A simple guide to add a version to an interface for an Angular application. — In this article, I will share a simple configuration to import the package.json file into your Angular application. Import @types/node Add configuration to tsconfig.app.json Import package.json to Angular component The purpose of this is very simple. Sometimes, we want to import package.json to Angular components to get the version number…

Angular

2 min read

How to Add Version to Angular Application
How to Add Version to Angular Application
Angular

2 min read


Published in Level Up Coding

·Aug 13, 2020

Set Up Prettier for Angular in 30 Minutes

Guide to installing Prettier and adding it to a pre-commit hook for Angular. — In this article, I want to share how to setup Prettier for Angular to run on a specific folder only and keep your code looking good. What is Prettier? Install Prettier Write a Script Auto format code with a Pre-commit Hook Note: I wrote this story based on how I…

Angular

3 min read

Setup Prettier on Angular in 30 Minutes
Setup Prettier on Angular in 30 Minutes
Angular

3 min read


Published in Level Up Coding

·Aug 6, 2020

Advanced Level for Angular Reactive Form

A simple note that help developer walkthrough Angular Reactive Form — Have you ever wondered why Angular is so powerful with forms? In this article, I will walk you through this topic to understand why and how Angular is better with forms compared to React or Vuejs. Contents: What Reactive Form is Three Basic Blocks FormBuilder Validators The Magic What Reactive Form is Angular provides…

Angular

7 min read

Advanced Level for Angular Reactive Form
Advanced Level for Angular Reactive Form
Angular

7 min read


Published in Level Up Coding

·Jul 27, 2020

Best Programming Paradigm to Keep Your Code Clean on the Frontend

Why we should use functional programming on the frontend to keep codebase readable, maintainable, reusable, and testable. — I’m writing this article right after I completed refactoring a terrible and large source code into a simpler one while applying the functional programming paradigm. I want to share this with front-end developers around the world the idea as to why FP is a good fit for JavaScript and some…

JavaScript

4 min read

Best Programming Paradigm to Keep Your Code Clean on the Frontend
Best Programming Paradigm to Keep Your Code Clean on the Frontend
JavaScript

4 min read


Published in Level Up Coding

·May 26, 2020

TypeScript Types in Programming

Basic TypeScript types that developers need to know when working with TypeScript. — This story is about types in TypeScript which is a typed superset of JavaScript that compiles to plain JavaScript. I will go to more detail to explain some terms below. Primitive Types Enumerations Union Types Literal Types Intersection Types Arrays Tuple Types Dictionary Types Mapped Types Discriminated Unions You can…

Angular

3 min read

TypeScript Types in Programming
TypeScript Types in Programming
Angular

3 min read

TRAN SON HOANG

TRAN SON HOANG

1K Followers

Senior JavaScript Engineering

Following
  • Daniel G. Jennings

    Daniel G. Jennings

  • Jonathan Poletti

    Jonathan Poletti

  • Ryan Fan

    Ryan Fan

  • Joseph Serwach

    Joseph Serwach

  • The Educative Team

    The Educative Team

See all (540)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech