Skip to main content

What is a Programming Language?

How we talk to computers without speaking binary

Updated 7 min readMarkdown
Part of seriesThe Real - Real Basics
What is a Programming Language?

Story Time

Imagine you walk into a small café in a country where you don’t speak the local language and you want coffee. You might try “Coffee, please.” and the waiter just stares. You try again, maybe louder this time (as if that helps). Still nothing. Trust me, I've been there.

Finally, someone steps in and translates (like in the good old days of early 2010's) or Like every other normal humans use translator apps and voila!! suddenly, it works. You get your coffee.

That moment right there? That’s exactly how humans interact with computers. You and the computer are speaking completely different languages. And unless there’s something in between to translate, nothing happens.

Mapping the Story to Computers, let’s translate this café situation into the world of software. You who is the customer in the above scenario placing the order would assume the role of a developer. The waiter trying his best to understand you would be the computer and the translator app/person would be the programming language.

Straightforward right? Wrong !!! Here’s the catch, computers don’t understand English. They don’t understand “create user,” “send email,” or “calculate total.” They only understand one thing, Binary — 0s and 1s. Something like this:

10101010 
11001100 
00011101

That’s it. That’s their entire world.

So then.. What is a Programming Language?

A programming language is simply "A way for humans to give instructions to computers in a form that can eventually be understood as binary." It’s sort of like a bridge where on one side we have humans (who think in logic, words, and ideas) and on the other side we computers (which only understand electrical signals 0s and 1s)

Programming languages sit in the middle and make communication possible.

Let's make this concrete with an example. What you write (human-friendly):

int sum = 5 + 3;
System.out.println(sum);

This is easy to read, take two numbers 5 and 3, add them and print the result. But let's now compare that to what the computer actually sees (Not exact, but you get the idea.)

00001010 00000011 00101100 10101010

The key insight here is that your code is not what the computer runs. It must first be translated into machine code which the computer can understand. That translation step is everything.

Who Does the Translation?

This is where things get technical and interesting. There are two main ways your code gets translated, lets go through them one at a time.

Compiler (Translate First, Run Later)

A quick analogy for this would be to think of this like translating an entire book before reading it. You write code, a compiler converts the whole thing into machine code and then the computer runs it. Some of the languages that use this approach are Java (compiled to bytecode first), C and C++

Interpreter (Translate While Running)

Now imagine someone translating sentence by sentence as you speak. Lets walk you through like before. You write code, the interpreter reads one line and translates it and and the computer executes that particular line. This happens to the entire code line by line. Some of the languages that use this approach are Python and JavaScript

Let's not go any deeper here yet. Just remember either way, your code must become something the computer understands. To Summarize, every line of code you write, behind the scenes, the line gets converted into low-level instruction, the instruction become binary and the CPU executes them

You never see that complexity and that’s the whole point of programming languages.

Why Do We Even Need Programming Languages?

To be honest if you are very confident in you conversation skills in Binary you could always write programs directly in binary. But for the vast majority of humans, including me, it would be painfully slow, almost impossible to debug and extremely error-prone. And to top it off even a small mistake in binary means a completely broken program.

Programming languages exist to make code readable, logic expressible and development practical, for the vast majority of us peasants who don't speak binary

Why Are There So Many Programming Languages?

This is where most beginners and some of the experienced professionals (Ohh!! there are many, you'll be surprised) get confused. “Why not just have one language?”

From what I can tell, this generally happens because we are always comparing programming languages with languages we speak. But change the perspective ever so slightly and it becomes clear. Programming languages are not just languages to speak to computer but also tools to help us create something to get something done.

As we all know, in nature we have different problems which needs different tools to fix. Think of it like this, you don’t use a hammer for cutting wood or a knife for drilling holes. Its the same idea. Different languages have different strengths

Language Usecase
Java Strong for large backend systems
Python Great for quick scripts, AI, data
JavaScript Runs in browsers, frontend + backend
C/C++ Low-level control, performance

Each language optimizes for performance, simplicity, safety, developer productivity, etc. And since these are tools you can compare them and come up with the "best" language. There is only “Best language for this problem.”

Why This Matters in Real Backend Development

Now let’s bring this back to the real world especially backend systems. When you build something like a login API, a payment system or a microservice, you are constantly writing human-readable logic relying on the language you are using to translate it correctly and trusting the runtime to execute it efficiently.

For example, you write:

userRepository.save(user);

Looks simple, right? But under the hood, objects are serialized, SQL queries are generated, network calls are made, database operations happen, responses are returned. All of this eventually becomes machine instructions executed by the CPU.

And here is why understanding this helps. When things go wrong, for example, slow performance or memory issues or unexpected behavior, you start asking better questions like

  • Is this language handling memory efficiently?

  • What’s actually happening under the hood?

That’s how you move from someone who "writes code” to someone who "understands systems”.

Common Mistakes that We All Make

  • Thinking the computer understands their code directly. It doesn’t. Ever. Understanding this and accepting it will save you from a lot of frustration when your code don't work and is how you grow as a developer.

  • Ignoring what happens after writing code. This is where you understand why syntax matters and that the translation step is critical. This is also what differentiates vibe coders from software developers.

  • Language obsession - switching languages won’t make you a better developer overnight.

  • Not learning fundamentals. All languages eventually map to the same machine-level execution and have somewhat similar underlying concepts but just expressed differently syntactically.

Wrapping It Up

To bring this blog to a full circle let’s go back to the café. You wanted coffee, you needed a translator and only then did communication work.

Programming languages are that translator. They turn your intent into something a machine can execute. Without them software wouldn’t exist, systems wouldn’t scale and modern engineering wouldn’t be possible

If you really get this concept, you’ve already taken a big step toward thinking like an engineer not just someone who writes code.

About the author

  • Senior Software Engineer with 7+ years in Java, Spring Boot, and scalable backend systems. I help engineers crack backend/full-stack interviews, improve system design, and transition into cloud and AI with practical, real-world guidance.

No comments yet. Be the first to comment.

The Real - Real Basics

Part 3 of 13

If you’ve ever felt like tech concepts are explained *just one layer too high*, this series is for you. **“The Real – Real Basics”** is not about definitions. It’s about **understanding what’s actually happening underneath**. Most resources jump straight into something like “This is a process”, “This is a thread” and “This is memory” But they rarely answer basic doubts like *Why do these things even exist?*, *What problem are they solving?*, *What is the computer actually doing behind the scenes?* which may arise in everyone's mind. --- ## What you’ll learn This track covers the foundations every developer *uses daily* but often doesn’t fully understand the very basic of the basics starting from *What is a Computer (beyond keyboard + screen)* to *How everything connects in real systems* --- ## Who this is for This is a supplement for *Beginners* trying to build strong fundamentals, *Developers* preparing for interviews, *Engineers* who “use things” but want to "understand them deeply" Also just to clarify these are individual blogs that can help you understand what you have already been using or would be using in you current/new role. This is not a guided course. --- ## What to expect I plan to write these blogs in a simple easy to understand language that can help connect the "layman" in us to the "coder" in us. I'll try my level best to make the blogs be with story-driven explanations, clear mental models, real backend/system relevance and no unnecessary jargon (which is very hard to do, so when I use something and any clarity is required on those, Ill try to include what that means in the blog itself and if I miss anything please let me know in comments). --- ## End goal By the end of this series, you won’t just *know* concepts, you’ll be able to **visualize them, reason about them, and use them with confidence in real systems.** --- This is where your foundation stops being *memorized* and starts becoming **intuitive**.

Up nextCompiled vs Interpreted LanguagesWhy your code sometimes feels “prepared in advance" and sometimes “read on the fly”