Lemmy 1095
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lemmydividebyzero@reddthat.com to Technology@lemmy.worldEnglish · 11 hours ago

Name before type: why 'age int' is better than 'int age'

benhoyt.com

external-link
message-square
36
fedilink
21
external-link

Name before type: why 'age int' is better than 'int age'

benhoyt.com

lemmydividebyzero@reddthat.com to Technology@lemmy.worldEnglish · 11 hours ago
message-square
36
fedilink
A variable's name is more important than its type, so the name should be more prominent and come first in declarations.
  • gnutrino@programming.dev
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    2
    ·
    9 hours ago

    Controversial take: it doesn’t matter in the slightest.

    • MangoCats@feddit.it
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      Typeless variables are a delusion, they’re just guessing what type they should be for you.

    • StarDreamer@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      8 hours ago

      Breaking News: local dev argues peanut butter on jam is the same as jam on peanut butter.

Technology@lemmy.world

technology@lemmy.world

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: !technology@lemmy.world

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


  • @L4s@lemmy.world
  • @autotldr@lemmings.world
  • @PipedLinkBot@feddit.rocks
  • @wikibot@lemmy.world
Visibility: Public
globe

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

  • 3.36K users / day
  • 8.24K users / week
  • 15K users / month
  • 17K users / 6 months
  • 3 local subscribers
  • 86.6K subscribers
  • 1.94K Posts
  • 37.7K Comments
  • Modlog
  • mods:
  • L3s@lemmy.world
  • enu@lemmy.world
    cake
  • Technopagan@lemmy.world
  • L4sBot@lemmy.world
  • L3s@hackingne.ws
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org