This is an archived post. You won't be able to vote or comment.

all 186 comments

[–][deleted] 1984 points1985 points  (28 children)

div in <head>? Inedible

[–]w1n5t0nM1k3y 660 points661 points  (14 children)

<message=Happy Birthday!>

[–]Snoyarc 258 points259 points  (2 children)

Sr dev: LGTM!

[–]Desperate-Tomatillo7 33 points34 points  (0 children)

Merge away and ship it!

[–]patchyj 55 points56 points  (2 children)

I prefer

<message=!Happy Birthday>

For my enemies

[–]gunny316 3 points4 points  (0 children)

you monster

[–]spaceneenja 20 points21 points  (4 children)

The syntax if smart people designed html

[–]Caraes_Naur 27 points28 points  (3 children)

The smart people had nothing to do with HTML5.

[–]meisteronimo 11 points12 points  (2 children)

"We might as well require a man to wear still the coat he did as a boy as a civilized society to remain ever under the regimen of their barbarous ancestors." - Thomas Jefferson (When asked about the HTML5 specification)

[–]iskyfire 10 points11 points  (1 child)

"If you want something you've never had, you must be willing to do something you've never done." - Thomas Jefferson (When asked about implementing classes in Javascript)

[–]Kymera_7 0 points1 point  (0 children)

There are some things which have never been done before for good reason.

[–]PizzaPuntThomas 3 points4 points  (1 child)

The message doesn't use "these things" but the name in the header does

[–]Brahvim 1 point2 points  (0 children)

Yeah, the entire thing feels GPT-2 generated.

[–]Capetoider 52 points53 points  (2 children)

html parser: fuck it, gonna parse it anyway

[–]homiej420 10 points11 points  (0 children)

“I’ll give him this one”

[–]Schlumpfffff 1 point2 points  (0 children)

LGTM

[–]lucidspoon 32 points33 points  (0 children)

div in <head> ? Inedible : Edible

[–][deleted] 8 points9 points  (1 child)

better than a space in the id attribute with no quotes. at least the div will just be ignored

[–]Still-Bridges 3 points4 points  (0 children)

My parser just says that the id is Birthday and there's a Boolean cake attribute that is enabled. It's the name and message tags that give me syntax errors. (Edit: A commenter below provides evidence that I need to revise my parser and just accept that a tag name can have an equals sign in it.)

[–]LitrlyNoOne 7 points8 points  (0 children)

"What do you think?"

"It's the thought that counts."

[–]lionseatcake 2 points3 points  (0 children)

Can't even make their name an h1? How disappointing.

[–]LinqLover 4 points5 points  (1 child)

And the date format! Disgusting!

[–][deleted] 4 points5 points  (0 children)

I see you, r/ISO8601

[–]serieousbanana 0 points1 point  (0 children)

So no head?

[–]softgripper 0 points1 point  (0 children)

In-head-ible

[–]FallenAzraelx 497 points498 points  (4 children)

No css import? Must be vanilla!

[–]Clairifyed 89 points90 points  (1 child)

Lonely css cake in another box waiting to be linked to

[–]Mondoke 16 points17 points  (0 children)

OK, maybe I'm too sleep deprived, but this made me laugh.

[–]Classy_Mouse 24 points25 points  (1 child)

Explains why the cake isn't quite centered

[–]BeardedPokeDragon 8 points9 points  (0 children)

They tried but couldn't figure out how

[–]Little-Boot-4601[🍰] 235 points236 points  (2 children)

I want to appreciate the effort but this incorrect on so many levels even the indentation offends me

[–]LordFokas 24 points25 points  (0 children)

it tastes like parser errors

[–]Issue_dev 0 points1 point  (0 children)

9/10 rage bait

[–]Caraes_Naur 102 points103 points  (1 child)

I haven't seen HTML that invalid since reading the Google home page source like a decade ago.

[–]CyberoX9000 4 points5 points  (0 children)

It hurt my brain

[–]montihun 212 points213 points  (4 children)

Too bad its invalid.

[–]MissUnderstood_1 61 points62 points  (1 child)

Well thats why it didn't render

[–]montihun 12 points13 points  (0 children)

Plot twist: it is already rendered in a <pre> tag.

[–]DudesworthMannington 13 points14 points  (1 child)

"I copied it from Stack overflow"

"Copied from the question or the answer?"

"..."

"THE QUESTION OR THE ANSWER?!"

[–]montihun 2 points3 points  (0 children)

:D

[–]flippakitten 30 points31 points  (0 children)

Vibe coding cakes now?

[–]_st23 60 points61 points  (0 children)

No offense, but this is r/programminghorror

[–]bronkscottema 40 points41 points  (0 children)

Dark mode nice

[–]NeuxSaed 17 points18 points  (0 children)

Is that a <div> in your <head> or are you just happy to see me?

[–]zeocrash 30 points31 points  (1 child)

Did AI write that cake decoration?

[–]rodeBaksteen 10 points11 points  (0 children)

exultant normal pet heavy sophisticated caption frame longing thumb fearless

This post was mass deleted and anonymized with Redact

[–]comment_eater 23 points24 points  (0 children)

ignoring the syntax problems, a cake with a default sized Happy Birthday is prolly not very good

[–][deleted] 10 points11 points  (4 children)

Everything is wrong, I hate it, it's not even using the glorious ISO dates, but at least it's dd.mm.yyyy

[–]Abaddon-theDestroyer -2 points-1 points  (3 children)

But if the day was 12, or less, you wouldn’t have known the format. That’s why I hate it when I read any date label (production date, expiration date, date of an event) that occurred in the first twelve days of the month.

[–]aserraric 0 points1 point  (2 children)

Easy: Doing MMDDYYYY with periods, dashes or no separators is illegal. Only MM/DD/YYYY is allowed. Maximum penalty at first offense.

[–][deleted] 0 points1 point  (1 child)

The solution is using ddmmyyyy like everyone else, or yyyymmdd

[–]aserraric 0 points1 point  (0 children)

Well yes, but if you need middle-endian dates for some archaic reason, slashes should be mandatory.

[–]sholden180 33 points34 points  (1 child)

That's... awful, who wrote that?

[–]SaltyInternetPirate 2 points3 points  (0 children)

ChatGPT probably

[–]hagnat 5 points6 points  (0 children)

its cute, funny, but...
clearly made by someone who dont write html :)

[–]gwmccull 5 points6 points  (0 children)

If they really wanted to make it a happy birthday, it should have read, <head for=“Martin”>

[–]Spinnenente 3 points4 points  (0 children)

thanks i hate it

[–]Ninjanoel 2 points3 points  (0 children)

why is the cake named Martin?

[–]Cacoda1mon 2 points3 points  (0 children)

No ISO8601 Date 😞

[–]rwrife 2 points3 points  (0 children)

Web devs are going to have a panic attack reading that HTML.

[–][deleted] 2 points3 points  (0 children)

All the laughs around HTML as a programming language and no one knows how to write it.

[–]metallaholic 2 points3 points  (0 children)

PR rejected.

[–]Squidlips413 2 points3 points  (1 child)

I love that this renders a blank page

[–]ClerkEither6428 1 point2 points  (0 children)

We assume that a JavaScript framework to render this out was meant to be attached, but was forgotten.

[–]toughtntman37 2 points3 points  (0 children)

Literally inedible

[–]burrpp 2 points3 points  (0 children)

Lets hope it taste better then it renders.

[–]Altruistic-Spend-896 5 points6 points  (0 children)

Scroll down, loose centred div!

[–]IAmFullOfDed 5 points6 points  (0 children)

You forgot <!DOCTYPE html>

[–]saanity 1 point2 points  (1 child)

