Comment On Boxes And Boxes Of Boxes

Cascading Style Sheets are an excellent tool used by web developers to put the repetitive formatting details -- font Tahoma, color Mauve, weight Bold, etc -- in a single, easy to maintain place. Of course, no developer actually expects to work on a site that utilizes them. But still, it's comforting to think that maybe, one day, one of us just might be lucky enough to come across that one client who actually uses them somewhat properly. [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Boxes And Boxes Of Boxes

2006-10-03 14:19 • by mrprogguy

While I can't say that I haven't built classes that encapsulated HTML tags (and aggregated them), I can surely say that I haven't done that.

I'd almost suspect some sort of code generator to be in use here--other than a human being, that is.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:19 • by Fluffy
The reason Im a gamedev instead of a web... whatever. ;)

Re: Boxes And Boxes Of Boxes

2006-10-03 14:21 • by J
Ah, if only they used Frontpage :).

Re: Boxes And Boxes Of Boxes

2006-10-03 14:23 • by Frequency

 

captcha: truthiness 

Re: Boxes And Boxes Of Boxes

2006-10-03 14:23 • by EV
I have to admit... I sincerily RESPECT the person who can write such code and actually finish it, making it do something remotely what it should do...

Re: Boxes And Boxes Of Boxes

2006-10-03 14:23 • by ammoQ
maybe deliberate obfuscation?

Re: Boxes And Boxes Of Boxes

2006-10-03 14:24 • by Saladin

Alex Papadimoulis:
function BoxB66()
    response.Write ("</table>")
    'response.Write ("</td></tr>")
    'response.Write ("</table>")

    call BoxBEnd()
end function

This alone makes me scared to think of what the rest of the application looks like.

Are the concepts of "using names that make sense" and "not burying the actual functional code behind thirty layers of obfuscation" completely lost on some people?  Call me crazy, but if I'm designing a system, I want to be able to...you know...remember what the hell a certain function is supposed to do, much less make sure that anybody else that might inherit my project be able to figure out as much without spending three weeks following the spaghetti.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:26 • by KattMan

function BoxB66()

Wow, shall we call this the BINGO programming pardigm?  All you need is boxO78 inside G65 withing N57 contained from I34 inherited by B12 and you will have a working one cell one row grid.  Want two rows, you need box G71 instead.  Of course none of this will be commented and you are only allowed to stick boxes together in the order they are called by the random box picker.

Captcha=random as in randomly add boxes until you spell BINGO

Re: Boxes And Boxes Of Boxes

2006-10-03 14:28 • by kuroshin
94205 in reply to 94202
Looks like a job for AutoCAD.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:28 • by JamesB
94206 in reply to 94201

Anonymous:
I have to admit... I sincerily RESPECT the person who can write such code and actually finish it, making it do something remotely what it should do...


 

I too respect the person who CAN do this.  I hate the person who WOULD do this though.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:29 • by Mike Stone
Alex Papadimoulis:

Cascading Style Sheets are an excellent tool used by web developers to put the repetitive formatting details -- font Tahoma, color Mauve, weight Bold, etc -- in a single, easy to maintain place. Of course, no developer actually expects to work on a site that utilizes them. But still, it's comforting to think that maybe, one day, one of us just might be lucky enough to come across that one client who actually uses them somewhat properly.

That first paragraph is priceless and had me in stitches.

As for the rest:-

AAAAAAAAAAAAAAAAAAAAARGH!

(Sorry for the shouting.) 

Mike (part-time but standards-compliant web developer) 

Re: Boxes And Boxes Of Boxes

2006-10-03 14:30 • by R.Flowers

I'm used to seeing WTFs that are the result of

  • laziness
  • incompetency
  • ignorance

But to do this...  It actually would require hard work, and maybe reams of notes, to produce a simple web page.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:31 • by Beavis

Heh, that's pretty bad. However...

 I once worked at a company that had been doing fairly large scale web development since 1994 or so - certainly one of the first on the scene. While I didn't get there until several years later, it was obvious they hadn't moved too far from their roots. They used such modern niceties as Oracle Pro*C, including compiled (custom - eg not perl, php, etc) binaries to run certain websites. But one of their better innovations was a scripting language developed in house (more or less like PHP), coupled with another in-house pseudo-scripting/templating language that let designers work on pseudo-valid HTML pages without breaking the developers' code. Oh, and lest I forget, there was yet another in-house scripting language that was just like the first one, except using reverse polish notation. Apparently the "Tools Development Guru" found this method much more elegant than the original.


Anyway, for my first project there, I was charged with making a few small changes to an order form. This required changing the reverse scripting language code, since this generated the regular scripting language code. I forget exactly why this was "necessary", but the basic premise was that it took less time to do it this way than to write in the normal scripting language in the first place. Then (you saw this coming, right), the "normal" scripting language code generated the pseudo-scripting/templating language code. In other words, the whole point of this last scripting language was so that designers could work on the pages without breaking them, but, the templating code wasn't actually generated unless you ran the entire application....I wtf'ed my way out the door a few months later.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:36 • by 4tehwin!!!
now THAT is enterprisey

Re: Boxes And Boxes Of Boxes

2006-10-03 14:37 • by Zemyla
94211 in reply to 94204

The goggles, they do nothing!

This image expresses how I feel about this.

 

The only way this could be kept track of is if it was automatically generated, but who the blazing heck would write a system to generate code like this? 

Re: Boxes And Boxes Of Boxes

2006-10-03 14:42 • by Someone
94213 in reply to 94201

Just curious - if this was a Java/C++/C#/... IDE, you could just ctrl-click your way from one 'function' to the next, regardless of the useless names.

Does such a beast exist for this sort of 'code'?

Re: Boxes And Boxes Of Boxes

2006-10-03 14:45 • by BG
No doubt a mainframe programming background.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:47 • by Todd Hile-Hoffer
As an asp.net developer, at my current position all of our style info is located in css files in one or more of our app_themes! So some of us actually do use css properly. Of course, ASP.Net 2.0 makes life so easy that I often run out of work to do.  Include files are poo. I feel bad for the poor guy who has to maintain that site.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:49 • by Rank Amateur
Alex Papadimoulis:

...

<!--#INCLUDE FILE="includes/box0.asp" -->

<!--#INCLUDE FILE="includes/box.asp" -->
<!--#INCLUDE FILE="includes/box2.asp" -->
<!--#INCLUDE FILE="includes/box3.asp" -->
<!--#INCLUDE FILE="includes/box6.asp" -->
[ ... snip ... ]
<!--#INCLUDE FILE="includes/boxF.asp" -->

But the boxes are numbered in hex. Doesn't that prove the original developer was a real programmer to whom we all must bow down?

--Rank

Re: Boxes And Boxes Of Boxes

2006-10-03 14:50 • by Digitalbath

It's not so bad...I did the same thing once.  I kept forgetting what the stupid closing tag for <table> was, so I just wrote up a super neat function to remember it for me.  Just in case...</sarc>

Re: Boxes And Boxes Of Boxes

2006-10-03 14:52 • by Jeff S
94223 in reply to 94208
R.Flowers:

I'm used to seeing WTFs that are the result of

  • laziness
  • incompetency
  • ignorance

But to do this...  It actually would require hard work, and maybe reams of notes, to produce a simple web page.

I actually kind of disagree ... I think that most of the time, the person creating the WTF is working a hell of a lot harder than the person simply using best practices.  That's kind of the very definition of what a WTF is:  doing things that are simple in a very unnecessarily complicated and convoluted way.

Re: Boxes And Boxes Of Boxes

2006-10-03 14:54 • by CoderDude
<table type="wooden">
    <script>
      TakePicture();
   </script>
</table>

Re: Boxes And Boxes Of Boxes

2006-10-03 14:57 • by savar
94228 in reply to 94197

Anonymous:
The reason Im a gamedev instead of a web... whatever. ;)

 

Where do you work/what have you worked on??

 

Game development always interested me but I hear its very competitive and my math skills aren't up to snuff.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:02 • by themagni
94230 in reply to 94202

ammoQ:
maybe deliberate obfuscation?

That's what I thought: some PHB said, "Oh, and make sure that nobody can steal our web page. I don't care what you have to do, but make sure that our competitors can't just steal our source code."

 

CSS?

2006-10-03 15:02 • by ben

What on earth does CSS have to do with any of this? The first paragraph might as well discuss the mating habits of the aardvark for its relevance to the code.

 

 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:04 • by Alexis de Torquemada
Wow. That's worse than GIF webpages!

Wait - that's XHTML Transitional with a correct DOCTYPE. Laudable! Doesn't validate though.

Disclaimer: If this posting looks fucked, itt's because TDWTF does not allow me to preview using Firefox on Mac OS X. *grrrr*

Re: Boxes And Boxes Of Boxes

2006-10-03 15:04 • by anonymous
94233 in reply to 94222

Obviously, the original developer had built a framework, which, if Philip had been smart enough to understand, would have made everything very easy.  Also, the OD probably thought, anyone who wasn't smart enough to understand the framework, would be frightened away from the code and, therefore, stupid people wouldn't touch it and the code would work forever.

Unfortunately for the OD, poeple like Philip have nothing better to do than plow into things which they do not understand.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:05 • by foonly
94234 in reply to 94203
Saladin:

Alex Papadimoulis:
function BoxB66()
    response.Write ("</table>")
    'response.Write ("</td></tr>")
    'response.Write ("</table>")

    call BoxBEnd()
end function

This alone makes me scared to think of what the rest of the application looks like.

Are the concepts of "using names that make sense" and "not burying the actual functional code behind thirty layers of obfuscation" completely lost on some people?  Call me crazy, but if I'm designing a system, I want to be able to...you know...remember what the hell a certain function is supposed to do, much less make sure that anybody else that might inherit my project be able to figure out as much without spending three weeks following the spaghetti.

 

I think it's pretty clear that obfuscation is the point in this case.  The designer wanted job security.  I am kind of curious what is in BoxB01 - BoxB65, tho.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:07 • by Anna Knee Mouse
Little boxes on the hillside
Little boxes made of tickytacky
Little boxes on the hillside
And they all look just the same.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:13 • by mouseover
94237 in reply to 94219

Anonymous:
As an asp.net developer, at my current position all of our style info is located in css files in one or more of our app_themes! So some of us actually do use css properly. Of course, ASP.Net 2.0 makes life so easy that I often run out of work to do.  Include files are poo. I feel bad for the poor guy who has to maintain that site.

Sounds like a job ripe for outsourcing. 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:14 • by jkandrach
94238 in reply to 94223
That or it started out as a good idea to the developer and just became insanely WTFish to keep up with.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:16 • by Alexis de Torquemada
94241 in reply to 94222
Digitalbath:

It's not so bad...I did the same thing once.  I kept forgetting what the stupid closing tag for <table> was, so I just wrote up a super neat function to remember it for me.  Just in case...</sarc>

<elbat>

<elbat>

WTF?! This works fine in bash, whysn't it work in HTML?

Re: Boxes And Boxes Of Boxes

2006-10-03 15:16 • by pete
94242 in reply to 94233
Anonymous:

Obviously, the original developer had built a framework, which, if Philip had been smart enough to understand, would have made everything very easy.

 

Admit it, you are the original developer 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:17 • by Dazed
94244 in reply to 94211
Anonymous:
The only way this could be kept track of is if it was automatically generated, but who the blazing heck would write a system to generate code like this?



If there was any justice in the world the perpetrators of things like this would be identified on the web with name and photo, so that they could be avoided like the plague. Also in the interests of justice they would be allowed - nay, required - to write a short piece explaining what on earth was going through their head at the time. At worst it would provide some more unintentional humour.

I fear I may have encountered the birth of a similar mess. It's an authoring tool that generates HTML. Well, supposedly it does. It mainly generates Javascript which then extrudes some HTML-like stuff. I can envisage an economy measure scrapping the licences for said tool, and some poor sod having to maintain the generated mess. Oh and of course it's all frames-based, so on an Intranet containing thousands of pages, no-one can bookmark anything.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:20 • by Pizon
A Rube Goldberg device for generating a web page.  Fascinating.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:21 • by sVB_Enterprise_Specialist

The real WTF TM is that this system didn't grind to its knees in production!  If this page/site literally loaded up hundreds of files from the web server (IIS?), per page request, the I/O must have been horrible.  To what level will IIS/Apache handle these nested file loads... before performance is as exciting as mud?

 

If I understand correctly, none of this could even be cached, because each included file is also processed (e.g. not a static include)

 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:25 • by GoatCheez

<sarcasm>

The true WTF is that there is a box.asp as opposed to a box1.asp. I mean, C'MON ppl!

</sarcasm> 

...

...

...

Lately I've found that I have not much to say? Bheh.
 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:30 • by Kooky Koder
94250 in reply to 94246

They missed the meeting on "thinking outside of the box"!

captch=whiskey  = what the dev had way too much of...
 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:31 • by anonymous
94251 in reply to 94242
Anonymous:
Anonymous:

Obviously, the original developer had built a framework, which, if Philip had been smart enough to understand, would have made everything very easy.

 

Admit it, you are the original developer 

 

And, of course, the framework can't be documented, because that would spoil the "IQ Test" property of the framework.

Re: Boxes And Boxes Of Boxes

2006-10-03 15:33 • by HitScan

This reminds me of a website redesign I've seen lately. All of the pages used asp so I assumed "Hey, maybe it'll be DB based, or time sensative, or something dynamic." As it happens, they just didn't know about server side includes, and also thought it was easier to change "<%dim PageTitle = "page title"%><title><% = PageTitle%></title>" than to just change the title...

 

