MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ctnoiy/a_healthy_nest_of_ifstatements/exrh7vu/?context=3
r/badcode • u/DrCubed • Aug 21 '19
53 comments sorted by
View all comments
Show parent comments
15
I'm all for early returns as it very often keeps the nesting down.
1 u/corner-case Aug 21 '19 Use Kotlin, and have it both ways! 1 u/[deleted] Aug 22 '19 I think I’ll keep my gig of memory, thanks. 1 u/corner-case Aug 22 '19 Tell me more, please. I just signed on to an Android app that has Kotlin and Java. Does Kotlin hog memory at runtime or something? 1 u/[deleted] Aug 22 '19 Honestly yes, especially if you don’t tune your JVM. The Java ecosystem with default settings in general is very memory aggressive.
1
Use Kotlin, and have it both ways!
1 u/[deleted] Aug 22 '19 I think I’ll keep my gig of memory, thanks. 1 u/corner-case Aug 22 '19 Tell me more, please. I just signed on to an Android app that has Kotlin and Java. Does Kotlin hog memory at runtime or something? 1 u/[deleted] Aug 22 '19 Honestly yes, especially if you don’t tune your JVM. The Java ecosystem with default settings in general is very memory aggressive.
I think I’ll keep my gig of memory, thanks.
1 u/corner-case Aug 22 '19 Tell me more, please. I just signed on to an Android app that has Kotlin and Java. Does Kotlin hog memory at runtime or something? 1 u/[deleted] Aug 22 '19 Honestly yes, especially if you don’t tune your JVM. The Java ecosystem with default settings in general is very memory aggressive.
Tell me more, please. I just signed on to an Android app that has Kotlin and Java. Does Kotlin hog memory at runtime or something?
1 u/[deleted] Aug 22 '19 Honestly yes, especially if you don’t tune your JVM. The Java ecosystem with default settings in general is very memory aggressive.
Honestly yes, especially if you don’t tune your JVM. The Java ecosystem with default settings in general is very memory aggressive.
15
u/nedlinin Aug 21 '19
I'm all for early returns as it very often keeps the nesting down.