Lädt...


🔧 Building a python backend with ChatGTP - Or not.


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

This will be a very short article - the executive summary is - don't use AI for python code. It doesn't work;

AI is very good at python coding, but it can't deal with the mess of packaging dependencies and breaking changes in bundling a real world python app.

On day 1, I had an entire app - frontend, backend, user authentication, login with Google and other OAuth providers, custom data model, and unit tests.

On day 2 I spent 6 hours trying to get the unit test to work. I thought I made some progress. But I also noticed that ChatGPT (and all the other LLMS - I tried a few) would sometimes start looping on a problem.

Looping is: GPT writes "Code 1" - run - errors - GPT fix errors with "Code 2" - errors - GPT fixes errors with "Code 1" - .... infinite loop of going back and forth between two code bases.

On day 3 I decided to get really into it and understand all the code so I could fix it up - reading documentation on the various clever ORM wrappers, packages, and so on. The unit tests almost started working, but then never really did.

Day 4 I decided I will actually write all this from scratch - building something minimal that works, then building on top of that, just like you normally would.

Why is ChatGPT failing so badly at Python? The reason is that GPT can't deal with Python's main problem - the package manager, breaking change versions of both Python and available packages.

The AI writes very nice, functional, correct Python code, and can explain it very well if needed; but it can't deal with a package that was upgraded to suddenly have a completely different API. With an ORM wrapper that can do things in a variety of different ways.

So something that should take 2 minutes, like "please just give me a backend with user authentication" takes 5 days or in my case, never even gets done as the AI loops between non-working solutions.

Lessons learned!

Perhaps understanding what you're doing is not as dead yet as some of us thought. It's still relevant in 2024.

...

🔧 Building a python backend with ChatGTP - Or not.


📈 55.13 Punkte
🔧 Programmierung

📰 "South Park": ChatGTP schreibt Drehbuch über sich selbst - hier seht ihr die Episode


📈 28.58 Punkte
📰 IT Nachrichten

🐧 ChatGTP terminal client


📈 28.58 Punkte
🐧 Linux Tipps

💾 Bard und ChatGTP: Chatbots sind nicht so revolutionär, wie es scheint


📈 28.58 Punkte
💾 Downloads

📰 ChatGTP Used by Threat Actors to Create Deployable Malware


📈 28.58 Punkte
📰 IT Security Nachrichten

🔧 What is ChatGTP and why should you care?


📈 28.58 Punkte
🔧 Programmierung

📰 Künstliche Intelligenz schreibt Texte: Werden wir bald alle von ChatGTP ersetzt?


📈 28.58 Punkte
📰 IT Nachrichten

🔧 Building a crashproof cloud backend in Python using REST and PostgreSQL


📈 21.81 Punkte
🔧 Programmierung

🕵️ Shopware up to 5.1.4 Backend backend/Login/load/ privilege escalation


📈 20.98 Punkte
🕵️ Sicherheitslücken

🕵️ Fork CMS 5.4.0 Backend /backend/ajax cross site scripting


📈 20.98 Punkte
🕵️ Sicherheitslücken

🕵️ QCMS 3.0 Backend /backend/system.html webname Cross Site Scripting


📈 20.98 Punkte
🕵️ Sicherheitslücken

🕵️ QCMS 3.0 Backend /backend/system.html webname Cross Site Scripting


📈 20.98 Punkte
🕵️ Sicherheitslücken

🕵️ Shopware bis 5.1.4 Backend backend/Login/load/ erweiterte Rechte


📈 20.98 Punkte
🕵️ Sicherheitslücken

🔧 [DAY 113-117] I built 5 backend projects to acquire a backend certificate


📈 20.98 Punkte
🔧 Programmierung

🔧 What is Backend Development: Understanding the Fundamentals of Backend Development


📈 20.98 Punkte
🔧 Programmierung

🕵️ CVE-2015-1428 | Sefrengo up to 1.6.0 Backend backend/main.php value_id sql injection (EDB-35972)


📈 20.98 Punkte
🕵️ Sicherheitslücken

🔧 My Backend Journey:Overcoming Backend Challenges


📈 20.98 Punkte
🔧 Programmierung

🔧 Conventional backend system Vs ML backend system


📈 20.98 Punkte
🔧 Programmierung

🕵️ QCMS 3.0 Backend /backend/system.html webname cross site scripting


📈 20.98 Punkte
🕵️ Sicherheitslücken

🐧 Switching Geany to execute Python files as Python 3, not Python 2


📈 20.6 Punkte
🐧 Linux Tipps

📰 “If it is not right, do not do it, if it is not true, do not say it.” – Marcus Aurelius


📈 18.98 Punkte
📰 IT Nachrichten

🔧 Building Pure Python Web Apps With Reflex Part 1 | Building the Frontend


📈 17.35 Punkte
🔧 Programmierung

🔧 Python Day 10 - Meme Magic 😍: Building a Custom Meme Generator with Python


📈 16.6 Punkte
🔧 Programmierung

🔧 Building a Reverse Proxy Backend Server


📈 16.52 Punkte
🔧 Programmierung

🔧 Building a Type-Safe Microservices Backend in Go


📈 16.52 Punkte
🔧 Programmierung

🔧 Learn Node.js by building a backend framework with 0 dependencies


📈 16.52 Punkte
🔧 Programmierung

🔧 Building a fully Type-Safe Event-Driven Backend in Go


📈 16.52 Punkte
🔧 Programmierung

🔧 Getting Started with ReactJS: Building a Simple React App with a Node.js Backend


📈 16.52 Punkte
🔧 Programmierung

🔧 Building a React Web App with a Go Backend


📈 16.52 Punkte
🔧 Programmierung

🔧 Building a Modular Decoupled Backend using a Monorepo


📈 16.52 Punkte
🔧 Programmierung

matomo