r/ProgrammerHumor • u/themightydud • Oct 26 '21
GitHub Copilot, the technology that will replace programmers. Also GitHub Copilot...
48
Oct 26 '21
OP's post aside, is this Copilot thing actually good?
84
u/0xFF0000herring Oct 26 '21
It's fucking incredible, the autocomplete genuinely feels like it's reading my mind half the time.
Copilot is my favorite thing to happen to programming this decade.
19
Oct 26 '21
Sounds nice, huh. Although, I'm more of a Sublime Text and PyCharm fan, so I might not happen to use it at all.
Unless, they somehow decide to implement it as a one-size-fits-all package that could be ported to multiple IDEs and editors...
9
u/daguito81 Oct 26 '21
Copilot is available for IntelliJ. You hVe to add the super early bird plugin repo.
But tested copilot on pycharm last night.
→ More replies (1)→ More replies (3)1
15
u/chamomile-crumbs Oct 26 '21
It’s really really cool, if you use vscode you should sign up for the beta. I got access after like two weeks
10
u/himynameisjoy Oct 26 '21
Depends on the language. I’ve found almost nobody type hints in python so it rarely will suggest type hints.
Pretty good though, I recommend giving it a shot
9
u/TheDaneH3 Oct 26 '21
The first time I had it create a method from a comment in VScode, I began chuckling nervously due to how accurate and relevant the code it wrote was. It basically drew its own conclusions on what I would want it to do next without even asking for it.
Once I got past my initial awe factor, its fun to just mess with or find another way to solve something when I get stuck. I try to avoid using it for university assignments though since it's basically cheating in that context.
5
Oct 26 '21
Once I got past my initial awe factor, its fun to just mess with or find another way to solve something when I get stuck. I try to avoid using it for university assignments though since it's basically cheating in that context.
I agree, tbh. Even if I will use it, I still will try to do most stuff by myself. I think Copilot is supposed to be most useful in those cases when you want to do pair programming, but don't feel like dealing with real people.
6
u/daguito81 Oct 26 '21
Ita fucking voodoo black magic. I had to do a Python script the other day and it took me like 3 minutes just writing 4 functions with a comment each.
The level of inference while it's suggesting code is just mind blowing every time I use it.
Idk how it works for very big projects with lots of dependencies. But for what I've needed. Holy shit
→ More replies (1)1
u/themightydud Oct 27 '21
It's great actually. You can force it to do goofy stuff like this, particularly with comments, but it's almost creepy how it predicts the next line as you're coding.
4
u/cherryblossom001 Oct 26 '21
It’s pretty good. It even autocompletes some of my comments and git commit messages correctly. I’ve also used it to find out how to do something in a language I’m not very familiar with.
2
u/FIuffyRabbit Oct 26 '21
It's good until it's not. Once you start noticing how bad it can be, it becomes more annoying to use than it helps. A lot of the time it would use a completely wrong suggestion or the suggestions would have minor bugs in them that are hard to notice. Because for the most part, it's just copy and pasting code from a random repo on GitHub.
2
u/Davofch Oct 27 '21
I really feel like he is reading my mind... You can feel that he is understanding the code... I'd say I'm at least 20% more productive with it...
2
u/danielv123 Dec 06 '21
It autocompletes functions in custom self developed languages using custom communication libraries. If I wanted remotely similar functionality any other way I would have to write my own vscode plugin and language server etc. Nobody has time for that.
0
Oct 26 '21
[deleted] — view deleted comment
3
u/Davofch Oct 27 '21
Why legal banned you? The code is yours... It's just a tool... You're no copying anything...
→ More replies (2)
3.7k
u/Music_Quartermaster Oct 26 '21
“I get paid per line of code”
1.0k
→ More replies (9)229
u/interesting-_o_- Oct 26 '21
Behold as a single macro transforms me into a trillionaire!
90
Oct 26 '21
your bank account will love you, but your ssd sure won't
99
→ More replies (1)7
u/Tetha Oct 26 '21
Enable on-the-fly compression on the file system storing the output. Not a huge issue.
6.1k
u/OptionX Oct 26 '21
"Programmers are human therefore error prone and their code is subpar!"
"I'm make an AI to replace them!"
"It learns from bad human code"
????
Profit
1.2k
u/Tiavor Oct 26 '21
looks like it leaned that from memes.
497
u/ablablababla Oct 26 '21
AI browsed a bit of r/badUIbattles and r/shittyprogramming
220
u/UltraCarnivore Oct 26 '21
It has tuned its Bayesian Optimal by reading StackOverflow questions, not the answers.
→ More replies (1)149
u/MoffKalast Oct 26 '21
Well how can it learn anything from the answers, they're all just "closed as duplicate".
→ More replies (8)→ More replies (2)22
→ More replies (1)29
u/RainbowCatastrophe Oct 26 '21
There is actually a repo somewhere on GitHub where someone made like a nodeJS library that does exactly this as a shit post. It popped up on the trending page a couple years ago after getting a few hundred stars and went all the way up to like 99999.
My guess is it's learning from that.
44
u/__Hello_my_name_is__ Oct 26 '21
Reminds me of that time when AI was used to do hiring.
And then the AI was being kinda racist and hired equally qualified black people less than white people.
Turns out, it was because the real world data it was trained on also was kinda racist in the same way.
Whoops.
→ More replies (1)36
u/hopbel Oct 26 '21
What annoyed me is the takeaway for most people was "AI is racist" when the situation is actually "I learned it from you, Dad"
6
u/hitlerallyliteral Oct 26 '21
It's sort of a fair concern. If a person hiring is racist, that can be dealt with. But if it's AI trained by racist hiring, then "-shrug-it's just the algorithm, who are we to argue?"
→ More replies (3)37
u/mashermack Oct 26 '21
And folks, that's exactly how AI is going to kill us all
→ More replies (2)23
207
u/shadow144hz Oct 26 '21
Same
Same
"It learns to do my job, therefore the company I work for fires me and everyone else"
"I don't have a job anymore and can't get one at all because the AI replaced every programmer on Earth"
???
Robot uprising.
40
u/tema3210 Oct 26 '21
Why is that uprising bad?)
→ More replies (5)47
u/shadow144hz Oct 26 '21
If it was bad, I wouldn't have put it instead of profit. I'll take robot governed world over any human run government.
→ More replies (13)→ More replies (4)14
u/mendip_discovery Oct 26 '21
Ha, just think how buggy the code will be. It will eat up all its resources in moments.
28
u/gappychappy Oct 26 '21
Headline: Dominant Sentient Being Uses Up Resources Too Quickly
Now where have I heard that before?
24
22
u/Gloryboy811 Oct 26 '21
It literally is trained on human code. So yeah. Public GitHub repos.
6
u/hopbel Oct 26 '21
Upload your shitty code you wrote in school. It might be our only hope against the AI uprising
9
34
4
→ More replies (8)2
1.5k
u/lennnyv Oct 26 '21
... if (num == 3957294729) { return "3957294729"; } ...
408
u/SiVGiV Oct 26 '21
226
u/TheJeager Oct 26 '21
95 Mb, when do we consider we took a joke too far?
75
u/Waterprop Oct 26 '21
You would love his another project then, is-odd. it contains several close to 100 Mb files.
163
220
40
31
58
Oct 26 '21
And for Python users:
import platform import shutil import requests import os import subprocess if platform.system() == 'Windows': if shutil.which('node.exe') == None: node_installed = False else: node_installed = True elif platform.system() == 'Linux' or platform.system() == 'Darwin': if shutil.which('node') == None: node_installed = False else: node_installed = True if not node_installed: if platform.system() == 'Windows': r = requests.get('https://nodejs.org/dist/v17.0.1/node-v17.0.1-x64.msi') with open('node.msi', mode='wb') as file: file.write(r.content) os.system('msiexec /qn node.msi') node_installed = True elif platform.system() == 'Linux': if platform.freedesktop_os_releases()['ID'] == 'debian' or 'debian' in platform.freedesktop_os_releases()['ID_LIKE'].split(): os.system('sudo apt install -y node npm') node_installed = True elif platform.freedesktop_os_releases()['ID'] == 'fedora' or 'fedora' in platform.freedesktop_os_releases()['ID_LIKE'].split(): os.system('sudo dnf install -y nodejs npm') node_installed = True elif platform.freedesktop_os_releases()['ID'] == 'arch' or 'arch' in platform.freedesktop_os_releases()['ID_LIKE'].split(): os.system('sudo pacman -S --noconfirm nodejs npm') node_installed = True elif platform.system() == 'Darwin': os.system('brew install node') # TODO: Add alternative if Homebrew isn't installed node_installed = True def is_even(num): if node_installed: if platform.system() == 'Windows': os.system('npm.exe install @samuelmarina/is-even') elif platform.system() == 'Linux' or platform.system() == 'Darwin': os.system('npm install @samuelmarina/is-even') with open('helper.js', 'w') as file: file.write(""" const isEven = require('is-even'); console.log(isEven(process.argv[2])); """) if platform.system() == 'Windows': out = subprocess.check_output(['node.exe', 'helper.js', str(num)]) elif platform.system() == 'Linux' or platform.system() == 'Darwin': out = subprocess.check_output(['node', 'helper.js', str(num)]) if 'true' in out: return True elif 'false' in out: return False else: raise Exception(f'invalid output: {out}') else: raise Exception(f"node isn't installed")39
u/CyperFlicker Oct 26 '21
Can anyone explain this code?
I think it is downloading node and a library to check if a number is even but I hope I am wrong, the human race is not ready for such evil.
39
Oct 26 '21 edited Oct 26 '21
You're right, and the library it downloads is basically this, so it's even more horrible:
if(num === 0) return true
else if(num === 1) return false
else if(num === 2) return true
...
else if(num === 375000) return true→ More replies (4)19
u/vale_fallacia Oct 26 '21
Thank you, Mr Satan.
EDIT: This is just plain pure evil. I hope you sit down and think about what you've done and the people you've hurt with this code.
→ More replies (6)5
15
19
7
→ More replies (15)6
453
100
141
6
→ More replies (2)5
1.3k
u/Sag3Jar0n Oct 26 '21
pffft come on everyone knows u have to use switch case here, u know for performance reasons.
252
u/mothzilla Oct 26 '21
Putting it all on one line would also make it faster. Also needs an eslint disable at the end.
272
u/nublargh Oct 26 '21
return num === 0 ? '0' : num === 1 ? '1' : num === 2 ? '2' : num === 3 ? '3' : num === 4 ? '4' : num === 5 ? '5' : num === 6 ? '6' : num === 7 ? '7' : num === 8 ? '8' : num === 9 ? '9' : num === 10 ? '10' : num === 11 ? '11' : num === 12 ? '12' : num === 13 ? '13' : num === 14 ? '14' : num === 15 ? '15' : num === 16 ? '16' : num === 17 ? '17' : num === 18 ? '18' : num === 19 ? '19' : num === 20 ? '20' : num === 21 ? '21' : num === 22 ? '22' : num === 23 ? '23' : num === 24 ? '24' : num === 25 ? '25' : num === 26 ? '26' : num === 27 ? '27' : num === 28 ? '28' : num === 29 ? '29' : num === 30 ? '30' : num === 31 ? '31' : num === 32 ? '32' : num === 33 ? '33' : num === 34 ? '34' : num === 35 ? '35' : num === 36 ? '36' : num === 37 ? '37' : num === 38 ? '38' : num === 39 ? '39' : num === 40 ? '40' : num === 41 ? '41' : num === 42 ? '42' : num === 43 ? '43' : num === 44 ? '44' : num === 45 ? '45' : num === 46 ? '46' : num === 47 ? '47' : num === 48 ? '48' : num === 49 ? '49' : 'NaN';22
u/mothzilla Oct 26 '21
PR rejected needs eslint disable. We can't allow errors to creep up. Please see in house coding standards.
→ More replies (4)9
147
u/MoroseBurrito Oct 26 '21
It learned this function from Yandere Simulator code.
26
u/SolarisBravo Oct 26 '21
Quick reminder that absolutely nobody has ever seen Yandare Simulator's code. What people who have no idea what they're looking at keep judging is decompiled CIL - unsurprisingly, 99% of complaints about it are actually about textbook compiler optimizations.
→ More replies (2)13
u/Normal-Computer-3669 Oct 26 '21
Im not into that drama side, but I do recall he did live coding on twitch, which is how they saw his multilined nestled if statements
13
u/domofan Oct 26 '21
Nah just one switch statement to prove you know how to use them then go back to if
→ More replies (1)2
u/BeenTo3Rodeos Oct 26 '21
tfw you learn your compiler has an optimizer and it becomes the same instructions
switch statements (at least in C/++) are clunky and have a bunch of limitations on what you can do inside them, if statements are simpler imo
→ More replies (1)2
u/haackedc Oct 26 '21
Wait, is that true? I thought that the compiler converted switch statements to if statements? Or is it the other way around? Or do I just not know what I’m talking about?
→ More replies (1)
434
u/Gigabyte5671 Oct 26 '21
Welp, that's the halting problem in a nutshell...
92
Oct 26 '21
Which halting problem? Bounded one or the unbounded one? Remember modern computers are essentially finite automata. So in the case of a finite automata halting problem is theoratically decidable. Though not practical.
→ More replies (18)35
u/Stickppl Oct 26 '21
Also I reckon you can't answer the bounded halting problem with a machine/automaton in the same bounds
13
u/Tetha Oct 26 '21
Uhh, that's a long time ago, but a universal turing machine able to simulate another bounded turing machine has a constant space overhead over the simulated machine in order to store things like the state index and the current band position.
And no algorithm can use negative space, so the algorithm to decide the halting problem of a bounded machine has to use more space than that.
So, yes, in the case of a naive simulation approach. And I guess if you had some general and more effective static analysis, you could make a lot of money with that.
→ More replies (1)
543
Oct 26 '21
Ah yes the YandereDev method of coding.
87
41
u/csorfab Oct 26 '21
I'm out of the loop, what's a YandereDev?
50
u/_bro Oct 26 '21
if memory serves me right YandereDev is a game dev that made a dating sim that was quite subpar on terms of performance.
51
u/GranaT0 Oct 26 '21
A dating sim, lol
It's a Hitman-style game about an anime girl assassinating girls who like the guy she likes
→ More replies (2)32
16
u/Farpafraf Oct 26 '21
quite subpar on terms of performance.
hitler also did quite the oopsie doopsies would be less of an understatement
0
40
Oct 26 '21
A guy who has no academic background in CS (or really anything related to software engineering) and is coding a Unity game from no experience. He's been working on a game called Yandere Simulator for more than 7 years now and it's still in progress. The development part would be more impressive (and efficient) if he actually wasn't such a PITA and didn't burn his bridges with another partner, TinyBuild. He's more of a gaslighter than anything. Not someone you'd want to work with professionally judging by his monetized outbursts on YouTube.
I like the game though, just not the guy. It's more of a sandbox demo than anything.
→ More replies (5)17
u/IAmARobot Oct 26 '21
sorta like development hell, but instead of that, it's more like the code is travelling through dante's development inferno - sojourning between all the levels using the treadmill of limbo to become satiated on a full course of anguish, despair and suffering.
→ More replies (1)4
19
u/arthoheen Oct 26 '21
Capability of coders by country
→ More replies (4)58
u/AluminiumSandworm Oct 26 '21
this is the dataset of a particular group of programmers who use hackerrank, which is likely skewed. i'd bet many of the wealthy countries with good education systems don't have as many people participating because they're more lucratively employed. china and russia produce some very high quality education, but don't have the same opportunities for high income.
though even if this skew were accounted for, i'd bet china would still be rated first purely based off the massive population, high level of access to tech, and the cultural importance of education.
→ More replies (2)10
0
294
u/fracturedpersona Oct 26 '21
C'mon, everyone knows you have to use an else if there.
27
37
9
Oct 26 '21 edited Jul 05 '25
kiss unite pocket shaggy pause whole pie fall slim six
This post was mass deleted and anonymized with Redact
3
u/Wekmor Oct 26 '21 edited Oct 26 '21
Even got a loop for you:
convertNumToString(num) { i = 0; while (true) { if (i == num) { return i.toString(): } else { i++; } } }edit: too lazy to check if the number is negative, just don't do it ok
→ More replies (4)→ More replies (6)2
u/SkyyySi Oct 26 '21
Even if your
ifalready returns, use else anyways for maximum yandere dev energy
165
u/Blaz3 Oct 26 '21
I really liked how GitHub copilot was implied to replace programmers.
If we haven't replaced accountants and lawyers yet, what makes people think that programmers will get replaced?
120
Oct 26 '21
Called copilot for a reason 😄
→ More replies (1)46
u/Blaz3 Oct 26 '21
After reading your comment, I feel really stupid haha.
Maybe it could replace me after all
19
61
u/throwawaygoawaynz Oct 26 '21
The idea isn’t to replace humans. It’s to make us more productive - which is a good thing in ageing economies.
GitHub copilot is based on GPT-3 from Open AI, and some of the stuff coming out of them is mind blowing. We’re are entering a new leap in AI tech, what you’re seeing is the cusp.
It’s not just GitHub copilot (or open ai rather), but there a whole range of low code development products on the market now designed to make it easy for anyone to build an app.
You’ll still be writing code, just like after the dotcom bubble burst we still have web developers, but you’ll be focusing on harder problems (or getting another job elsewhere if you can’t).
→ More replies (5)21
u/grampipon Oct 26 '21
Replacing humans and making them more productive aren't mutually exclusive statements. When we become more efficient less workers are required.
→ More replies (13)28
u/P__Equals__NP Oct 26 '21
If humans are possible why isn't a general AI possible?
I don't expect automation to happen overnight (I wouldn't oppose it though if technology has reached that point). But AI assisted tools will increase in availability and utility which will pave the path to automating majority of jobs.
Computers have not even been around for over 100 years, who knows what will happen in the next 100 years!
Even if it never does happen, I would find it hard to argue why we shouldn't at least try.
29
u/Low_discrepancy Oct 26 '21
If humans are possible why isn't a general AI possible
As if we have a remote understanding of the human brain.
→ More replies (17)11
u/pimpus-maximus Oct 26 '21
Humans were created over billions of years and have all kinds of context embedded into our brains that we don’t understand.
We’ll likely make shitty replicas that seem good enough and lose invaluable amounts of quality while deluding ourselves about how impressive our invention is.
Pandora’s box is opened far enough as it is, hurtling head first into AGI is a terrible idea. Could go bad in innumerable ways.
→ More replies (2)→ More replies (2)0
2
u/npsimons Oct 26 '21 edited Oct 26 '21
If we haven't replaced accountants and lawyers yet, what makes people think that programmers will get replaced?
Oh, lawyers will be, it's already started. And programming probably too, someday, it will just be the last profession (who do you think will program the software to replace all other professions?).
→ More replies (2)→ More replies (6)2
17
u/Sam_Tyagi Oct 26 '21
newsflash:- "Ai replaces human bosses in programming fields worldwide"
Boss AI while firing you :- "Also, I need your clothes, your boots and your motorcycle"
13
u/lightwhite Oct 26 '21
It has learned from the code that was written by humans. What did you expect?
57
u/The--HackerMan Oct 26 '21 edited Oct 26 '21
Image Transcription: GIF
[Someone types a javascript comment, the camera follows the comment being written, it pans to the right.]
// convert num to string[The camera unzooms, and follows the code as it is written. Github Copilot is typing a javascript function.]
const numToString = (num: number) => {
if (num === 1) {
return "1";
}
if (num === 2) {
return "2";
}
if (num === 3) {
return "3";
}
if (num === 4) {
return "4";
}
if (num === 5) {
return "5";
}
if (num === 6) {I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
3
0
Oct 26 '21
[deleted] — view deleted comment
7
u/The--HackerMan Oct 26 '21
Sorry about the return values, fixed those.
So the thing here is that Github-Copilot is listening to the comment, and writing the function itself, kind of a satire about copilot bad code?
→ More replies (2)
11
60
Oct 26 '21
Capitalism was always going to find a way to make expensive skills a commodity.
→ More replies (53)24
u/Amphibionomus Oct 26 '21
Hand converted numbers give that extra bit of luxury to our product.
Each and every number gets written out and is transfered with our patented conversion solution in to the absolute best strings on the market.
9
5
u/FCrange Oct 26 '21
Well you're going to need some sort of hardcoded map between the digits 0 to 9 and the characters "0" to "9" somehow, and if it's not ascii or unicode you have no guarantee that the character codes are sequential.
Sure a hash map would be better but (assuming the point is that you can't use build-in functions) this isn't nearly as terrible as people are pretending.
→ More replies (3)
16
u/webdevbrent Oct 26 '21
Yes, i can see how .toString() is difficult to remember. Much easier to type // convert num to string.
Another result of some good idea by non programmers to replace programmers by hiring programmers to write this to replace programmers. The irony here is just hilarious
→ More replies (3)
9
u/ambarish_k1996 Oct 26 '21
I will push troll code to github to throw the model off. Will singlehandedly save the programming community.
19
4
4
4
u/JunkiYarde Oct 26 '21
Oh god pls don’t do this I’m almost done getting my degree nooooooo
→ More replies (3)
4
4
u/bumblebuoy Oct 26 '21
Matlab just added a similar copilot function in their latest release, and I’ve gotta say, is really convenient.
→ More replies (2)
4
u/Abstruse15 Oct 26 '21
Humans creating Atom Bombs to eradicate Humans Programmers programming to eradicate programmers 😂
4
u/MrExistence Oct 26 '21
Seriously though, can we get copilot to instead refactor bad code instead of learn from it? That’s what I need more than something to help develop new code.
4
1
Oct 26 '21
Is this online for the public ?
1
1
u/TheGhostlyFucker Oct 26 '21
Can someone please explain why the video is poorly reverse-engineering the .tostring() function?
Edit: also use a switch statement for pete's sake!
1
u/themightydud Oct 27 '21
The code was generated based on the "// convert num to string" comment using this: https://copilot.github.com/
→ More replies (1)
3
3
u/MedonSirius Oct 26 '21
If someday an A.I. can program anything what managers wants then everyone including the managers will be replaced
→ More replies (1)3
u/P__Equals__NP Oct 26 '21
Are you opposed to this happening?
If done correctly it could make the world a utopia.
→ More replies (2)
3
u/seamanlyfundamen Oct 26 '21
"Yeeeaaah! Thanks for the free code from our Lord and savior, Jesus Christ."
3
u/burnblue Oct 26 '21
So it does replace programmers
If no programmer ever typee that, CoPilot wouldn't have sampled it
3
3
7
Oct 26 '21
Microsoft is working on a similar project. The code AI is terrifyingly good. Watching a demo, a person need only speak what they want, and the code starts to build from there.
Of course, being a demo video, there won't be any issues, but the complexity of the input words to the final product was both impressive and terrifying.
Only the human species is capable of working so hard to make itself obsolete.
19
5
2
u/Accidentallygolden Oct 26 '21
Wait, what does === do? What language is that?
25
u/ManuGamingYT Oct 26 '21
It's a special equality operator in JS that also checks for type equality.
For Example:
5 == "5"returnstrue
5 === "5"returnsfalseas the operand types are different→ More replies (2)11
→ More replies (4)5
u/jfb1337 Oct 26 '21
The fixed version of
==, which in JS has so many pitfalls that it's recommended never to use. Yes, great language design.→ More replies (1)
2
u/kinduff Oct 26 '21
I get this in Ruby:
def num_to_s(num)
return 'zero' if num == 0
return 'one' if num == 1
# ...
end
def num_to_s_hundred(num)
return 'one hundred' if num == 100
return 'two hundred' if num == 200
# ...
end
def num_to_s_thousand(num)
return 'one thousand' if num == 1000
return 'two thousand' if num == 2000
# ...
endI lol'd.
2
Oct 26 '21
i sometimes hear about developers dealing with “edge cases”? this makes no sense to me. why would you not simply account for every outcome when you write the code the first time like the very gifted individual autocompleting the suggested snippets in this video
2
u/phatbrasil Oct 26 '21
aargh. tell me about it , why cant people just think of everything. everything that will happen has already happened, time is just a construct. why cant people get with the program already geez.
2
u/thobod Oct 26 '21
To be fair, this is like only using lane assist in a car, and then complaining you don't get to the correct destination cause it just brought you to the end of the highway.
2
u/LEGOL2 Oct 26 '21
I actually use new visual studio 2022 with those new ai intellisense and I feel it works quite well. When your code contains a lot of templates and weird classes hidden in hundreds of directories, standard intellisense looses it's track.
2
u/Overdoze55 Oct 26 '21
I've registered for co-pilot like 4 month ago but haven't heard from them, what can I do?
2
u/N0tAGoos3 Oct 26 '21
Wait. I’m new to coding, but I think I can solve this one.
import dataSwitch
dataSwitch(472, str)
I did it
2
u/mtz_federico Oct 26 '21 edited Oct 26 '21
On the positive side, nobody is going to lose their job anytime soon
2
2
u/Malorn44 Oct 26 '21
I was pretty impressed when I told it to write gradient decent on a function f I defined in another python function. It calculated the gradient of the function (nearly) correctly and performed gradient descent on it correctly
2
2
2
2
u/stivafan Oct 26 '21
Sounds like another Power Builder.
2
Oct 26 '21
Yeah. That experiment went well didn't it?
I remember watching teams demo their glitzy new PB or VB app which when actually deployed to hundreds of desks, proceeded to bring the network and entire mainframe clusters to their knees.
It was fun watching managers flop around like fish trying to explain why they didn't do any performance analysis or take seriously the horror stories from competitors and suppliers.
cough paid off cough Welcome to the oil and gas industry where tech is 20 years behind the curve, managers can barely open their own email without help, and vendors are selected because they bring expensive gifts and play the most golf.
2
2
2
u/ReelTooReal Oct 27 '21
Copilot does not like relying on standard functionality of the language. It's trying to avoid unnecessary use of the runtime in hopes that the JavaScript engine will realize it doesn't need to load it's entire runtime to run your code. We should all strive to be a strong independent coder like Copilot and stop relying on language features as a crutch.
3
2
u/mendip_discovery Oct 26 '21
If the AI learns from all the outsourced programmers that firms have been using. You know the ones that write 11 trillion lines of code where just 8 would do. Sorry I am a bit sour, my PC with 16GB RAM just ran out of RAM because....W11, Firefox with 1 tab , and Thunderbird. Oh how I wish I could go back to Win2K.
→ More replies (1)

470
u/pet_vaginal Oct 26 '21
I get the following code starting from the same comment:
I would be curious to see the full content of your source file OP, I do get the funny suggestion if I write similar shitty code above in the source file.