• Anon (unregistered)

    It's truly a thing of beauty, at least if you don't know what beauty is and thing it means something horrible.

    *think

  • Debra (unregistered)

    It needs to be synchronized as I'm sure that, with spaghetti like that, connectionManager is used by different threads at once, and "synchronized" is the only string of hope that's keeping it together.

  • (nodebb)

    I was going to write that they had clearly separated their concerns, but only with line feeds. The first line is presentation layer. The second line is (excluding try {) database layer.

    But then things fell apart with the while loop.

  • (nodebb)

    I guess a sufficiently motivated programmer can write PHP in any language.

    Speaking of languages, I can't figure out what language the author of this code speaks. Even with lots of non-English clues like StocTotGest, den, Denumire, Cant, PretVanz, um, pret_vinz, stmarfzi_poli, and teo, I can't find a language where all of these words have meaningful translations, at least if Google Translate is to be trusted.

    Addendum 2024-12-03 08:49: teo is probably just a typo for two, given that we have threeDecimalPlacesFormat right above teoDecimalPlacesFormat

  • LZ79LRU (unregistered) in reply to adamantoise

    He could be multi lingual. There is more of us that speak 5+ languages than you'd think.

  • Vera (unregistered) in reply to adamantoise

    Looks like abbreviated German to me.

  • Officer Johnny Holzkopf (unregistered) in reply to Vera

    Sorry, doesn't even remotely match anything German one could abbreviate (and that still makes a little bit of sense)... "Stoc" could be short for "Stock", so maybe "StocTotGest" = Stocktotengestein, den, yes, Denumire... un-numerate or (d)enumerate, poor Latin, Cant... there aren't german words starting that way... Cantrullalla, the name of the product we're selling, Pretnisolonwanzenmittel, um... um was zu tun? To do what? Pretnisolon-Winzer, Starkmarzipanfolienzieh-Politur, and finally Theo. And it's actually Prednisolon, but they who writes "two" as "teo" might also have further interesting spelling preferences.

  • (nodebb)

    The HTML is also wrong, as header fields are output with td tags, instead of th.

    If you're going in that direction, you might as well criticize the lack of THEAD and TBODY elements as well.

  • Leah (unregistered)

    I've also seen this type of stuff in the .net asp.net world, both .net framework (web forms) and the new stuff (core and .net8). And wiht the new MVC (model view controller) paradigm, many young devs are skipping the layers altogether as the examples don't even bother doing that anymore.

  • Nick J (unregistered)

    Never mind about the SQL injection vulnerability!

  • Conradus (unregistered) in reply to Officer Johnny Holzkopf

    It seems to be a mix of German and French, actually.

  • Álvaro González (github)

    I guess a sufficiently motivated programmer can write PHP in any language.

    PHP is bad because you can write bad code. Java is good because you can write good code.

    Next week we'll talk about women drivers.

  • OldCoder (unregistered) in reply to Álvaro González

    Ah, but has Linus made them into a kernel module yet?

  • (author)

    I believe, based on the submitter, that it's Romanian.

  • MRAB (unregistered)

    "Denumire" is Romanian for "name", but "stmarfzi_poli" has me stumped.

  • dusoft (unregistered) in reply to Álvaro González

    Yeah, that kick against PHP was really uncalled for.

  • (nodebb)

    Haven't seen HTML like this since the 90ies! Though, I am disappointed, the code didn't also contain JavaScript to be run at the "presentation level"... preferably in seven layers of wrapped iframes! I've been to the seventh layer, and I'm not sure that I'm back yet...

  • Álvaro González (github) in reply to Erik

    Now you mention it, I worked in a project like 2 or 3 years ago that heavily used JSP to emit JavaScript code that would in turn produce the final HTML. It was worse than the worst classic ASP you could find 25 years ago, but having to wait several minutes to compile and see the results.

  • jiyubjj (unregistered)

    "Such a fun and creative way to layer outfits! The ‘spaghetti’ style is playful yet stylish. Any tips on how to balance different textures when trying this look?"

    https://jiyubjj.com/

  • Duke of New York (unregistered)
    Comment held for moderation.

Leave a comment on “Layered Like Spaghetti”

Log In or post as a guest

Replying to comment #:

« Return to Article