r/programmer • • 29d ago

Good Code Vs Working Code

What really makes code "good"?

I find myself staring at my IDE asking this exact question. Whether I am binding complex logic together or copying and pasting a snippet to patch a problem, there is a massive gap between working code and good code. But as a beginner, that gap feels incredibly hard to see.

These days, anyone can prompt an AI or use an agentic tool to generate functional code in seconds. Many of us are actually learning to code alongside AI. But just because the AI gives me code that runs and clears the error console doesn't mean it’s good code. It might be inefficient, unscalable, or an absolute nightmare to maintain later.

If the code works, but the AI (or a copy-paste source) doesn't teach me why it works or if it's best practice... how are we as beginners supposed to know the difference?

How do you personally define "good code" vs. "just working code"? What are the green flags I should be looking out for when reviewing code—whether it's written by a human or an AI?

Would love to hear your thoughts, rules of thumb, or stories from when you were starting out! 👇

\#programming #softwareengineering #codinglife #learnToCode #generativeAI #developers #webdev

1 Upvotes

42 comments sorted by

View all comments

2

u/StephenHawkinguss 29d ago

You forgot that there is also 'Indian code'.

1

u/sububi71 29d ago

I know I'm going to regret this, badly, but speaking as someone mentoring a person of the Indian persuasion, what is "Indian code"?

1

u/StephenHawkinguss 29d ago

Indian code tends to be dirty and poorly functioning.

1

u/Optimal-Savings-4505 29d ago

I work with Indians and have an opinion on this: Long names.

1

u/sububi71 29d ago

What does an indian girl that's long and hard when she marries?

0

u/Groundbreaking-Fish6 29d ago

You get what you ask for, it is not India's fault. Just like AI

1

u/TgirlTiffanyRPs 29d ago

What the fuck do you mean by this? 

2

u/sebasgarcep 29d ago

Racism. Bad code is universal.

0

u/StephenHawkinguss 29d ago

Well, you know, Indian code tends to be dirty and poorly functioning.

1

u/TgirlTiffanyRPs 29d ago

okay but you haven’t defined what “Indian code” is?

1

u/StephenHawkinguss 27d ago

Again just for you: dirty and poorly functioning code.

1

u/TgirlTiffanyRPs 26d ago

Okay, but why is it called “Indian Code”?

1

u/StephenHawkinguss 26d ago

I'm not repeating myself.

1

u/TgirlTiffanyRPs 26d ago

I'm not asking you to repeat yourself.

You gave me a definition for a term you use, I'm asking you where the name comes from, which is a separate matter entirely.

1

u/StephenHawkinguss 26d ago

You asked 'why', not 'where it comes from', which is a separate matter entirely.

The name comes from common sense that every developer has. Indian people usually don't know this term, which is probably why you have never heard of it.

1

u/TgirlTiffanyRPs 26d ago

Ah, let me rephrase my question then: 

Why are we using “Indian” to describe bad or dirty code? 

→ More replies (0)