L E F L I
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 6 months ago

Pointers explained:

lemmy.world

message-square
12
link
fedilink
6

Pointers explained:

lemmy.world

ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 6 months ago
message-square
12
link
fedilink
alert-triangle
You must log in or register to comment.
  • Lian Dynn@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    Worse version of this

    • mbp@slrpnk.net
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      Why would I want to be shown the concept of pointers by an eight year old?

      • WrathEnchanter@europe.pub
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        6 months ago

        I’ll have you know, she’s canonically 300 years old

        • wieson@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          6 months ago

          Nah, she’s 5 or younger. She lied about being 6 (school age) to get adopted. It’s a very wholesome story (if you disregard the war, political intrigue and terrorism).

    • hoohoohoot@fedinsfw.app
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      5 months ago

      AAAWWW THIS IS SOOO CUUUTE

  • NullPointerException@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    Wait. It’s been a long time but shouldn’t be int*** -> int** -> int* -> int ?

  • lime!@feddit.nu
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    they used to call him the deref king back in college

  • MrNesser@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    Didn’t expect to see the Drift King here

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    So, googling it, the general premise is you should use smart pointers instead to avoid crashes. Got it.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      6 months ago

      They all have footguns that cause different crashes.

      If you want to do explicit memory access without inevitable safety problems, you need Rust. That’s the whole hype with Rust.

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        But… per-process-isolation is a hardware feature, no?

        • psud@aussie.zone
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 months ago

          So you really should implement it in your compiler so you don’t contravene it

Programmer Humor@programming.dev

programmer_humor@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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 1.17K users / day
  • 5.94K users / week
  • 7.49K users / month
  • 15.3K users / 6 months
  • 1 local subscriber
  • 34.3K subscribers
  • 2.54K Posts
  • 92K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org