TypeScript Async function from callback in JavaScript Wrapping function into a promise allows converting callback to await syntax.
TypeScript Flag arguments to be avoided? A flag argument is a function argument of a boolean type that alters the function behaviour. Often but not always, a function caller decides what behaviour she wants by specifying the value for the flag. And if she does, it makes sense to review the API and determine if we need the flag argument.
DevOps Line folding in HTTP headers results in Nginx 502 Bad Gateway error RFC7230 in section 3.2.4 deprecates line folding in HTTP header fields (except for one particular case). So, in a nutshell, the safest solution would be to avoid line breaks in HTTP headers.
TypeScript TypeScript 4.4 breaking changes TypeScript in version 4.4 switches from any to unknown type for catch variables in the strict mode resulting in unexpected compilation errors.
TypeScript Test-driven Development programming with confidence Making success unavoidable is the primary goal of the test-driven development process. This is a bold statement. And I back it in my article with four principles to follow to succeed with TDD (or at least improve your chances).
DevOps Environment variables to configure TypeScript application Pragmatic approach to handle runtime settings for TypeScript NodeJS applications using environment variables.
DevOps Should we test AWS CDK code? Should we test our AWS CDK code? Of course, we should, we are the programmers, and we test all the code we write. But maybe we should take another thought on this.
Last array element The main intention of this post is to check the site. In case you struggle with the question discussed here, take a pragmatic approach. Make it simple.