I’ve been learning Kotlin recently & I find it to be a beautiful Language. Does anyone at work use Kotlin that isn’t an Android developer?

3 points

Lots of people do, just look at all the server libs for kotlin.

permalink
report
reply
10 points
*

Yes, I write SpringBoot microservices and IntelliJ plugins using Kotlin. Any new code is Kotlin, but there is still a ton of Java, which I don’t consider “legacy”, since it works, and if I can sanely add Kotlin when necessary, I don’t see the need for “full rewrite”.

You may get more traction by asking the Kotlin community

permalink
report
reply
6 points
*

Legacy code is just code inherited from developers that are no longer around. It’s quality has nothing to do with its age.

permalink
report
parent
reply
2 points

the developers don’t have to of left the team to make it legacy code

permalink
report
parent
reply
5 points

Last job, we started writing mixing bits of Kotlin in an otherwise mostly-Java in a monolithic Spring-based service. Good experience.

permalink
report
reply
6 points

I retired now, but I still write code for my blog. I totally prefer to write with Kotlin. Java just feels clunky to me now.

permalink
report
reply
2 points

maybe? I know I dont have the balls to suggest our enterprise sw migrate to kotlin. I love the language but I think getting management to make such a drastic change can be hazardous if it turns out to cause unexpected bugs that lose millions of dollars :( such is the life of a java programmer

permalink
report
reply
4 points

assuming you propose the idea to migrate to kotlin, it would go something like this:

  • talk to your other developers and see if they feel the same way. get other developer buy-in
  • propose the idea to management with reasons why it would be beneficial
  • management now either buys in and approves kotlin usage, or says it’s not worth it

if management says yes, you now have like 20 people who have vetted and agreed with the idea. once you start writing Kotlin it’s not like EVERYTHING is all of the sudden Kotlin. it’s an iterative process, and hopefully you have test coverage. you can even re-use your existing java tests since the languages are interoperable. Assuming you follow a normal development process, the odds of a catastrophic bug coming out of nowhere to cause millions of dollars of losses wouldn’t even cross my mind.

that being said, assuming the current code works decently well, management will have no motivation or reason to approve a total rewrite in a new language. it’s more likely that they will only approve starting to trickle in kotlin for new projects or features, which even further reduces the likelihood of a catastrophic bug happening.

permalink
report
parent
reply
-2 points

sadly, it would fail at the first step.

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

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



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments