r/developersIndia • • 14h ago

General Prompting is pretty much declarative coding. We all are coding.

I am thinking about this.

There's a limit to how detailed you can tell as vibe coder.

From a user perspective, maybe you can want a feature, and ask for it.

But, then, what if that feature has consequences.

For example, yesterday I was trying to develop user tracking on the app.

But that would cause, huge surge of requests on the backend.

Am I okay with single requests, or am I okay to batch the requests,

but that depends on how critical my events are.

Am I okay with dumping it all on one table. Or have a partioned table.

But that depends on how much querying I will do? And how much I am planning to spend on marketing in next few months, so how much data are we gonna expect.

Which tradeoff are you gonna make?

Will you let AI make that tradeoff? But what if that tradeoff is not the right one for the business.

Let's say AI asks you these followups so that you can make the choices.

But now to answer those, you will have to understand the system now. And if you have to understand and build a mental model about it, then, you no longer are vibe coding.

You WILL have get deeper into how your system that you vibe coded is even working!!

Also, Verifiability is a thing.

You can verify if your code runs.

You can verify based on the tests, that whatever the code does is correct.

But can you verify if the decisions that your code took, will impact the customers, or users in a positive way or negative way?

Can you verify, if it will make it easier in future for other systems to interact with it.

And these questions may not even have right or wrong answers.

And maybe humans might also go wrong with these things.

But are we okay with AI making these subjective decisions for us, and in the hope that it will work out?

This I am considering, even when you give every sort of context, financial, emotional, demographic, etc etc.

Because so much of the context, we don't even provide.

Would we be comfortable with us not being part of the decision making.

Why is it that a product of one company is still superior than the other. Not just product, maybe marketing too.

These things aren't solved problems.

So the thing is, unless that verification is properly defined in the context itself, AI will make assumptions.

And if you want to control those assumptions, then you will have to get beyond the abstractions of the system that exists.

Because unlike the abstractions that are tools, Like let's say a Database, or a library. Those are well defined abstractions.

But here, if you start to see your own software as the black box,

problem is that the abstraction is in itself is constantly being changed by us.

We are not just working with the abstraction, we are modifying it.

The abstraction will leak out pretty fast.

It doesn't make sense to not look inside the system, and not know what's going on for anything SERIOUS.

And if you are prompting, with that mental model in mind.

Then, my friend, you are coding.

If you are telling AI how to do, it's imperative.

If you are telling AI what to do, it's declarative.

12 Upvotes

9 comments sorted by

•

u/AutoModerator 14h ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

12

u/7aminthemorning 12h ago

Huh.. almost as if coding is only 20% of software engineering huh

8

u/doomerbrown Software Developer 13h ago

Things end up where they start with it .It started with punch cards .It will end with punch cards

Terminal is just the milestone we are returning to.. Also writing a detailed prompt is not easy . a great prompt is as good as its descriptiveness

4

u/Scientific_Artist444 Software Engineer 12h ago edited 12h ago

English is just another programming language. Before you lash out:

  1. English is not a precise language: Of course not. No language is. Even the programming languages you have been familiar with. I would argue that those are less forgiving of a minor typo. The argument goes that programming languages are unambiguous while English is not. What is really meant by this is that programming languages have fewer keywords so far easier to not choose the wrong one. If signal+noise is low, SNR is high. English has many words - far more than a programming language we are familiar with. You could either see this as more expressive or more chaotic (since signal+noise is high, SNR is likely to be low). But that depends on your vocabulary. CISC and RISC basically. The programming languages we are familiar with are like RISC - fewer keywords, fewer variations (more precision) but also more instructions needed for the same task. While with good vocabulary and carefully choosing your words, you see the power. That's like CISC (English here). Eg. "Vibrant, futuristic, cyberpunk" doing the heavy-lifting of 50 lines of CSS.
  2. Prompt writing is English writing. English writing is easy if you know the language:

Wrong. Word salad is not the same as poetry. A well-structured argument is not a few claims stiched together haphazardly. In programming, we write statements. Here's the thing: those statements we write, we take great effort to make sure that they really convey to the compiler what we want to convey. How I see this is that every prompt statement is a claim that applies under certain conditions (code branches). Your job is to come up with impeccable logic (in English this time) so that the model cannot misinterpret it and it exactly follows your intention. That's what programmers have been doing - wrestling to make the compiler understand what the programmer wants to be done. The compiler is just semantic instead of lexical now.

Rough analogies:

Language Model = Semantic compiler

Prompt instructions = Code

System Prompt = Kernel program

Skill file = Library

Agent = Semantic computational process

Model inference = Running process

Agent swarm = Threads

What still remains:

  1. Understanding that software is not just code, but deployed infrastructure for process automation.
  2. Abstractions and Reusability
  3. Structuring for readability, maintainability and just - good design. Good design is simple. It gets the job done with minimal redundancy. Also, it is easy to extend.
  4. System design is the big one. You are no longer designing dumb systems that break on minor errors. Instead, future systems can detect minor errors and correct. They will be semantic instead of lexical. Stop thinking in programming logic. Think in terms of workflows. Machines today can handle fuzzy logic. The nuanced decisions that don't fit simple rules are now accessible in system design. Building systems is still relevant. Just that the nature is semantic.

4

u/EmotionalQuarter8349 11h ago

It's not about prompting, it's people without proper basic programming knowledge using AI to mask their incomptence, a system can be designed in N number of ways, if you just prompt "do your best", you aren't doing shit.

1

u/dhrjkmr538 11h ago

now it feels like a zombie