this post was submitted on 24 Nov 2023
848 points (98.0% liked)

Programmer Humor

25649 readers
1896 users here now

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

founded 2 years ago
MODERATORS
 
all 24 comments
sorted by: hot top controversial new old
[–] FaceDeer@kbin.social 113 points 2 years ago (3 children)

To be fair, the bug report was utterly useless too.

[–] Contend6248@feddit.de 24 points 2 years ago* (last edited 2 years ago) (1 children)

True, when i respond with the exact problem it usually gets fixed, interestingly even explained why it failed.

Great for learning

[–] IzzyScissor@lemmy.world 23 points 2 years ago (2 children)

The only problem is that it'll ALSO agree if you suggest the wrong problem.

"Hey, shouldn't you have to fleem the snort so it can be repurposed for later use?"

You are correct. Fleeming the snort is necessary for repurposing for later use. Here is the updated code:

[–] Rhaedas@kbin.social 5 points 2 years ago

Models are geared towards seeking the best human response for answers, not necessarily the answers themselves. Its first answer is based on probability of autocompleting from a huge sample of data, and in versions that have a memory adjusts later responses to how well the human is accepting the answers. There is no actual processing of the answers, although that may be in the latest variations being worked on where there are components that cycle through hundreds of attempts of generations of a problem to try to verify and pick the best answers. Basically rather than spit out the first autocomplete answers, it has subprocessing to actually weed out the junk and narrow into a hopefully good result. Still not AGI, but it's more useful than the first LLMs.

[–] FaceDeer@kbin.social 3 points 2 years ago

That's not been my experience. It'll tend to be agreeable when I suggest architecture changes, or if I insist on some particular suboptimal design element, but if I tell it "this bit here isn't working" when it clearly isn't the real problem I've had it disagree with me and tell me what it thinks the bug is really caused by.

[–] Synthead@lemmy.world 5 points 2 years ago

It was trying to is, then it isn'ted. Help?

[–] angelsomething@lemmy.one 75 points 2 years ago (3 children)

Literally why docker was invented

[–] takeda@lemmy.world 19 points 2 years ago* (last edited 2 years ago) (1 children)

Yeah, it "solved" the "it works on my machine" by bundling the machine with the code.

https://youtu.be/0uixRE8xlbY

[–] Opafi@feddit.de 7 points 2 years ago (1 children)

Man, I really was interested in that topic, but that guy really can't do talks.

[–] takeda@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

What about this? https://youtu.be/5XY3K8DH55M

Also I created this repo to create a reproducible sec environment for myself. I added other languages, but personally work mostly with python. It is basically resonating for handling all the boiler plate:

https://github.com/takeda/nix-cde

For packaging in docker I started to use nix2container project as it gives me a greater control over layers. So for example when I package my phyton app I typically use 3 layers:

  • python and it's dependencies
  • my application dependencies
  • my application, which is very tiny compared to other two, so there is great reuse of the layers

The algorithm mentioned in the video also helps a lot with reuse, but the above is more optimized by frequency of how things typically change.

BTW: today I discovered this https://github.com/astro/microvm.nix I haven't play with it yet, but in theory it would let me generate a microvm image (in similar fashion to generate a docker container) which would let me to run my app natively as a tiny VM on EC2 for example, and use only minimum necessary of a typical OS to run it.

[–] ohlaph@lemmy.world 5 points 2 years ago

Docker has been a savior.

[–] kurwa@lemmy.world 1 points 2 years ago (1 children)

Now we just need to run docker inside the browser

[–] eatyourglory@feddit.it 1 points 2 years ago

Ah-ah! Now that’s progress!

[–] Fades@lemmy.world 19 points 2 years ago (3 children)

Every time I hear this from one of my devs under me I get a little more angry. Such a meaningless statement, what are you gonna do, hand your pc to the fucking customer?

[–] FaceDeer@kbin.social 28 points 2 years ago

It's not actually meaningless. It means "I did test this and it did work under certain conditions." So maybe if you can determine what conditions are different on the customer's machine that'll give you a clue as to what happened.

The most obscure bug that I ever created ended up being something that would work just fine on any machine that had at any point had Visual Studio 2013 installed on it, even if it had since had it uninstalled (it left behind the library that my code change had introduced a hidden dependency on). It would only fail on a machine that had never had Visual Studio 2013 installed. This was quite a few years back so the computers we had throughout the company mostly had had 2013 installed at some point, only brand new ones that hadn't been used for much would crash when it happened to touch my code. That was a fun one to figure out and the list of "works on this machine" vs. "doesn't work on that machine" was useful.

[–] Baizey@feddit.dk 14 points 2 years ago

...yes? I thought we made that clear with containerization

[–] 1984@lemmy.today 2 points 2 years ago

"my devs under me"

Lols.

[–] amanaftermidnight@lemmy.world 16 points 2 years ago (1 children)

Then we'll ship the AI.

...what do you mean, all the ICBM silo doors are opening?

[–] hakunawazo@lemmy.world 1 points 2 years ago

ChatGPT is far too long, let's call it WOPR. The most capable tic tac toe machine.
https://en.wikipedia.org/wiki/WarGames

[–] takeda@lemmy.world 14 points 2 years ago (1 children)

But it doesn't even compile!

[–] Kolanaki@yiffit.net 18 points 2 years ago

"You literally just wrote 'kill all humans' and put it in curly brackets."

[–] Palacegalleryratio@hexbear.net 6 points 2 years ago

You know what, this is on us. Chat GPT is just a prediction engine that tries to say what words it thinks follow a preceding prompt, and it’s looked at millions of examples (written by us) and it’s seen hapless clients and users complain about bugs and be told: “user error, works fine” so often chatGPT just thinks it’s just the culturally accepted polite response to a bug report, in the same way as responding to “thank you” with “you’re welcome”. This is a dark mirror on our profession.

[–] commanderbalok@lemmynsfw.com 5 points 2 years ago* (last edited 2 years ago)