Loading...

Follow Ben Nadel's Blog on Feedspot

Continue with Google
Continue with Facebook
or

Valid
Ben Nadel discovers that the location() function in Lucee 5.3.1.102 will URL-code the hash / fragment of the requested URL if - and only if - the requested URL also contains a query-string. This was breaking his Angular.js application, which consumes the URL hash in the application Router....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel creates a fuzzy search algorithm in Angular 7.2.15 that is inspired by SublimeText's "Goto Anywhere" command. This fuzzy search matches partial queries against sequential characters in a given value, creating a very flexible and powerful search experience....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel considers ways in which to embed widgets in his Markdown content when using Flexmark 0.42.6 and ColdFusion. Ideally, he would like to define the "what" in his markdown; and then apply the "how" (implementation) in his Markdown-to-HTML post-processing workflow....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Ben Nadel sits down and reads the CommonMark Spec (Version 0.29) which is the Markdown specification that the Flexmark Java Library is following. This reveals some really fascinating things about Markdown and about what can be done with Markdown content....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel demonstrates how to use the "replaceUrl" option of the Angular 7.2.14 Router to persist search criteria to the URL without bloating the Browser's History stack unnecessarily. This can lead to a more intuitive Back Button experience for the user....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel experiments with the creation of Proxy classes for Analytics libraries that defer the loading, parsing, and initialization of 3rd-party analytics libraries in an Angular 7.2.13 app. The hope being that the application loads faster and decreases the TTFI (Time to First Interaction) for the user....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel sees a lot of people struggling to target the right users with the LaunchDarkly feature flag client. So, he shares the mental model that has been working well for him: Pure Functions. When the LaunchDarkly rules engine is viewed as a Pure Function, targeting becomes much easier to reason about....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel conducts a thought experiment in which he takes an Ng-Template reference and partially applies template variables, producing a new TemplateRef instance that can be safely consumed by the NgFor directive in Angular 7.2.13....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel responds to a reader's question about nested templates in Angular 7.2.13 by running a "sanity check" to see if lexical-binding works for nested Ng-Template declarations. Answer: It does; nested TemplateRef's have access to the variables declared in the parent scope....
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Ben Nadel demonstrates how to sub-class the native NgForOf directive in Angular 7.2.13, creating a "pure" version of the directive - NgPureForOf - that only applies change-detection when its input bindings have been changed. This adds a micro-optimization on top of the already efficient NgForOf directive....
Read Full Article

Read for later

Articles marked as Favorite are saved for later viewing.
close
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview