Reduce stress with max line lengths

Black Friday just passed and I’m sure there have been plenty of large TV and computer monitor purchases. I’ll be holding off for the ultra wide screen monitors to come down in price a little more before I get one for myself. With our monitors getting wider and wider, do we still need maximum line lengths in our code? My answer is yes. I don’t just mean there needs to be maximum line lengths in our code, but I’m crazy enough to suggest this should be implemented in all areas of a modern workplace....

December 3, 2019 · 2 min · Hubert Lin

Closing Bootstrap nav in Angular

Does your app use Bootstrap 4? Does your app use Angular 6+? Does navbar stay open even when navigating to different components? (Mobile) I fixed the problem using Angular attribute directive. How the bootstrap toggler works When the bootstrap toggler is clicked it calls the .collapse() from the ul.nav-list, adds .collapsing before the animation starts, adds .show and finally removes the .collapsing class. .show Try removing .show from the open navbar....

January 28, 2019 · 2 min · Hubert Lin

Decoupling Identity Core from .NET Core Api

During my quest to make my architecture “clean” there was a huge dependency that needed to be inverted Microsoft.AspNetCore.Identity. Even though many applications require authentication, we still shouldn’t be depending on any authentication frameworks. According to Robert C. Martin we shouldn’t depend on a framework because the business rules can change or the frameworks can change. We keep things loosely coupled so that in case we need to swap out an implementation we can do so without affecting our business rules....

November 30, 2018 · 3 min · Hubert Lin

I discovered Clean Architecture by Robert C. Martin

Recently, I’ve been working on a personal web development project using Angular and .NET Core. The architecture of the .NET Core portion was fairly simple, with controllers calling the Entity Framework context to do CRUD operations on the database. When it came time to add authentication to the application things started to get messy; I like being clean. I wanted to find a way to add Identity Framework to the project so that it was possible to change in the future, that’s when my search led me to the Clean Architecture Pattern by ‘Uncle Bob’ (He’s everyone’s uncle?...

November 21, 2018 · 1 min · Hubert Lin

Things I learned from my first paid website project

Yes that’s right, I built my first website for a paying client. Although not the greatest accomplishment, I want to share my experience so you and other business owners can get some perspective. With SquareSpace, Shopify, Wix and all those other website building apps, it seems like there really isn’t a reason to hire a web developer these days. I mean, why would someone pay a few hundred dollars when they could just pay $9....

September 10, 2018 · 4 min · Hubert Lin