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

Programmer Humor

32472 readers
1043 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 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

What does your sleep paralysis demon ask you?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 3 months ago (14 children)

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

[–] [email protected] 6 points 3 months ago (13 children)
[–] [email protected] 0 points 3 months ago (11 children)

I don't think it is.

Care to explain what I'm missing?

[–] [email protected] 1 points 3 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?

[–] [email protected] 1 points 3 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.

[–] [email protected] 1 points 3 months ago* (last edited 3 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.

[–] [email protected] 2 points 3 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.

load more comments (9 replies)
load more comments (10 replies)
load more comments (10 replies)