905
you are viewing a single comment's thread
view the rest of the comments
[-] Sharpiemarker@startrek.website 8 points 11 months ago

Untyped as in written? Or is this programming term I'm not familiar with?

[-] cucumber_sandwich@lemmy.world 36 points 11 months ago

Programming term. Variables in programming languages can hold different types of data, such as whole numbers, floating point numbers or strings of characters ("text"). Untyped languages figure out on the fly what can and cannot be done to the content of a variable, while typed languages strictly keep track of the type of content (not the value) to catch bugs and improve performance, for example.

[-] Sharpiemarker@startrek.website 9 points 11 months ago

Ah! Thank you for the explanation. That makes much more sense now.

[-] Witchfire@lemmy.world 5 points 11 months ago

Very concise explanation!

[-] monkeyman512@lemmy.world 1 points 11 months ago

Any untyped languages that don't care what is in the variable, assumes you know what your doing, and YOLOs it?

[-] cucumber_sandwich@lemmy.world 4 points 11 months ago

Np necessarily. Usually errors are detected at runtime and reported as such. So you will see where your program failed, but it usually crashes nonetjeless. Keep in mind that crashes are usually better than continuing some undefined behavior.

[-] RagingRobot@lemmy.world 8 points 11 months ago* (last edited 11 months ago)

By typed they mean declairing a type for your variables.

In some languages, variables needs to be told what kind of data they can hold. That's it's type. For instance a number without decimals would be an integer type. While text might be a string type or a list of character types.

Other languages don't require types and sometimes don't even support them. They will just infer the type from the data that's in the variable.

If you see Elon Musk please explain this to him.

[-] Sharpiemarker@startrek.website 4 points 11 months ago

If you see Elon Musk please explain this to him.

I'm an idiot, and I still don't think I could dumb it down to his level.

[-] jtk@lemmy.sdf.org 1 points 11 months ago

Might be able to call assembly untyped. Everything beyond that I think would be called either statically or dynamically typed, maybe weakly typed?

[-] some_guy@lemmy.sdf.org 0 points 11 months ago

It's actually hieroglyphics.

this post was submitted on 07 Jan 2024
905 points (94.4% liked)

Programmer Humor

19817 readers
78 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS