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

Improved snapshot testing in Jest with alpha-serializer

Posted on .

Jest test runner has great feature for snapshot testing. A concept that greatly improves the process of writing tests. I'd like to briefly explain how it works and what you can do to improve even more. How snapshot testing work Let's start with an example fu…

Featured

Better serialization in Javascript with alpha-serializer

Posted on .

I bet you already heard about JSON and you know that in order to convert regular an object to JSON you just need to call JSON.stringify and JSON.parse in order to get the object back. Short but not so beautiful story. The worst part about JSON is that it's not…

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…