There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmerhumor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

neidu2 , in Regex flavors

I don’t see the problem. But that’s probably because my goto-language is perl.

totally_notAcat , in Program in C

I do not want to admit how many times I have watched this video… not recently but still

manucode , in More confusion for recruiters
@manucode@infosec.pub avatar

It uses XML-like syntax:


<span style="color:#323232;"><fun>
</span><span style="color:#323232;">  <name>sum</name>
</span><span style="color:#323232;">  <in>
</span><span style="color:#323232;">    <int>foo</int>
</span><span style="color:#323232;">    <int>bar=0</int>
</span><span style="color:#323232;">  </in>
</span><span style="color:#323232;">  <out><int>foo+bar</int></out>
</span><span style="color:#323232;"></fun>
</span>
kameecoding ,

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

breakcore ,

Oh my, I feel woozy …

notabot ,

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.

EffortlessEffluvium ,

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

gravitas_deficiency ,

Who hurt you :(

VitaminF ,

<span style="color:#323232;"><fun>
</span><span style="color:#323232;">  <name>sum</name>
</span><span style="color:#323232;">  <in>
</span><span style="color:#323232;">    <int>
</span><span style="color:#323232;">      <name>foo</name>
</span><span style="color:#323232;">    </int>
</span><span style="color:#323232;">    <int>
</span><span style="color:#323232;">      <name>bar</name>
</span><span style="color:#323232;">      <default_value>
</span><span style="color:#323232;">        <int>0</int>
</span><span style="color:#323232;">      </default_value>
</span><span style="color:#323232;">    </int>
</span><span style="color:#323232;">  </in>
</span><span style="color:#323232;">  <out>
</span><span style="color:#323232;">    <int>
</span><span style="color:#323232;">      <calculation>
</span><span style="color:#323232;">        <numerical_operation>
</span><span style="color:#323232;">          <operator_plus>
</span><span style="color:#323232;">            <operand>
</span><span style="color:#323232;">              <var>foo</var>
</span><span style="color:#323232;">            </operand>
</span><span style="color:#323232;">            <operand>
</span><span style="color:#323232;">              <var>bar</var>
</span><span style="color:#323232;">            </operand>
</span><span style="color:#323232;">          </operator_plus>
</span><span style="color:#323232;">        </numerical_operation>
</span><span style="color:#323232;">      </calculation>
</span><span style="color:#323232;">    </int>
</span><span style="color:#323232;">  </out>
</span><span style="color:#323232;"></fun>
</span>
manucode ,
@manucode@infosec.pub avatar

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

hedgehog ,

They probably have experience with Spring

VitaminF ,

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

luciferofastora ,

That’s grotesque and you have my condolences

Lightfire228 ,
VitaminF ,

Thanks, I hate it.

pingveno ,

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.

deathmetal27 ,

Thankfully we have Gradle now.

Pilon23 ,

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?

anonymoose ,
@anonymoose@lemmy.ca avatar

You monster

_stranger_ ,

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

TheRealJefe ,

Calm down, Satan

kewko ,

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

reinei ,

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

A_Very_Big_Fan ,

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.

fibojoly ,

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

JackbyDev ,

Make sure to make ample use of mixed content elements.


<span style="color:#323232;"><statement><var>bar</var> = <int>0</int></statement>
</span>
aphlamingphoenix ,

<span style="color:#323232;">statement: 
</span><span style="color:#323232;">  comparison:
</span><span style="color:#323232;">    - kind: libcompare.EQUALS
</span><span style="color:#323232;">      comparators:
</span><span style="color:#323232;">        - foo
</span><span style="color:#323232;">        - bar
</span><span style="color:#323232;">      whentrue:
</span><span style="color:#323232;">        statement: 
</span><span style="color:#323232;">          streaming: 
</span><span style="color:#323232;">            - kind: libstreams.PRINT
</span><span style="color:#323232;">               content: foo equals bar
</span><span style="color:#323232;">      whenfalse:
</span><span style="color:#323232;">        statement: 
</span><span style="color:#323232;">          streaming: 
</span><span style="color:#323232;">            - kind: libstreams.PRINT
</span><span style="color:#323232;">               content: foo does not equal bar
</span>
JackbyDev ,

God I hate it

aphlamingphoenix ,

Lol, I’m sorry

JackbyDev ,

Don’t apologize, it’s beautiful in its horribleness

lone_faerie ,

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

ZILtoid1991 ,

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

Evil_Shrubbery , in More confusion for recruiters

Python script script ^script^

bitfucker , in More confusion for recruiters

Make CScript, an interpreted, duck-typed language

Zangoose , in More confusion for recruiters

Screw it. Let’s actually make python script an ISA that gets run on physical hardware with no higher level tooling. Then we can have the python virtual environment which runs this for fools who don’t have the right hardware. Finally, when people start complaining about naming we make Python Script 2.1, which is a JIT language built on top of IL that looks nothing like either of them but can emulate both python and python script with the performance cost of being a quarter as fast as both.

nexussapphire ,

Honestly if someone irons out the edge cases, python probably could JIT compile to machine code via cython. It would take a fair bit of memory and probably a bit slow on low powered systems but it would be so much faster if cached.

Zangoose ,

Technically I think python already has an intermediate step that it uses before it starts running a script that compiles it into a lower-ish language (at least the cpython interpreter does this, it probably isn’t a part of the language specification though)

The actual line between JIT languages and interpreted languages is pretty thin since I think most interpreted languages do something similar to minimize the amount that needs to be done at runtime

nexussapphire ,

I think at this point in time it JIT compiles into byte code which is more efficiently interpreted the next time that function is called.

skullgiver , (edited ) in Site: "I don't feel so good...."
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • ILikeBoobies ,

    Why not just iframe meat spin like the good old days?

    polle ,

    Sadly i forgot, can you refresh my memory about that story?

    Tilgare ,

    Just Google meatspin - it’ll be easier that way than explaining it here I think. One of those things you just have to see to understand.

    Zucca ,

    Just Google meatspin

    Dude… This is Rickrolling on the nightmare level.

    Those who don’t remember: NSFW to google that.

    CaptPretentious ,

    If that’s nightmare, what’s lemon party rank?

    pmk ,

    Back in the day, lemon party was my girlfriends first encounter with online nudity.

    Zucca ,

    I guess ignorance is bliss now?

    normalexit ,

    It really is more of a visual medium. A picture is worth a thousand words after all!

    ILikeBoobies ,

    Gay porn

    You would throw it on your mate’s computer if they left the room for a moment

    mcmodknower , in More confusion for recruiters

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

    Sparky ,
    @Sparky@lemmy.blahaj.zone avatar

    This is so cursed wtf

    mcmodknower ,

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

    enleeten , in More confusion for recruiters

    And base the syntax on Typescript

    umbraroze , in More confusion for recruiters

    Just today I heard someone whining about how in LinkedIn and other recruitment sites there’s like five bazillion profile tag options for RDMBSes and various dialects of SQL… when in actuality the recruiters are probably only concerned if the developer can do a bloody SELECT and stuff.

    AkatsukiLevi ,
    @AkatsukiLevi@lemmy.world avatar

    Oh boy, make Pythonscript a dialect of SQL but for frontend

    mo_lave , in Site: "I don't feel so good...."

    The elves did not pay their license to exist in Middle-Earth. And so their opacity decreased until their bodies completely fade away.

    SpaceCowboy ,
    @SpaceCowboy@lemmy.ca avatar

    For some reason I’m picturing the elves as white trash sovereign citizen types refusing to pay their taxes.

    As they fade away… “The flag of Gondor doesn’t have a gold fringe on it and you didn’t write my name in all capitals at a 45 degree angle in red ink therefore this court doesn’t have the authority to…” poof!

    mo_lave ,

    Except that they’ll put it in more… eloquent language. 😅

    SpaceCowboy ,
    @SpaceCowboy@lemmy.ca avatar

    The world is changed: I feel it in the water, I feel it in the earth, I smell it in the air… Much that once was is lost, for none now live who remember it. Thusly the government of Gondor shall not excise a tax upon my pouch of gold for their statutes shall not apply to my person henceforth.

    mo_lave ,

    Until we meet again, Ilmen-mariner

    sirico , in More confusion for recruiters
    @sirico@feddit.uk avatar

    Pyact

    theterrasque , in More confusion for recruiters

    And just to top it off, make this pythonscript a dialect of rust

    psmgx ,

    Nah just rename everything related to Perl

    aphlamingphoenix ,

    Actually, Pythonscript is a whitespace-sensitive Python-to-perl transpiler.

    Ghostalmedia , in More confusion for recruiters
    @Ghostalmedia@lemmy.world avatar

    Make a UX or Project management tool with “Java” in the name so newbie recruiters look for people in the wrong department.

    They already do this, but this would make them do it even more.

    nexussapphire , in Site: "I don't feel so good...."

    You delete each set of letter from least significant to most significant with $ replacing each letter and the title tag saying where’s my money. If all letters disappear swap the entire website with space jam website and this gif. https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fmedia1.tenor.com%2Fm%2FF4c6JDjOd3MAAAAd%2Ffat-tony-simpsons.gif

    Zucca ,

    Brilliant!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines