Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to [email protected] • 8 months ago

Self-documenting Code

lackofimagination.org

external-link
message-square
72
fedilink
100
external-link

Self-documenting Code

lackofimagination.org

@[email protected] to [email protected] • 8 months ago
message-square
72
fedilink
Think back to the last time you looked at an unfamiliar block of code. Did you immediately understand what it was doing? If not, you’re not alone – many software developers, including myself, find it challenging to grasp unfamiliar code quickly…
  • @[email protected]
    link
    fedilink
    6•8 months ago

    I mean, boolean short circuit is a super idiomatic pattern in Javascript

    • @[email protected]
      link
      fedilink
      2•8 months ago

      Because on JS the goal is to shave bytes to save money on data transfer rates

      • @[email protected]
        link
        fedilink
        2•8 months ago

        It’s not that deep. It looks nice, and is easy to understand.

    • @[email protected]
      link
      fedilink
      7•8 months ago

      I think that’s very team/project dependent. I’ve seen it done before indeed, but I’ve never been on a team where it was considered idiomatic.

      • @[email protected]
        link
        fedilink
        1•8 months ago

        That makes sense.

[email protected]

[email protected]
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: [email protected]

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 [email protected]



  • 14 users / day
  • 66 users / week
  • 508 users / month
  • 1.77K users / 6 months
  • 3 subscribers
  • 2.3K Posts
  • 34.4K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • @[email protected]
    cake
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org