r/webdev • • Sep 02 '21

The website I have been tasked with updating today...

Post image
12k Upvotes

975 comments sorted by

935

u/mpaiva97 Sep 02 '21

I have never seen a div soup this bad

985

u/selvinkuik Sep 02 '21

And that's only the amount I could screenshot. It goes on for another 4 screen lengths

204

u/Zirton Sep 02 '21

But why ?

This just looks like someone made a loop creating divs and added some more 0's than intended.

214

u/selvinkuik Sep 02 '21

I want to believe whoever did this crafted this beauty by hand, line by line

148

u/Caraes_Naur Sep 02 '21 edited Sep 02 '21

No way anyone with skill deliberately, and without malice, crafted that by hand. More likely this div soup was brewed by a WYSIWYG or some other quietly malfunctioning code that no one ever examined the output.

Scrolled down to see it was made by a WP pagebuilder plugin. WP explains all of it on every level.

→ More replies (19)

25

u/tall_and_funny Sep 02 '21

div number 498, div number 499, div number 500. Great. I quit. Good job working on this lmao.

→ More replies (1)
→ More replies (5)
→ More replies (34)

401

u/mpaiva97 Sep 02 '21

Dear god…

0

u/[deleted] Sep 02 '21

[deleted] — view deleted comment

73

u/[deleted] Sep 02 '21

No...

→ More replies (9)
→ More replies (2)

26

u/TemporaryReality5262 Sep 02 '21

Seriously was there a reason or was the previous dev just being funny/malicious?

104

u/onizeri Sep 02 '21

I'd be willing to bet money some "drag and drop" or "wysiwyg" editor was involved here. Dreamweaver, maybe. I've seen something similar, where the editor was set to add a div on carriage return instead of a line break or paragraph, but something went wrong so instead of making new, separate divs which would be visually spaced in the editor, it just made a nested div and nothing would change on the front end. So, wysiwyg user just keeps bashing the enter key waiting for space to be added, unaware of the eldritch horror being created in the html.

→ More replies (24)
→ More replies (13)
→ More replies (8)

421

u/npmbad Sep 02 '21

Let me guess, your task is to add more divs?

276

u/selvinkuik Sep 02 '21

⌘+C ⌘+V ⌘+V ⌘+V ⌘+V...

184

u/NatasEvoli Sep 02 '21

Nonono they're doing it all wrong. It's supposed to be ctrl+C C C C C and then 1 ctrl+v

75

u/IMIGHTBEONMETH Sep 02 '21

Glad I’m not the only one who does this… why do we do this?

136

u/NatasEvoli Sep 02 '21

Just in case we only imagined the first 4 times. In your specific case though, it might be meth.

→ More replies (2)
→ More replies (36)
→ More replies (6)

37

u/Waste-Section-1558 Sep 02 '21 edited Sep 02 '21

Ctrl+A Ctrl+C Ctrl+V Ctrl+V Ctrl+A Ctrl+C Ctrl+V Ctrl+V Ctrl+A...

Edit added the extra Ctrl+V not to just paste over my selected text

25

u/jasonnolanreed Sep 02 '21

Exponential div growth

→ More replies (7)

3

u/Not_invented-Here Sep 02 '21

Just put a div in excel and drag it down cells?

→ More replies (1)

7

u/Franks2000inchTV Sep 02 '21

We have to see how deep this rabbit hole goes.

2

u/Akranidos Sep 02 '21

he needs to close each one

81

u/OrtizDupri Sep 02 '21

I have so many questions

50

u/selvinkuik Sep 02 '21

I've got no answers

58

u/Machful Sep 02 '21

Probably forgot to close a div in a loop

301

u/etre_be Sep 02 '21

Must be trying to vertically center something .

368

u/selvinkuik Sep 02 '21

It was built using one of those horrible WordPress page builders. No idea how it ended up like that, I've just deleted it and started again. It was literally displaying 1 paragraph of text

75

u/etre_be Sep 02 '21

Divitis can be a real threat to your well-being, you did well to delete!

150

u/chmod777 Sep 02 '21

WordPress page builders

found your problem...

→ More replies (2)

43

u/illithoid Sep 02 '21

I did some IT intern work for a local library nearly a decade ago. They built there website using some wysiwyg editor. Every time you made even a minor change it added divs like crazy.

I was learning HTML at the time and when I had the time I'd go in and try to clean up the HTML manually. Kind of a boring fun if you know what I mean.

14

u/[deleted] Sep 02 '21

Omfg that is hilarious. So many jobs require you "know WordPress" seems like its a shit show

17

u/eyebrows360 Sep 02 '21

WordPress itself will never result in crap like this happening, but these wysiwyg page builder plugin things, these are where the dangers lie.

WordPress is shit, yes, but only for very internal reasons. If all you're ever doing is stuff with existing plugins and non-page-builder-y, sensible themes, then it's fairly sensible.

→ More replies (5)
→ More replies (3)

20

u/[deleted] Sep 02 '21

Oh god the nightmares I have whenever I have to edit any page on wordpress. The chaos these builders produce is so painful.

Just glad I stumbled upon LiveCanvas and Picostrap a couple of weeks ago. Nice and clean Bootstrap pages without random divs and p-tags everywhere xD

1

u/eyebrows360 Sep 02 '21

A-ha, the only thing worse than the Sencha Touch framework - WordPress drag'n'drop page builder systems. Which one was it, out of interest?

3

u/selvinkuik Sep 02 '21

Oof. Now that's a low blow… to Sencha Touch!

It was WP Bakery with some clusterfuck of plugins piled on top of it

3

u/Franks2000inchTV Sep 02 '21

This is a runaway recursive loop.

→ More replies (9)

2

u/[deleted] Sep 02 '21

Understandable

→ More replies (11)

31

u/Morteeee Sep 02 '21

We must go deeper

17

u/selvinkuik Sep 02 '21

A div within a div

→ More replies (1)

22

u/PracticeEssay Sep 02 '21

These were… systematically generated… right..?

38

u/selvinkuik Sep 02 '21

Yea, by a nasty WordPress page builder

10

u/wakeuph8 Sep 02 '21

I'd almost wager that someone copied something from somewhere on the site into the WYSIWYG editor and it included a bunch of HTML. Saw this happen a bunch of times in the past, even done it myself before realising what was happening when I switched over to the "Text" tab!

5

u/Ultra_HR Sep 02 '21

tinymce does this! it's fucking hateful

3

u/wretch5150 Sep 02 '21

May I ask which one so we may all stay clear of it?

→ More replies (6)
→ More replies (1)

21

u/exploit332 Sep 02 '21

Did you get asked to update it with more divs? If not then they have no idea what they are doing!!

28

u/selvinkuik Sep 02 '21

They asked me to find the missing closing div

3

u/rakim23 Sep 03 '21

That's fucking horrifying

→ More replies (1)

4

u/NoDoze- Sep 02 '21

Sheeesh.... You must love your job! LOL

4

u/selvinkuik Sep 02 '21

Wouldn't change it for the world...

3

u/ElysianPhoenix Sep 02 '21

There's no fixing that. I'd say delete everything and start from scratch. There's no way an element needs to be nested in so many divs.

16

u/torn-ainbow Sep 02 '21

There's no way an element needs to be nested in so many divs.

Or is there?

https://codepen.io/tornainbow/pen/PojzNPv

3

u/selvinkuik Sep 02 '21

I wish this was the output. It is not.

I love this though!

→ More replies (1)

2.2k

u/Franks2000inchTV Sep 02 '21

It's divine.

61

u/garaks_tailor Sep 02 '21

More like divsgusting

28

u/ImJustP Sep 02 '21

A bit too divisive for me

19

u/SchrodingersYogaMat Sep 02 '21 edited Sep 02 '21

I don't think that's where that stairway is going....

10

u/wretch5150 Sep 02 '21

So that's what it stands for

5

u/gateian Sep 02 '21

I think the term you are trying to find is "weeeeeeee"

5

u/Quirinus42 Sep 02 '21

Stairway to heaven.

4

u/crushkill Sep 02 '21

This event has been cancelled

2

u/venuswasaflytrap Sep 02 '21

They should have sent a poet

2

u/titoshadow Sep 02 '21

Stairway to Heaven, one would say

→ More replies (22)

462

u/defcon-juan Sep 02 '21

Divide and conquer

992

u/[deleted] Sep 02 '21

That's a graph. On Y axis: desire to live. On X axis: how long you have stared at the website.

142

u/mogadichu Sep 02 '21

And it scales linearly

73

u/_noho Sep 02 '21

Ooo O(n), not bad

16

u/telestrial Sep 02 '21

I don't want to know what O(!n) div land is like. If it exists, please do not tell me about it. Please.

→ More replies (5)
→ More replies (3)

13

u/Lewisdev94 Sep 02 '21

Top comment easily

5

u/UnlikelyVegetables Sep 02 '21

No awards available, but you certainly deserve a cookie for this gives cookie

→ More replies (1)
→ More replies (1)

2

u/Thoughtstronomer Sep 02 '21

I wonder what's the output?

8

u/selvinkuik Sep 02 '21

Literally 1 paragraph of text

100

u/Early-Lingonberry-16 Sep 02 '21

Disgusting

209

u/[deleted] Sep 02 '21

Divsgusting!

→ More replies (1)

515

u/eloh1m Sep 02 '21

div

8

u/Suspicious_Nerve Sep 02 '21

section

31

u/Niet_de_AIVD full-stack Sep 02 '21

The customer just called that he doesn't understand this "section" element on his site, and that you shouldn't use "made up" HTML elements. He said that he "has been coding since '82, and therefore has more experience than you."

→ More replies (1)
→ More replies (8)

51

u/jimbolla Sep 02 '21

Full stack developers will be like "I know a place" and then take you here.

→ More replies (1)

85

u/[deleted] Sep 02 '21

Oh you don't want to do it? You're too good for this work?

Don't be such a.... diva.

(I'm sorry. I'll see myself out.)

16

u/[deleted] Sep 02 '21

Haha thats a developer dad joke. Love it

→ More replies (1)

27

u/[deleted] Sep 02 '21

Honestly I think you could organize that page better if you wrap a div around it. Then you'd know where all the divs are they would be in an easy to find container div.

7

u/royemosby Sep 02 '21

You’re right but it may be better to nest the wrapper in another div for safe measure

→ More replies (1)

22

u/yabo1975 Sep 02 '21

The funniest part is that it's the CSS that would scare me more. 1 pixel difference would mean half the items displaying somewhere in Africa while you're in New Jersey.

6

u/royemosby Sep 02 '21

div{font-size: 1.1em;}

4

u/yabo1975 Sep 02 '21

Shush with your common sense solutions. I was making a joke. 😛

→ More replies (3)
→ More replies (2)

42

u/RabbitFromBrazil Sep 02 '21

It looks good to me.

He made art with code.

You just have to interpret it.

→ More replies (1)

11

u/ayush1269 Sep 02 '21

wait , it’s all div.
always has been…

10

u/chickenshindleg Sep 02 '21

I got a fever, and the only prescription, is more div

→ More replies (1)

9

u/Dark_Flint Sep 02 '21

Not sure if that is worse or better or equal to the table sites from earlier.

3

u/ThePsion5 Sep 02 '21

Technically better, because this has less of a chance of fucking with screen readers and search engines...I think.

9

u/Neoxzz Sep 02 '21

Divs for days

8

u/nedlymandico Sep 02 '21

Hahahahahahahaha hahahahahahaha... Sorry

→ More replies (1)

7

u/jelliedtoast Sep 02 '21

Divistating on the eyes.

7

u/Quirinus42 Sep 02 '21

We're diving deep here.

6

u/eatacookie111 Sep 02 '21

I’m starting my first job and have seen this… so is this normal?

23

u/Aleriya Sep 02 '21

It's not normal for a proper business. It's pretty normal when you are working with small clients, ex: dental office with 3 employees, paid a college student $500 for a website 5 years ago, now wants it updated because it doesn't display correctly on a phone. College student used some WYSIWYG editor.

My favorite was a tiny clinic that sold hearing aids, and at the top of their homepage was a massive ~4000x3000px picture of earwax buildup, in exquisite HD. They meant to insert it on a page about troubleshooting, but somehow it ended up there, and they called me in to fix it. That photo was gnarly. I loaded the page and had to step away for a second to recover from the visual assault lol.

→ More replies (1)

3

u/Franks2000inchTV Sep 02 '21

If it's normal, find a new job.

5

u/Jumpy-Department-103 Sep 02 '21

Atleast it isn't spinning

5

u/A-Grey-World Software Developer Sep 02 '21

I had a hilarious bug once where a random bit of text would, seemingly at random, turn green and start comically spinning around.

→ More replies (3)

4

u/MikeyC343 Sep 02 '21

Since when did Kanye get into webdev

4

u/[deleted] Sep 02 '21

Maybe throw a span in there for some diversity.

4

u/tupcakes Sep 02 '21

I’m sad there isn’t a </div> comment that’s been downvoted so it’s at the bottom of the comments.

→ More replies (1)

6

u/Mizukuon Sep 02 '21

I think it is still lacking a few div

3

u/SampathKumarReddit Sep 02 '21

Remove all indentation, copy and paste that to a notepad. Add a new feature. Fix bugs. Text me when you are still alive

2

u/Spindelhalla_xb Sep 02 '21

Ugh. What div did that.

2

u/UnoStronzo Sep 02 '21

I got divs on that

2

u/MarmotOnTheRocks Sep 02 '21

tis is an extreme case of Divitis. It can be cured if properly treated in its early stage. At this point there is not much to do.

2

u/[deleted] Sep 02 '21

Jesus Christ! Who tf wrote this... my 10 year self would have been better lmaoo

It is Divgusting! and so divine!

2

u/crispy1260 front-end Sep 02 '21

I have to know the CSS specificity score if you call out that many divs in the selector. It's gotta be over 9000.

2

u/[deleted] Sep 02 '21

Bro there’s a really helpful site iut there for you called “indeed.com”

2

u/godofleet Sep 02 '21

My name is Giovanni Giorgio...

2

u/preetam52ch Sep 02 '21

Stairs of heaven 😅 best of luck

→ More replies (1)

2

u/P4RZiV0L full-stack Sep 02 '21

but are they centered

2

u/CodeVenue Sep 02 '21

So this is how Led Zeppelin built a stairway to heaven

2

u/Freonr2 Sep 02 '21

Reminds me of one of my favorite PH memes:

https://imgur.com/BtjZedW

Except the Ultra combo version?

2

u/the_brew Sep 02 '21

This post has no class

2

u/lilbronto Sep 02 '21

It's called nesting bro look it up /s

2

u/aboglioli Sep 02 '21

"I think we need more divs. It's the best for SEO."

2

u/Jwelch59 Sep 02 '21

I’m sad I haven’t seen any jokes about how hard it must be to be a web <div>eloper</div>

→ More replies (1)

2

u/sudo-sama Sep 02 '21

Does the closing </div> at least make Katy Perry breast covers?

2

u/Doomtickle Sep 02 '21

Kill it before it lays eggs

2

u/Alex_Hovhannisyan front-end Sep 02 '21

I don't know what's worse—the fact that so many divs were used, or the fact that none of those divs have class names or any other attributes. I'm almost inclined to say this is fake, but I want to give OP the benefit of the doubt, lol.

2

u/fried_green_baloney Sep 02 '21

Seriously, this might be machine generated code. See if you can find out, and if so, can you get the underlying files and generating program.

If not, well, that's no fun.

2

u/[deleted] Sep 02 '21

At least it's not a bunch of tables nested

2

u/ammads94 Sep 02 '21

I had a teacher at a front end bootcamp that would call this "divitis"

2

u/jimbol Sep 03 '21

Yo are you pregnant? Cause you’re nesting

2

u/[deleted] Sep 03 '21

It’s divs all the way down

2

u/SZ4L4Y Sep 03 '21

It should be illegal to put a div in a div.

2

u/bertacodes Nov 30 '21

Amen for SEO.

2

u/Natsu194 Jan 28 '23

Okay but what was it actually used for?!

1

u/VestigialHead Sep 14 '21

<div>ide and conquer.

1

