GPT4 is far too diplomatic
-
I for one, welcome our AI overlords. :laugh:
Check out my IoT graphics library here: https://honeythecodewitch/gfx
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'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
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
-
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 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
-
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
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.
-
I for one, welcome our AI overlords. :laugh:
Check out my IoT graphics library here: https://honeythecodewitch/gfx
[I, for one, welcome our new insect overlords](https://www.youtube.com/watch?v=MKx3JlTnHbc)
cheers 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
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
-
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
-
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
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.
-
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.
-
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.
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.
-
Actually, I wanted to write "should be immediately fired and murdered", but decided to be politically correct.
-
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.
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.