Subscribe: Ben Nadel ColdFusion, jQuery, And Web Development Feed @
Added By: Feedage Forager Feedage Grade A rated
Language: English
ben nadel  ben  demonstrates  express  javascript  json  module  nadel demonstrates  nadel  node ben  node  regular expression  sequelize 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Ben Nadel ColdFusion, jQuery, And Web Development Feed @

Ben Nadel's Web Development and User Experience Feed @

Recent blog posts covering JavaScript, User Experience (UX), ColdFusion, Node, and other topics

Last Build Date: Sat, 22 Jul 2017 09:39:57 EST

Copyright: Copyright 2017 Ben Nadel

A Graph Should Answer One Question And Should Answer It Well

Tue, 18 Jul 2017 07:44:00 EST

Ben Nadel considers the concept of cohesion in computer science and applies it to graphing. When rendering the metrics of an application, a graph should answer one question; and, should answer it well....

Parsing And Pretty-Printing JSON Values On-The-Fly In Loggly Using Bookmarklets

Sat, 15 Jul 2017 08:42:00 EST

Ben Nadel demonstrates how to write Bookmarklets that are hosted on GitHub Pages. And, shares several of the Bookmarklets that he's created for Loggly that add better formatting and on-the-fly JSON (JavaScript Object Notation) parsing....

You Can Use Arrays In Field Equality Checks Within A Sequelize WHERE Clause In Node

Fri, 14 Jul 2017 07:03:00 EST

Ben Nadel demonstrates that you can use Arrays in direct field comparisons when writing Sequelize WHERE clauses. This is a construct that you might otherwise delegate to the "$in" operator. However, we can skip the nested object and create easier-to-read conditions....

Calling Timeout.unref() With setTimeout() Does Not Appear To Be A Best Practice In Node

Wed, 12 Jul 2017 08:25:00 EST

Ben Nadel considers the use of Timeout.unref() calls, used in conjunction with setTimeout() in Node; and, can think of no reason for them to be considered a "best practice". More an "exception" than a rule....

Static Methods Are Inherited When Using ES6 Extends Syntax In JavaScript And Node

Tue, 11 Jul 2017 07:55:00 EST

Ben Nadel demonstrates that static methods are inherited when using the ES6 class extends syntax in JavaScript and Node. This makes the class functionality more than just syntactic sugar over the existing prototypal inheritance mechanism....

Building A Circuit Breaker For Node

Mon, 10 Jul 2017 07:37:00 EST

Ben Nadel publishes a Circuit Breaker implementation for Node / JavaScript. This fail-fast library can be used as-is; or, you can provide your own custom state logic to power the Circuit Breaker control-flow....

Using Static Class Methods To Generate Concrete Instances Of Abstract Classes In JavaScript And Node

Sun, 9 Jul 2017 08:18:00 EST

Ben Nadel looks at the use of static factory methods on abstract classes in JavaScript as a means to generate concrete instances instead of explicitly defining and instantiating concrete sub-classes....

ES6 Function Argument Defaults Don't Have To Be Trailing Arguments

Fri, 7 Jul 2017 07:49:00 EST

Ben Nadel demonstrates that ES6 Function argument defaults don't have to be trailing arguments - they can be leading arguments as well. While this may seem janky, it has valid use-cases making it important to understand the mechanics of argument defaults....

The ES6 Promise Constructor And Its Executor Function Are Invoked Synchronously

Wed, 5 Jul 2017 06:13:00 EST

Ben Nadel demonstrates that the ES6 Promise constructor - and the executor function that we pass to it - are invoked synchronously, inline with the control flow of our code. This allows us to make strong assertions about the order of operations....

Using Chalk 2.0's Tagged Template Literals For Nested And Complex Styling

Tue, 4 Jul 2017 18:15:00 EST

Ben Nadel explores the use of ES6 tagged template literals in the recently-released Chalk 2.0 node module. This feature allows complex, nested styles to be consumed within the bounds of a template literal and its value substitutions....

Using BEM Class Names To Guide Module Structure In ReactJS 15.6.1

Sat, 24 Jun 2017 08:22:00 EST

Ben Nadel contemplates using a BEM (Block Element Modifier) mindset as a means to bring logic and constraint to the module structure in a React application. By keeping BEM class names together, you keep cohesion around classes that change for the same reason....

Hello World With Webpack And TypeScript 2.3.4 In React 15.6.1

Fri, 23 Jun 2017 08:28:00 EST

Ben Nadel experiments with React using TypeScript and Webpack. This adds type safety to React without the "propTypes" object....

Using % (Percent) For In-Line Styles In Angular 4.2.3

Tue, 20 Jun 2017 07:36:00 EST

Ben Nadel demonstrates that the "%" (percent) symbol can be used to define in-line CSS styles using the template syntax in Angular 4.2.3....

Reflecting On Data Persistence, Transactions, And Leaky Abstractions

Fri, 16 Jun 2017 08:36:00 EST

Ben Nadel reflects on data persistence, transactions, and leaky abstractions. And, in particular, what how the concept of "changes together" is evolving due to the changing constraints of different persistence implementations....

Using Module Augmentation To Safely Inject Runtime Methods Using TypeScript And Node

Mon, 12 Jun 2017 07:21:00 EST

Ben Nadel explores the concept of "module augmentation" in Node and TypeScript and looks at using side-effect driven import statements as a way to safely and predictably alter the runtime behavior of native (Array) and custom classes....

Implementing Q's .allSettled() Promise Method In Bluebird

Fri, 9 Jun 2017 08:31:00 EST

Ben Nadel attempts to implement Q's .allSettled() Promise method in an application-scoped copy of the Bluebird Promise library....

It's Safe To Use Empty Arrays With The $in Operator In Sequelize

Thu, 8 Jun 2017 07:25:00 EST

Ben Nadel demonstrates that you can safely pass empty arrays to the $in operator in Sequelize. Empty arrays are translated into "(NULL)" collections which side-step SQL exceptions and ensure that no records are accidentally returned....

Using Type Argument Inference When Accepting Generic Callbacks In TypeScript And Node

Wed, 7 Jun 2017 08:06:00 EST

Ben Nadel looks at using Type Argument Inference in TypeScript when accepting generic callbacks. Type Argument Inference is a feature that allows the Type parameter of a method to be automatically calculated from the Type of its arguments....

I Wish JavaScript Had A Way To Map And Filter Arrays In A Single Operation

Tue, 6 Jun 2017 07:08:00 EST

Ben Nadel reflects on the intelligence that jQuery used in its mapping and iteration functions. And, wishes that JavaScript had a similar way to map and filter an Array in a single operation for common use-cases....

Using Element.classList To Manipulate CSS Classes On The DOM

Mon, 5 Jun 2017 07:14:00 EST

Ben Nadel looks at the DOM Element property .classList and how it can be used to add and remove CSS class names without having to rely on manual string manipulation....

The Learn Node Master Package Video Course By Wes Bos Is Awesome

Sun, 4 Jun 2017 09:55:00 EST

Ben Nadel reviews the Learn Node (Master Package) video course from Wes Bos. This course is a robust, polished, and effective learning solution that will get you up-to-speed quickly building Node applications with Express and MongoDB....

Attempted Regular Expression Pattern Search Game For RegEx Day 2017 Using Angular 4.1.3

Sat, 3 Jun 2017 11:50:00 EST

Ben Nadel shares his Regular Expression pattern search game that he was trying to build for RegEx Day 2017. The game proved too challenging to complete; but, it was a fun exploration of Angular 4.1.3....

The 10th Annual Regular Expression Day - June 1st 2017

Thu, 1 Jun 2017 07:04:00 EST

Ben Nadel gears up for the 10th annual Regular Expression Day - a celebration of powerful string manipulation! This year, he's giving away 5 copies of The Regular Expression Cookbook by Steven Levithan and Jan Goyvaerts; an outstanding book that covers everything you need to know about pattern matching!...

The Chalk Module Can Be Used With The Console's String Interpolation In Node

Wed, 31 May 2017 08:07:00 EST

Ben Nadel demonstrates that the Chalk module can be used with the console's string interpolation features in Node. This allows you to create easier-to-read nested styling (with some small caveats)....

Some Reflections On How Express Prepares JSON Responses

Tue, 30 May 2017 07:47:00 EST

Ben Nadel looks at how Express prepares JSON (JavaScript Object Notation) responses; and why the serialization hooks provided by the Express internals should probably be avoided in favor of more explicit, more obvious code....

Sequelize-Comment: A Sequelize Plug-in That Injects Comments Before Your SQL Statements

Mon, 29 May 2017 06:47:00 EST

Ben Nadel publishes sequelize-comment, a Sequelize plug-in that allows arbitrary comments to be prepended to SQL fragments generated by the Sequelize module. This "best practice" allows for easier debugging of slow_log and general_log queries....

Using JSON.stringify() Replacer Function To Recursively Serialize And Sanitize Log Data

Sat, 27 May 2017 11:47:00 EST

Ben Nadel demonstrates how the JSON.stringify() "replacer" function can be used to recursively serialize and sanitize log data. This is incredibly helpful for nested errors and log items that may contain Personally Identifiable Information (PII)....

JSON.stringify() Will Recursively Call toJSON() If It Exists During Serialization In JavaScript

Fri, 26 May 2017 07:23:00 EST

Ben Nadel looks at JSON.stringify() in JavaScript / Node and demonstrates that the JSON.stringify() method will recursively invoke the custom .toJSON() method as it traverses the object graph....

Validating / Consuming Mount-Path Parameters With Middleware In Express And Node

Thu, 25 May 2017 08:09:00 EST

Ben Nadel looks at mount-path parameters in Express and how they can be consumed and validated using various middleware approaches (some cleaner than others)....

You Can Continue To Process An Express Request After The Client Response Has Been Sent

Tue, 23 May 2017 08:18:00 EST

Ben Nadel demonstrates that the Express Request and the Client response are not the same thing and should not be conflated - the client response is nothing more than a facet of the Request-Response life-cycle....