Glorious Alpha Two Testers!
Phase I of Alpha Two testing will occur on weekends. Each weekend is scheduled to start on Fridays at 10 AM PT and end on Sundays at 10 PM PT. Find out more here.
Check out Alpha Two Announcements here to see the latest Alpha Two news and update notes.
Our quickest Alpha Two updates are in Discord. Testers with Alpha Two access can chat in Alpha Two channels by connecting your Discord and Intrepid accounts here.
Phase I of Alpha Two testing will occur on weekends. Each weekend is scheduled to start on Fridays at 10 AM PT and end on Sundays at 10 PM PT. Find out more here.
Check out Alpha Two Announcements here to see the latest Alpha Two news and update notes.
Our quickest Alpha Two updates are in Discord. Testers with Alpha Two access can chat in Alpha Two channels by connecting your Discord and Intrepid accounts here.
Comments
we've had code generators for decades now and they are better than ai xddd
not saying ai wont be able to do it better in the future, sure its possible. ai is the future, but ai "has been being the future" since the 60s or earlier
So to clarify, You have had programs that you can tell to "create C++ code for an interactive inventory where I can place items in it, and take them out." and it will just give you everything copy pasta like?
Just so we can sort this out, here's the answer chat gpt gave me. I have no clue about coding, so please tell me what its getting horribly wrong here.
https://chat.openai.com/share/2bbd0233-e3a0-4c5f-94cf-47e8a431d8ab
Plus A.I.'s don't need to be paid a Salary - and need no sleeping or eating and so on.
As the Developer Team of Intrepid is working hard and long however to bring all the good Mechanics and Contents of Ashes to Life which many People loved already on the earlier ArcheAge,
i think they won't leave it to A.I. To many Chances that some Mistakes will be made and Players disappointed, won't there not ?
✓ Occasional Roleplayer
✓ Guild is " Balderag's Garde " for now. (German)
Then it starts coding itself. Now you worry.
yes. kind of
so an inventory is nothing more than an array (or a list). you can use other data structures if you want, such as a dictionary (check your big o notation), but I wont go there, ill keep it simple.
the same code that you would use to create a grocery list and add food to it, is the same code that you would write to create an inventory system, or a todo app, minus the variable names. i can use a code generator to create a list, a method to add items to it, and another one to remove items and I can use that generic code for an inventory system in a video game, a grocery list, a shopping cart, etc, etc. that's also code that has already been tested and optimized, so I don't need to do that again.
code made by ai needs to be tested. why? because ai doesn't give you the solution to what you want, it gives you what it thinks is the most probable solution. for example that code that you posted gave me a headache with all the if else's. i gave chatgpt the same prompt you did but told it to write the code using design patterns (check the design patterns book by gang of four) and it still gave me an if else and a for loop! i had to tell it to do it again and explicitly tell it to not use the if else's and for loops. without going into details, they are bad and made the code harder to read and test. to be fair, you could ask the ai to write the tests as well, or use TDD (test driven development) to create your programs, which is an improvement.
also, that code seems to have been made for a console program. it also put a big switch in the main function (ewww more smelly code) I'm an advocate of not putting code in the main function, only calling code. a lot of people do this too. switch cases are smelly as well, but its ok to use one for your main menu inside a while loop if you are writing a console program.
also, I haven't used c++ since 2014 or so so I don't remember all the nuances, but c++ requires manual memory management and garbage collection. chances are, there's something fked up in the code chat gpt wrote, but it doesn't know because it learns form good code and bad code. you also need to tell it the exact prompts. a non programmer wouldn't know how unsafe and difficult c++ is, then builds an app using chat gpt. 1 week later the app crashes and he cant fix the issue. he doesn't know whats going on. app is dead. ai is probably better now with languages that have automatic garbage collection, maybe minus javascript since you would still need to know about certain things, such as object freeze.
other nuances include using functional programming. for example, most languages have a way of removing elements from an array or a list (in the example you posted, chatgpt used vector.erase(), you also have vector.popback()) in javascript, you can use array.pop(), you can also use array.splice(). ai code generators would most likely use these methods, but you shouldn't. using filter() is safer since it creates a copy of the array minus the element(or item) you want to remove. use the equivalent for other languages.
ai doesn't know this because it doesn't know coding. you would have to include these things in the prompt. also, ai isn't considering how extensible and maintenable the code is, or if you need to modify it or add / remove things later. maybe only if you tell it so. writing a program isn't an issue. maintaining it is.
prompt would probably be so complex that it would be faster to just write the damn thing yourself.
if you don't know the pitfalls to avoid from the specific languages the ai is using, you wont be able to tell that to the ai generator. a regular code generator made by a human already took that into consideration.
we mostly use code generators for boilerplate stuff though, although I've heard google is a decade or 2 ahead of everyone else in code generators, from someone who used to work there. the rest of us who don't have access to that technology just use the cli to generate certain stuff.
also, compilers, transpilers and interpreters are code generators, they have existed since the 50s. we don't write in assembly directly anymore. every time you see int age = 20; or print("hello world") that code is evaluated and the equivalent assembly code is generated automatically for you and then made into machine language. no ai needed (but probably not the answer you were looking for since you asked about the inventory).
to put it in perspective, before the 50s programming was a job of 2. you had one programmer write the code in a paper, then another one translated the code into computer language. then we got fortran and lisp. now programming was a 1 man's job. but guess what? people didn't lose their jobs. we got more programmers even though we needed less people to do the same job, and we still need more.
i have messed around before with chat gpt, and it writes really dirty code. I'm not saying things cant improve, but we arent there yet. its definitely a helpful tool in the toolkit, but not a replacement for humans yet.
edit: you also have libraries and frameworks made by other people. you could simply download an inventory library or asset, then slap it into your project and it will be far far better than asking ai to code it for you.
but you need to pay someone who writes the prompts and know what pitfalls to avoid
if you are making a webapp, nothing beats using observables and functional reactive programming for asynchronous code and HTTP requests. but if you are building a microcontroller for an operating system, then you want to use a more imperative or procedural style because of certain limitations. and finally, if you are making a video game, you would want to use a more object oriented approach. you don't want to use a functional style here, since all that boxing and unboxing of thousands and thousands of functions on your update function every frame will make your player's computers crash. these are things to consider that ai doesn't know. prompts would be too complex.
also, more time is spent reading code than writing code anyways, just throwing that out there ;3
sorry for the triple post T_T
The One who scripted the A.I., of Course.
But the A.I. itself ? When it makes the Job of +20 to +30 People or even more at once ? Why would pay something that has no free Will and will make whatever you order it to, Twenty-four-Seven every Day of the Year ?
✓ Occasional Roleplayer
✓ Guild is " Balderag's Garde " for now. (German)
the one who scripted the ai.... so basically If I make an ai that can code (and you actually mean a team of devs) they have to travel all over the world every time someone wants to use it?xD
also, ai programmers arent video game programmers, or web devs, or phone devs, etc. you would basically need to spend thenext 20 - 30 years learning about all the stuff you need to avoid in ever single domain in programming so that you can then start giving prompts?
or
become a programmer, get good in one area, and give the prompt...or just build the damn thing yourself
things might change in the future, but not anytime soon. again, been like that since the 50s xD
Overall they are racing against time but I doubt it will be a huge issue. The primary issue will just be the augmentation that AI allows developers to build games much quicker. That is happening now, but i stick to my 10+ year timeline for fully fleshed out games being possible for non game developers.
uhmmm...you could do that as early as 10 years ago without using ai (not sure if earlier though, but probably). and now you even have visual scripting (I don't recommend it) but you basically just click things and build a complex game...
we've also had the no-code movement for decades. we've had non ai code generators for a while now...and they are better than ai (which we've had for a couple of decades as well). perfect ai code generators are probably still a good 20-50 years into the future.