ChatGPT4 - Is everyone ready for the tsunami wave of "developers" applying for your jobs on offer?

John Carmichael
0 replies
So the hype got to me... I wanted to find out just how good this thing was for generating code. I asked ChatGPT4 this: >>>> [OpenAPI text from: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2.0/yaml/petstore.yaml] Can you make me the required Typegoose database schema files based on this open API file?" It output this: _________________________________ import { prop, getModelForClass, Ref } from '@typegoose/typegoose'; import { Category } from './Category'; import { Tag } from './Tag'; export enum Status { AVAILABLE = 'available', PENDING = 'pending', SOLD = 'sold', } export class Pet { @prop({ required: true }) public id!: number; @prop({ ref: () => Category }) public category!: Ref; @prop({ required: true }) public name!: string; @prop({ type: String, required: true }) public photoUrls!: string[]; @prop({ ref: () => Tag, type: () => Tag }) public tags?: Ref[]; @prop({ enum: Status, required: true }) public status!: Status; } export const PetModel = getModelForClass(Pet); _________________________________ For anyone who is not a developer... the shortened summary of this very real chatgp4 output is... - It looks like good functioning code but it is not at all - It is missing a lot of key components that will actually make it work. - It has entirely made up "status", "photoUrls" and "category" The thing is that this was a very simple task. With increased complexity, it will make spotting those errors hard and more time-consuming than just writing the code your self. If you are a developer, there are some other hidden traps in that simple code... see if you can spot them :) A long time ago, when I started learning how to code, we had to learn the most crucial aspect of development to learn how to research and spot good/bad code. With this new generative AI, the new devs coming through, I fear, are going to be a somewhat lazy bunch. If you are running a startup then budget is important... I fear cheap developers now are going to be churning out low-quality code from GPT which is going to only create more work in the long run.
🤔
No comments yet be the first to help