this post was submitted on 23 Apr 2025
26 points (90.6% liked)

Programming

19713 readers
153 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] froufox@lemmy.blahaj.zone 5 points 21 hours ago (7 children)

You don't actually need to know any of the functional programming languages to work in the AI sphere. Moreover, codebase in pure funcional languages is hard to understand and maintain, that's why they are rarely used in production. Of course you can learn any language for funsies, but I'd recommend Kotlin as a modern hybrid OOP language with a solid functional toolkit

[–] mholiv@lemmy.world 1 points 18 hours ago* (last edited 18 hours ago) (1 children)

This is incorrect. Functional code bases exist in many production environments. Twitter (pre musk) migrated their bloated code base TO Scala because functional code bases are easier to maintain and understand.

If you think about it, it makes sense, side effect free code will be easier to maintain just due to the lack of side effects.

[–] froufox@lemmy.blahaj.zone 1 points 14 hours ago

As I said in another response here, it's incorrect to compare Java 21 or Kotlin and Java 8. You can rewrite your bloated slow Java 8 code in functional reactive approach in Java 21 as well.

You can make a mistake writing any sort of code. What actually matters if it's readable enough to catch the bug. I would argue that functional languages is the best option here, especially when we're talking about about huge enterprise applications on complicated frameworks like Akka or ZIO.

load more comments (5 replies)