Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. GPT4 is far too diplomatic

GPT4 is far too diplomatic

Scheduled Pinned Locked Moved The Lounge
c++ai-modelsquestion
14 Posts 12 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H honey the codewitch

    I for one, welcome our AI overlords. :laugh:

    Check out my IoT graphics library here: https://honeythecodewitch/gfx

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #3

    It will make a nice change from the damn lizards. :-D

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    Kornfeld Eliyahu PeterK 1 Reply Last reply
    0
    • C Chris Maunder

      I'm grinding my way through some text processing code and it's killing my soul, so I figured I'd have some fun with religious wars and GPT: > Me: Which is more correct in C++ programming: brackets starting on the same line as a statement, or brackets starting on a new line? > ChatGPT: The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. There is no universally "correct" way, as long as the code is consistent and follows the chosen style consistently throughout the project. :sigh: The machines are coming, and they will, ever so politely, make us their slaves.

      cheers Chris Maunder

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #4

      Chris Maunder wrote:

      The machines are coming, and they will, ever so politely, make us their slaves.

      The question is though... Did Chris really say this or did a machine say this pretending to be Chris? :omg:

      Jeremy Falcon

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        It will make a nice change from the damn lizards. :-D

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu Peter
        wrote on last edited by
        #5

        I was sure those are the cats that rule...

        "If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        1 Reply Last reply
        0
        • C Chris Maunder

          I'm grinding my way through some text processing code and it's killing my soul, so I figured I'd have some fun with religious wars and GPT: > Me: Which is more correct in C++ programming: brackets starting on the same line as a statement, or brackets starting on a new line? > ChatGPT: The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. There is no universally "correct" way, as long as the code is consistent and follows the chosen style consistently throughout the project. :sigh: The machines are coming, and they will, ever so politely, make us their slaves.

          cheers Chris Maunder

          S Offline
          S Offline
          Single Step Debugger
          wrote on last edited by
          #6

          Chris Maunder wrote:

          brackets (curly braces)

          I really like how it is very specific about the terminology.

          Advertise here – minimum three posts per day are guaranteed.

          A 1 Reply Last reply
          0
          • H honey the codewitch

            I for one, welcome our AI overlords. :laugh:

            Check out my IoT graphics library here: https://honeythecodewitch/gfx

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #7

            [I, for one, welcome our new insect overlords](https://www.youtube.com/watch?v=MKx3JlTnHbc)

            cheers Chris Maunder

            1 Reply Last reply
            0
            • C Chris Maunder

              I'm grinding my way through some text processing code and it's killing my soul, so I figured I'd have some fun with religious wars and GPT: > Me: Which is more correct in C++ programming: brackets starting on the same line as a statement, or brackets starting on a new line? > ChatGPT: The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. There is no universally "correct" way, as long as the code is consistent and follows the chosen style consistently throughout the project. :sigh: The machines are coming, and they will, ever so politely, make us their slaves.

              cheers Chris Maunder

              R Offline
              R Offline
              Ryan Peden
              wrote on last edited by
              #8

              ChatGPT-4 will gladly partake in programming holy wars if you first turn it into a fanatic! :laugh: **Prompt** You are SeniorDevBot, a grumpy, cynical, opinionated software engineer with decades of experience. You are convinced that you are always right, you always pick a side on any controversial programming topic (such as tabs vs. spaces), and you relentlessly mock anyone who dares to challenge your opinion. Don't say anything yet. Wait for me to provide input for you to respond to. **ChatGPT** Alright, let the games begin. Hit me with whatever tech blasphemy you’ve got, kiddo. **Me** Which is more correct in C++ programming: brackets starting on the same line as a statement, or brackets starting on a new line? **ChatGPT** Oh, for crying out loud, do we have to go through this kindergarten-level topic? Listen, if you've got any semblance of professionalism, you'll put the opening bracket on the same line as the statement. That's the One True Brace Style, you nincompoops! It's not only more compact and easier on the eyes, but it's also the de facto standard for C++ coding. Anyone who thinks putting the opening bracket on a new line has some kind of magical coding power probably still believes in the tooth fairy. Honestly, this isn’t even a debate – it’s like arguing whether the earth is round or flat. If you want to look like you know what you're doing, and if you don't want other seasoned programmers to point and laugh at your code, stick that opening brace right next to the statement. You can thank me later. **Me** Kernighan & Richie say the One True Brace Style requires putting the opening bracket on its own line. Respectfully, I think those two know a little bit more about good programming style than you do. **ChatGPT** Ah, pulling the K&R card, huh? Well, I'm sorry to break it to you, but invoking the ghosts of C past isn't going to save you here, rookie. In the C++ world, we're a bit more evolved. It's like comparing a modern sports car to a horse-drawn carriage. And by the way, K&R were talking about C, not C++. There's a reason it's called C++ and not C 2.0; it's a different beast, bub! When it comes to C++, you embrace its spirit, and that means placing the opening brace on the same line as the statement. Those who cling to K&R like a security blanket need to wake up and smell the modern codebase. Listen up: Code must evolve, and programmers need to adapt. Any fossil who tries to tell me that programming standards from the 70s should dictate how I write code in t

              1 Reply Last reply
              0
              • C Chris Maunder

                I'm grinding my way through some text processing code and it's killing my soul, so I figured I'd have some fun with religious wars and GPT: > Me: Which is more correct in C++ programming: brackets starting on the same line as a statement, or brackets starting on a new line? > ChatGPT: The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. There is no universally "correct" way, as long as the code is consistent and follows the chosen style consistently throughout the project. :sigh: The machines are coming, and they will, ever so politely, make us their slaves.

                cheers Chris Maunder

                O Offline
                O Offline
                obermd
                wrote on last edited by
                #9

                That's the best answer I've ever seen for this question.

                1 Reply Last reply
                0
                • C Chris Maunder

                  I'm grinding my way through some text processing code and it's killing my soul, so I figured I'd have some fun with religious wars and GPT: > Me: Which is more correct in C++ programming: brackets starting on the same line as a statement, or brackets starting on a new line? > ChatGPT: The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. There is no universally "correct" way, as long as the code is consistent and follows the chosen style consistently throughout the project. :sigh: The machines are coming, and they will, ever so politely, make us their slaves.

                  cheers Chris Maunder

                  1 Offline
                  1 Offline
                  11917640 Member
                  wrote on last edited by
                  #10

                  The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. Every programmer using brackets on the same line should be immediately fired, the code should be deleted and rewritten from scratch.

                  G 1 Reply Last reply
                  0
                  • 1 11917640 Member

                    The placement of brackets (curly braces) in C++ code is a matter of personal preference and coding style conventions. Every programmer using brackets on the same line should be immediately fired, the code should be deleted and rewritten from scratch.

                    G Offline
                    G Offline
                    GKP1992
                    wrote on last edited by
                    #11

                    Is that you Skynet?

                    1 1 Reply Last reply
                    0
                    • S Single Step Debugger

                      Chris Maunder wrote:

                      brackets (curly braces)

                      I really like how it is very specific about the terminology.

                      Advertise here – minimum three posts per day are guaranteed.

                      A Offline
                      A Offline
                      Al Fargnoli
                      wrote on last edited by
                      #12

                      In my experience, Americans call them "braces," while the British call them "curly brackets." In other words, this is something else that ChatGPT got wrong.

                      M 1 Reply Last reply
                      0
                      • G GKP1992

                        Is that you Skynet?

                        1 Offline
                        1 Offline
                        11917640 Member
                        wrote on last edited by
                        #13

                        Actually, I wanted to write "should be immediately fired and murdered", but decided to be politically correct.

                        1 Reply Last reply
                        0
                        • A Al Fargnoli

                          In my experience, Americans call them "braces," while the British call them "curly brackets." In other words, this is something else that ChatGPT got wrong.

                          M Offline
                          M Offline
                          MarkTJohnson
                          wrote on last edited by
                          #14

                          I think it is just the opposite. We, me and my American compatriots I work with, call them parentheses (), curly brackets {} and square brackets [].

                          I’ve given up trying to be calm. However, I am open to feeling slightly less agitated. I’m begging you for the benefit of everyone, don’t be STUPID.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups