Ancestors

Toot

Written by Travis Southard on 2024-10-28 at 12:25

foo, bar, and baz are the worst variable, function, etc names to include in code tutorials.

Beginners especially will find them confusing because instead of seeing them as "obviously silly placeholders" they are likely to be thinking every keyword token seems silly, but is important.

It also breaks with the rule to name variables what they are or what they do (e.g. price_subtotal or calculateTax). Write tutorials like you would write actual code.

[#]softwareengineer #webdev #code #software

=> More informations about this toot | More toots from travissouthard@jawns.club

Descendants

Written by S. Lott on 2024-10-29 at 01:49

@travissouthard while I generally agree — and never use them in my writing — the alternative is painful. Coming up with example names and a back-story to make the name actually meaningful is quite difficult.

After many books avoiding them, I fully understand why they’re needed by some authors.

=> More informations about this toot | More toots from slott56@fosstodon.org

Written by Osamu on 2024-10-30 at 01:42

@travissouthard bold take

=> More informations about this toot | More toots from perthdev@mindly.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113385036133994288
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
267.062905 milliseconds
Gemini-to-HTML Time
0.491275 milliseconds

This content has been proxied by September (3851b).