36 points

but the I in AI it’s actually a lowrcase L, so it’s short for Algorithm

permalink
report
reply
18 points
*

It kinda annoys me that the lowercase L glyph is taller than capital A. I don’t mind there being a difference, but cap-height should be taller than lowercase letters.

Illuminati

permalink
report
parent
reply
14 points

The difference being?

permalink
report
reply
123 points

I’m guessing he’s saying companies are still using the same human written code, but since AI is sexy right now and is being used to describe even simple programming logic, everything is “powered by AI”

permalink
report
parent
reply
50 points

And in 2013 the key word for marketing was algorithm. The YouTube algorithm. The reddit algorithm. Etc.

permalink
report
parent
reply
9 points

That was true like 5 years ago, but now companies are just irresponsibly calling out to LLMs as a function without proper safe guards instead.

permalink
report
parent
reply
7 points

Even more likely is that AI’s that write code are trained on human created code. So they aren’t coming up with new, novel ideas to problems in most cases, they are just a far more advanced “copy and paste from StackOverflow”

permalink
report
parent
reply
6 points

“copy and paste from StackOverflow”

I feel violated

permalink
report
parent
reply
3 points

I’ve heard this talk where I work. Senior plebs describing things that are obviously algorithms as AI. And this of course means we had AI before it was cool.

Nothing new here. Buzzwords are the only thing senior managers can understand.

permalink
report
parent
reply
31 points

That’s exactly the point. It’s just how companies market their products nowadays.

permalink
report
parent
reply

I mean, true AI isn’t really a thing yet. People have been using AI wrong for a very long time now. Even ChatGPT isn’t real AI.

permalink
report
parent
reply
5 points

Nobody can seem to consistently define what ai even means

permalink
report
parent
reply
0 points

ChatGPT is built upon a GPT language model, which is a type of Artificial Intelligence.

permalink
report
parent
reply
12 points
*

the computer wrote the 2nd one on accident when someone asked it to bake a cake.

permalink
report
parent
reply
4 points

Bullshit vs Bullshit²

permalink
report
parent
reply
13 points

Is this part of a Hi-Lo implementation for blackjack? (Also, ewww mixed types)

permalink
report
reply
9 points
*

Yeah, just use a char for card and test

if(card < '7') count++;
else count--;

Or something, don’t mix types.

permalink
report
parent
reply
1 point

Well that won’t work for 7, 8 or 9.

permalink
report
parent
reply
2 points

I didn’t notice that 7,8,9 had no effect on the count. My bad.

permalink
report
parent
reply
1 point

The cards should just be numbers, and an enum should be used for display names

permalink
report
parent
reply
2 points

Chars are just numbers, but yeah, an enum would work fine too, sure. The only advantage with using a char for it is that there’s no conversion needed for outputting them into strings so it’s a little easier. Less code, very readable, etc. Though yeah, thinking about it JQKA wouldn’t be numerically in the right order which could cause issues if the program did more than just implement HiLo

permalink
report
parent
reply
11 points
*
Deleted by creator
permalink
report
reply
3 points

I hope I’m not being stupid right now, but is that the actual algorithm for counting cards in blackjack?

permalink
report
reply
2 points
*

Half of it. This gives you the running count. You need to also keep track of “number of decks in shoe” -“number of cards dealt since last shuffle”/52 to tell you how many decks are left in the shoe, then divide the running count by the number of decks left to give you a true count.

True count higher than 1? Start increasing your bet accordingly.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 7.6K

    Monthly active users

  • 978

    Posts

  • 38K

    Comments