Ancestors

Toot

Written by binaryphile on 2025-01-08 at 13:46

The hardest programming habit for me to kill has been putting variable declarations at the top of a function definition instead of in-line where they are first used. I learned to group variable declarations "out of the way" at the top of the function while learning to program C back in school. Thirty-some-odd years later and I still want to move declarations up to the top, but it's worse for readability, not better. Locality of pertinent facts is a good thing.

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

Descendants

Written by Michael McCune on 2025-01-08 at 13:50

@binaryphile i'm the same way, the only thing that has changed my behavior has been the use of more closures. for some reason my ancient C brain feels safe as long as the variables are near an open curly brace XD

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

Written by binaryphile on 2025-01-08 at 14:05

@elmiko My brain has been fairly plastic when it comes to reshaping my programming patterns, probably because I'm constantly working on it, but this is one pattern that has been remarkably recalcitrant for some reason.

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

Written by Michael McCune on 2025-01-08 at 15:38

@binaryphile preaching to the choir, i feel so similar. i even do it in python lol.

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

Written by πŸ‡ΊπŸ‡¦ haxadecimal on 2025-01-08 at 13:52

@binaryphile

Same.

Unlearned is often harder that learning.

=> More informations about this toot | More toots from brouhaha@mastodon.social

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

This content has been proxied by September (ba2dc).