There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

dosuser123456 ,
@dosuser123456@lemmy.sdf.org avatar
thebardingreen , (edited )
@thebardingreen@lemmy.starlightkel.xyz avatar

My code projects lately?

“This project uses an API written in PHP, with HTML in Lua (OpenResty) and JavaScript. We’re starting with the PHP component, please write me a burger with cheese, bacon, lettuce, tomato, pickles, ketchup and mustard.”

“Absolutely! I’d be happy to help with that! I understand that we’re creating a burger in PHP. Here is a burger, with cheese, bacon, lettuce tomato and mustard. Explanation of the burger: The bacon is on top of the cheese, so it doesn’t fall off. The lettuce is included, to create an underlying HTML structure.”

https://lemmy.starlightkel.xyz/pictrs/image/79a6fd96-5fd9-4be1-b3b8-ffbce6641633.png

“Um, that’s not at all what I asked for. First of all, you completely forgot the ketchup, which I explicitly told you was a requirement. Secondly, you said there was mustard, but I don’t see any. Third, the cheese is cottage cheese? No one puts that on burgers! Why would you put cottage cheese? Third, the bacon is turkey bacon. That’s not what I wanted at all. On top of that, the lettuce is UNDER the burger, not ON it. We’re not writing HTML, this is meant to be a rest API. All the output should be JSON.

Please try again. Write me a burger in PHP with pig bacon, mustard and ketchup, which you forgot to include last time, cheddar cheese (NOT cottage cheese) and tomato, pickles and lettuce INSIDE the bun. This is an API, so don’t write any HTML!”

“I appologize for the misunderstanding. Here is your burger with bacon (made from pigs, not turkey), mustard, ketchup, cheddar cheese, tomato, pickles and lettuce inside the bun. I understand this is an API, so I’ve taken out the HTML. Please let me know if there’s anything else I can help you with.”

https://lemmy.starlightkel.xyz/pictrs/image/b3aaee27-1097-483d-bd3a-0b14fe64262f.png

“It looks like you’ve called a function to put the lettuce inside the bun, but you never created that function?”

“You are correct. Your PHP code would need to have the function defined to put the lettuce inside the bun. Here is your updated PHP code with the putLettuceInsideBun function included.”

https://lemmy.starlightkel.xyz/pictrs/image/55ce6d44-4425-481a-a133-afd3f18387e4.png

“Thank you, there’s a tomato and the lettuce is inside the bun now. I’m not sure why you called the putLettuceInsideBun() function twice, but at least it’s in there now. I note there’s still no bacon, cheese, ketchup or mustard. You know what? I’m just going to write those parts myself!”

“Writing PHP code can be a fun and educational challenge! Please let me know if I can assist you any further with your PHP hot dog grilling project.”

ornery_chemist ,

I mean… just rotate it 90 degrees ((()))

pkill ,

lots of onions cut in rings as they resemble parentheses the most

JetpackJackson ,

Fellow lisp user I see

fluxc0 ,
jaemo ,
sheepishly ,

full of bugs

Sparky , (edited )
@Sparky@lemmy.blahaj.zone avatar

I learned blender just to make a representation of my code in action … http://protosparky.uk/cdn/borger/borger.gifgif

jonathanvmv8f OP ,

A for effort

isVeryLoud ,

Ever had a spaghetti burger?

chahk ,
Wirlocke ,

The most immaculate well researched pickles ever seen.

But I’m getting bored, I should learn how to write, or maybe draw, or maybe dance.

No I got it, I’ll shift my focus to an obscure Github program I’m using to test a weird thought I had!

I’ll finish this burger later…

souperk ,
@souperk@reddthat.com avatar

Is that adhd? That’s definitely adhd!!!

Wirlocke ,

Ring ding ding, winner!

dosuser123456 ,
@dosuser123456@lemmy.sdf.org avatar

i have that too :/

kill_dash_nine , (edited )
ironcrotch ,

Remove buns replace with spagbowl.

JackGreenEarth ,

https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fshare.jackgreenearth.org%2Fpng%2FImage_20240812_002338.png

(This was edited with Krita on my phone, so sorry that it looks a bit shoddy)

ripcord ,
@ripcord@lemmy.world avatar

1-space indents? Oh my.

AlecSadler ,

In their defense (maybe a stretch) it could be 1-tab indents with a 1-space display?

I’m trying for their sake.

Tangent5280 ,

I suppose if you read/write code on your phone it might make sense

arudesalad ,

https://sh.itjust.works/pictrs/image/68ec029d-1d92-4f09-99d7-d0b56bfcde42.png

sorry about the amazing image quality I made this in less than a minute (I didn’t even export the image from the editor just screenshotted it lol)

sukhmel ,

I made this in less than a minute

Enterprise level doneness

vrighter ,

did you at least screenshot it to the clipboard?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines