Build an Inventory Management System using Pakai Server with ChatGPT

alwaysbusy

Expert
Licensed User
Longtime User
Our take is, as long as A.I. can't generate code without ANY mistake, it isn't A.I. After all, we are talking about computer languages where 'interpretation' is worth zero. It's not like we're writing a poem :rolleyes: Just imagine asking it to write an algorithm to give a certain amount of medicine to a person (where every single thing is important about this person) and the A.I. code just ommits an ELSE branch because it 'looks' better. The horror ... No thanks.
 

Mashiane

Expert
Licensed User
Longtime User
A.I. code just ommits an ELSE branch because it 'looks' better.
I've learned to include "do not make assumptions" in my prompts. It always does that. Refactor code without being told etc etc, it's *loko* (mexican accent) I tell you.

I just think the world is inventing a "Terminator". We are aware we are but we are doing it anyway. For some its working, I was reading how an AI influencer who creates music was signed up by one of these music companies. Strange times.
 

fernando1987

Active Member
Licensed User
Anyone can make attempt to create any system to prove something.


I know it is not difficult for me but it is difficult for ChatGPT.


Ok, as I said, I am not looking for building such system. I was just testing vibe coding with ChatGPT.


Yes but I am not saying I failed with B4J.


You can use any tool you like.
You may want to build a desktop + server solution using your creation.
You can use low code tools.
You can even use VBA to create your apps.

I want to clarify, Pakai Server is a web backend framework.
It is not fair to compare apple and orange... and banana, etc
You don't tell me not to eat Apple. Orange is more juicy or another person tells me Banana is more nutritious.
I am talking about different use cases. Please don't give me other examples.

The use case of Pakai Server is to create a web solution that is
  • platform-agnostic,
  • not only limited to one database engine and
  • can use with any web frontend frameworks.
A desktop solution is a different use case.
Low/No code solution is another solution but again it is a different use case and it also has it's Pros and Cons.

Pakai Server is created as a web framework to compete other programming such as:
  • Laravel for PHP
  • Django for Python
  • Spring for Java
  • Web API for .Net
It is not created to compete with any other B4X projects in this forum.

I don't want to be more obvious and explain further. I hope all members get what I mean.

You can make an attempt by asking ChatGPT to use your own tools to create an app and see what you get.
Thanks for your comment, aeric. 🙏
I tried using ChatGPT and I failed, even after giving it very detailed instructions on what should be done. However, I did get something valuable out of it: the database 😅.


I think AI is not perfect and most of the time we will run into errors if we expect it to build a complete system from start to finish. For many developers, especially newcomers, this can be frustrating. The good thing is that we can always go back to the traditional way, and sometimes that turns out to be much simpler.
 

Mashiane

Expert
Licensed User
Longtime User
The good thing is that we can always go back to the traditional way, and sometimes that turns out to be much simpler.
I tend to think there is just a lot of hype around tools AI right now. Yes, some are able to deliver on promises made and some not.

The biggest hurdle though is prompt engineering. You speak with a baby, baby talk and not adult talk for example. I think these tools expect some kind of structure in what we ask for it to understand things clearly, otherwise it goes around in circles. Anyway, even if one does provide some context, still get goobly gook.

Anyway, is one site I found today where all of these models are in one place and one can feed prompts. Will check it out.


And there is "Nano Banana", a lot is happening.
 

aeric

Expert
Licensed User
Longtime User
I was live streaming and live coding just now


edit: Video trimmed
 
Last edited:

aeric

Expert
Licensed User
Longtime User
In the video, I made a typo error for Supplier -> Suppplier
I also found a bug in Web Handler.txt Code Snippet in WebApiUtils.b4xlib
 
Top