news.volyx.in

Show HN: Kotlin Money (blog.eriksen.com.br)

427 points by eriksencosta · 668 days ago · 228 comments on HN

Article summary

The article introduces a Kotlin library called Money that simplifies monetary calculations and allocations. It provides a concise API for mathematical operations with monetary amounts, calculations with percentages, and allocation. The library supports 306 circulating currencies and 2283 cryptocurrencies. It aims to make manipulating monetary amounts in Kotlin projects easier and more accurate.

Main themes

  • Kotlin programming language
  • Monetary calculations
  • Currency support
  • Functional programming
  • Object-oriented programming
  • Library development

What commenters say

  • Kotlin is a multi-paradigm language that supports both object-oriented and functional programming styles.
  • The language's design allows for a balanced approach to programming, making it suitable for a wide range of use cases.
  • Some commentators argue that Kotlin's functional programming capabilities are not as strong as those of other languages, such as Scala.
  • The use of checked exceptions in programming is a topic of debate, with some arguing that they are useful for handling errors, while others see them as cumbersome.
  • The importance of proper handling of monetary calculations and currency conversions is highlighted, particularly in financial and banking applications.
  • The development of libraries like Money can help simplify complex tasks and improve the accuracy of monetary calculations.
  • Some commentators note that the JVM does not necessarily imply object-orientation, and that languages like Clojure can be used for functional programming on the JVM.