(Ben Nadel) Yesterday, I came across an interesting Closure behavior in Lucee CFML. It seems that the way in which you define a Closure completely changes the variables that the Closure has access to (ie, the variables that it “closes over”).
Tag: Development
Mocking an Authenticated User in Blazor/ASP.NET Core
(Peter Vogel) I’ve done a couple of recent columns about securing Blazor Components and using claims-based policies declaratively in ASP.NET Core generally. While working with security, I’m always interested in doing end-to-end testing: Starting up the application and seeing what happens when I try
User claims in ASP.NET Core using OpenID Connect Authentication
(damienbod) This article shows two possible ways of getting user claims in an ASP.NET Core application which uses an IdentityServer4 service. Both ways have advantages and require setting different code configurations in both applications.
Implement a method returning an IEnumerable (Iterators in C#)
(Damir Arh) Developers do not need to implement the IEnumerable and IEnumerator interfaces to return an IEnumerable. They can avoid writing all of that code by taking advantage of support for iterators in C#. This tutorial shows how.
What Are Pointers-to-Members in C++?
(Manoj Debnath) A pointer is nothing but a variable that can hold an address of a memory location. The type of pointer is determined by the type of content it holds.
Cool WSL (Windows Subsystem for Linux) tips and tricks you (or I) didn’t know were possible
(Scott Hanselman) It’s no secret I dig WSL (Windows Subsystem for Linux) and now that WSL2 is available in Windows Insiders Slow it’s a great time to really explore the options that are available. What I’m finding is so interesting about WSL and how it relates to the Windows system around it is how
Collapsing Sticky Elements And Maintaining Scroll Offsets In Angular 9.0.0-rc.2
(Ben Nadel) One of the best user experience (UX) features that GitHub has added recently is the “stickiness” of the file-header in the Pull Request (PR) review mode. And, part of what makes this feature so enjoyable is the fact that as the user collapses the content of a given file, the Window maint
Extend Your .NET Namespaces for Static Methods and Simpler Code
(Peter Vogel) Let’s say you’ve gone to the trouble of creating a CustomerRepository object with a static method called GetCustomerById. Something like this, in other words:
Algebraic Structures: Things I wish someone had explained about functional programming
(James Sinclair) Algebraic Structures are something I wish I’d understood better, sooner. I had a hazy idea of what they were, but didn’t know the correct terminology. That was a massive barrier to finding out more.
ColdFusion Performance Experiment: Caching Per-Application Settings In Lucee CFML 5.3.3.62
(Ben Nadel) At InVision, the amount of work that we do in the Application.cfc ColdFusion framework component is a bit staggering. Not only are we setting up all of the Lucee CFML mappings, custom paths, data-sources, SMTP servers, and cache configurations, we’re also defining hundreds of FW/1 routes