Stop and Remove ALL Docker Containers and Images

This is shamelessly stolen from The Humble Developer. List All Containers docker ps -a Stop All Running Containers docker stop $(docker ps -aq) Remove All Containers docker rm $(docker ps -aq) Remove All Images docker rmi $(docker images -q)

Workaround for ‘Template parse errors’ in Angular

This was one of the more frustrating issues with Angular 2/4/+. It’s not an issue with Angular 2/4/+ per se, but with how webpack bundles the supporting HTML files. This issue happens when you run webpack with the production flag (webpack -p). The compilation completes, but running the site generates a runtime error: Template parse…

In a Single Page Application, Should I process on the Client or the Server?

One of the selling points of the Single Page Application (SPA) was offloading work traditionally performed on the server onto the client. I feel the SPA has delivered on this promise. However, it’s not all roses. It’s easy to get overzealous and push too much work to the client. We often forget that we can’t…

Examining the Case for Switch Statements

For nearly 50 years, the switch statement (also known as the case statement) has been an integral part of programming. In recent years, however, some are claiming that the switch statement has outlived its usefulness. Others go even further by labeling the switch statement as a code-smell. In 1952, Stephen Kleene conceived the switch statement…

4 Practices to Lowering Your Defect Rate

Writing software is a battle between complexity and simplicity. Striking balance between the two is difficult. The trade-off is between long unmaintainable methods and too much abstraction. Tilting too far in either direction impairs code readability and increases the likelihood of defects. Are defects avoidable? NASA tries, but they also do truckloads of testing. Their…

Ignorance is Bliss When Using Frameworks

In software engineering, there is a prevailing idea that an engineer should only use a framework when he or she understands the internal workings. This is a fallacy. Why is it that we must know the internal workings — do the details matter that much? Some might say ignorance is bliss. Car Engine Let’s examine…

8 Must Have Extensions for Brackets.io

Everyone has a favorite editor. We each have reasons for choosing our editor. I’ve tried them all. And I’ve found that Brackets.io best suits me. Unfortunately, there are gaps in the functionality of Brackets.io. With a robust ecosystem of extensions, I’ve found 8 extensions that complete Brackets.io. Here is a list of my 8 must…

Setting up Continuous Integration on Ubuntu with Nodejs

I went through blood, sweat and tears to bring this to you. I suffered the scorching heat of Death Valley and summited the peaks of Mount McKinley. I’ve sacrificed much. Much of content shared in the post is not my original work. Where I can, I link back to the original work. This article assumes…

The Mind State of a Software Engineer

Have patience. Coding is discovery. Coding is failing. Be ok with this. *image reference Don’t blame the framework. It’s more probable it’s your code. Accept this fallibility. *image reference Know when to walk away. You mind is a wonderful tool, even at rest it’s working on unsolved problems. Rest, and let your mind do it’s…

Index Fragmentation in SQL Azure, Who Knew!

I’ve been on my project for over a year and it has significantly grown as an application and in data during the year. It’s been nonstop new features. I’ve rarely gone back and refactored code. Last week I noticed some of the data heavy pages were loading slowly. At the worst case one view could…