Open in app

Sign In

Write

Sign In

Sunny Sun
Sunny Sun

753 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 is constantly evolving and bringing new challenges, we also encounter similar problems repeatedly in daily work. In this article, we will discuss 6 tricks that can help you to write clean and maintainable JavaScript code. Jump ahead: …

Java Script

6 min read

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

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 the area that I knew very little about, and would like to share with…

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. Having learned a lot during this journey, but I still have the nice…

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 the 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…

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 more 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 talk about how to use the Decorator pattern to consume RESTful API in Angular. HttpClient Service To consume a REST API in Angular, we can use HttpClient . HttpClient Service…

Java Script

5 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
Java Script

5 min read


Published in Level Up Coding

·1 day ago

Install and ConfigureYour Own MySQL Server On Oracle Always Free Ubuntu VM

Complete guide and tricks on how to connect to the MySQL instances remotely — In my previous article, I wrote about hosting a site on Oracle always free offering. The Oracle always free is a generous offer. One of the eligible free services is: Arm-based Ampere A1 cores and 24 GB of memory usable as 1 VM or up to 4 VMs with 3,000…

My SQL

7 min read

Install and ConfigureYour Own MySQL Server On Oracle Always Free Ubuntu VM
Install and ConfigureYour Own MySQL Server On Oracle Always Free Ubuntu VM
My SQL

7 min read


Published in JavaScript in Plain English

·Jan 25

Loading Spinners in Angular: Two Simple Methods

Two Proven Techniques to Improve User Experience — Almost every Angular App has a loading spinner. When a user performs an action that triggers a long-running task, such as an HTTP request, a loading spinner can provide visual feedback to the user that the app is working on the request. When a user sees a spinner, their brain…

Angular

5 min read

Loading Spinners in Angular: Two Simple Methods
Loading Spinners in Angular: Two Simple Methods
Angular

5 min read


Published in JavaScript in Plain English

·Jan 6

Don’t Leave Your NestJS API Exposed

Using Reflect and the NestJS Undocumented API to Identify Unsecured Endpoints in Unit Tests — It is a given that an API should be secured to prevent potential attacks. However, it is surprising how often simple human mistakes can lead to an API endpoint being unprotected. A recent example of this is the Optus data breach, which was caused by “an API that did not…

Nestjs

5 min read

Don’t Leave Your NestJS API Exposed
Don’t Leave Your NestJS API Exposed
Nestjs

5 min read


Published in Level Up Coding

·Dec 28, 2022

Maximize Code Security in Your NestJS Applications (Part 2)

Secure Code Best Practices with Real-World Examples — In Part 1 of this article, We walk through 4 common security risks and their prevention in the context of NestJS. It is worth noting that although NestJS is used here (as one of my favored API frameworks), those best practices are framework agnostic. Let’s continue to dive into other…

Nestjs

7 min read

Maximize Code Security in Your NestJS Applications (Part 2)
Maximize Code Security in Your NestJS Applications (Part 2)
Nestjs

7 min read


Published in Level Up Coding

·Dec 19, 2022

Maximize Code Security in Your NestJS Applications (Part 1)

Top Secure Code Best Practices for NestJS Developers As a developer, we all know how critical is code security. The recent data breaches at Optus and Medibank highlight the importance of code security again. So, the question is: how can we write secure code to prevent various types of attacks…

Java Script

6 min read

Maximize Code Security in Your NestJS Applications (Part 1)
Maximize Code Security in Your NestJS Applications (Part 1)
Java Script

6 min read

Sunny Sun

Sunny Sun

753 Followers

I am full stack developer. Love coding, always leaning, writing and sharing.

Following
  • Øivind H. Solheim

    Øivind H. Solheim

  • The Pragmatic Programmers

    The Pragmatic Programmers

  • Antonello Zanini

    Antonello Zanini

  • Sébastien Dubois.

    Sébastien Dubois.

  • Tom Smykowski

    Tom Smykowski

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech