|
Alternates (via ChatGPT) ...
1. The bartender exclaims, "This place is getting exponentially crowded!"
2. The bartender says, "I hope you're here for some real ale-gebra!"
3. The bartender asks, "Do you need a non-Euclidean space to fit all of you in?"
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
4. The bartender pours 2 pints and says "You guys really should know your limits"
|
|
|
|
|
|
Best answer award!
|
|
|
|
|
That explains why mathematicians are sober.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
honey the codewitch wrote: The bartender says "you're all idiots", and she pours them two beers from a Klein bottle[^]. FTFY.
Software Zen: delete this;
|
|
|
|
|
But it will take them an infinite amount of time to finish the two beers.
“We close at midnight, better drink it fast!”
|
|
|
|
|
Bars I go to last call has nothing to do with whether one has emptied the glass. They are out the door regardless.
|
|
|
|
|
Google's "Bard" will now "search" your inbox and drives; if you let it.
I'm dropping out.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Gerry Schmitz wrote: I'm dropping out. School? Bard? Google? Society? Human race?
|
|
|
|
|
The grid.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
What could go wrong?
I don't think before I open my mouth, I like to be as surprised a everyone else.
PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Gerry Schmitz wrote: your inbox and drives
Keyword "your".
Just give it time, and we'll be reading reports on how, for months/years, people were able to also include anyone else's inbox/drives when they also opted in. Or not even had to opt in...
|
|
|
|
|
yep, "do no evil" went bye bye a long time ago.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Thought I'd put this in a separate post here.
I didn't realize that so many coders are trying generative AI to write code now, but I'm guilty of it as well, only I didn't have to come to CP and ask for human help to fix my AI help.
I spent the last week using AI to write code around my code, to optimize database functions in PHP8. I asked AI or ChatGpt to add try and catch statements, close the connection, free the statement, add error logging and include the function name in the error statements, add parameters and use prepared statements to over 900 database functions in this app I'm trying to get finished.
It made lots of mistakes at first, but I told it to remove certain stuff that wasn't compatible and it remembered the instructions for about 4 hours, and then it went dumb on me, and I had to start again with training. Seems like ChatGpt has multiple personalities, one that is lazy, one that is eager to help, and one that over helps and needs to be toned down, told that personality to keep it simple.
This was a case where it didn't steal someones code, but stole the coding style and structure from someone and added it to my code. ChatGpt says it can't run code, but it was able to recognize small mistakes in the code I inherited and fix them for me, and then brag about it. It also recognized database functions that should be transaction based and suggested the change and made them for me. It even went as far as breaking down large functions into multiple functions, and told me to complete that work my self, or fill in the blanks.
I got lucky and was able to use generative AI to perform work for me that was acceptable to use. But I can see how in the hands of new programmers, it can be a disaster if you don't understand what it presented or how it works.
That's my recent experience which was more positive than negative this time. Plus I had to know if this AI and companies claiming to use AI was just hype or not. Guess the question is one day in the future their going to charge money to use it, and if it's worth it or not.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Beware the villagers with pitchforks...
|
|
|
|
|
I forgot about that. I finished reading Sovereign Individual last week and they spoke of the Luddites, that burned down the textile factories because they installed a machine that would cut the fabric, to replace the man with huge scissors. The owner of the factory simply wanted to automate a few functions, and got killed over that.
Well, they still exists out there, so I'll keep a watch.
Luddite - Wikipedia
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Should they rename it Sybil[^]?
I don't think before I open my mouth, I like to be as surprised a everyone else.
PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Valuable first-hand detailed report: thanks !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I have slowly come to like and use Bing AI chat.
I don't ask it to write code.
I ask him question I would ask a colleague, such as "how do I do that"?!
In other news, PHP hey? Wow I didn't know people were still using that!
|
|
|
|
|
That's why I needed the help, PHP8 is widely used high up in large companies, but they don't post in forums, and hardly any help is available in books or online. It's not dead, just not well documented in how to use the database libraries.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
jkirkerx wrote: close the connection, free the statement, add error logging and include the function name in the error statements, add parameters and use prepared statements to over 900 database functions
One can only wonder how that even came to be.
|
|
|
|
|
 It was a 23 year old PHP application, where the code was mixed in with HTML in a real bad way. I couldn't even read the code, that bad. Hardly any reusable code was written, so I picked out the code and created reusable functions and concentrated on creating models or objects first. It came down to not wasting time on bad functions that didn't work. Finally it was time to take the functions that actually worked correct and optimize them, and toss out the ones that were not being used. It's the project from hell, with never ending surprises from just poor design to begin with. I wonder why a university taught them this.
They wrote functions to repeat HTML or generate it, and inlined database code.
Here's a sample ...
$cost_sum = 0;
$select = '';
<pre>
$get_cost = "
SELECT SUM(proj_cost.Cost), proj_cost.Vend_ID
FROM proj_cost
INNER JOIN vendor ON proj_cost.Vend_ID = vendor.Vendor_ID
WHERE (proj_cost.Proj_ID = '$proj_no')
AND (proj_cost.Proj_Stage = '$proj_stage')
AND (proj_cost.Vers_ID = '$ver_no')
AND (proj_cost.Task_Oper = '$cat_ID')
AND vendor.delete_flag <> '1'
GROUP BY proj_cost.Vend_ID
ORDER BY proj_cost.Vend_ID ";
$res_cost = sqlsrv_query($conn, $get_cost) or Die(" 464:" . print_r(sqlsrv_errors()) . " <br /> ");
if (sqlsrv_has_rows($res_cost)) {
while ($row_cost = sqlsrv_fetch_array($res_cost)) {
$cost = $row_cost[0];
$vend_id = $row_cost[1];
$cost = $cost + $comment_cost;
if ($job_vendor == $vend_id) $cost_sum += $cost;
$vend_name = clsGetPart::getVendorName($vend_id);
echo "<td class='text-align-left' width='10%'>";
if ($job_vendor == $vend_id) {
printf("<p class='margin-text-indent font-weight-bold text-red'>$vend_name <br /><b>$%.2f </b></p></td>\n", $cost);
} else {
printf("<p class='margin-text-indent font-weight-bold text-black'>$vend_name<br />$%.2f </p></td>\n", $cost);
}
}</pre>
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
jkirkerx wrote: I wonder why a university taught them this.
Universities don't teach that. And a university education is not sufficient to produce even a reasonable professional programmer. Big O notation is absolutely worthless when one is trying to figure out why the third party service access code is failing.
I code for failures proactively. Others don't.
Some don't even code for failures at all in any reasonable way.
Some don't understand how failures can occur.
Some code for some types of failures while ignoring others (usually not even understanding that they can occur.)
Some incorrectly handle certain types of errors. Or perhaps even most for this category.
I can't recall anyone ever testing for errors even when they code for it until I review the code and point out the missing tests.
And this is not junior developers but seniors with decades of experience.
|
|
|
|
|
Thanks for the explanation. It's been on my mind for a long time and makes me upset everyday I work on this project. Like sizing a DB column for an email address with 13 varchars.
I asked myself the same question you asked me about how did it get this way in the first place, and why did they continue on this reckless path for 8 years. Because nobody was there to check the work and cared.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|