• (nodebb)

    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? 🤣

  • (nodebb)

    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"))

  • TheCPUWizard (unregistered)

    on


    1. Use the
      tag to define thematic changes in the content ...

    and

    1. The
      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)

  • (nodebb)

    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.

  • (nodebb) in reply to dkf

    You can also use font-weight:bold to get a thicker line :)

  • Randal L. Schwartz (github)

    </notfrist>
  • (nodebb)

    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 :-)

  • matt (unregistered)
    Comment held for moderation.
  • The MAZZTer (github)

    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.

  • Duke of New York (unregistered)
    Comment held for moderation.
  • (nodebb) in reply to dkf
    Comment held for moderation.
  • (nodebb)

    Brrrr!

  • Your Name (unregistered)
    Comment held for moderation.
  • Officer Johnny Holzkopf (unregistered)
    Comment held for moderation.
  • DeeKay (unregistered)

    Soooooo.... dissing on HTML "users" means that it counts as programming again?

  • (nodebb)

    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)

  • hasseman (unregistered)
    Comment held for moderation.
  • Kell S (unregistered)
    Comment held for moderation.
  • (nodebb)

    @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.

  • Erk (unregistered)

    Coco-brrrr!

  • Someone Else (unregistered)
    Comment held for moderation.
  • (nodebb)

    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... :)

  • enkorvaks (unregistered) in reply to DeeKay
    Comment held for moderation.
  • Drak (unregistered)
    Comment held for moderation.
  • Cole (unregistered)

    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

Leave a comment on “A Nice Break”

Log In or post as a guest

Replying to comment #:

« Return to Article