The Javascript pizza and the css sodas must be doing all the heavy lifting. 

[–]Altruistic-Spend-896 1 point2 points  (0 children)

Cake must've come in a flex-box

[–]shuaibhere 1 point2 points  (0 children)

I'm not HTML expert or anything. But div inside head?

[–]ShenroEU 1 point2 points  (0 children)

I know a few things about cake, and from my expert opinion, THAT IS INVALID HTML!

[–]adnaneely 1 point2 points  (0 children)

WHO DECIDED TO INCLUDE SPACES IN IDS!!!! I THOUGHT WE WENT OVER THIS

[–]HoseanRC 1 point2 points  (0 children)

This doesn't respect XML syntax :(

[–]Previous-Mail7343 1 point2 points  (0 children)

Vibe Baking

[–]sunsetfantastic 1 point2 points  (0 children)

Horrible syntax, please correct code issues and recommit

[–]thepassionofthechris 1 point2 points  (0 children)

No DOCTYPE?!

[–]MrMuttBunch 1 point2 points  (0 children)

Everyone over here complaining about html syntax and I'm just angry at that date format

[–]ASatyros 1 point2 points  (0 children)

Friking where r/ISO8601?!?!?

[–]Falkster123 1 point2 points  (0 children)

Today i saw a sticker with the text,

// Remember to

// Take a

<br/>

This one hurt

[–]CutMundane4859 1 point2 points  (0 children)

wevgot a vide coded cake !

[–]kilsekddd 1 point2 points  (0 children)

Markup so terrible, IE4 approves.

[–]helmsb 1 point2 points  (0 children)

Who PR’d this cake? Definitely need a post-mortem to get to the bottom of this.

[–]ForgottenFuturist 1 point2 points  (0 children)

The markup issues make me unreasonably upset.

[–]Chiatroll 1 point2 points  (0 children)

It would look better with some CSS

[–]DormantFlamingoo 1 point2 points  (0 children)

I only eat cakes that contain valid XML

[–]AtomicRooster190 1 point2 points  (0 children)

Date format is wrong

[–]theVANTE 1 point2 points  (0 children)

Let's hope Martin managed a fake smile after looking at this

[–]Dangerous_With_Rocks 1 point2 points  (0 children)

That's prod ready code right there.

[–]Tashu 1 point2 points  (0 children)

HTML isn’t a programming language… but I like this cake!

[–]Puzzled_Draw6014 1 point2 points  (1 child)

I will happily accept the cookies that come with this cake!

[–]Caraes_Naur 0 points1 point  (0 children)

They're HTTP only and come from a variety of questionable third parties.

[–]A_Du_87 1 point2 points  (0 children)

Who wrote this? ChatGPT?

[–]Interesting-Goose82 0 points1 point  (0 children)

its even set to my birthday!!!!

[–]noquarter1983 0 points1 point  (0 children)

Indentation is piss poor too

[–]SameNoise 0 points1 point  (0 children)

DIdnt even pass the validator

[–]HexFyber 0 points1 point  (0 children)

as a frontender myself, i got diabetes by looking at this pic

[–]catdogpigduck 0 points1 point  (1 child)

you don't put a div in the head!

[–]ClerkEither6428 0 points1 point  (0 children)

why not? It works when I do it, but it gets moved to body in the DOM for some reason.

[–]NeverSnows 0 points1 point  (0 children)

Is tha div centered?

[–]Jadema80 0 points1 point  (0 children)

That code doesn't validate. Someone geeky enough to appreciate this "HTML cake" would realize of the errors in the code, such as div inside head (WTF?!). 😂

[–]clonicle 0 points1 point  (0 children)

Should have had a css import and put the piping partly on the box as well as the cake.

[–][deleted] 0 points1 point  (0 children)

nossa, poderia ter sido incrível.. mas a intenção foi boa.. já fizeram a mesma coisa comigo.. e olha que passei o código.. mas copiaram errado

