36
you are viewing a single comment's thread
view the rest of the comments
[-] luthis@lemmy.nz 10 points 1 day ago

Maybe, but i speak English that follows adjective - noun pattern. So I'm already conditioned to type - name

[-] victorz@lemmy.world 3 points 1 day ago

My language does that, as well as English in which I am fluent. I still find type-first to be impractical.

Also when you write the code, you are usually looking to create a variable, so maybe you type "var" or "const", right, then you have a contextual name in mind, maybe salary. Then you can make a decision, which type it should be. Maybe "whole dollars"? "Dollars in a decimal number"? Or it could be a complex type in other contexts.

That's how I prefer to write code. ๐Ÿ‘

Maybe it makes more sense to someone who knows more than one language as well, e.g. languages that use a noun-adjective structure, like French, or Farsi. I don't know. But for me it's not about language, it's about practicality. Findability and writability, if those can be considered words, lol.

My main language is french, and yet i prefer the type-name order. Maybe its because i first learned C, but i guess its also because it goes from general to particular, whereas name-type feels like going backward (being detailed with name, then vague with type, then more detailed with value assignment). Anyway, i guess you're right, it's probably not a lot about language.

[-] victorz@lemmy.world 1 points 1 day ago

Exactly, first language (spoken or programming) doesn't seem to play a role. It's more about the mental model. ๐Ÿ‘

this post was submitted on 26 Jul 2026
36 points (72.5% liked)

Technology

86651 readers
3069 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 news or articles.
  3. Be excellent to each other!
  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, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS