this post was submitted on 26 Jul 2024
280 points (95.5% liked)

Programmer Humor

36958 readers
209 users here now

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

Rules:

founded 5 years ago
MODERATORS
280
submitted 11 months ago* (last edited 11 months ago) by deathmetal27@lemmy.world to c/programmerhumor@lemmy.ml
 

What does your sleep paralysis demon ask you?

top 50 comments
sorted by: hot top controversial new old
[–] istdaslol@feddit.org 26 points 11 months ago (4 children)

Yes. Markup-Languages are a subset of Programming-Languages. Turing completness doesn’t matter as things like magic the gathering and habbo hotel are Turing complete

[–] ransomwarelettuce@lemmy.world 33 points 11 months ago (2 children)

I am markdown and latex programmer.

Idk it just feels wrong.

[–] theherk@lemmy.world 6 points 11 months ago

If you can write a moderately complex math equation in tex on the first try, you’re a programmer in my book.

[–] Dirk@lemmy.ml 11 points 11 months ago

So Habbo Hotel is a programming language.

[–] PeriodicallyPedantic@lemmy.ca 4 points 11 months ago (1 children)

I feel like programming language produces programs, and makeup languages formatted documents.

I wouldn't consider a formatted document to be a program, so I don't consider a markup language to be a programming language.

Doesn't make it less valuable, though

[–] Dirk@lemmy.ml 3 points 11 months ago (1 children)

ACKSHUALLY ... markup languages do not produce a formatted document. They define semantic elements of the document. The formatting is done by the compiler (whatever it is in the individual context) based on styles defined by a styling language.

load more comments (1 replies)
[–] mindbleach@sh.itjust.works 4 points 11 months ago* (last edited 11 months ago)

'This markup language isn't even as capable as Habbo Hotel, but it counts anyway because I just called it a programming language.'

There is a literal hierarchy of syntaxes which are recognized by different categories of machine. Programs require a Turing machine. Anything lesser - in a subset like pushdown automata or finite-state machines - doesn't need a proper computer. So it's not a program.

[–] PeriodicallyPedantic@lemmy.ca 13 points 11 months ago (1 children)

It's a markup language, not a programming language.

[–] deathmetal27@lemmy.world 5 points 11 months ago (3 children)
[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (2 children)

I don't think it is.

Care to explain what I'm missing?

[–] deathmetal27@lemmy.world 3 points 11 months ago (6 children)

Do I really have to explain the joke? The sleep paralysis demon is asking "Is HTML a programming language?" And the person is "sleep paralysed" to correct them or do anything about it really.

I don't know what else I can explain besides that.

load more comments (6 replies)
[–] NauticalNoodle@lemmy.ml 1 points 11 months ago (1 children)

It's not a logical programming language, but markup directs the formatting and general output of content to the screen. -Is that not a function of programming?

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

Does that make Rich Text Format a programming language then? Does that make jpg a programming language?

I think that markup is the data that a program takes as input - but I also think it's not black and white. How programmy a language is is a sliding scale.

[–] NauticalNoodle@lemmy.ml 1 points 11 months ago* (last edited 11 months ago) (1 children)

Those are interesting analogies. I guess I'd have to agree they are certainly a function of programming whereas I probably should have specified programming languages (directed by text) but then one could argue that the examples you mentioned are merely a language of buttons and other user input. —"Sliding scale " indeed.

[–] PeriodicallyPedantic@lemmy.ca 2 points 11 months ago

Sorry I wasn't clear, I meant the formats themselves.
Writing rich text using a text editor is kind of like writing HTML with a WYSIWYG editor, but just like with HTML you can go in and write RTF by hand.
Likewise you can use Photoshop to make an image, but you could also go in and set the pixel values of a bmp by hand.

By sliding scale I didn't mean wrt how you wrote them, but rather how much like an "instruction" the file tokens (for lack of better word) are. Is it instructing the computer to do something? Or is it data that the instructions act on?

Sometimes the line between input data and instruction is blurry.

[–] FiniteBanjo 1 points 11 months ago

I wouldnt say its missing the joke, moreso just participating.

[–] metaStatic@kbin.earth 10 points 11 months ago (2 children)
[–] morbidcactus@lemmy.ca 7 points 11 months ago* (last edited 11 months ago)

Taco according to the cube rule

[–] jsomae@lemmy.ml 3 points 11 months ago
[–] TheUnicornOfPerfidy@feddit.uk 9 points 11 months ago (1 children)

Why does a demon need a moustache?

[–] muhyb@programming.dev 9 points 11 months ago (2 children)
[–] pewpew@feddit.it 7 points 11 months ago (1 children)
[–] muhyb@programming.dev 5 points 11 months ago

So, if he shaves, would that makes him neutral? Good?

[–] TheUnicornOfPerfidy@feddit.uk 2 points 11 months ago

I mean that's what it asks me 😆

[–] mindbleach@sh.itjust.works 7 points 11 months ago (2 children)

You can't write a program in HTML.

End of discussion.

[–] linkhidalgogato@lemmy.ml 2 points 11 months ago (2 children)

programing languages arent use to make programs they are used to program machines which is exactly what u do with html.

[–] PeriodicallyPedantic@lemmy.ca 3 points 11 months ago

The "program" is the package of instructions that tell the machine what to do. The instructions are written in a programming language.

With a markup language, the markup is the input to a program (like a browser) that tells the machine what to do.

But I think it's not really boolean, it's a sliding scale. Especially with so many programming languages being interpreted or JIT compiled. I think it's less a programming language than many other programming-related things, but more of a programming language than, say, a slideshow.

[–] mindbleach@sh.itjust.works 3 points 11 months ago* (last edited 11 months ago)

they are used to program machines

Which HTML cannot do, because if it could, that would be called a program. That's what the word means.

HTML makes documents. It's a markup language. It's not even Turing-complete accidentally.

load more comments (1 replies)
[–] wuphysics87@lemmy.ml 7 points 11 months ago

Does HTML or LaTeX or Markdown provide a computer instructions which are executed? I'm going to take the unpopular opinion and say they are programming languages.

[–] Jimbabwe@lemmy.world 4 points 11 months ago

Is fondant a cake?

[–] electricprism@lemmy.ml 2 points 11 months ago

Is Linux a operating system?

[–] LarkinDePark@lemmygrad.ml 1 points 11 months ago

37 comments so far and not one answer.

load more comments
view more: next ›