Earlier quoted context omitted.
As a kid? When writing stupid scripts, I frequently use `fart` as a variable name to this day. I'm a staunch supporter of naming variables intentionally in software that lives, but I'm definitely not above doing a `fart=True; while fart: ...` in temporary repl work. Maybe I'm just eternally 10 years old, haha.
I must be old-fashioned! My variable names in throwaway programs tend to be x, y, and z and my iteration variables tend to be i, j, and k.
Tell HN: My child's first program
61–70 of 139 posts
Re: Tell HN: My child's first program
#62- Reformat with `black`; needs space around "="
- Change constants to uppercase, so YOU and FART
- Probably best to use an f-string, e.g. f"{YOU}{FART}"
- Needs tests
Otherwise LGTM
Re: Tell HN: My child's first program
#63Earlier quoted context omitted.
Is the ChatGPT sample code/tutorials much better than the tutorials that can be found on Google?
Sounds like copying from GitHub with extra steps
It also gives you a human readable section, in addition to the code, that tells you what the code is doing, and where exactly to copy/paste it to make it run.
Give me an app in flutter that does X How do I install flutter How do I run my first flutter app
That only requires typing and reading for exactly the results you want.
Github only gives you what you know already. ChatGPT only gives you what you asked for, and holds your hand for how to use it.
Re: Tell HN: My child's first program
#64Earlier quoted context omitted.
As a kid? When writing stupid scripts, I frequently use `fart` as a variable name to this day. I'm a staunch supporter of naming variables intentionally in software that lives, but I'm definitely not above doing a `fart=True; while fart: ...` in temporary repl work. Maybe I'm just eternally 10 years old, haha.
I must be old-fashioned! My variable names in throwaway programs tend to be x, y, and z and my iteration variables tend to be i, j, and k.
Re: Tell HN: My child's first program
#65Conveniently, the [turtle module](https://docs.python.org/3/library/turtle.html) comes built-in and he also got to draw some fun patterns after reading the "Secret Coders" comic book series. It's really fascinating to see him develop his mental models.
Re: Tell HN: My child's first program
#66I love the variable names. I definitely had the same naming conventions as a kid :) Funny story. Sophomore year at college, I worked at a dev shop, and I was the first person to set up version control there (CVS... it was like year 2000.) The next day I reviewed changes that were merged and variables $tit and $ass were all over the place. I assumed the guy who checked it in was just immature and met w him to "profess…
Re: Tell HN: My child's first program
#67Re: Tell HN: My child's first program
#68PR review: - Reformat with `black`; needs space around "=" - Change constants to uppercase, so YOU and FART - Probably best to use an f-string, e.g. f"{YOU}{FART}" - Needs tests Otherwise LGTM
Re: Tell HN: My child's first program
#69I love the variable names. I definitely had the same naming conventions as a kid :) Funny story. Sophomore year at college, I worked at a dev shop, and I was the first person to set up version control there (CVS... it was like year 2000.) The next day I reviewed changes that were merged and variables $tit and $ass were all over the place. I assumed the guy who checked it in was just immature and met w him to "profess…
"I got fired over a variable name...." - https://old.reddit.com/r/cscareerquestions/comments/dpcfns/i...