Dillon Buchanan's Blog

Web Name: Dillon Buchanan's Blog

WebSite: http://dillonbuchanan.com

ID:200972

Keywords:

Dillon,Buchanan,Blog,

Description:

keywords:
description:Hello there! I'm Dillon Buchanan, a software developer and all-around programming enthusist working in Boston. I love creating great software!.
Dillon Buchanan Software Engineer

Hello there! I'm Dillon Buchanan, a software developer and all-around programming enthusist working in Boston. I love creating great software!


Gracefully shutting down a Nodejs HTTP server

Looking to gracefully shutdown your Nodejs HTTP server? Well, its actually a little more difficult than you think. Without handling process signals, like ctrl-c, your application terminates immediately. Which means, there may be requests still processing that you terminated before completion. In a live environment, this is a horrible user experience. Unfortunately, even if you did catch the process signals, Node doesnt actually have a built in mechanism for gracefully shutting down a running HTTP server.


The Singleton Anti-Pattern

The singleton is an anti-pattern. Out of all of the object-oriented patterns, the singleton pattern is one of the most widely bastardized and misused. It secretly undermines good choices in application design and introduces global state into an application which tends to bring about unnecessary restrictions. Nine out of ten times the singleton pattern is either implemented wrong, used incorrectly, or just completely unnecessary. The remaining one out of ten it might be appropriate - but I doubt it, and you should to.


Benefiting With The Decorator Pattern

Its really tough to develop well written code. Luckily, object-oriented developers have been gifted a series of programming patterns to make their job easier. These patterns are a set of proven techniques that promote proper code reuse as well as application design. And, while there are many patterns to draw from, few are more beneficial than the decorator pattern.


Never Use Basic Authentication over HTTP

Basic authentication is an extremely popular means of authentication due to its simplicity and ease at which it can be implemented. Unfortunately, over HTTP, its also the absolute worst way you could have your clients authenticate! Basic authentication utilizes the Authentication HTTP header to transmit the clients username and password credentials. The client simply takes the given username and password, base64 encodes them both, and inserts them into the HTTP header when making a request to a server.


Common Problems With Static Lists

Immutability is often a subject that is not commonly understood in newer developers (or even older ones for that matter). The pros and cons of creating immutable objects are often not considered when coding which, for the most part, doesnt cause any initial concern. However, when a program reaches a certain complexity developers inevitably make mistakes. This is compounded when there is more than one member working on a programming project. Creating immutable structures is a powerful paradigm in defensive programming, especially when it comes to the common practice of using static lists!


Page 1 of 7 Older Posts

TAGS:Dillon Buchanan Blog 

<<< Thank you for your visit >>>

Hello there! I'm Dillon Buchanan, a software developer and all-around programming enthusist working in Boston. I love creating great software!.

Websites to related :
Brewer's Friend | Homebrew Beer

  keywords:home brew blog, beer recipes, how to brew beer, brew at home, homebrew, homebrewing, recipe, hops, make beer at home, growing hops, kegging b

RheoSense - Small Sample Viscosi

  keywords:
description:RheoSense viscometers have become the major go to solution for easy to use and small sample viscosity measurements.
Products

Military Vehicles Tracked & Whee

  keywords:
description:Military manuals technical & operators manual for Military Vehicles Tracked and Wheeled, Military Trucks and Vehicles 8 Us Army

RC Helicopters - Everything you

  keywords:
description:Thinking of taking up the exciting & fun hobby of RC helicopters? From toy to turbine, RC Helicopter Fun is your 1st stop for ti

Building Supplies Building Mate

  keywords:Ray,Grahams,Ltd,DIY,Store,Shop
description:Ray Grahams Ltd DIY Store - The complete building and DIY center with personal service.

1953 - 2013 Corvette Parts and A

  keywords:
description:Volunteer Vette Products sells Corvette parts and Corvette accessories for your Chevrolet Corvette from 1953 through 2013, with

Home | IFASC

  keywords:
description:Our Mission is to assist Indiana surgical centers to excel as a distinct healthcare model for the delivery of safe and affordabl

Salone italiano del tessile - Mi

  keywords:
description:Milano Unica è la fiera di riferimento dei tessuti e degli accessori di alta gamma per l’abbigliamento Donna e Uomo.

ROS Documentation

  keywords:
description:
ROS Documentation This site contains documentation for ROS 1 and ROS 2 distributions. Select your distribution belo

1st Tactical Studies Group (Airb

  keywords:
description:

ads

Hot Websites