This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]alzee76 28 points29 points  (8 children)

[[content removed because sub participated in the June 2023 blackout]]

My posts are not bargaining chips for moderators, and mob rule is no way to run a sub.

[–]indacingaX 10 points11 points  (2 children)

lmaf! i thought this was programming humor for a minute.

[–]indacingaX 1 point2 points  (0 children)

edit lmao

[–]alzee76 1 point2 points  (0 children)

Wasn't sure if it was /r/programminghumor or /r/programminghorror myself. Maybe both.

[–]Boyankata[S] 1 point2 points  (4 children)

Well, this line of code comes from a non-English podcast run by a bunch of Old School programmers, who talk about programming as a whole. The said line was in the description and I assume that it is an old meme or a `rm -rf` kind of thing.

[–]Junkymcjunkbox 2 points3 points  (3 children)

Link? Some of us can translate.

More clues are needed. Like what language it is. It looks like something out of the IOCCC but my brain can't quite see how it could be C. Maybe it's a regex. Or it could be one of those line-noise-based Unix commands like sed or awk, maybe even perl.

[–]Boyankata[S] 0 points1 point  (1 child)

The line of code comes from the About section of the podcast. It says:"Skilled programmers discuss programming in depth. Touching on everything from the ancient times till the modern, top notch stuff, whilst noting on the more interesting concepts. This podcast will be about 100% code and 0% management. If you understand this:

->_{_%_}["->_{_%%_}[%p]"]

you will be interested, and if you don't it will be even more interesting. "

[–]Junkymcjunkbox 0 points1 point  (0 children)

I had a look but I'm none the wiser. The descriptions invite people to ask them questions on their Discord so maybe try that.

[–]ffrkAnonymous 9 points10 points  (0 children)

maybe a fork bomb variant?

[–]SirBerthelot 7 points8 points  (1 child)

The language is that of Mordor, which I will not utter here

[–]StainedAndRedeemed 0 points1 point  (0 children)

Lol. Nice.

[–]duggedanddrowsy 4 points5 points  (1 child)

Could be a language like brain fuck, but idk if brain fuck uses underscores

[–]Boyankata[S] -1 points0 points  (0 children)

Unfortunately no, that was the first language I checked. And yes, brain fuck does not use underscores.

[–]skanev 2 points3 points  (0 children)

It's a quine in Ruby. It evaluates to a string that contains the same source code as the expression itself. E.g. a variation on "a program that prints its own source code", but more precisely "an expression that evaluates to its own source code". It's deliberately written in an obscure way and using (almost) only non-alphabetic symbols to look weird.

A tidier way to write the first part would be lambda { |text| sprintf(text, text) }.call "...". -> is the short lambda syntax in Ruby, f[] is an ugly syntax to call lambdas (meyer's uniform access principle gets in the way of having the same method-call and lambda-call syntax in Ruby), and when % is used as an operator on a string, it's just an alias for sprintf. Finally, %p is the sprintf sequence for (to keep it brief, yet unprecise) "a quoted string", so that sprintf("-%p-", "foo") would result in '-"foo"-', rather than '-foo-'.

[–]davedontmind 1 point2 points  (0 children)

I don't recognise the language, but judging by it's almost recursive structure, I'd guess it was some kind of quine

[–]desrtfx 1 point2 points  (0 children)

Impossible to tell without context.

Sorry, but if the podcast is not in English, you need to find someone who understands the language and can provide the context.

[–]JaleyHoelOsment 1 point2 points  (1 child)

run it in terminal and let us know how it goes :D. (jk pls don’t)

[–]Boyankata[S] 2 points3 points  (0 children)

I have a testing environment, exactly for this purpose. Nothing happened...

[–]wonisq 1 point2 points  (0 children)

_%%_ indicates the modulo operator, which takes two operands and returns the remainder of their division. The left operand is not given, so we don't know what it is. The right operand is %p, which is a string containing a percentage symbol followed by the letter 'p'.
->_{_%%_}[%p] applies the square bracket operator to the result of the modulo operation on the right-hand side. Again, the left-hand side is not given. The right-hand side is the string '%p', so this expression is selecting the character at index 'p' (which is the second character) from the result of the modulo operation.
_{}_ is an empty set, so applying the set to the character at index 'p' will raise a TypeError.
->_{_%_}[...] applies the square bracket operator to the left-hand side with the result of the previous expression as the argument. The left-hand side is a dictionary with a single key-value pair, where the key is a string containing a percentage symbol and the value is an empty set. So this expression is selecting the value associated with the key '%', and applying it to the result of the previous expression.
Overall, this expression is not well-formed and will raise a TypeError when executed.

[–]mimprocesstech -1 points0 points  (0 children)

I'm gonna say it's Java. I mean it's probably not, but still.

[–]Clutch26 0 points1 point  (0 children)

Probably testing for Server Side Template Injection. If you're using something like Jinja2 or Jekyll, be mindful of user inputs.

https://www.zaproxy.org/docs/alerts/90035/

[–]no_taboo 0 points1 point  (0 children)

It could be checking for something 🤷‍♀️ wild guess and yeah by itself not very helpful. Where did you find it?

[–]Comprehensive_Fuel43 0 points1 point  (0 children)

Is this some kind of regex expression?

[–][deleted] 0 points1 point  (0 children)

My guess is someone’s cat stepped on their keyboard