Oh boy, kotlin and its world of statics and lambdas are glorious πŸ’—πŸ’—πŸ’—

I just finished this attendence counter app i have been working on for last 4 days.its quite simple so i tried to add as much constraints as possible:
-Good practices and minimal warningy
-Room database
-Viewmodel and livedata
-constraint layout
-everything in kotlin

Although i already have worked with room and livedata previously but i dont even have a hello world experience in kotlin . However it doesn't felt that bad tho for a newbie

Every code here is so small . Synthetic binding? Love at first sight.Although at some places its irritating , not having ?: Operator or its ugly 'when' logic, but overall its Awesome!!

  • 1
    Ew weakly typed languages
  • 0
    @AlgoRythm Um , can't get the pun/sarcasm. Is kotlin bad?πŸ˜…
  • 1
    @TitanLannister Afaik it's a weakly typed language (data types like int are optional or completely disregarded) and as personal preference, fucking hate that shit dude.
  • 0
    @AlgoRythm Don't think kotlin is weakly typed. Kotlin has it's own Int type.
  • 1
    @AlgoRythm the first four words on the Kotlin page are "Statically typed programming language".
  • 0
    @felbit weak != static. Weakly typed language could change type of your variable without telling it do to so. String "101" could be changed to int
  • 0
    If I remember correctly kotlin is a weakly typed language but only under certain conditions. That's how you don't have to type-cast an object in the true block of an "if instanceof"-statement. But I think the compiler still forces you to have checked beforehand that the type conversion is valid.
Add Comment