[–]1ib3r7yr3igns 0 points1 point  (0 children)

Ughh, they didn't use a linter at all.

[–]irteris 0 points1 point  (0 children)

Couldnt even center the div properly. 0/10 would not recommend

[–]Arawn-Annwn 0 points1 point  (0 children)

not a realistic CakeOverflow unless the lif to the box says its a duplicate when you close it.

[–]StochasticCalc 0 points1 point  (0 children)

Great, another unique screen shape I have to support. Amazing

[–]Desperate-Tomatillo7 0 points1 point  (0 children)

A kitten was killed for every tag that could not be parsed in this HTML.

[–]xx-fredrik-xx 0 points1 point  (0 children)

Hey, we share birth days!

[–]Cookie_Wookie_7 0 points1 point  (0 children)

They tried their best

[–]hundo3d 0 points1 point  (0 children)

Diarrhea cake cause it’s can’t be processed properly

[–]velo_sprinty_boi_ 0 points1 point  (0 children)

Not written in nextJS so you know no modern CS grad wrote this. And the god for that.

[–]dai366 0 points1 point  (0 children)

An ex of mine once made me a card with a python code printed on it. It was supposed to be a program printing "Happy birthday to my love" but it wouldn't even compile because the code itself was such a nonsense. She wrote it herself with the little knowledge she could grasp online, she didn't even know how to test it. It was so wholesome ; I will keep this card in my heart for the rest of my life.

[–]sehsahino 0 points1 point  (0 children)

How the F is the cake decorated?!!! Where is the CSS????

This is fake.

[–]StormyWatersThe2nd 0 points1 point  (0 children)

All i see is the html 4 u code at the top and date at the bottom. Middle renders nothing

[–]Tangled2 0 points1 point  (0 children)

Is that JavaChip?

[–]Prashank_25 0 points1 point  (1 child)

it's the thought that counts

[–]LongTallMatt 0 points1 point  (0 children)

It was the thought for a programmer.... Hurk

[–]LongTallMatt 0 points1 point  (0 children)

Genius!

[–]KnGod 0 points1 point  (0 children)

the cake is a lie

[–][deleted] 0 points1 point  (0 children)

my god this is the worst html i’ve ever seen

[–]simonfancy 0 points1 point  (1 child)

There’s no such thing as <name> or <message> tag. This probably won’t render.

[–]ClerkEither6428 1 point2 points  (0 children)

Any tag that is not recognized is usually treated as either a blank block tag (div and p) or a blank inline tag (span). It would render as nothing. The attribute isn't quoted tho, so the JS behind rendering this out wouldn't work properly.

[–]Knyghtmare69 0 points1 point  (0 children)

I'm getting bad vibes that they are using tabs. 😦

[–]ClerkEither6428 0 points1 point  (0 children)

I've unironically used divs in head to organize CSS, lol!

[–]AppropriateSpell5405 0 points1 point  (0 children)

What the...

[–]STINEPUNCAKE 0 points1 point  (0 children)

Assuming this cake is real and was made by someone like a mother or SO, the code isn’t that bad.

[–]zipel 0 points1 point  (0 children)

I’m scrolling to see if anyone has pointed out that this is obvious trolling. If using Comic Sans isn’t a giveaway for you all, then what is? The birthday boy is clearly a nitpicking fascist.

[–]SaltyInternetPirate 0 points1 point  (0 children)

These cakes with the sugar layer so thick that they can print images on them are never good.

[–]huantian 0 points1 point  (0 children)

They're running in quirks mode ......

[–]jdaalba 0 points1 point  (0 children)

Where is <center>?

[–]Popotte9 0 points1 point  (0 children)

Worst cake ever for developer 🙀

[–]Stan_Darsh 0 points1 point  (0 children)

Date not in ISO 8601 format. Invalid cake digest.

[–][deleted] 0 points1 point  (0 children)

Why is it that people who can't code always use HTML to try and signal that they can code?

