![]() This will start the server, which you can then access by going to in your web browser. ![]() After that, you can run the app by using the node command followed by the name of the file containing the code, for example: node app.js. > To run this code, you would need to install the express npm package by running npm install express in your terminal. Given this code for an example CRUD app, what unix commands could I run on my system to actually run this code? I asked GPT how I could run it with this prompt: delete the user with the specified id from the save the updated user to the database, etc. You can ask for a simple example of a CRUD app, here's my code output:Ĭonst user = Object.assign(, User, req.body) Some people, who are being lazy, might think that ChatGPT is a way out of studying and understanding what is being done, and they will sooner or later found out that it isn't. Because a person has copied a piece of code from somewhere doesn't mean they don't need to know programming, what is going on, or how to troubleshoot it. Instead of a person doing the hard work of searching Stack Overflow and other sources, ChatGPT can be the new centralized source to get copied segments of code.Ĭopying and pasting code from various sources is not anything new. The thing about that is it is taking and searching code that thousands of humans have created, "filtering" based on question asked, and giving it back to you. ![]() A way to look at this is if you could type out questions to Stack Overflow, then it responded by giving you code that most closely matches to what you asked. ChatGPT is regurgitating copied code from various sources. I think this is getting caught up in media sensationalism. No longer does a person need to know how to program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |