- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
This is probably good for a small company that entirely outsources its customer facing IT (or an academic environment). I'm building something like this using templates that are edited using forms so that the PHBs/faculty who will be "maintaining" the site after the development contract ends can do so without having to look at any code. The db has an overlying metdata framework so that new tables, fields, and relationships can be defined without having to use SQL (like a poor man's Access linked to Crystal). Reminds me of the "web page wizard" that Geocities used to have in the 1990s for people who didn't know (and couldn't/wouldn't learn) HTML.
Admin
Woo hooo... My submission is a daily wtf classic [:D]
Admin
Yeah. I guess it was funny the first 50 times, should be just as funny the next 1000.
Admin
Admin
You're joking? Performance? If you want performance get your schema right, get your queries tuned like crazy (his query doesn't look like the fastest guy in town so that alone is killing the performance argument). This is where you'll save a lot of time. Then use caching a lot if it's still slow, and to generate the html just use a basic programming laguage that's fast with strings (perl, or even C if you feel like hurting yourself); but don't do that piece of WTF sqlHTML.
(sorry for the double post, the previous message's html was bad).
Admin
sorry for the html horror above, apparently safari on os x is not the tool of choice for this site (quire ironic wtf in itself).
Admin
It's okay, DailyWTF hates equally on all browsers. The stars and planets have to be aligned just right for quotes to work.
Admin
LOL Just whatever you do, play it safe and don't preview or go into HTML mode.
Type what you need, and hit Post. Although maybe I've just been lucky so far - I haven't even tried the emoticons or fonts yet...
Admin
<font size="2">so, by intentionally using the wrong tool(s), you create a maintenance nightmare?</font>
Admin
Why not even store the webserver in the DB while you're at it... keep it all in the same place.
On a side note: Using my keen powers of reading... I can see that you may have missed the point [:)]. These are 'classic WTF' posts... i.e. ones which have been posted before. So, to semi-quote yourself... You may want to read the OP before replying [:D].
Admin
Just stay away from Preview and all will be fine.
I eagerly await the system that will allow me to use all web-languages in a single file. I'm assuming this would start with the SP's, from where I can write ASP, which writes the XHTML, JS and CSS, or the XML and XSLT, depending on your Xual orientation.
Admin
Reminds me of a classic dilbert
PHB:I think we should build an SQL database
DILBERT:
DILBERT:What colour do you want that database
PHB:I think mauve has the most RAM ....
Admin
<sigh> sorry about that, I really don't like this forum software much (even though the forum itself is great :) )
it should have read ....
Reminds me of a classic dilbert
PHB:I think we should build an SQL database
DILBERT:<thinks:Does he understand what he said or is it something he saw in a trade magazine ad?>
DILBERT:What colour do you want that database
PHB:I think mauve has the most RAM ....
Admin
Hum... You quoted me wrong. That comment does not belong to me. Below is the actual comment:
Admin
It doesn't do web languages, but SWIG lets you mix C, C++, perl, python, ruby, scheme, and a dozen other languages in the same file (including php, so I suppose you could mix XHTML, JS, CSS, and XML if you really tried). Trust me, just C++ and python mixed in the same file looks like a WTF, I'd hate to see someone actually try to mix everything SWIG can do in one file. (Swig gives some provision for serarating the languages, but it is a little more complex than necessary for just two)
Admin
I would love to see cached blobs. That would be funny. An 'awe'some performance tip from you there.[^o)]
Admin
No, no, no. We've been over this before. You need to sacrifice a dozen live virgin chickens at the stroke of midnight during a blue moon.
Admin
Now storing your HTML (template) in a database is faster than reading it from disk, assuming your system lacks good caching (which IIS5&6 do well by default, but *NIX/Apache needs to be configured).
Of course this guy isn't storing his template, he's storing html pieces, this is definetly my top 3 bad ideas I've ever seen on here.
Admin
That actually makes a bit more sense; it's not uncommon to send emails as the result of a scheduled SQL job, and if you want HTML emails, that's pretty much the way to do it.
When you've got an actual web-server involved, on the other hand, you might as well use it.
Admin
Huh?
Admin
I too love how people mock that which they do not understand. For instance, those who do not undertand that if they need to do something so HEINOUSLY UGLY in order to get decent performance in a simple web application, that their basic architecture is probably boned beyond belief.
We all know that the proper way to improve performance requires:
1 barrell of live chickens.
A dark and cloudy night.
A very sharp knife.
A large plastic sheet.
Admin
Firstly, there's a world of difference between generating "some" of your HTML code, and "all" of it, which this guy appearently did. And while I have no clue when this project you speak of took place, I'm left thinking that your employer let you work in this for how long, paying you how much, leaving him with something that may work, but is a horrid mess, rather than just taking what he speant on you and upgrading the webserver so that it can do what it's suppose to?
Admin
Whoops, shame on me indeed !
Admin
don't cache blobs, just cache whatever makes sense, might save you some joints here and there, or couple of db calls.
Admin
Programming code posted as images? WTF?
Admin
well, hey!
"It seems like the code of this thread is being made fun of.
Gosh, does that mean all of my previous HTML generation through SQL batch scripts(not even in Sproc form) are to be made fun of? Ah~~~"
Said one of old friends' of mine.
Admin
the LOB types are in fact a part of the most recent SQL standard.
As for the rest: It deserves to be mocked. Mercilessly. If your middle tier host is slow, you - tadah - GET A FASTER MACHINE! You don't change your system architecture to something less maintainable! If you can't get a faster machine, it's either a toy project (where WTF rules don't really apply) or a serious management WTF.
Admin
Whether you do the ugly string concatenation in a PL and load off only the DB queries to SQL or just do everything in SQL, really doesn't matter. If the PL is only used to glue strings together, and SQL, which you need anyway, can do that itself, where's the need for the PL and the "middle tier"?
Now presenting such a "middle tier" that just tacks strings onto each other while doing no real work would be a true WTF... if that sort of code wasn't so damn easy to find.
Admin
Hmmm, the only problem I see is that comments are missing.
Admin
I guess you never worked with IBM's Net.Data? pretty much what this is!
Admin
i've done the same thing too
shame on me
but not full tables, just <a> links, or <input buttons
Admin
Hi
Admin
Admin
Крутой заработок без вложений,первые деньги уже сегодня! https://vk.cc/c3Rmmr