Let’s be honest, repeating yourself is the worst. Imagine we’re hanging out, and every single time I talk about myself, I have to say, ...
Let’s be honest, repeating yourself is the worst. Imagine we’re hanging out, and every single time I talk about myself, I have to say, "Hi, I'm Dindin, I live in Garut, and my dream is to eat my own body weight in bakso." You’d be bored out of your mind after the second time. More importantly, you’d have already memorized those facts. So, instead, I can just ask, "Do you know anyone else with my name who lives in my city?" You instantly know what I’m talking about because you’ve committed that data to your memory. That’s exactly why variables exist in programming. They are your program's memory. Instead of you, the human, remembering, it’s the computer that holds onto pieces of data—like a name, a number, or a user's answer—so you don’t have to keep typing it out. It’s the first step to making your code smart, efficient, and capable of having a real conversation with a user. But before a computer can remember something, it needs to learn it. We need a wa...
Read more