this post was submitted on 05 Jul 2024
855 points (97.9% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] manucode 120 points 2 years ago (29 children)

It uses XML-like syntax:

<fun>
  <name>sum</name>
  <in>
    <int>foo</int>
    <int>bar=0</int>
  </in>
  <out><int>foo+bar</int></out>
</fun>
[–] VitaminF@feddit.org 46 points 2 years ago (8 children)
<fun>
  <name>sum</name>
  <in>
    <int>
      <name>foo</name>
    </int>
    <int>
      <name>bar</name>
      <default_value>
        <int>0</int>
      </default_value>
    </int>
  </in>
  <out>
    <int>
      <calculation>
        <numerical_operation>
          <operator_plus>
            <operand>
              <var>foo</var>
            </operand>
            <operand>
              <var>bar</var>
            </operand>
          </operator_plus>
        </numerical_operation>
      </calculation>
    </int>
  </out>
</fun>
[–] manucode 13 points 2 years ago (2 children)

How did you come up with such a ****ingly stupid syntax?!

[–] hedgehog@ttrpg.network 19 points 2 years ago (1 children)

They probably have experience with Spring

[–] VitaminF@feddit.org 10 points 2 years ago (1 children)

I imagined what an Elasticsearch query style Python XML syntax would look like.You must share my pain.

[–] luciferofastora@lemmy.zip 7 points 2 years ago

That's grotesque and you have my condolences

load more comments (5 replies)
load more comments (25 replies)