The Joy of Being Reliable

The ones who actually do what they say they will do. The people who show up when the going gets tough. In a world where ghosting is becoming more and more common, I feel like the traditional trait of…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




What Is Programming?

Learn to Program — by Chris Pine (3 / 105)

👈 Introduction | TOC | Programming Languages 👉

When you teach someone how to make a sandwich, your job is made much easier because they already know what a sandwich is. It is this common, informal understanding of “sandwichness” that allows them to fill in the gaps in your explanation. Step 3 says to spread the peanut butter on one slice of bread. It doesn’t say to spread it on only one side of the bread or to use the knife to do the spreading (as opposed to, say, your forehead). You assume they just know these things.

Similarly, I think it will help to talk a bit about what programming is in order to give you a sort of informal understanding of it.

Programming is telling your computer how to do something. Large tasks must be broken up into smaller tasks, which must be broken up into still smaller tasks, down until you get to the most basic tasks that you don’t have to describe — the tasks your computer already knows how to do. (These are really basic things such as arithmetic or displaying some text on your screen.)

My biggest problem when I was learning to program was that I was trying to learn it backwards. I knew what I wanted the computer to do and tried working backward from that, breaking it down until I got to something the computer knew how to do. Bad idea. I didn’t really know what the computer could do, so I didn’t know what to break the problem down to. (Mind you, now that I do know, this is exactly how I program these days. But it just doesn’t work to start out this way.)

That’s why you’re going to learn it differently. You’ll learn first about those basic things your computer can do (a few of them) and then find some simple tasks that can be broken down into a few of these basic things. Your first program will be so easy that it won’t even take you a minute.

👈 Introduction | TOC | Programming Languages 👉

Add a comment

Related posts:

Chapter 17 Whip the Ponies Harder

You need to get value from your software project. You need it "free, now, and perfect." We can't get you there, but we can help you get to "cheaper, sooner, and better." This book leads you from the desire for value down to the specific activities that help good Agile projects deliver better software sooner, and at a lower cost.

Part 1 Beginning Groovy

Groovy brings you the best of both worlds: a flexible, highly productive, agile, dynamic language that runs on the rich framework of the Java Platform. Groovy preserves the Java semantics and extends the JDK to give you true dynamic language capabilities. Programming Groovy 2 will help you, the experienced Java developer, lea