PPlamenu
HomeTrendingLive feedsPeopleGroupsRulesStaff
Sign in
PPlamenu
HomeTrendingLive feedsPeopleGroupsRulesStaff
Sign in

posted in Technology

lemmydividebyzero@lemmydividebyzero@reddthat.com
⁨20⁩d

Name before type: why 'age int' is better than 'int age'

benhoyt.com/writings/name-before-type/
benhoyt.comName before type: why 'age int' is better than 'int age'A variable's name is more important than its type, so the name should be more prominent and come first in declarations.
101035
Open original page
BoostsQuotesFavs
palordrolap@palordrolap@fedia.io
⁨20⁩d

Replying to @⁨lemmydividebyzero@reddthat.com⁩

This is just arguing about whether the surname goes before or after the given name.

If you think int x makes the most sense, you might be Chinese. Or Hungarian. Or English speaking if you grew up with characters like Fireman Sam or Postman Pat... erm...

2000
Open original page
BoostsQuotesFavs
mercano@mercano@lemmy.world
⁨19⁩d

Replying to @⁨palordrolap@fedia.io⁩

If you think of int as an adjective, the whole situation changes. It makes sense to an English speaker, but is backwards to a Spanish speaker.

⁨Jul⁩ ⁨26⁩, ⁨2026⁩, ⁨14:36⁩en
0000
Open original page
BoostsQuotesFavs