this post was submitted on 13 Jan 2024
329 points (93.0% liked)

Technology

58303 readers
14 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 10 months ago (2 children)
[–] [email protected] 10 points 10 months ago (3 children)

How do you know which language they are writing in?

[–] [email protected] 6 points 10 months ago
[–] [email protected] 4 points 10 months ago (1 children)

Based on syntax, use of indents for code blocking, and the comment hash, I'd say it's meant to be python but has a bug. But it could always just be pseudo code with a mistake. But it doesn't look like any single = conditional language I know.

[–] [email protected] 1 points 10 months ago (1 children)

It looks like pseudo code to me. But pseudo code doesn't really have a standard, does it? So their personal flavor is perfectly acceptable and correct (single equals acting as comparison). We know what they mean, what they're trying to convey -- we get the joke. No need to pick it apart. 👍

[–] [email protected] 2 points 10 months ago (1 children)

True, I wasn't intending to be nasty. I was more responding to the "How do you know" in a general sense of how one COULD assign it a language. No harm meant at all.

[–] [email protected] 2 points 10 months ago

Oh, gosh, it's my mistake. I confused you with the person who made the initial nit-pick about the equal sign. Hey, have a good day! 😊

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)
[–] [email protected] 6 points 10 months ago* (last edited 10 months ago)