Sign in

Developer Debugging Skills

console.log()
console.info()
console.warn()
console.error()
console.table()
const users = [
{…

Accdient-Driven Development

Forget TDD,BDD, or DDD

1. TDD: https://en.wikipedia.org/wiki/Test-driven_development
2. BDD: https://en.wikipedia.org/wiki/Behavior-driven_development
3. DDD: https://en.wikipedia.org/wiki/Domain-driven_design
  • In the file of app-routing.module.ts of every lazy-loading module, use forChild() but not forRoot()
  • In the file of app-routing.module.ts of the root module, use loadChildren() but not XxxComponent
  • In the file of app.module.ts of the root module, remove all the lazy-loading modules from “imports” list. Otherwise, lazy loading won’t work!

Step #1. Install the extension

Install C# Extension

Step #2. Configurations

Stop updating the file names, classes or variables one by one!

Why Copy &Paste?

Creating a Node.JS application

Black Outline

DON’T REVENT THE WHEEL

How to implement ScrollSpy without any 3rd party library

$('body').scrollspy({    target: '#navbar',    offset: 80});

Scroll Animation
html {    scroll-behavior: smooth;}

Derek Ji

Full Stack Developer (specialised in .NET Core, Angular and ReactJS)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store