Open in app

Sign In

Write

Sign In

Sunny Sun
Sunny Sun

825 Followers

Home

About

Published in

Better Programming

·Pinned

6 JavaScript Techniques for Improved Code Readability and Maintainability

Elevate Your JavaScript Skills with These 6 Code Cleaning Techniques — JavaScript is flexible and powerful. However, it can be tricky sometimes. While JavaScript constantly evolves and brings new challenges, we also encounter similar problems in daily work. In this article, we will discuss 6 tricks to help you write clean and maintainable JavaScript code. Jump ahead: Execute Multiple Asynchronous Promises…

JavaScript

6 min read

6 JavaScript Techniques To Help You Write Cleaner Code
6 JavaScript Techniques To Help You Write Cleaner Code
JavaScript

6 min read


Published in

Level Up Coding

·Pinned

TypeScript Compiler and Compiler API (Part 1)

The Internal of the TypeScript Compiler Explained — After working with TypeScript for a few years, I felt I had a good understanding of the language, except I don’t really know how the compiler works internally. Recently, I got a chance to dig into an area that I knew very little about and I would like to share…

Typescript

4 min read

TypeScript Compiler and Compiler API (Part 1)
TypeScript Compiler and Compiler API (Part 1)
Typescript

4 min read


Published in

Better Programming

·Pinned

6 TypeScript Typing System Tricks You Should Know

What I’ve learned from using TypeScript’s type system — TypeScript is about types. It’s a strongly typed language with powerful compile-time type-checking. At the same time, its static typing is optional, so it’s compatible with JavaScript. I’ve been working with TypeScript for more than three years. …

Programming

5 min read

6 TypeScript Typing System Tricks You Should Know
6 TypeScript Typing System Tricks You Should Know
Programming

5 min read


Published in

Better Programming

·Pinned

TypeScript’s Record Type Explained

Everything you want to know about the Record utility type — Record is one of the TypeScript utility types and has been available out-of-box since version 2.1. I have to admit that I was a little confused when I read the official definition for the first time: “Record<Keys,Type> Constructs an object type whose property keys are Keys and whose property values…

Programming

4 min read

TypeScript’s Record Type Explained
TypeScript’s Record Type Explained
Programming

4 min read


Pinned

How to Map RESTful API Data Using Decorator Pattern in Angular

A cleaner, loosely coupled, and maintainable solution — To build a solid RESTful API, there are well-established best practices and design patterns we can use. In this article, I will discuss using the Decorator pattern to consume RESTful API in Angular. HttpClient Service To consume a REST API in Angular, we can use HttpClient . HttpClient Service handles the JSON…

JavaScript

4 min read

How to map REST API data using Decorator pattern in Angular 6
How to map REST API data using Decorator pattern in Angular 6
JavaScript

4 min read


Published in

Level Up Coding

·May 23

Type First, Code Later

Type-First Development in TypeScript: Thinking in Types — TypeScript is all about types. Its type system allows you to define the shape of your data and specify the types of variables, functions, and objects. In a post two years ago, I delved into the concept of Type flowing. Type flowing is when one or more subtypes are mapped…

Typescript

7 min read

Type First, Code Later
Type First, Code Later
Typescript

7 min read


Published in

Level Up Coding

·May 1

DotNet-Format vs. CSharpier: Which Auto-Formatting Tool is Best for Your .NET Code

A Comprehensive Review of DotNet-Format and CSharpier — Having consistently formatted code is essential for maintainability and readability. Without Auto formatting tools, the codebase can lack consistency. This can result in excessive time spent on code reviews nitpicking coding standards, diverting attention from critical aspects such as functionality. As a developer, we all know it is a tedious…

Dotnet

5 min read

DotNet-Format vs CSharpier: Which Auto-Formatting Tool is Best for Your .NET Code
DotNet-Format vs CSharpier: Which Auto-Formatting Tool is Best for Your .NET Code
Dotnet

5 min read


Published in

JavaScript in Plain English

·Apr 8

Unlocking TypeScript: 5 Hidden Gems You May Not Know

Take your TypeScript skills to the next level with these must-know features — TypeScript is rapidly evolving, with each new release introducing features that aim to make the language more concise, powerful, and faster. While the extensive language feature is a blessing, it can also make it challenging for developers to keep up. In this article, I will walk through five lesser-known yet…

Typescript

5 min read

Unlocking TypeScript: 5 Hidden Gems You May Not Know
Unlocking TypeScript: 5 Hidden Gems You May Not Know
Typescript

5 min read


Published in

JavaScript in Plain English

·Mar 14

Hexo vs. Hugo: Choose the Right Framework to Build Your Personal Blog

Build a personal blog and publish to Github pages for free — Over the past few years, I have written a number of technical blogs on Medium, LogRockets, and Twilio. Recently, I decided to create a personal website to collect all the articles in one place. After some research and half a day’s work, I got the personal blog up and running…

Programming

6 min read

Hexo vs. Hugo: Choose the Right Framework to Build Your Personal Blog
Hexo vs. Hugo: Choose the Right Framework to Build Your Personal Blog
Programming

6 min read


Published in

Level Up Coding

·Mar 6

TypeScript Recursive Type Aliases Explained

A Deep Dive into TypeScript Recursive Type Aliases — Before TypeScript 3.7, a recursive type reference will cause the TypeScript compiler to throw a circular references error message. Developers must make a workaround (i.e., using an interface) to achieve a recursive reference. The recursive type has been introduced since TypeScript 3.7. It allows the reference to the type from…

Typescript

4 min read

TypeScript Recursive Type Aliases Explained
TypeScript Recursive Type Aliases Explained
Typescript

4 min read

Sunny Sun

Sunny Sun

825 Followers

I am full stack developer. Love coding, always leaning, writing and sharing. Visit my personal blog https://sunnyy02.github.io

Following
  • Milos Zivkovic

    Milos Zivkovic

  • John Au-Yeung

    John Au-Yeung

  • Maya Sayvanova

    Maya Sayvanova

  • Øivind H. Solheim

    Øivind H. Solheim

  • Elye

    Elye

See all (140)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams