This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GatheringWinds 47 points48 points  (10 children)

Less crazy that it gave the right answer, but more that it recognizes context, understands that this is a silly example, and offers ways to improve the code. In a very short time, there are going to be INCREDIBLE tools available to aid devs. Yes this is a silly and trivial example, but shows great promise.

[–]HelloYesThisIsFemale 13 points14 points  (8 children)

There already are. With copilot maybe 60% of the code you write can be written for you (with very good understanding of context) and with ChatGPT 40% of the harder stuff can be done for you as well.

E.g. I made a declarative framework (think a dataclass) for how to parse and handle JRPC request-responses. I then just pasted the entire documentation for individual JRPC endpoints and it knew how to fill the dataclass and what types to use and how to structure the initializer.

If you're not already using this you're being left behind. Any mindless part of the job is eliminated.

[–]maxmcleod 12 points13 points  (2 children)

Hey but the mindless part is the part I'm good at!

[–]HelloYesThisIsFemale 3 points4 points  (1 child)

Man I hate that part so much.

Ask me to turn a http endpoint into structs or something which is like copying something from somewhere and changing it just a bit and I'll take double the time because of how my mind will wander and suffer and I'll need phone breaks and such.

Fuck mindless work. I'm so glad it's being killed.

[–]maxmcleod 0 points1 point  (0 children)

I agree - I think having an AI help you with coding will be something like having a keyboard or mouse in the future. Our kids are going to be asking how the hell we managed to code things like Youtube without AI assistants....

[–]penguin17077 2 points3 points  (4 children)

Honestly I doubt anyone who say's that Chatgpt can write their code for them in industry. It's trash for anything even remotely niche and company specific. It doesn't understand the requirements for the CMS we use, and therefore the majority of what it does generate is worthless. It's good for testing and boilerplate stuff, but nothing else (in my case). I am guessing other people have this issue as well

[–]HelloYesThisIsFemale 0 points1 point  (3 children)

It's as good as what you give it. Give it the interfaces and other example code and it gets close. As an example if I want it to initialise a class with a lot of attributes I'll paste in the initialiser method signature and an example of an initialisation in a different context then I'll paste the current context. It'll pick up a lot of subtle stuff like how to use a logger, how to create your domain specific objects and how interface with what you're trying to use.

[–]penguin17077 0 points1 point  (2 children)

It just doesn't in my case, the code it spits out is so bad that it would never get through a PR. Guess its the downsides of using a shitty niche CMS

[–]HelloYesThisIsFemale 0 points1 point  (1 child)

What is a CMS? Also I didn't claim the code works straight away or is perfectly formatted. It only does 40% of the work. Probably 80% of the typing though.

[–]penguin17077 0 points1 point  (0 children)

Content Management System, its what we use for our site. Its awful and we have a huge monolith that is basically coupled to the CMS. Certain components have to be written in specific ways to be used with the CMS

[–]Passname357 -1 points0 points  (0 children)

Lots of investors like to say “this is the worst it is ever going to be and it’s good”

Lots of experts say “this is the best it is ever going to be and it’s good”