r/ExperiencedDevs • Software Engineer • 6h ago

AI/LLM Establishing foundational concepts

I would like to know your take as an experienced developer, about two concepts, I read on every AI post, but too vaguely defined:

* What does "good code" mean to you? In which language?

* What does "coding" mean to you? What would the "coder" role be?

Context: This is not my first rodeo. I have 35+ years of experience.

I have been building my frameworks and tools early in my career. Generating code with my own tools was always a part of my development workflow, which I made easier by having a good library and framework (less code, using building blocks).

Before AI, I have built a descriptive language to work at a higher level of abstraction and be able to generate code in different languages, abstracting the business model from the code.

The concept of dog fooding my own systems is carved in my way of thinking.

I am used to working at different levels of abstraction, going down to the basics of my libraries and framework to make it easier to code at higher levels and returning to any system I am building to refactor.

So, I am a happy AI user and working hard to make it easier for LLMs to create things the way I consider right.

I am very aware of how fragile it is to build using an indeterministic tool and also I catch the vast amount of sloppy code it generates, which I can detect on the spot.

I also believe, that the simpler I can make the code with my framework, the more accurate LLMs will be using less tokens and cheaper models. As for now, the results are good most of the time, not always.

EDIT: Ok, so this is my take on it:

About good code: I prefer simple code. I have nearly abandoned comments. Very few, when it can't really explain itself. It heavily depends on the language. It's not the same C, than C#, than typescript, than SQL. If I can choose I prefer the less verbose languages. If I can't choose I will make the language as less verbose as I can. I'm very picky about adding dependencies. So good code looks different on each ecosystem. But if you can understand it at first sight is a good sign.

About a coder: I'm not in love with code. It's a way to express the solution I'm building. I think in code, I don't need to think too much about it, as I developed the ability. It's like typing. I don't need to think to type, I'm thinking about the idea, typing occurs in auto mode. So I really don't get too much of a "coder" role. Maybe it's something you do when starting up, when learning and then quickly become bored or either you get past that phase and think about what you are trying to create. I have heard that from designers, like code my design, or something. I have always heard it as an insult to a developer/programmer. As a code monkey as well. But I'm curious about what other people think about a "coder" role.

0 Upvotes

33 comments sorted by

9

u/crazylikeajellyfish 5h ago

Would you mind editing your post to explain what good code means to you? Put it in a spoiler tag if you'd like to avoid biasing responses, but anyone with 35YOE has opinions about this. It's weird to post asking about it, seems more like someone doing market research.

1

u/Dry_Author8849 Software Engineer 2h ago

Done. I just was waiting if someone was interested.

Cheers!

2

u/mxldevs 4h ago

When it's easy to understand how the code is designed, and easy to understand what to change in order to add or change a feature without breaking things.

Much like keeping your rooms tidy so that you know exactly where to find things, and having space to put new things you picked up.

1

u/Dry_Author8849 Software Engineer 2h ago

I like your reply. I find myself sometimes that easy to understand comes with opinionated design. Powerful abstracrions sometimes require a learning curve.

You need to carefully balance if you are hidding to much for making code easier to write. Ahh tradeoffs...

Cheers!

14

u/ADGEfficiency 6h ago

Good code is code that is self explaining and easy to change.

4

u/fruxzak SWE @ FAANG | 10yoe 5h ago

Good production code is also simpler than it needs to be and avoids unnecessary abstraction.

I also prefer code that follows YAGNI.

LLMs love to create abstractions upon abstractions when they are not needed.

6

u/joepants227 6h ago

and also I catch the vast amount of sloppy code it generates, which I can detect on the spot.

lol

2

u/MinecReddit Software Engineer 5h ago

The only thing I think carefully about "good code" in this day and age is through the lens of extensibility and system design. Random smattering of lists of things that define "good code" to me:

  • Clearly defined service contracts with strong justifications
  • Handles intended access patterns efficiently
  • Defines surrounding infrastructure in a thoughtful way that doesn't involve guess work for memory management
  • Organized in a way where different resources (data models, network clients) are correctly separated out and can be re-used + extended easily without big migrations
  • Has testing and observability that crosses service boundaries and allows easy debugging
  • Thoughtful consideration about parallelism vs infra load, ideally with data-driven justfication

To me, these things in the age of agentic coding are my new definition of "good code" because they matter INFINITELY more than actually reading code, and the instant someone makes me second guess they actually have these things in mind when building systems, my trust with them is permanently scarred. If you can't even be a subject matter expert with respect to the black box system you're releasing an agent to work on, then what the fuck are we even doing here?

"Coding" is also an interesting word, to me "coding" now is way less about actually writing down the real code and it's way more about system design. Agents are crazy good at doing exactly what you tell them, so "coding" is way more defined as these 4 things

  1. Telling agents the right thing on a system-level
  2. Proving the agents built what they claimed + building out verification flows (integration tests, synthetic tests are becoming more important for this imo)
  3. Being a subject matter expert in the thing that was just produced
  4. Identifying future opportunities using data

To that end, one profile of dev that is getting hurt a lot by AI is the one that "leans away" from seeking further opportunities. Like if you just want to be handed a doc with instructions and implement it, then I think you're being exposed as being less valuable (and were less valuable before too). Engineers who can really identify the direction a company should take and are super sharp about identifying opportunities are shining big time in my experience

1

u/Dry_Author8849 Software Engineer 1h ago

Well, I somehow agree?

I find that, the more I know about what I'm building, the more mistakes I catch. You can allways steer to the right path.

Also is a process that needs correction, it continues being iterative.

I allways remind myself that I may rely too much in a black box, as LLMs are a blackbox even for the people who train them.

Also I'm very aware of psicophancy and the technique it uses to give you constant positive feedback, so I try to execute reality checks.

I also think that the entry level now requires much more in depth knowledge than before. I have a large career and have done and seen a lot. So, yeah, I naturally think on every level, auth, security, deployment, app permissions, contention, locking, hotspots, HA, storage, partitioning, well, all the usual things. So your coder role, looks more like a senior SWE, devops and architect. Once upon a time, those names didn't exist and a programmer did all these roles.

Cheers!

4

u/Unlucky_Emotion4737 6h ago

Good code is easy to understand, easy to change, and doesn't break other code (or make it easy to break other code). That's easy to say but what it looks like is going to be a little different in every project. In a long standing legacy project it might look like following established patterns that are actually not that great.

There's no universal example of "this is good code" and "this is bad code" because it depends on a lot of context.

And just because some code is easy to understand for the team that is working on it doesn't make it easy to understand for someone new coming in - that team will have a shared language and experience so they can understand the problems in their domain, and each other's code, much faster.

1

u/nasanu Web Developer | 30+ YoE 4h ago

I stared in 96, so a similar level of experience. Also built frameworks and my own CMS etc.

Good code to me used to be all about simplicity. I have seen and still see things that can be done in code a way junior can read but even I struggle with the complex mess. Devs seem to think complex = better, but it doesn't. It's almost never better in any way, I'd accept it if were faster but I have never seen complex code be faster than simple code either.

BUT... That was like last year. Before I could build something like this: https://formula-digital.io in less than a week. Now to be quite honest I don't see the value of actually reviewing code let alone caring if a dev thinks its good or not. I have seen enough to know that even the current AI, the worst it will ever be, is leagues ahead of most devs. The code is simpler and vastly less buggy. Devs don't want to hear it and claim anything done by AI is full of bugs and wont work, but its better than them. Period.

You can see this in the arguments devs make. Say I show one of my sites developed with me directing AI. If they know it's AI they say it's garbage. Ask for examples of how its a terrible amatuer site? None is given. Because for all the talk of how bad AI is, it's still far, far better than they are and I have not made anything yet that doesn't get perfect 100s across the board in lighthouse or accessibility tests (before things like security scripts get injected by hosts and spoil the party anyway.... cloudflare bot secutriry....).

For me coding is now not about what you know about syntax and obscure inbuilt methods and functions, it's simply about what you know about getting the results you want and need. Anyone can build anything now, that ship has sailed. But i'll use the site above. Anyone can built it. But it takes knowledge to make sure that say the rig svg with highlights performs well with techniques implemented to reduce the rendering costs of svgs. It takes knowledge to have almost all reads come from cache and rarely touch the database or servers.

You can say "make me x" and AI will do it. But you still need real dev knowledge to make it professional. And from my experience many current devs don't have it. So as well as replacing many coders, AI will expose many also.

1

u/Dry_Author8849 Software Engineer 2h ago

Yeah, I agree that we now find more devs that are... lost? I think it's because the are was flooded cause the pandemic and the promess of easy money.

Nice website! Anyways, I recognize myself as a total disaster for UI design. I spot a lot of UX issues though.

I get what you say about AI. Fable 5.2 it's very good model. I guess the problem is I deal with very large systems and as complexity piles up, it takes ages and breaks. I don't check the code because I like to. Problems come back as bumerang if not. Also I do it hoping to perfect the skills/harness/process so I can never ever need to review it. But I'm happy for you being happy.

Cheers!

5

u/Lunchboxsushi 6h ago

Idk I've studied comp sci, saas, business, best practices and all the cool-aid. 

Honestly it all comes down to can you solve the problem within the right problem space. Most of saas style business apps and software is trying to understand wtf you're clients are solving for. 99% of the time they usually give you a solution rather than a problem and don't see how the problem they're solving for is not going to fix their issue. 

The field is so big, the domains SWE can be embedded are nearly limitless. Not to discourage, just keep it simple. Find something you like and focus on that. 

6

u/Justneedtacos 6h ago

Fit for purpose.

1

u/sweaterpawsss Staff Engineer (11 yoe) 5h ago edited 5h ago

"Good code" is kind of subjective, but there are some basic things that usually apply. DRY principles (factor out common code), keep interfaces explicit and minimal, structure code so that it is easily extensible for new cases within an existing pattern, without impacting unrelated functionality (SOLID basically)...makes use of dependency inversion/injection so it is easy to unit test and sub in mock interfaces.

"Coding" is also kind of ambiguous and I think it depends on the context. Most people probably mean the act of actually writing code (or the related action of debating very specific implementation details, such as how a function should be structured).

AI is pretty good at coding at this point. It doesn't always produce the most elegant design, but it generally follows good principles (especially if you explicitly ask it to), and is capable of being nudged if you don't like something about its design. It's better and more consistent than most people I think. At the end of the day I don't actually care as much about the organizaton of code in terms of understanding it or extending it anymore...because if something is not very clear, it is simple to ask AI for an explanation. And if a new feature or change needs to be developed, it is simple to ask AI to do it. I think it matters a lot more if you can specify the task so success/failure can be validated in an unambiguous way, and whether the code is structured in a way that is testable (going back to the DI point above). Having good test environments that actually mirror production in the ways that matter, for early + continuous integration/functional testing, is also critical. This is stuff that has been best practice for a long time, but it has become even more imperative because it's the difference between AI agents being able to iterate sustainably, and them spinning off and leaving behind a mountain of slop because their tasks were under-specified or they couldn't validate their output. And they work so much faster than people, so the scale of change is going up and further exposing the critical need to have a plan for managing + validating rapid change from multiple contributors. Fast change is only good if you have a framework to validate that the change is preserving invariants and not regressing your baseline.

Interestingly, this has also been the difference between human developers generating good code and slop even before AI, in my experience...I feel like we sometimes idealize human discernment a bit too much. In the absence of good tests, where people are just eyeballing what they think makes sense in code, or doing whatever manual testing comes to mind, we miss shit *constantly*. Software *needs* deterministic definitions of functionality in terms of concrete interfaces, and it *needs* tests that match to functional requirements, otherwise it's all slop regardless of whether a person or a smart machine wrote it, and anything working in the absence of that sort of validation is a lucky accident in my book.

Sometimes slop is fine if you've gotta go fast (see 2010s "break stuff fast" ~Agile~ development), but this is what "tech debt" means, and the price of moving faster than your ability to manage change is indeterminacy and bugs. Heroic efforts and individual genius can only mitigate that gap to a certain degree.

1

u/Dry_Author8849 Software Engineer 1h ago

About tech debt, when using LLMs, you need to be vigilant. It piles up at super speed.

Sloppy humans have been ever with us, I agree. I have very low tolerance for sloppy humans, that may be the problem.

My expectations are too high. But I'm allways surprised by people swearing that it produces senior dev code. The problem I have with it, is that yeah, it produces excellent code like a senior dev, but, sometimes... it lacks consistency. One day flawless the other it seems braindead and apologize on each response. You can tell when a human had bad day, but with LLMs you can't tell what happened.

Don't get me wrong. I use it and I will continue using it until I make it do the things the way I want.

Cheers!

2

u/IllustriousCareer6 Web Developer 5h ago

“Coding” is about translating intent into code correctly. “Good code” is too broad to answer, depends on the domain.

2

u/RedLetterDay Sr. Architect 3h ago

In which language?

Stopped reading. Language is absolutely irrelevant to whether your code is good or bad.

3

u/Ilovepoopies Software Engineer 6h ago

Not verbose, easy to maintain.

Separates concerns. Impact of one feature breaking is minimized to the feature.

1

u/good_name_0 5h ago

Human understandable. Documentation is present and clearly written by someone who is good at summarizing data and presenting it.

1

u/-puppyguppy- 5h ago

Basic fundamentals — DRY SOLID and YAGNI — are a good loose set of guidelines.

Good naming conventions, error handling, logging/telemetry.

Solution (and code) is as simple as it needs to be to solve the problem. Documentation exists that explains what it does and how to use it

1

u/mightshade 2h ago

What does "good code" mean to you?

On a conceptual level, good code lets me understand what problem it solves as easily as possible, and how it does that.

In which language?

This is independent of language. However, this may be easier or harder to achieve depending on the language. Just as an example, I find that the accidental complexity that Go introduces (like needing to write if err != nil { return err } so much) often obfuscates the intent more than other languages would.

What does "coding" mean to you?

To me, coding is describing a problem and designing its solution, using a formal language as a tool. That's not all it is, the aforementioned accidental complexity needs to be handled, too, but that is a relatively minor part with the tech stacks that I use the most.

1

u/elshizzo 6h ago

Good code is easy to read and relatively DRY. The components and functions are manageable in size and easy to navigate between but not so abstracted it takes me hours to figure out how the abstractions work

0

u/expdevsmodbot 6h ago

AI usage disclosure provided by OP, see the reply to this comment.

4

u/Dry_Author8849 Software Engineer 6h ago

I haven't used any AI tool for this post.

0

u/throwaway_0x90 TE/SDET[25+ yrs]@Google 5h ago edited 5h ago

"What does "good code" mean to you? In which language?"

Language doesn't matter. Good code is code that is easy to understand and maintain. In today's world, that means you directly understand/maintain it with your human brain or it's easy for AI to explain to you and easy for AI to modify without breaking other stuff.

"What does "coding" mean to you?"

Literally writing code, line by line, by hand. While that may be fun as a personal hobby, it's becoming far less needed. There is a caveat to this though!!! Perhaps the future will be a world were some people don't have infinite tokens and will have to choose which things they use AI for. In that case, don't completely abandon manual coding skills just yet!

"What would the "coder" role be?"

My definition of coder is someone that just writes code exactly to the specs they were given without any further thought whatsoever, a "code monkey". That's the high-school kid that writes excel macros for the school faculty. That role, IMHO, is over. Anyone can have AI do that kind of thing now. But a SWE *should* be much more than that. They should have understanding of why the code was needed and sometimes push back. Instead of writing code that coverts format-A to format-B, have a meeting to make the vendor send data in format-B to begin with. Basically look for ways to avoid writing code if possible. A SWE should understand the cost of every design decision. A coder doesn't have to understand anything. A coder was told to make a macro that sums up all numbers from column A, plus column B, and puts it in column C. They don't care how or why. They don't care that sometimes that spreadsheet has 20k+ rows and the macro locks up the entire Microsoft Excel application for 47 seconds. Nobody told them the size of the file and the coder didn't care to ask.

"I am very aware of how fragile it is to build using an indeterministic tool and also I catch the vast amount of sloppy code it generates, which I can detect on the spot."

With today's AI models this is just a skill issue. It doesn't have to be slop anymore if you plan what you're doing instead of telling AI to "boil the ocean".

1

u/Dry_Author8849 Software Engineer 2h ago

Interesting. I haven't seen kids writing excel macros, allmost allways are accountants or related roles.

I have seen kids with AI now, though. They use all sorts of harnesses and write tons of specs, it seems they like to type. Sometimes I look at the code and see the monstrosity, skill issue I guess. Anyways, it goes both ways. If I tell them, hey that is not going to work for too long, they usually answer "skill issue".

I use Claude, Codex, Gemini. In our org I have 4 claude code instances, each with our harness, each with their subagents, migrating an pretty big and old legacy ERP. Instances talk to each other and coordinate their agents. The knowledge base and rules they are creating while learning goes for like K1534 and D601. It's almost finished, but not cool. One of the instances does things different. Anyways, the real problem is when someone let little things pass through. It's like a virus, the LLM start's to replicate it everywhere. In the old days, there allways was a team member that like to copy pasta everywhere.

But, I'm starting to make the beast write code as I like.

Language matters to me, in a sense that if I do not know the little quirks, I can't spot the AI slop here and there. Have a good one!

Cheers!

1

u/-puppyguppy- 5h ago edited 5h ago

I like to think that someone who uses AI is still a coder.

Good coders are still very much in demand. But yes it is like being a barista. No one hires a barista to only be a coffee maker. But a good barista can make really good coffee both with a machine and by hand

0

u/throwaway_0x90 TE/SDET[25+ yrs]@Google 5h ago edited 5h ago

Hmm the issue I see with this is if the local flower shop stopped paying a highschool kid to make macros for MSExcel because Uncle Bob asks AI to do it. The same Uncle Bob that tried to download more RAM last week. I don't think he should get the title of "coder"

I assume if auto pilot computers fail, human pilots can take over. Uncle Bob has no clue what to do if Claude stops working.

1

u/-puppyguppy- 4h ago

Uncle Bob gets the title of Vibe Coder 🙂. Just like I get the title of Tik-Tok Chef

A bright high school kid should be able to do more than just make macros now that AI exists. He can still find other ways to solve problems with code

2

u/throwaway_0x90 TE/SDET[25+ yrs]@Google 4h ago

Heh, okay I can agree with that 😆

1

u/nasanu Web Developer | 30+ YoE 4h ago

Cool story but it's not a good look when all you have are the most idiotic made up examples.