this post was submitted on 24 Feb 2024
798 points (97.1% liked)
Programmer Humor
19589 readers
2068 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Been doing a whole lot less of that now that copilot is up and running. Didn't expect it to be such a productivity booster tbh.
... I tend to get down votes when I say copilot has improved my work a ton.
Most of my code isn't ground breaking shit. I gotta write a script for my task. It's 90% copying with 10% modifications for my use case.
It also does comments for me...
I wrote a script the other day in like 30 min tested working that would've been 2 hrs easy.
Yeah, I was lucky that I snuck into my company's pilot program for it.
I'm impressed at how often it predicts what I'm about to do. The code almost always needs a slight bit of editing, but it almost always at least shaves a bit of time off of whatever task I was doing.
I no longer go straight to stackoverflow, I always ask the copilot first. Sometimes even just phrasing the question in natural language, something I wouldn't do it trying to find it via search or stackoverflow, is kind of like rubber duck debugging, and I'll come up with the answer while writing it out.
My fav thing is two things.
It reuses MY OWN CODE STYLE. So if I ignore a suggestion and setup a try catch in my own quriky way it'll actually reuse it later on when I'm scripting. This works best when you add comments for the sections you write FIRST. So you comment
# create array for x data
it'll do that ortry catch for query
it'll give you a suggestion for the next block right away.DEBUGGING. github copilot can see your terminal and script so it'll give you a detailed breakdown and suggestions. Blew my mind the first time.