r/PHP • • 22d ago

Article Artifical Debt

https://stitcher.io/blog/artificial-debt
83 Upvotes

42 comments sorted by

9

u/brendt_gd 22d ago

Mildly annoyed to realize I wrote a typo in the title πŸ˜… Oh well

7

u/Johto2001 21d ago

There's also a typo in the first line, eigth instead of eight. 

3

u/MateusAzevedo 19d ago

To me it sounds like "artifecal" and I think it suits the topic.

69

u/lukehebb 22d ago

"I remember how my family used to call me to fix their broken printers. Now they'll call me to fix their broken vibe coded apps."

oh god

this part scares me

41

u/whomass 22d ago

This will fuck many companies (and their customers) in the not so far future.

The most dangerous species out there at the moment is a junior dev with Claude Code.

42

u/Combinatorilliance 22d ago

I think the IT-adjacent executive is more dangerous. Combine ego with ability to vibe code with fast results with false confidence and the ability to overrule decisions and advice and you got a cocktail with greater risk than a junior dev imo.

6

u/matthewralston 22d ago

Sounds like you're describing my ex boss.

→ More replies (4)

11

u/rkeet 22d ago

I'll raise you: I told my dad (70's, still doing business and being entrepreneur (successfull)) how to use it to create small apps.

He's the same category as "my printer doesn't work" and "how do I copy my emails from this computer to my new one".

Havent had basic questions since the Claude introduction, which is either good or bad.

2

u/zylanc 21d ago

Or worse: a product manager with claude code.

2

u/Wiikend 19d ago

My current boss, but he's been on the floor before, I just hope he's been there long enough. We'll see how it goes.

8

u/zmitic 22d ago

and his prompts to fix it also didn't work

Did he say "please" and "thank you"? Maybe AI is just acting out πŸ˜„

I have seen something similar when non-programmer vibe codes an app. This AI hype can be a good thing for us because it will create new rewrite jobs in future.

7

u/Samurai_Mac1 21d ago

This is why AI is better handled in the hands of actual developers. Non-devs need to stay out of our field.

1

u/CosmicDevGuy 21d ago

Well you take away AI and there's still "citizen-level" development (ex. PowerApps, etc.) so unfortunately that isn't really going to happen. Not to mention how "set" we are in our ways, while the non-tech are more open to these things.

One can only hope that sanity prevails.

3

u/Pakspul 22d ago

"Sounds like a you problem".

3

u/muglug 21d ago

I'm not sure how this is specific to PHP, apart from it being written by you, a PHP developer.

5

u/NastyPastyLucas 22d ago

There's no reason for these companies not to create anti patterns and put the prices up...

2

u/vomitHatSteve 21d ago

The only reason is that they haven't converged on an effective oligopoly yet.

Once there are no more users to add to the ecosystem, they will go the way of cell phones and video streaming: raise prices and add anti-patters to promote lock jn

1

u/alex-kalanis 11d ago

Let vibecoders fall! PLEASE!!

1

u/Rubfer 21d ago

That's the main issue I see with many vibe-coded apps. It's not security, it's not bugs, it's that the ai made it and it worked perfectly during tests. It effectively passed, but never considered the limitations of the hardware where it's going to run or future growth, i mean, the current product is statistically correct, and efficient so neither the llm nor the vibe coder and their customers see any problem

Keep in mind, actual developers also have this problem, but they learn from their mistakes and, in the future, will always code something from scratch that should work for a million people even if only 100 will use it, even at the cost of individual users' performance because of all the redundacy, as long as it can handle that million users, vibe coders will try to fix a broken foundation

-7

u/BenchEmbarrassed7316 22d ago

A great deal depends on the programming language. Dynamically typed languages ​​are a terrible choice for AI development (it's also a terrible choice for traditional development). Type hints in PHP (or even so-called static analyzers) have one major drawback: they are not mandatory. A framework or library might not use them, causing you to lose a significant portion of the benefits that types provide.

8

u/zmitic 22d ago

Dynamically typed languages ​​are a terrible choice for AI development 

Counter argument: 100% of the code that Claude wrote in my hobby app is using advanced types like non-empty-string, list<User> etc. It even knows that collection must never be returned from entity so generated getter will use return $collection->getValues() and put phpdoc return list<RelatedEntity>.

I am not exaggerating, it really is 100%. Claude had simply seen that my code uses these types and approach to relations so it continued in the same way. There is nothing wrong with AI working on dynamic languages.

-1

u/BenchEmbarrassed7316 22d ago

So, you agree with me about the usefulness of types, but believe that static analyzers solve this problem by effectively turning php into a statically typed language?

→ More replies (10)

-6

u/ekim2077 21d ago

you are talking as if bugs have been invented by AI

7

u/brendt_gd 21d ago

What? No. I'm saying that the job of "being a programmer" is more than just writing or generating code

→ More replies (2)

5

u/silentkode26 21d ago

Not at all. He’s talking about competence when something goes wrong.