Kotlin: -0.0 is considered less than 0.0

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

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

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.


Abyr Valg's blog



  1. GitHub
  2. Twitter
  3. Facebook