Victor Smirnov
  • Latest
  • DevOps
  • TypeScript
TypeScript

Async function from callback in JavaScript

Wrapping function into a promise allows converting callback to await syntax.
Read more (less than a minute)
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.
Read more (less than a minute)
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.
Read more (less than a minute)
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.
Read more (less than a minute)
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).
Read more (6 minutes)
DevOps

Environment variables to configure TypeScript application

Pragmatic approach to handle runtime settings for TypeScript NodeJS applications using environment variables.
Read more (3 minutes)
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.
Read more (2 minutes)

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.
Read more
© Victor Smirnov. All Rights Reserved.
  • About author
  • This work is licensed under a CC BY-SA 4.0
Published with Ghost  • Theme blog-theme