203 points

all lines not terminated by a single space are comments

permalink
report
reply
83 points

There’s a special place in hell for you

permalink
report
parent
reply
50 points

Also each line starts with a semicolon and you have to escape spaces in strings using a double forward slash

permalink
report
parent
reply
46 points

I realized a while ago that there’s nothing stopping me from writing rust like this

;println!("This is great")
;println!("I think everyone should write rust like this")
;println!("Probably works in most languages that use semicolons")
;
permalink
report
parent
reply
13 points

Also a spicial place in hell for you

permalink
report
parent
reply
3 points

hope you don’t forget the semicolon on a line by itself at the end (except in functions where you want to return the value of the last expression)

permalink
report
parent
reply
3 points

Nasm programmers probably think that is old code that you commented out.

permalink
report
parent
reply
118 points

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>
permalink
report
reply
61 points

This deserves to be added to the list of human rights violations

permalink
report
parent
reply
45 points
<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>
permalink
report
parent
reply
13 points

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

permalink
report
parent
reply
18 points

They probably have experience with Spring

permalink
report
parent
reply
6 points
*

Welcome to the world of abusing the shit out of Ant. My first full time job was developing Ant in unholy ways. Tens of thousands of lines of Ant at least, doing significant logic. If-then-else, for loops, math, procedures, date-time math. I stuck it out for a year. It was a year too long.

permalink
report
parent
reply
1 point

Thankfully we have Gradle now.

permalink
report
parent
reply
30 points

The whitespace is not only required, but it must be tabs and spaces.

permalink
report
parent
reply
10 points

Calm down, Satan

permalink
report
parent
reply
8 points

Compiler rolls the dice if your only required indentation is accepted as space or tab. Per line.

permalink
report
parent
reply
2 points

But stores this information as a metadata file, which gets invalidated when a new file is added/removed from the program muhahaha!

permalink
report
parent
reply
18 points

Can you please link to a medium article on how this will help utilize AI blockchain so i can show it to management on Monday?

permalink
report
parent
reply
18 points

I like it, this is clearly very enterprisey and solution focused, but I would like to suggest a couple of amendments if I may?

  • Namespaces We should make full use of namespaces. Make the structural tags be in a language specific namespace (to be referenced in every function spec, obviously) but change the in an out params to use the parameter name as the tag, namespaced to the function they’re for, with a type attribute.

  • In memory message queues Have all function invocations be marshaled as xml documents posted to an in memory message queue. Said documents should use a schema that validates the structure and a function specific schema to validate the types of arguments being passed. Namespace everything.

I reckon we could power a medium sided country if we could generate energy from the programmers despair.

permalink
report
parent
reply
9 points

Make sure to make ample use of mixed content elements.

<statement><var>bar</var> = <int>0</int></statement>
permalink
report
parent
reply
3 points
statement: 
  comparison:
    - kind: libcompare.EQUALS
      comparators:
        - foo
        - bar
      whentrue:
        statement: 
          streaming: 
            - kind: libstreams.PRINT
               content: foo equals bar
      whenfalse:
        statement: 
          streaming: 
            - kind: libstreams.PRINT
               content: foo does not equal bar
permalink
report
parent
reply
2 points

God I hate it

permalink
report
parent
reply
7 points

You monster

permalink
report
parent
reply
5 points

Who hurt you :(

permalink
report
parent
reply
5 points

Oh my, I feel woozy …

permalink
report
parent
reply
4 points

The tag indentation is a required part of the syntax and don’t forget colons at the end of the tag

permalink
report
parent
reply
2 points

That’s basically how the Android app Tasker works. You do the programming through its UI, but when you export/share your tasks, they’re saved as xml

permalink
report
parent
reply
2 points

I took every coding class my highschool offered, and the only thing that drove me more crazy than this syntax was trying to use CSS.

permalink
report
parent
reply
4 points

That’s because you didn’t try our lord and savior SASS. Vanilla CSS should be illegal at this stage.

permalink
report
parent
reply
2 points

I almost did similar with SDLang as I was very desperate for a scripting language, but now I have a wasmtime API for D.

permalink
report
parent
reply
97 points

…and it’s compiled

permalink
report
reply
70 points

…but intended for web, but you can also misuse it for apps and system services

permalink
report
parent
reply
14 points

…to an intermediate set of instructions for a virtual machine…

…called the brainfuck interpreter

permalink
report
parent
reply
10 points

Brainfuck.NET Interpreter that uses modified Java bytecode instructions.

permalink
report
parent
reply
7 points

Yes brainfuck with some Java Bytecode instructions for syscalls.

permalink
report
parent
reply
46 points

Confusion like this got me my current job. They were looking for somebody with experience in “Microsoft Endpoint Configuration Manager”, and I look that up and I’m like “Oh, that’s SCCM, I do that”. Go through the interview process they keep asking me if I know Endpoint Configuration Manager and I’m like “yeah, for sure”. I get the job. Day one, the other systems engineer is like “here is the link to our Endpoint Manager Tenant”, and I’m like “oh… Shit I have never ever used this”

Well… Ends up Endpoint Configuration Manager and Endpoint Manager are two different things. Fortunately for me they are pretty similar in function and rely on knowledge of Windows and Powershell, which I know.

So my first 2 weeks of work was taking a shitload of courses in Endpoint Manager and watching a lot of videos and learning it inside and out.

2 years later and I’m an Endpoint Manager/Intune pro.

permalink
report
reply
54 points

90% of IT and software jobs are “I have common sense, know how to look up information, and my boss is intimidated by my work so they don’t question it.”

permalink
report
parent
reply
31 points

Or make a language named everything so you can say “i program in everything”

permalink
report
reply
4 points

This is so cursed wtf

permalink
report
parent
reply
2 points

Ps: i haven’t documented all the cursedness yet.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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.

Community stats

  • 6.6K

    Monthly active users

  • 1.4K

    Posts

  • 32K

    Comments