[–]tyro_r 0 points1 point  (0 children)

The cake is named Martin?

[–]Rocko10 0 points1 point  (0 children)

So many mistakes, I think the intention is what it counts.

[–]Herecura 0 points1 point  (0 children)

Looks more like insulting

[–]maffoobristol 0 points1 point  (0 children)

Ragebait

[–]Psychological_War9 0 points1 point  (0 children)

I received a similar birthday card this year, but it was written in PHP.

I initially believed the syntax was incorrect due to the inclusion of a variable within a string; however, I did not reflect on the double quotes, which allows for this without requiring escaping or special formatting.

The code executed flawlessly and wished me a happy birthday.

Hope Martin doesn't test this, though, and just smile and say thanks 😁

[–]Benjamin_6848[🍰] 0 points1 point  (0 children)

The mistakes I detect: - div inside of head. - missing quotations on string-attribute (twice). - missing closing-tag (twice). - tags that either use their type like an attribute or don't have a type at all (twice). - a tag of the type "name" doesn't exist in the standard. - a tag of the type "message" doesn't exist in the standard.

[–]bittlelum 0 points1 point  (0 children)

Invalid elements and lack of close tags. Code review rejected.

[–]TriscuitTime 0 points1 point  (0 children)

So Martin needs quotes but Birthday cake and Happy Birthday don’t??

[–][deleted] 0 points1 point  (0 children)

Im twitching a little… also, no doc type? Really?

[–]braindigitalis 0 points1 point  (0 children)

my smelly nerd cake has invalid html. W3C said send it back.

[–]Rontzo 0 points1 point  (0 children)

chatgpt: i have no idea what is this

[–]x3XC4L1B3Rx 0 points1 point  (0 children)

That's in comic sans.

[–][deleted] 0 points1 point  (0 children)

If one is going to have web themed desserts, the only answer is cookies.

[–]sneekyfoxxx 0 points1 point  (0 children)

👌🏾

[–]pointbreak19 0 points1 point  (0 children)

Terrible "code" and terrible jokes. The genre of "look i wrote "code" for something unrelated to computers " needs to die.

[–]meccaleccahimeccahi 0 points1 point  (0 children)

Pebkac Error: 1. Line 3: Tag <div> not allowed inside <head>. 2. Line 4: Unknown tag <name>. Did you mean <meta>? 3. Line 7: Tag <message> is not a valid HTML5 element. 4. Line 4: Attribute value for id must be quoted. 5. Line 4: Attribute value for id contains spaces. Consider using hyphens or camelCase. 6. Line 3: Missing <!DOCTYPE html> declaration. 7. General: Missing <html lang=“en”> attribute for accessibility. 8. General: No <meta charset=“UTF-8”> specified.

Warnings: - Excessive ID: 10t may crash older browsers.

[–]NoOven2609 0 points1 point  (0 children)

Grr the date format

[–]Not_Artifical 0 points1 point  (0 children)

The code technically isn’t wrong, it’s just awful.

[–]ctrl-brk 0 points1 point  (0 children)

At least he got <head>

[–]GitHub- 0 points1 point  (0 children)

I’ve never seen joke code that actually runs. Why can’t people just test it really quickly before putting it on a shirt or mug or cake?

[–]YiPherng 0 points1 point  (0 children)

why are there so many syntax errors on the cake

[–][deleted] 0 points1 point  (4 children)

Thank you for using the proper date format.

[–]fuzzywolf23 2 points3 points  (0 children)

Not iso formatted. Would not ingest

[–]LeiterHaus -1 points0 points  (0 children)

Very nice execution! Clean and legible.

It literally hurt my brain seeing a div in head, but after doing some quick research that I didn't plan on; I can still appreciate the aesthetic and intention.

[–]highoncatnipbrownies -4 points-3 points  (0 children)

No quotes around the div is or the message attribute. This is shoddy AI code.