Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 Maven (famous)   ( @Maven@lemmy.zip )  to Programmer Humor@programming.dev · 1 year ago

C++

lemmy.zip

message-square
13
link
fedilink
610

C++

lemmy.zip

 Maven (famous)   ( @Maven@lemmy.zip )  to Programmer Humor@programming.dev · 1 year ago
message-square
13
link
fedilink
alert-triangle
You must log in or # to comment.
  •  nothacking   ( @nothacking@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    34
    ·
    1 year ago

    Hot take, C is better then C++. It really just has one unique footgun, pointers, which can be avoided most of the time. C++ has lots of (smart)pointer related footguns, each with their own rules.

    •  MajorHavoc   ( @MajorHavoc@programming.dev ) 
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      Yeah. My journey of love, loathing, hatred, adoration, and mild appreciation for C++, ended with the realization that 90% of the time I can get the job done in C with little hassle, and a consistent, predictable, trustworthy set of unholy abominations.

    •  Venator   ( @Venator@lemmy.nz ) 
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Then C++ what?

    •  porgamrer   ( @porgamrer@programming.dev ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The only conceivable way to avoid pointers in C is by using indices into arrays, which have the exact same set of problems that pointers do because array indexing and pointer dereferencing are the same thing. If anything array indexing is slightly worse, because the index doesn’t carry a type.

      Also you’re ignoring a whole host of other problems in C. Most notably unions.

      People say that “you only need to learn pointers”, but that’s not a real thing you can do. It’s like saying it’s easy to write correct brainfuck because the language spec is so small. The exact opposite is true.

  •  OpenStars   ( @OpenStars@discuss.online ) 
    link
    fedilink
    English
    arrow-up
    17
    ·
    1 year ago

    Compared to Assembly language, C++ is fantastic! :-P

  •  penquin   ( @penquin@lemm.ee ) 
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    I like C# better. Ok, I’ll see myself out.

    •  T (they/she)   ( @Templa@beehaw.org ) 
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      More like Java#

      •  AVincentInSpace   ( @AVincentInSpace@pawb.social ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        In the early days of C#, before it was called C#, Microsoft gave it the most Microsoft name ever conceived for anything ever: Visual J++

        •  skuzz   ( @skuzz@discuss.tchncs.de ) 
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          I did not realize they were one and the same!

          •  AVincentInSpace   ( @AVincentInSpace@pawb.social ) 
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 year ago

            update: i just looked it up and they are not. Visual J++ is a predecessor to C#. Nevertheless, the name “Visual J++” in all its Microsoftian goodness(?) is as good a descriptor as any for what C# turned into

            •  skuzz   ( @skuzz@discuss.tchncs.de ) 
              link
              fedilink
              arrow-up
              3
              ·
              1 year ago

              So more an iterative family member, which I suppose was more what I’d expect with how Microsoft hisorically handled programming languages. Still interesting! Thanks for the fact-check!

    •  henfredemars   ( @henfredemars@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Me too. If I can use it, I prefer C# — that is — if I’m not doing systems programming, I don’t have to worry about legacy code, and mainly I’m supporting Windows then it’s really quite cozy.

      •  MajorHavoc   ( @MajorHavoc@programming.dev ) 
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        That’s a solid description. I’m stealing that. “Cozy” is an excellent word for that sets C# apart from other languages.

  •  void_main   ( @void_main@programming.dev ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Removed by mod

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
Visibility: Public
globe

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

  • 74 users / day
  • 2.26K users / week
  • 4.46K users / month
  • 8.5K users / 6 months
  • 447 local subscribers
  • 27.7K subscribers
  • 1.14K Posts
  • 18.4K Comments
  • Modlog
  • mods:
  •  Feyter   ( @Feyter@programming.dev ) 
  •  adr1an   ( @anzo@programming.dev ) 
  •  BurningTurtle   ( @BurningTurtle@programming.dev ) 
  •  Pierre-Yves Lapersonne   ( @pylapp@programming.dev ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code