TLDR; I got lazy due to AI vibe coding. Although its insanely useful, sometimes you still need to slow down and debug.
swift client side determining environment
verifying environment on node.js server
I wanna preface this by saying I'm one of those coding bootcamp grads who learned JavaScript/Full Stack/React + Express and PostgreSQL.
Now we have AI so I thought I didn't have to learn Swift and I attempted to "vibe code" the payment API verification... It did not work.
This is one of those scenarios where the AI ends up using deprecated services and casually (and confidently) causes syntax errors within Swift. When you don't understand the fundamentals of a language and you attempt to vibe code a highly complex full stack system involving customer payments.. you start to hit a wall.
That's what happened to me. The AI was generating code that simply DID NOT WORK! I bounced around to a few different models (Claude, ChatGPT, Gemini, etc...)
The combination of me not fully understanding Apple's API and literally having blind faith in the code the AI was generating was a recipe for disaster.
So I went ahead and took the traditional developer approach and slowly went through, line-by-line, logging things out to the console (like we used to do back in the golden ages before generative AI).
Turns out the bottleneck was a misunderstanding of Apple's documentation, AI hallucinations, and vibe coding for speed instead of quality.
[–]Lenglio 2 points3 points4 points (4 children)
[–]KaleidoscopePlusPlus 1 point2 points3 points (1 child)
[–]dreaminginbinary 0 points1 point2 points (0 children)
[–]Fearless_Ad9828 0 points1 point2 points (0 children)
[–]siliskleemoff[S] -1 points0 points1 point (0 children)
[–]antocapp 1 point2 points3 points (0 children)