Make programming easier

Make programming easier

Thoughts, tips about programming and related subjects to make your job easier and more pleasant so you won't burnout quickly.


AuthorŁukasz Kużyński
Featured

7 reasons why you should use async/await today

Posted on .

For several years node.js programmers have been using callbacks, promises and generators for managing asynchronous functions and honestly that was several years of pain. Every of above approaches had it's own pain points like handling exceptions, chaining, bre…

Featured

AMQP retry message consumption with delay - when ACK and REJECT is not enough

Posted on .

This blog post describes technique named "delayed-retry" implemented in alpha-amqp-consumer and inspired by this blog post. When REJECT might not be enough Rejected messages remains in the head of queue. That means once a consumer rejects a message that messag…

Featured

Multiple testResultsProcessors with JEST

Posted on .

Currently "testResultsProcessor" option for JEST accepts only single module to process test results. Unfortunately this approach quickly becomes insufficient if you need code coverage remapping and junit reports for CircleCI. Fortunately documentation for JEST…

Featured

Is Singleton pattern really that bad?

Posted on .

It's quite common to believe that Singleton is a total antipattern and should be avoided at all cost. Well... that's not always true. The key here is to understand why Singleton is perceived as a bad thing. Singleton? What is it? Singleton is a creational desi…

Featured

Why you should consider using RPC over REST for internal API

Posted on .

REST is a very popular architecture style for communication. HTTP - as the most commonly used protocol for REST - gives a lot of features for free: cache, basic authentication, metadata channel (via headers), security (SSL/TLS), CORS etc. It fits almost perfec…