I 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…
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.
Tell HN: My child's first program
81–90 of 139 posts
Re: Tell HN: My child's first program
#82I 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
#83I 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...
https://old.reddit.com/r/cscareerquestions/comments/95dgrx/i...
Re: Tell HN: My child's first program
#84Earlier quoted context omitted.
>they could have a phone if they made an app I think this is a great way to get your kids to have a habit of self-learning. In my opinions, this is the single most important skill a kid can learn. Every time my little cousins ask me something they want to learn, I go with "Let's search for the answer together" and guide them on how to do basic research. Sometimes I ask them follow-up questions if they find the topic…
I think it's a great way to ensure that the only motivation your kids have is external. "What's the point of doing X is no one offered me a phone for it" When I was a kid, I heard that some friends were getting money from parents as a reward for good grades. I always had good grades so I suggested to my mom that I should get money for good grades. She said "No, because then you'll get used to only work hard when I'm…
Re: Tell HN: My child's first program
#85My son took a coding class in elementary school (MIT scratch), and he came in one day and told his teacher that his Dad was a "pro programmer" and had helped him. The program was a pigeon farting on a man's head. The teacher asked what Dad had helped with, and he said "he recorded the fart sound".
Re: Tell HN: My child's first program
#86Re: Tell HN: My child's first program
#87My son is almost three. I also want to get him into programming.
I am utterly sad that my dad wasted his brain doing manual labor as we grew up in a small city in Poland and he never had the resources to even own a computer.
He would be a good programmer, as I got it from him. He is really good at finding solutions to repetitive tasks and hates to do the same thing twice.
Re: Tell HN: My child's first program
#88Re: Tell HN: My child's first program
#89I 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…
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.
Agree for throwaway work it may not matter but I try to keep myself disciplined anyway. A good example is say I am doing an advent of code and the temptation is to treat it as throw away code. But the reality is, sometimes I put it down and come back to it, and having variables like fart doesn't really help snap back into the context.
Not saying this is an absolute but I find it a general rule of thumb for myself
Re: Tell HN: My child's first program
#90I 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...
I wrote functions that are available for the users to use (they can customize their own dashboard). Our function conventions are camelCase. The function I wrote was something along the lines of `cumOnMetric` or something like that.
Needless to say some square somewhere thought this was a joke and didn't like it. So there I was, just blinking away and wasn't even aware this was something sensitive. It was funny sure, but I didn't have the idea that it was "unprofessional". I still feel the idea of professionalism is quite a club thing.
But yeah we got our first snake_case function name because of that.