Permisuan
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to Kotlin@programming.devEnglish · 4 months ago

Canonicalise, Don't Remember — Smart Constructors in Kotlin

cekrem.github.io

external-link
message-square
0
fedilink
1
external-link

Canonicalise, Don't Remember — Smart Constructors in Kotlin

cekrem.github.io

codeinabox@programming.dev to Kotlin@programming.devEnglish · 4 months ago
message-square
0
fedilink
If you have to remember to call mergeByX() before you pass a value around, you're sowing foot guns. Make the constructor do it once, and let the type carry the promise.
alert-triangle
You must log in or register to comment.

Kotlin@programming.dev

kotlin@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !kotlin@programming.dev

Kotlin is a statically typed programming language for the JVM, Android, JavaScript, and native.

Subreddit rules:

  • Be civil
  • No spam
  • Stay on-topic
  • No fluff

Resources:

  • Official site
  • Official blog
  • StackOverflow
  • Slack
  • Books
  • Try Kotlin Online
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 11 users / day
  • 0 users / week
  • 0 users / month
  • 0 users / 6 months
  • 1 local subscriber
  • 805 subscribers
  • 37 Posts
  • 0 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • will@programming.dev
  • austin@programming.dev
  • UI: 0.19.5
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org