Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Will ChatGPT and its near future upgrades replace some scripting work?
1 point by markus_zhang on Jan 26, 2023 | hide | past | favorite | 9 comments
Hi friends,

I think ChatGPT is pretty convincing when asked to generate an Airflow DAG that queries a date partition of a Google BigQuery table and checks if it has 24 unique values for a column in that partition.

It generates some code that by a glance can immediately put into Pycharm and execute without much modification. I then up the difficulty by asking for another task that fetches a secret from Google Bucket and use it to query an API and store the result into a BigQuery table. It surprisingly writes some good code that I can modify and use. Of course it doesn't know exactly know what data I need and which table to store, but the boilerplate part is pretty robust.

This leads to think that once we can feed ChatGPT with some conditions (for example feed it with some sample code in production), we might be able to develop rather quickly. It's not going to replace programmers for sure, but will accelerate a lot of mudane tasks -- and most tasks are indeed repetitive and mudane.



Yes, in the next couple of years. Right now it's a bit like supervising a bright but overconfident kid. It does a good job on some things, but often introduces new mistakes in the process of correcting earlier ones.

For example, I might ask it write a function and get one that's mostly right, except for one thing. I'll tell it 'great, just change_one_thing' and it will rewrite the function function differently (switching a structure from a tuple to a dictionary, or adding in calls to functions that don't exist etc.).

It helps a lot to start with an outline and use consistent labels in instructions. Also, to bear in mind that it will almost invariably charge ahead with its best guess rather than asking a clarifying question.


I'm seriously considering switching to a career that goes beyond scripting. Might try some low level work that requires good understanding of computer internals. Does it make sense? I now work as a DE and my work is 100% of scripts.


I can't say for sure, but it seems like there's a big market for internet-of-things developers, and working on small-capacity systems with limited computer resources definitely demands such understanding. It's cheap to try out, since microcontrollers with a usb interface can be bought for just a few dollars, and the development tools like Arduino IDE or VS code plugins are reasonably mature. IT's also fun to work on tiny computers, without being difficult to get started.


Thanks, yeah I already dabbed into the field and it is fun. I did hear that HW is mostly reserved by people who have education though.


Don't let that deter you. There is usually more demand than supply and in the microcontroller market I think that will go on for quite a while, because uCs are so cheap that every manufacturer wants to put one in a consumer device. If you keep having fun and make cool little projects you can carry in your pocket and show to people, sooner or later someone will ask you to do it in exchange for money. It's one of the nice things about the technology industry.


Like Github Copilot?


I have never tried that. How good it is?

BTW I just asked ChatGPT to create a script that deletes all branches older than 1 month for a repo, a task that took me a while to learn and complete a few weeks ago.


I'd be afraid that it writes a script that almost works but deletes too much.


Yeah humans always need to double check but arguably the bulk of the code is good. I'm sure if it can consume internal scripts it can probably do 60% of my work right now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: