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

C++

lemmy.zip

message-square
11
link
fedilink
610

C++

lemmy.zip

Maven (famous) ( Maven@lemmy.zip )  to Programmer Humor@programming.dev · 2 years ago
message-square
11
link
fedilink
alert-triangle
You must log in or # to comment.
  • nothacking ( nothacking@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    34
    ·
    2 years 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
      ·
      2 years 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
      ·
      2 years ago

      Then C++ what?

    • porgamrer ( porgamrer@programming.dev ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 years 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
    ·
    2 years ago

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

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

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

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

      More like Java#

      • AVincentInSpace ( AVincentInSpace@pawb.social ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years 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
          ·
          edit-2
          5 months ago

          deleted by creator

          • AVincentInSpace ( AVincentInSpace@pawb.social ) 
            link
            fedilink
            English
            arrow-up
            4
            ·
            2 years 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
              ·
              edit-2
              5 months ago

              deleted by creator

    • henfredemars ( henfredemars@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years 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
        ·
        2 years 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
    ·
    2 years 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
    • 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.

  • 989 users / day
  • 3.15K users / week
  • 4.66K users / month
  • 7.96K users / 6 months
  • 462 local subscribers
  • 33.8K subscribers
  • 1.59K Posts
  • 26.1K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code