Articles
Kotlin: -0.0 is considered less than 0.0
13.03.2023
The article discusses a discrepancy between what the Kotlin documentation says about comparing floating-point numbers, specifically that -0.0 is considered less than 0.0, and what is observed when comparing them in the Kotlin Playground. The results are different than what the documentation suggests.
Javascript is cursed
07.03.2023
I am of the opinion that criticisms of JavaScript's inconsistency are baseless, and I will provide two examples in C++ to support my argument.
How to select always unique next image from predefined array of images on each new post with post id incremented by 1
05.03.2023
The article suggests an algorithm to sequentially select the next image relative to the previous one for each new post, using a limited array of images.