tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
frippa@lemmy.ml to Programmer Humor@lemmy.ml · vor 2 Jahren

Yes, I program in HTML

lemmy.ml

message-square
38
link
fedilink
400

Yes, I program in HTML

lemmy.ml

frippa@lemmy.ml to Programmer Humor@lemmy.ml · vor 2 Jahren
message-square
38
link
fedilink
alert-triangle
You must log in or # to comment.
  • Square Singer@feddit.de
    link
    fedilink
    arrow-up
    76
    ·
    vor 2 Jahren

    I recently had to work with XSLT (may it’s inventor burn in hell for their crimes).

    That’s pretty much programming in XML. It’s probably the worst possible thing.

    • Leeennaaaaa@feddit.de
      link
      fedilink
      arrow-up
      31
      ·
      vor 2 Jahren

      XSLT is fine

      If you have a program generate it

      • Square Singer@feddit.de
        link
        fedilink
        arrow-up
        24
        ·
        vor 2 Jahren

        Sadly, it was done manually. I had to migrate it to this brand new bleeding edge technology, Apache Velocity. That’s not great either, but it’s much less terrible than XSLT.

        For that task I had to learn two templating languages at the same time to port it from one to the other. Wasn’t an easy task.

      • aksdb@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        vor 2 Jahren

        Pff. I know someone who generated programs using XSLT.

    • GigglyBobble@kbin.social
      link
      fedilink
      arrow-up
      9
      ·
      vor 2 Jahren

      Can’t even imagine. I’ve got fed up by the short time I had to configure Maven in plain xml…

      • shastaxc@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        vor 2 Jahren

        Is there another way?

        • Square Singer@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          vor 2 Jahren

          Yes, there is: https://github.com/takari/polyglot-maven

          I am just not sure if that’s much better. Maven is just a huge pain in the rear.

    • Hazzia
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      vor 2 Jahren

      deleted by creator

      • Square Singer@feddit.de
        link
        fedilink
        arrow-up
        3
        ·
        vor 2 Jahren

        I totally know that feeling :)

        Well, in the 90s, XML was the future. Luckily, not a lot of this future remains.

        Just imagine what HTML would be like if JSON had been available back then.

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    64
    arrow-down
    2
    ·
    vor 2 Jahren

    This is not HTML. It isn’t even XML. It’s not as bad as designers putting “code” into ads, but it’s close.

    Also, ever heard of XSLT?

    • Leeennaaaaa@feddit.de
      link
      fedilink
      arrow-up
      26
      ·
      vor 2 Jahren

      I mean it’s valid XML

      It’s just not useful

      • Björn@swg-empire.de
        link
        fedilink
        arrow-up
        36
        ·
        vor 2 Jahren

        It isn’t valid XML. No root node.

        • Leeennaaaaa@feddit.de
          link
          fedilink
          arrow-up
          23
          ·
          vor 2 Jahren

          We may just not see it but fair point

          • Trailblazing Braille Taser@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            16
            ·
            vor 2 Jahren

            The editor would need to start counting lines at zero.

          • Björn@swg-empire.de
            link
            fedilink
            arrow-up
            14
            ·
            vor 2 Jahren

            The line numbers show us that we’re seeing the whole file.

            • Leeennaaaaa@feddit.de
              link
              fedilink
              arrow-up
              8
              ·
              vor 2 Jahren

              Oh ur right

              Ew I didn’t notice

              That’s awful

            • Joe_0237@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              vor 2 Jahren

              They only (probably) show us that we are seeing the begining of the file. Also relative line numbing is a thing in vim for example.

        • qaz@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          vor 2 Jahren

          deleted by creator

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          vor 2 Jahren

          Could it be an xml entity (or whatever it’s called) that you reference from another xml file? Do those require root nodes?

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    49
    ·
    edit-2
    vor 2 Jahren

    deleted by creator

    • themusicman@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      vor 2 Jahren

      deleted by creator

    • HardlightCereal@lemmy.worldBanned
      link
      fedilink
      English
      arrow-up
      1
      ·
      vor 2 Jahren

      deleted by creator

    • ram@bookwormstory.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      vor 2 Jahren

      deleted by creator

  • dan@upvote.au
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    vor 2 Jahren

    This reminds me of Apple plist files, which appear to have been invented by someone that doesn’t know how XML works.

    • Diplomjodler@feddit.de
      link
      fedilink
      arrow-up
      9
      ·
      vor 2 Jahren

      Which is true for the majority of all XML files I’ve ever come across in the wild.

      • SubArcticTundra@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        vor 2 Jahren

        I think XML only makes sense if your data is heavily tree-like

        • misterzero@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          vor 2 Jahren

          In that case, why not use JSON?

          • Joe_0237@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            vor 2 Jahren

            because you have a thing against solutions that are both beter and easier

          • SubArcticTundra@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            vor 2 Jahren

            JSON spreads out tree nodes vertically (with all the attributes), whereas in XML it’s usually one node per line, ie. more compact I suppose. This is just my very niche opinion though

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      8
      ·
      vor 2 Jahren

      What even are those?

  • Presi300@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    vor 10 Monaten

    deleted by creator

  • walter_wiggles@lemmy.nz
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    vor 2 Jahren

    You should check out this new project, supposed to be twice as fast as HTML. It’s called XHTML.

    • LinuxSBC@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      vor 2 Jahren

      I thought that was the HTML used by Twitter.

  • Macumba Macaca@feddit.nl
    link
    fedilink
    arrow-up
    12
    ·
    vor 2 Jahren

    Which of these wonderful languages is this? https://en.wikipedia.org/wiki/Category%3AXML-based_programming_languages

  • mathemachristian[he]@lemm.ee
    link
    fedilink
    arrow-up
    13
    arrow-down
    2
    ·
    vor 2 Jahren

    I will never understand how XML came into being when lisp already existed.

    • alokir@lemmy.world
      link
      fedilink
      arrow-up
      26
      ·
      vor 2 Jahren

      I don’t either)))))))))

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        vor 2 Jahren

        (reminds (it (of (story me))))

      • Hupf@feddit.de
        link
        fedilink
        arrow-up
        10
        ·
        vor 2 Jahren

        https://xkcd.com/297/

      • Pipoca@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        vor 2 Jahren

        Would you really rather see <\Foo> than )?

        There’s a reason why most popular languages use } rather than end if or fi. The added verbosity doesn’t actually help people read your code more than e.g. indentation or editors with paren matching or rainbow parens.

  • Loudambiance@kbin.social
    link
    fedilink
    arrow-up
    10
    ·
    vor 2 Jahren

    Is it just me, or does the append statement not indicate where you are appending the “number” element to?

  • simonced@lemmy.one
    link
    fedilink
    English
    arrow-up
    9
    ·
    vor 2 Jahren

    Meanwhile in APL, you just 20 50 60 90, 10

  • DylanJava@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    vor 2 Jahren

    Who ever designed this deserves to be killed.

  • InFerNo@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    vor 2 Jahren

    What color theme is that?

    • SokathHisEyesOpen@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      vor 2 Jahren

      Looks like Vampire.

  • Joe_0237@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    vor 2 Jahren

    someone should make lisp but with html syntax

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 16 users / day
  • 349 users / week
  • 1.59K users / month
  • 6.62K users / 6 months
  • 846 local subscribers
  • 40.5K subscribers
  • 1.96K Posts
  • 40.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org