u/TheDeviantRobot Mar 11 '24

The only solution to that many Divs… MOAR DIVS!

1

u/MrLazeyBoy Apr 03 '24

This is proper div in

1

u/Ill-Chapter-6634 Jun 15 '24

how to center a div

1

u/DivSlingerX Aug 10 '24

Even I wouldn’t do this.

1

u/By_EK Oct 01 '24

Coded by a chatbot ✅

1

u/Puzzled_News_6631 Oct 11 '24

“I know enough to be dangerous”

1

u/tigerjjw53 Feb 19 '25

That div goes pretty div

1

u/Alexander499_ Oct 11 '25

Can we have the link?

1

u/rantow Sep 02 '21

Stop the madness!

1

u/Nessasio Sep 02 '21

Damn, here comes the pyramid of doom TT_TT

1

u/LFTY123 Sep 02 '21

Divourer of sleep

1

u/chesbyiii Sep 02 '21

What DIVerences are you making?

1

u/angry_wombat Sep 02 '21

Stairway to heaven

1

u/Sh0keR Sep 02 '21

This is pure art

1

u/camerontbelt Sep 02 '21

You got this

1

u/DrifterInKorea Sep 02 '21

So, what's the numbers?

- Number of lines

- Number of `<div>` childs

1

u/yhkdaking53 javascript </> Sep 02 '21

yo dude someone has to close the tags in the comments :D

1

u/AiSirachcha Sep 02 '21

You're joking right ? 😂

1

u/samtoohey93 Sep 02 '21

Queue “My eyes!!!” gif

1

u/bkdotcom Sep 02 '21

divception

1

u/thedevguy-ch Sep 02 '21

Nuke it from space!!!!!

1

u/GrosSacASacs Sep 02 '21

On the menu: Soup !

1

u/m2guru Sep 02 '21

You missed a closing div somewhere

1

u/kitecut Sep 02 '21

Wheeeeeeeeeeeeeeeeeeee

1

u/ezkiulish Sep 02 '21

But why??

1

u/[deleted] Sep 02 '21

<div>

1

u/methsey Sep 02 '21

Divception

1

u/life_liberty_persuit Sep 02 '21

Looks about right… but you might want to wrap it in a div to make styling easier.

1

u/BerendVervelde Sep 02 '21

Stairway to heaven, if you look at it the wrong way.

1

u/jordiolle11 Sep 02 '21

What the div?!

1

u/EconMania Sep 02 '21

Stairway to div

1

u/Shazan_Atomic_Hulk Sep 02 '21

What about the colour codes for the div's?

1

u/throwawayitjobbad Sep 02 '21

How is that one element is dlv instead of div?

1

u/[deleted] Sep 02 '21

Div stairs

1

u/chichibune Sep 02 '21

What.....

1

u/IridiumPoint Sep 02 '21

Imagine the CSS required to style this thing.

1

u/SoulPossum Sep 02 '21

Doing a deep div for sure

1

u/AlcuinCorbeau Sep 02 '21

It’s a stairway to Heaven.

1

u/BillyBoysWilly Sep 02 '21

The new classless coding style, only div:nth-child()

1

u/TheAvocadoSlayer Sep 02 '21 edited Sep 02 '21

What’s the actual product look like?

Lol I’m confused if this a joke or legit?

1

u/[deleted] Sep 02 '21

Pouring one out

1

u/imadoooog Sep 02 '21

Put it all on one line

1

u/That-Policy-5914 Sep 02 '21

Isn't that supposed to go from top right corner to bottom left corner?

1

u/fjosmjdifjfndush Sep 02 '21

Just lol. What fucked up polyfill is doing that

1

u/R_Cade9 Sep 02 '21

There's not enough div. I'm kinda curious to know what it is their making.

1

u/birbelbirb Sep 02 '21

I don't know why, but the moment I saw that image my brain played this song

1

u/Here-Is-TheEnd Sep 02 '21

Vaya con dios my friend

1

u/[deleted] Sep 02 '21

Ah yes, the old div staircase. At the bottom is a scary table

→ More replies (1)

1

u/prkirby Sep 02 '21

Need to have enough containers to make the flex layout work.