- 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
In all the years of me doing software, I never thought of doing this trick, even as a joke. I guess I learned something today? 🤣
Admin
In some ways, the worst part is that
would have worked.
Pity also that the RGB code for the colour in the style given is COCOCO and not C0C0C0...
Addendum 2023-12-07 10:01: Ugh... ((hr style="color=#COCOCO"))
Admin
on
tag to define thematic changes in the content ...
and
element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.
Item #2 is key to controlling the visual aspect [in CSS] while item #1 defines the semantic reason (i.e. there are other ways to get a horizontal line)
Admin
It's missing some Javascript to adjust the font size until the rule is approximately the correct overall width to fit the page space as supplied by the browser.
Admin
You can also use font-weight:bold to get a thicker line :)
Admin
</notfrist>
Admin
Yeah, there's one catch.
actually spans to 100%, you cannot do that with underscores.
Addendum 2023-12-07 11:12: Ha, funny, the tag actually translates here :-)
Admin
Am I the first person to recognize that <hr /> is the horizontal rule tag, not <br />? br is a line break.
Addendum 2023-12-07 12:03: Edit: oh, looks like just most people accidentally posted a real hr, lol.
Admin
Brrrr!
Admin
Soooooo.... dissing on HTML "users" means that it counts as programming again?
Admin
What I love about these WTF COD is the intrinsic imagination of the authors trying to get a specific job done by any means.
There's some spirit in that.
Sure, contempt is a possible way to see these. OTOH I've written some code that clearly showed that I had no idea how to solve a specific task only to find later there were way better ways to do it.
(Contempt and head shaking is however perfectly reasonable when someone continues doing it the wrong way after being shown how to do it properly)
Admin
@Ralf: For sure the majority of our TWFs really show that our industry utterly lacks any kind of organized training plan, and damn near everyone just picks up by osmosis and imitation knowledge about some random fraction of the languages and tool they use. And even less knowledge of tools thay don't use, but could to great advantage.
In everyone's defense, the state of the art has undergone continuous wrenching change since I started in the 1970s and had already gone through a couple of revolutions before then. OTOH, the "Do it cheaper and faster with barely-skilled labor so therefore half-assed" mantra of our industry's management sorta forces the workers into this defective mold. No matter how much time and money is wasted unnoticed by that same clock- and budget-watching management's decisions.
Every dev from every shop both great and small probably ought to spend about 2 months per year in full time training. To close the gaps and to keep up with the ever moving leading edge of tools & techs. Not gonna happen of course, but IMO that's what would be needed to get us past the stone-age handicrafted (read "bodged-up") crap our industry mostly produces now.
Admin
Coco-brrrr!
Admin
I think it says something about me that my gut response to the variant numbers of underscores for each instance was to consider how I might solve the problem with a client-side javascript function fed by an UnderscoreCt parameter--
but, phooey, you could still break that by feeding the wrong number each time. So it would have to be governed by a const global instead... :)
Admin
Marquee rocks at his time. Now you'll get stuck or have to mess with a lot of lines of CrossSh.tSchema to achieve the same