Sometimes I hate websites. 

Re: Boxes And Boxes Of Boxes

2006-10-03 15:52 • by cconroy
94255 in reply to 94237

> look

 You are in a maze of nesty little boxes, all alike.

> wtf?

 Talking to yourself is a sign of impending mental collapse.

> wear goggles

 They do nothing. 

> hide under desk

 It is dark. You are likely to be eaten by a grue, or possibly a project manager.

> quit

 If only it were that simple. You are in a maze of nesty little boxes, all alike...

Re: Boxes And Boxes Of Boxes

2006-10-03 15:55 • by merreborn's nemesis
94256 in reply to 94197

Anonymous:
The reason Im a gamedev instead of a web... whatever. ;)

 

We all wish we could be game devs ;)  or at least I do, but that doesn't remove all stupidity!

 

Though I have to agree with you:  web programming == stupid

It's like someone deliberately made internet languages retarded.  What's the point of having structured code if you are required to utilize 400 languages???

 

hahaha:  CAPTCHA:  paula (like the bean!)

Re: Boxes And Boxes Of Boxes

2006-10-03 16:03 • by SHO
94257 in reply to 94235
Anonymous:
Little boxes on the hillside
Little boxes made of tickytacky
Little boxes on the hillside
And they all look just the same.

Weed obviscation

Re: Boxes And Boxes Of Boxes

2006-10-03 16:06 • by Kai MacTane
94259 in reply to 94211

Zemlya wrote:

>[image of Magic: the Gathering card, with "the Goggles" as a Legendary Artifact]

I can't believe nobody has yet commented on how fabulous that image is. I want to rejoin an M:tG group and get a physical, real-world card like that, jsut so I can play it in the middle of a game and have everyone go "OMGWTFBBQ?" .

I want to have that Magic card's babies. It is that cool.

 

Re: Boxes And Boxes Of Boxes

2006-10-03 16:09 • by John Bigboote

What's the generally-accepted programming term for the idea that a process that begins in one file or function should complete within the same file or function?

 'Cause this dude just reminded me of why that concept is not to be trifled with.
 

Re: Boxes And Boxes Of Boxes

2006-10-03 16:17 • by merreborn's nemesis
94262 in reply to 94260

John Bigboote:

What's the generally-accepted programming term for the idea that a process that begins in one file or function should complete within the same file or function?

 'Cause this dude just reminded me of why that concept is not to be trifled with.
 

 

The generally-accepted programming term is:  sanity! 

Re: Boxes And Boxes Of Boxes

2006-10-03 16:19 • by ParkinT
H T M HELL!

Re: Boxes And Boxes Of Boxes

2006-10-03 16:22 • by Ghost Ware Wizard

oh swell - open the box containing the box of the box based on this boxes' internal box

I ran into a index card once: similar scenario but you had to shuffle the index cards

whenever you wished to edit/delete information where some of the indexed cards were marked "do not use, use index card [parameter].  so you ended up shuffling, and shuffling, and shuffline, to input basic contact information where each index card updated the database in the codebehind of the web page holding the index card.  All of this in the web paradigm of server side execution vs. client side execution.

:)

Re: Boxes And Boxes Of Boxes

2006-10-03 16:31 • by emurphy
94265 in reply to 94220
Rank Amateur:
Alex Papadimoulis:

...

<!--#INCLUDE FILE="includes/box0.asp" -->
<!--#INCLUDE FILE="includes/box.asp" -->
<!--#INCLUDE FILE="includes/box2.asp" -->
<!--#INCLUDE FILE="includes/box3.asp" -->
<!--#INCLUDE FILE="includes/box6.asp" -->
[ ... snip ... ]
<!--#INCLUDE FILE="includes/boxF.asp" -->

But the boxes are numbered in hex. Doesn't that prove the original developer was a real programmer to whom we all must bow down?

--Rank

 

I'd bet even odds that there's a boxG.asp somewhere in there.

 

Re: Boxes And Boxes Of Boxes

2006-10-03 16:36 • by Harry

 

This is the work of a true genius! Clearly whoever put this site together wrote a templating system that generated this code from a high level page description language, and when laid off took the template system with them to tweek the employer.

 The original page definition code was probably something like:

\set {theme=catalog}
\set {pagination=true}
\include {navigation=rightside}
\table { \row { "A","b","c,"d","e" } , {next.catalog{rows=30}} }
\include {footer}

Editing the pages theselves is like trying to edit a sendmail.cf file when you should be editing the .mc file. The problem in this case is that you don't have m4.

 

« PrevPage 1 | Page 2 | Page 3Next »

Add Comment