270 points · by Brajeshwar · 2y ago · 487 comments
Well before AI co-pilots something happened to the good old admins--they started to disappear only to be replaced by "AWS devops" (their job titles) who have never wired a network using routers, switches, and cables. I noticed that they started lacking basic networking knowledge and couldn't set up networking inside AWS. They just didn't know what a gateway, NAT, or subnet is.
Similar things are happening with AI co-pilots. We have an increasing number of people who "write code", but the number of people who can understand and review code is not increasing. There is also a problem of injecting ethics and politics into those tools, which can produce silly results. I asked Bard to write me a Python function to turn the US Constitution into a palindrome. Bard refused and gave ma a lecture on how the US Constitution is too important to be played with in such trivial fashion. I then asked it to produce code that turns the US national anthem into a palindrome, it refused again. So I asked it do the same but with the Russian national anthem and it spat out code without telling me off. I then asked it to generate code for simple tasks and it did an OK job, except the formatting and the fonts used were different every time, because it just lifted code from different webpages and recombined it like a massively hungover student waking up to realise he's supposed to hand in the assignment in one hour.
I see the same arguments about higher level languages. All of the tech industry is about standing on the shoulders of giants. I do believe that lower level knowledge can help a great deal but using this argument I can say something like:
Kids these days don’t know basic assembly, they have no idea what an or/and/nor/xor gate is, they’ve never built a computer from components (no, not cpu/mb/ram/etc, I’m talking transistors and soldering).
Maybe LLMs are different but I don’t think they are, they are yet another tool that some people will abuse and some will use wisely. No different from an IDE or a higher-level language in my book.
I have next to zero idea how many things I use daily work (like my car for example), it doesn’t stop me from being able to drive where I need to go. I have configured lower level networking equipment in the past and I couldn’t be happier that I don’t have to do that drudgery anymore.
All I’m saying is this is a dangerous argument to make because someone can always one-up (one-down?) you. “Oh you had NAT? Luxury! In my day we didn’t even have a network, we had to….” (See also: Four Yorkshiremen [0])
> Kids these days don’t know basic assembly
It is a problem. Knowing assembly is crucial if we want to have more efficient, faster hardware. Someone has to write kernels and drivers. The efficiencies happening on the lower level of the stack make the upper layers of the stack faster, more stable. It is also important that we have a large pool of devs who know how to do it. Otherwise that knowledge will be taken in-house and shared under strict NDAs preventing devs working for competition and effectively killing all the efforts of the Open Source community to wrangle free access the computer out of the claws of corporations.
This is not a problem that AI has brought about first, but co-pilots are accelerating it.
Just to provide some context, I could not wait for 16-bit, 32-bit, and then 64-bit architectures to become popular. I was the happiest dev around when object oriented programming tools became available, same to Linux, web, all frameworks and even cloud computing. But AI as it is currently being sold is a shit tool. If it stays and doesn't disappear after the VC money runs out, we will have to adapt our ways of working and educational courses to teach devs to review work of others recompiled by AI (it can't write shit on its own). Not sure it is worth the effort, because every time a new framework is introduced the results generated by AI will be of low quality until the models get trained on exaples written by humans... What's the point of using AI in that case?
If I was the same kid now, I'd get into a bootcamp or self teach and get a web dev job because the money is lucrative. Yeah sure, maybe i'll dabble in foundationa litems here and there, but most won't. It doesn't advance your career in web/software.
IMHO we will see a brain drain in computer/electronics engineering in 20 years when the pipeline of graduates dwindle and those with experience retire. Hope LLMs can innovate enough to make up, I guess.
this is a goal for maybe 2% of the industry. And those folks know their assembler or they don't get hired. I think we are producing skills in the proportion of its requirement in the industry.
LLMs will not replace us, they just take some of the tedium out of writing code. Yes, they will have to be trained on new frameworks and languages but I don’t see that as a problem. People have to wait for SO questions and blog posts to be written about new frameworks and languages as it stands today.
I’m not sure I agree with your arguments about needing a lot of devs to understand assembly or the like. Or rather I disagree with your prediction of where that leads. We are effectively already there and it hasn’t led to your future. We have an amazing open source ecosystem and that billions of people rely on daily without knowing how every part of it works. Open source has only grown during that time.
I’ve never done the math myself for calculating the distance between 2 points on a globe. I just grab the Haversine formula and keep going. I don’t see that as a problem. Similarly I’ll reach for an open source library to solve a boring problem instead of doing it myself. I quite literally see no difference in that and using an LLM.
The people who really know the inner workings of things are compensated accordingly and there will always be these kind of people.
It sure can when you use multiple agents having discussions and optimizing characteristics with each other. CrewAI and AutoGen come to mind.
This is beyond the classroom; this is bad incentives in the market/industry.
At each layer, though, we have a legible formal theory bridging one level to the next, and the abstractions tend to be so reliable the last thing most of us will consider is a hardware/assembler/compiler bug (though they do occasionally happen).
LLMs bridge layers illegibly and probabilistically. I can already see how they're helpful, but they do have some different characteristics that mean reliability and the connection to lower levels of the stack are an issue.
I’m not sure I agree but I want to make sure we aren’t talking past each other.
Using an LLM to write code does not have this problem IMHO.
Using an LLM as part of the code does have this problem.
I’m not writing off the usefulness of calling out to an LLM from code but it does bring “illegibly and probabilistically” into the mix whereas using an LLM to write code that’s human-reviewed/modified does not.
In fact, you should be unable to tell what I wrote vs what the LLM wrote if I’m doing right (IMHO). “Clever” code is always bad no matter who/what wrote it.
The only time I’ve been asked “did you use <insert LLM> to write this?” Was due to the speed at which I completed something or because it’s in a language that the person asking the question knew I didn’t know very well.
This is true, but we still do have to have at least some knowledge of what those giants built. Otherwise we're actually just standing on clouds
I agree _someone_ has to have that knowledge, I reject they _everyone_ must have that knowledge.
I have zero desire to learn more about logic gates, they don’t interest me and while they enable me to do the work I do I don’t need to know about them to do the work. The same way that I couldn’t tell you how my car engines works (ok, at a high level I could, probably about the same level as I could talk about logic gates) but I’m able to drive from point A to point B without issue.
There are people who enjoy assembly, let them work on it. I’m not one of those people and I don’t have a problem with those people but I do have a problem with people who think I must know assembly to be an effective developer.
I have to disagree on that one.
Most CS programs will have an assembly class as a mandatory one.
Is it used daily? No. Would they be incredibly rusty and probably require a refresher? Probably, but so would most people on something not used daily.
If I ever needed to write assembly (which probably means something has gone horribly wrong in my life) then I’m sure I could learn it on the fly, just like I’ve learned other things never taught in college on an as-needed basis.
I’d argue that there are more self-taught kids who know low level programming than 20 years ago.
The information to do this is so much more accessible now and LLMs are a very powerful tool in the hands of someone who is curious and motivated.
Outside of a small set of folks most devs need NOT know assembly due to compilers being very good at converting to assembly.
Not the same Subnet/Gateway/NAT. These are first class constructs in most cloud developments and has huge implications on security, performance and costs. Unless you have some kind of automated way that abstracts away these issues (akin to compilers) most devops folks would need to learn about these concepts while working in a cloud environment.
Those are robust constructs coming out of fundamental thinking and design.
AI-based copilots, on the other hand, look like unstable libraries sitting on top of those languages.
To use an LLM, you still need to know the language you are using it to write. You don't need to know C or assembly as a Python/JS programmer today, but you do need to know JS to be an LLM-heavy JS programmer.
I agree, not everyone does. Maybe we have progressed to the point we can all say those people are wrong and their arguments were always wrong, maybe not.
> but you do need to know JS to be an LLM-heavy JS programmer.
I also agree. That's my whole point, you do need to know the language to be able to effectively use an LLM.
My issue is with people who immediately reject LLMs as a net-bad because they do part of the job for you. I reeks of "well I had to do it the hard way so you do too" which I cannot abide and immediately flips the bozo bit on them for me.
I'm very impressed with the best models — but, because I remember how awful NLP used to be, "very impressed" still means I rate the best as being around the level of an intern/work placement student most of the time, and even at their best still only a junior.
It's great, if you're OK with that. I've used GPT-3.5 to make my own personal pay-as-you-go web interface for any LLM that's API-compatible with OpenAI despite not being a professional Web Developer.
It's fairly fragile because it's doing stupid things to get the "good enough" result.
Bu that's OK, because it's for me, I'm not selling it.
(As for the lesser models… I asked one for a single page web app version of Tetris; it started off lazy, then suddenly switched from writing a game in JavaScript into writing a machine learning script in python!)
If you ask me, they shouldn't have to, in the same way that you probably don't know how to diagnose a coax cable problem.
The major public clouds all have completely software-defined networks (SDNs), and concepts like subnets are basically emulated for the sake of legacy systems.
Why would we want subnets, like... at all? Why can't all systems just have an IP address and use point-to-point communications? That's literally what the underlying SDN does with the packets anyway! The subnets and routes you see don't map 1:1 to the underlying network. The packets are stuffed inside a VXLAN packet and routed between random hypervisors scattered randomly across multiple buildings. Just give up the pretence, give everything an system-assigned public-routable IPv6 address and be done with it. Better yet, auto-register everything in a private DNS zone and auto-generate internal use SSL certs too.
The amount of wiring we do manually is just insane, just so that Azure and Amazon can help greybeards pretend that they're operating a Cisco router and need to stand in line to file the paperwork required to get an SSL certificate.
No, that was definitely part of the sysadmin job description ~25 years ago, both line discipline and physical medium problems (I had a TDR and a fiberglass fish at my desk for my first sysadmin job and was kind of bummed to find out that isn't remotely normal anymore)
Until you scale up a Kubernetes Cluster so far that the abstractions begin to leak.
Congratulations folks! We undid several decades of progress and went back to the 1960s and 1970s when software can only run on the specific mainframe for which it was written.
I'd prefer switching those windows servers to Linux, but we're too integrated with Microsoft at this point.
In a way, ChatGPT both replaces the need for junior developers and creates a situation where you'll end up with a developer shortage because not everyone can start right away as a mid-senior level.
Everything else being exactly equal would I like someone I work with to know c over not? Sure.
But would I take a world with many fewer programmers that all knew c over the one we have today—definitely not. It would be a significantly poorer world.
He's had to completely rethink how they approach their industrial designs and build machines and transition to much more electronic based things with fewer moving parts, and build things they can just adjust with computers and point-and-click GUIs, because people just don't know how these old things work from a physical reality perspective. My dad was very distraught by the caliber of engineers he's seeing in the "next generation".
But that's not the only thing.
In Canada, our aging population of tradespeople are retiring in droves and we have a dearth of younger people to replace them. It's so bad, that in my province they've completely redesigned the Grade 11-12 highschool curriculum to have "fast track" paths into trades where 80% of their time is spent in coop/apprenticeship (good thing!). We have a housing crisis and we have nobody that actually knows how to build houses in our country while the federal government imports 1 million people per year with nowhere for them to live. Most kids these days just want to be "influencers".
Spelling and grammar in young people is absolutely atrocious because they are totally dependent on autocorrect; and they can't type using physical keyboards because they only ever used a touchscreen keyboard on phones and tablets.
It's not just programming being destroyed by copilots. It's an overall dumbing down of our entire civilization.
Another example that I see all the time: I recently had to review a pull request from a junior. 200 lines of very simple C++ doing almost nothing, you can't fail that. I had to write more than 50 suggestions and comments on very basic stuff that the guy should have learned when he started coding. Yes, they must learn the ropes, but it seems like the passion is not there. We used to be passionate about coding, and all I see is people who went to private college to make money but don't enjoy what they do.
Heck even folks coming in with experience, but from a company with a very different coding culture or simply a different primary language can result in the same situation.
The concentration of passionate curious computer tinkerers is much lower.
I work with seniors that are scared of the command line. I can somewhat understand why Microsoft might be trying to turn everything into AI Copilots because when I'm trying to explain to someone how to revert changes in a file with `git reset/checkout` they practically recoil in terror at the suggestion of using the terminal. They are married to their git guis and have no idea how it works. Best AI-ify as much as possible to keep people in their ecosystems.
But are they any less productive? My experience is no. I was a command line aficionado when I entered the workforce, but I saw several people get the same results as me in a purely GUI environment. I see the same today. They get shit done and that is what is required. I feel like older devs romanticize certain parts of their workflow too much.
What is sad is that this job is left to influencers. Not the kid's fault if our education system, parenting and attention economy are completely f'd up.
Well, they can, but the "no filter" option does not necessarily generate satisfactory results either. I find it hard to blame Google for not wanting to put their brand on an AI providing a ranking list of races by intelligence or whatever kind of offensive thing people are going to try to make it produce.
Tangent, but it used different fonts? I can’t imagine how this is possible given how LLMs work under the hood (sampling likely tokens which represent Unicode character sequences - it doesn’t operate on rich text so afaik has no way of seeing or changing font information). Is there something weird happing with the frontend breaking the code/not-code formatting they do (as a cosmetic thing rendering the output)?
As a Polish person, I don’t mind you changing the constitution, but for example with our national anthemn we are way more attached to changing how it sounds than Americans are to theirs. Ditto where our flag and our symbol can be used.
As for Bard - did you try arguing with it that constitution guarantees you the freedom to play with it? I managed to convince gpt to do some weird stuff by arguing for cultural sensitivity.
I will not argue with Bard or any other tool of that sort. I have better things to do. They are supposed to be good at translation, so I thought ok, let's try giving it a piece of my own writing in English and ask it to translate it into French (a gendered language). It could not infer from the text that the internal monologue that the protagonist was a female, so it translated it all using male voice. I asked it to switch gender to female voice but it stopped doing so after translating about two pages of the text and even on those two pages it kept switching to male voice. Then, after translating three pages it replied "I don't know how to do it" when I asked it translate another page, even though I used the same prompt I was using to ask it to translate previous pages. These are toys not tools. They are shit at their job and a waste of time and electricity.
Since you are Polish, I was told by my Polish colleagues that onet.pl, a large Polish news site uses AI to auto-translate articles from foreign media sources and that all of those translations are done in the male voice, even when the original text clearly describes what a woman did or said. My colleagues say it's been going on for a while and nobody bothers to fix these translations. If true, the future is here, it is shit, and AI is good at one thing that VCs love to fund, i.e. extraction of value through destruction of value.
The consequences are that developers can tackle basic tasks which are supported by the frameworks they use, but once something is not supported or straightforward they don’t know what to do and get completely stuck.
From society’s point of view, the usefulness and value of the task force decreases and important problems are not solved or aren’t efficiently solved.
Something like this was happening with coding bootcamps as well. Lots of people who can code what they were directly taught but don’t have the basics to go outside of that.
That’s CTO level coding right there, gotta tell bard about my great app idea.
Jesus, they have coded pearl-clutching and finger-wagging lectures in my computers. You know, those machines that used to be brutally efficient at doing what you asked of them.
In a way, that's a natural thing to happen. Computer systems are weird in that we have an extremely good model of how they work at a certain level: "processor will (almost) always process assembly exactly as it should, etc."
When computers first came around, this "computer does exactly as you say" thing was weird to people because there weren't really any such things before computers. People would make small mistakes in their code and wonder why the computer can't "just do the obvious correct thing like any sensible person".
However, as multiple complex software systems interact and build on top of each other, this ability to "understand everything" at one of these "perfect model" levels (e.g assembly, logic gates, state machines...) becomes useless. To work with them, fuzzy models (like those we use for other humans or animals) are more appropriate. Complex software systems will routinely not do the same thing when given the same command. They will change over time, break in incomprehensible und unpredictable ways, and, as the newest addition, argue with you instead of doing what you say. That development makes total sense. At least those systems can now "take a hint".
That said, I don't know that I would allow AI for learning to code in the class. I do not consider "prompt engineering" to be a substitute for programming, and it's very easy to get AI to write some code and copypaste it, not understand anything it said, and be done.
Last year, when I was administering a test, I said that they were allowed to use any IDE they wanted, but they could not use any AI assistance. I am pretty convinced one student just copypasted my test questions into ChatGPT or BingAI and then copied the answers. I didn't have a way to prove it so I had to give him the benefit of the doubt and grade it assuming he did it honestly.
Before someone says "YOU SHOULD TEACH THEM TO USE THE AI TOOLS LOL THAT'S THE FUTURE!!!", stop. That's not true, not yet at least. Just because I can call an Uber doesn't mean I get to say I know how to drive. Just because I can go to McDonalds doesn't mean I get to say I know how to cook. I was teaching them how to write Java and Python, the goal of the class was for them to learn Java and Python, it wasn't learning how to copypaste into OpenAI.
You can only learn to play the guitar by picking it up and spending a lot of time mucking about with it. There's a bit more to it, but this is really the core: you need to play and get that muscle memory and "feeling" for it. You need to "rewire your brain".
Coding, or any other skill for that matter, is no different. The only way to learn to code is to actually write code. Even if you fully understand anything ChatGPT gives you (which most students probably don't), that's no substitute for actually writing the code yourself.
I don't see how it's not hugely harmful for the development of students and junior programmers to use AI. Even if these tools were perfect (which they're not), you need to develop these basic skills of learning to read the code. You need to make mistakes and end up with crummy unmaintainable code, and realize what you did wrong. Etc. etc.
Even for senior programmers I'm not so convinced AI tools are actually all that beneficial in the long run.
Only when AI systems will be able to fully understand entire systems and full context and can completely replace human programmers will that change. I'd estimate that's at least 50 years off, if not (significantly) longer. Anything before that: you need someone who fully understands the code and context, in depth.
What worries me is that AI code is getting complicated and harder to correct. I recently noticed that after my IDE generated some code I felt a palpable sense of dread.
I often have to go over it in detail because it makes subtle, hard to catch errors. It pulls me out of my flow. I am starting to dislike that effect and I am certain huge swaths of the (new) coding population will lack the skill and motivation to correct these things (as various earlier comments here show).
Power tools don’t make you a master carpenter.
I’ve also found it makes otherwise knowledgeable and experienced people think they can do stuff without learning it. I’ve had several people on my team tell me they think Copilot will help them get up to speed and help out with some of the stuff I’m working on. So far none of them have done anything and I’m not sure how Copilot explaining a block of code is going to do anything for them. It’s already a very easy syntax to read, and they all already have coding experience in other languages. It’s a tool to let them think helping will be easy, so they volunteer, then do nothing because it isn’t the reality of the situation.
Back in the early days of computing people wrote software by working it out on paper, encoding it on to punch cards, and then giving that program (deck of cards) to an operator who loaded them and ran the code. If it didn't work properly you would get back a print out of the 'debug' which amounted to a memory dump. You'd then patch your punch cards based on working out where you'd screwed up, and try again.
That was the computer software industry for about a decade before time-sharing, VDUs, etc.
People absolutely did learn to code by reading books and nothing much else. Access to computers was so restricted (because time to use a computer was shared between lots of people) there weren't any other options.
Heck, I learned a lot of early web stuff like TCP, HTML, etc reading books at my parents house when I was at home from uni and didn't have my computer with me, and that was the late 90s. Of course you can learn coding by studying the theory without practicing. It's just a lot less fun.
Dijksta's "I had everything worked out before I wrote the code, because the computer didn't exist yet" is the same. It's like working mathematics out: that's not "just reading", it's actively engaging. Actively writing. Completely different from the passive consumption of AI output.
> Of course you can learn coding by studying the theory without practising. It's just a lot less fun.
No you can't. When you first started an editor or IDE you wrote some vague code-shaped junk that probably wasn't even syntactically correct, and didn't learn programming until you practised. Of course you need to learn some some theory from a book or instructor, but that's not the same as actually learning something.
Being even 80% (or 90 or even 95) there isn't enough - something will always be missed because it's only able to "reason" probabilistically within a narrow area not far away from the training data.
I recently learned Swift & Metal this way - knowing Python and other languages, I kept pasting my pseudo-code, asking GPT to convert it into Metal/Swift, and then iterating on that. Took me a week or two to get the language without reaching for any sort of manual/tutorial. Speaking from experience - it would take me 2-4x as much time to learn the same thing otherwise.
If GPT was any better, I'd have no need to fix the code, and I wouldn't learn as much.
I use ChatGPT all the time for learning new stuff, but a) I already know how to program well enough to teach a class on it, and b) it's a supplement to doing stuff on my own, without AI help. I don't feel I learn that much from just copying and pasting.
Totally agree with your process though; correcting and arguing with ChatGPT is an insanely good way to learn stuff. It's really helped me get better at TLA+ and Isabelle proofs.
Significant here is that you knew other languages already. I've had the same experience with GitHub Copilot, but I'm cautious about recommending it to new learners who don't yet know the fundamentals.
All indications I've seen indicate that it's easy for people who already know the foundations of programming to use AI tools to learn new tech, and that can actually be the most effective way for them, but that it doesn't work nearly as well for people who don't have knowledge of other languages and frameworks to lean on.
A lot of it is just a general lack of learning material for that demographic. For most languages, you get to choose between an introductory text that assumes you've never even heard of a "pointer" or an advanced text that is meant as a reference for an experienced developer of the language.
There's not really a lot of stuff out there to teach someone who already knows another language, who just wants to know the syntax and common idioms in that language. For example, a C programmer can easily pick up Python, learn some syntax, and go nuts -- but they just won't know about stuff like list comprehensions or dataclasses unless someone points it out. They'll write Python code that reads like C, not like Python.
That is a cute thought. Instead, they do submit the LLM generated code as is, messed up or not, and still expect to get full grade.
I’ve never met anyone who prefers debugging over writing fresh code. Did LLMs just automate away the fun part and leave us with the drudgery? That sounds like a horrible way to learn. All work and no play…
It also would mainly teach how to get good at spotting those little mistakes. But without context from writing code, it seems like it would be harder to pickup on what doesn’t look right. They’d also miss out on learning how to take a problem and break it down so it can be done with code. That’s a foundational skill that takes time and effort to build, which is being farmed out to the LLM.
Algorithmic code aside, I’m learning cuda now, and I just told gpt to write me some code and I debugged it then (with gpt’s assistance as well). It took me an hour to produce something that I expected it would take 2-3 days otherwise.
As for picking up what doesn’t look right - if it doesn’t work, you can pinpoint place where sth is messed up using a debugger/prints, and then you learn how the code works on the way.
I remember that when I was learning to program 30 years ago was the same - I rewrote pong game from a magazine, then kept changing and messing up things until I learned how it should work.
I have no idea how an LLM could help with that process.
[1] I successfully found a bug in a CFD solver (not a device driver) in the early days of templated g++ only after 2 weeks of fairly grueling half time work. Missing ampersand in an argument list. Believe it or not I was very happy and doubled down on the code. However! I once fucked up a job situation where my MPI-IO driver failed because I had a very subtle linux RAID hardware bug that I could not find after weeks of effort. I found it later, too late. That truly sucked. I really don't know how LLMs could possibly help with any of this.
I recently learned javascript this way - knowing English and other languages (Thai, Mandarin), I kept pasting my pseudo-code, asking GPT to convert it into javascript, and then iterating on that. Took me a week or two to get the language without reaching for any sort of manual/tutorial. Speaking without experience - it would take me 2-4x as much time to learn the same thing otherwise.
:) My story is not entirely true, but close. My point being llms are learning language and logic (mostly English currently). Programming languages are just languages with logic (hopefully).
And if you think the ability to shorten meaning of a complex idea is exclusively the purview of code, think of a word like "tacky" or "verisimilitude"- complex ideas expressed in a shorter format, often with intended context with significant impact on the operations in the sentence around them.
I guess what you really learned is that the Apple-specific ecosystem technologies are so crappy, you always use a middleware to defeat them. Either Unity, React Native, or in this case, a 170b parameter super advanced LLM.
There's just no getting through to those Apple guys to stop making their own thing and being a huge PITA.
Imho Swift/SwiftUI is way more of a joy to work with. In particular, SwiftUI is much easier to visually parse whereas JSX is noisy and IMO hideous. I also ended up needing to bring in way more third-party dependencies for JS/React, something I hate doing if avoidable**.
* It is my understanding that many iOS professionals prefer UIKit bc SwiftUI is still missing stuff. I only ended up needing to fall back to it once or twice.
** ClojureScript/Reagent do solve most of my issues with JS/React (by essentially replacing them). Clojure is well-designed with a great standard library (so less need for dependencies or implementing stuff that should be in a standard library). Hiccup is way preferable to JSX.
Ditto Xcode.
The biggest issue is the lack of documentation for Metal.
I have worked exclusively with React/Next, Node, and Mongo for years until I took over a legacy code base in October.
I had to teach myself Python/Flask, Vue, and Laravel without any kind of documentation or guidance from the previous developers or anyone else in my company.
AI has been able to help me get a bit further down the road each time I run into an issue. But AI hasn't been able to hand me perfect solutions for any of my problems. It helps me better understand the existing code base, but thus far none of the answer provided have been 100% accurate.
If anything, it's like cooking with kids, not like going to McDonalds. I'd give extra points if they can solve the task with LLM in time. The hardest parts in programming is finding subtle bugs and reviewing code written by others - two tasks that LLMs can't help us with.
If they can easily solve the tasks with LLMs then it is a legitimate question to ask if you should be teaching that skill. Only common ones can be solved that way though. Why don't you give them a bugged code to fix, that way LLM inspiration is not going to work, if you check first to make sure LLMs can't fix the bug?
I said in sibling thread that I'd be fine enough with having a class like "Software Engineering Using AI" or something, but when the class is specifically about learning Object Oriented programming and Java and Python, I do not think having heavy use of ChatGPT is a good idea.
Also, not all the questions were pure coding, I had some more conceptual questions on there, and ChatGPT is really good at answering those.
I like to imagine LLM assistance as over-enthusiastic interns, except they don't actually improve with mentoring.
The trick becomes knowing which tasks will be improved by their participation... and which tasks will become even harder.
It's also not nearly mature enough for learning it be a good ROI in a degree program. Community college or adult education class? Maybe. Bootcamp track? Sure, I guess. Novelty elective for a few easy credits and some fun? Totally.
But if I'm a student in the midst of a prolonged, expensive program spanning years, learning how to coax results out of today's new generative AI tooling is not preparing me very well at all for what I can expect when I try to enter the workforce 2 or 4 or 8 more years. The tools and the ways to interface them, "Prompt Engineering" or whatever else it's called will inevitably evolve dramatically between now and then. So why am I learning it while I'm still deep in my academic bubbles? And what are prospective employers getting from a degree that focused heavily on some now-defunct and dated techniques? My degree is supposed to mean that I've learned foundational material and am ready to be productive on something, but what that mean when too much of what I've learned is outdated?
What bothers me is that people have told me that I should just allow AI for literally everything because it's the future and you should be teaching them the future or something, but I think that's kind of dumb. In those classes, the goal was for them to leave having some competence in with Python, Java, and Object Oriented programming, and I firmly do not believe you can get an understanding of that just by copying and pasting from ChatGPT, and I think even Copilot might hinder the process a bit.
To be clear, I love ChatGPT, I use it every day, it's a very valuable tool that people probably should learn how to use, I just don't feel that it's a substitute for actually learning new stuff.
I wonder what "people" told you that. My personal experience is that such advice usually comes from people who understand neither AI nor what I teach. Most of them are university administrators of sorts, and AI is a problem for them more than for me.
Introductory classes teach skills that can be performed reasonably well by AI. Those skills are the foundation you need to build higher level skills. Just like kids need to know how to read to be functional in society and in their later classes, despite screen readers doing an excellent job.
When I teach a foundations class this is my focus, and I don't fool myself or my students into thinking that they will be using those skills directly, but I try to convey the idea that the skills pervade through much of what they will later learn and do.
However that means that I cannot force students to learn. They can cheat, and it's easy, and I prefer spending my efforts on helping the learners than catching the cheaters.
The university administrators, however, are in the business of selling diplomas, which are only worth what the lowest common deminator is worth. So cheaters are a big problem for them. Typically for such people, they just bury their heads in the sand and prefer to claim that teaching students to use chatGPT (that lowest common denominator) is where the value is.
I found that having a solid foundation was critical for knowing if something would work, and even just to write a prompt that was semi-decent.
At one point I asked for what I wanted, but it kept only doing half of it and I could tell just by glancing at the code it was wrong. I then had to get very, very specific about what I wanted. It eventually gave a correct answer, but it was the long annoying option I was trying to avoid, so it didn’t change my end result, and I don’t even think it saved me any typing due to all the prompts to get there. It just gave me some level of confirmation that there wasn’t an obvious better way that I’d be able to find quickly.
To me, exams are taken in halls, written on paper, proctored, under deadline. Points may be deducted for syntax mistakes or unclarity as the examiner wishes.
Separately, home work is graded in ways that already makes cheating pointless; usually for 1) ambition/difficulty in the chosen problem 2) clarity in presentation and proofs, argued in person to TAs.
LLM should have no bearing on any part of education (CS or otherwise) unless the school was already a mess.
Perhaps the lesson is about how to read and evaluate code and how to test code. If students get good at how and when to spot errors and how to construct test scenarios that ensure the code is doing what it should then perhaps that will lead to even higher quality code than if they were learning, producing bugs, and then learning how to evaluate the code and test what they had written.
They lack the skills required to determine that, to fix those basic errors. But they'll still submit the code.
This is why I think that the old way of having tutorials instead of tests is vastly superior. When you are in a tutorial group (typically five or fewer students) and your tutor asks you to explain something to the other members of the group you can't hide behind an AI, a textbook, or even your own notes. Your lack of preparedness and understanding is made abundantly clear.
If I were a teacher, I would have asked the popular bullshit generators to generate solutions for the test questions, and if a student’s solutions were very similar, I’d have them do some 1:1 live-coding to prove their innocence.
The issue is that the thing he submitted was correct, so I was going completely off “vibes”; I never got it dead-to-rights with AI generating a one-for-one match. It got pretty similar, and ChatGPT text does have kind of a recognizable style to it, but I didn’t feel comfortable reporting a student for cheating and risking them getting expelled if I wasn’t 100% sure.
I might have tried to get him to do a one on one coding session, but this was the final exam and literally three hours after it I had to fly to the UK for an unrelated trip for three weeks. Grades were due in one week, so I didn’t really have a means of testing him.
I hear what you are saying but where does it end? Is Hello Fresh cooking? Is going to grocery store cooking or do you need to buy it direct from a farmer? Do you need to grow the food yourself?
Is renting a car “driving”? Is leasing a car “driving”? If you can’t fix a car and understand how it works are you really driving?
Yes, most of those questions are ridiculous but they sound the same to me as some complaints about using LLMs. Those complaints sound very similar to backlash against higher-level languages.
Python? You’re not a real developer unless you use C. C? You’re not a real developer unless you use assembly. Assembly? Must be nice, unless you’re writing 0’s and 1’s you can’t call yourself a developer. 0’s and 1’s? Let me get out my soldering gun and show you what it takes to be a real developer….
A C developer working in notepad.exe is a real developer, as is a Python developer working in PyCharm and using the standard IDE features to improve their productivity. Someone blindly copy-pasting output from a LLM is not a developer.
Good, I’m glad you grasped the point of my comment. I was talking about the absurdity of people “gatekeeping” programming. Those arguments are just as silly as people saying using an LLM (in any capacity) is wrong and means you aren’t programming anymore.
Yes, blinding pasting code from an LLM does not a developer make. However that’s not what I suggested. I believe LLMs can be useful but you need to understand what it’s generating. The same way that SO is useful as long as you understand the code you are reusing (ideally modifying and reusing instead of a straight copy/paste).
I wonder if a more AI-resistant approach is to provide poor code examples and to ask students to improve it and specifically explain their motivations.
They can’t just rely on code output from an LLM. They need to understand what flaws exist and connect the flaw to the fix, which requires (for now, I think) higher-level comprehension.
I love LLMs for coding but only because I have the experience to instantly evaluate every suggestion and discard a double-digit percentage of them. If an inexperienced programmer uses Copilot they aren’t going to have the confidence to disagree and it will stunt their development.
Did we just stop teaching kids basic spelling because spell check was built into MS Word? No, of course not, because even though spelling has been a more-or-less solved problem for people who already know how to read for the last thirty years, having kids learn to spell helps with their actual comprehension of a subject.
Also, if they do not learn the fundamental concepts then they will be able to differentiate a good solution from a bad solution. There's a lot of really shitty code that does technically accomplish the goal that it sets out for, and until you learn the fundamentals that fact won't be clear.
An year into the project I am forced to revise my opinion. When browsing my code-base I often stumble in abstruse niche solutions for problems that should not have existed. It was clearly the work of someone inexperienced walking through walls in an AI-fuelled coding frenzy.
Having an oracle that knows all answers is useless if you don't know what to ask.
Isnt this what code reviews are for? I catch a decent amount of code that looks AI generated. Typically, some very foreign pattern or syntax that this engineers never used nor is common in the codebase. Or something weirdly obtuse that could be refactored and shows a lack of understanding.
Normally I ask something like, "Interesting approach! Is there a reason to do it this way over (mention a similar pattern in our codebase)?" or if it's egregious, I might ask, "Can you explain this to me?".
This feel similar to early career engineers copy pasting stack overflow code. Now its just faster and easier for them to do. It's still fairly easy to spot though.
Wouldn't you need to have people with a proper understanding of the programming language and framework to do the code reviews?
Listening to people talk in Japanese, I picked up enough to have some idea what they're talking about. I can't speak the language beyond some canned phrases. I certainly wouldn't claim to know Japanese. And I definitely wouldn't get a job writing books in Japanese, armed with Google Translate.
For programming, my solution to this right now is lots of pair programming. Really gives you a good idea of where somebody is at, what they still need to learn, and lots of teaching opportunities. I just hired a junior and we spend about 8 hours a week pairing.
Code reviews, done by existing more senior members of the project/team, should prevent this. If it isnt then the project has more issues than AI generated code.
There is no substitute to doing something correctly in the first place. The problem is that in the real world, deadlines and lack of time will always cause the default solution to be accepted a small percentage of time even when it is not ideal. The increasing creep of AI will only exacerbate that and most technophiles will default into thinking of a new and improved AI tool to help with the problem, until it will be AI tools all the way down.
No thanks.
If you have an engineering culture that doesn't emphasize thorough code review (at least of juniors, leads and architects emergency-pushing is a different story) that's a problem. In addition to catching bugs, that's a major vector for passing on knowledge.
A foundational concept of quality control is to not rely on inspection to catch production defects. Why not? It diffuses responsibility, lets more problems get to the customer and is less efficient than doing it correctly to start with.
Code review is the feedback mechanism that allows quality control to improve the process, teaching the engineers how to do it right in the first place.
Or maybe it's far more common than you realise, and you're only spotting the obvious ones.
When I asked him what prompted him to do that, he said copilot suggest it so I just followed. I wonder if you could hijack copilot's results and inject malicious code as many end users does not understand lot of the niche code it generates sometimes, you could manipulate them to add the malicious code to the org's codebase.
It might even take the context of the typos in your code comments, and conclude "yeah, this easy to miss subtle error feels right about here".
Now I'm wondering, can you put in a comment which the LLM will pay attention to such that it generates subtle back-doors? And can this comment be such that humans looking at the code don't realise this behaviour will be due to the comment?
Apparently, if you tried to access a class member without specifying a class instance, one of Eclipse's "auto-fix-it" suggestions was to make all members of that class static, and he just followed that suggestion blindly.
This is a widespread problem regardless of AI. Hence the myriad Stack Overflow users who are frustrated after asking insane questions and getting pushback, who then dig their heels in after being told the entire approach they’re using to solve a problem is bonkers and they’re going to run into endless problems continuing down the path their on.
Not that people aren’t on too fine a hair trigger for that kind of response. But the sensitivity of that reaction is a learned defense mechanism for the sheer volume of it.
The problem is, SO can't tell someone who asks an insane question from someone who asks the same question but has constraints that make it sane. *
So in time, sane people during unusual stuff stop asking questions and you're left with homework.
* For example, "we can't afford to refactor the whole codebase because some architecture astronaut on SO says so" is a constraint.
Or another nice one is "this is not and will never be a project that will handle google-like volumes of data".
Stack Overflow is not there to help you solve your use-case. It's there to create a body of knowledge that everyone can refer to. You need to spell out your specific reasons so that the question and answers become useful to others.
A lot of the friction on Stack Overflow comes from people thinking it's a free help website rather than an attempt to create a collaborative knowledgebase.
[1] Technically LLMs do have a forget that last toke and go back so I can try again operation so this is only 99% true.
That is a great point. The issue of not asking the right questions has been around as far as I can remember but I guess it wasn't seen as the bottleneck because people were so focused on solving problems by any means possible that they never had to think about solving problems in a simple way. We're still very far from that though and in some ways we have taken steps back. I hope AI will help to shift human focus towards code architecture because that's something that has been severely neglected. Most complex projects I've seen are severely over-engineered... They are complex but they should not have grown to hundreds of thousands of lines of code; had people asked the right questions, focused on the right problems and chosen the right trade-offs, they would have been under 10K lines and way more efficient, interoperable and reliable.
I should note though, that my experience with coding with AI is that it often makes mistakes for complex algorithms, or it implements them in an inefficient way and I almost always have to change them. I get a lot of benefit from asking questions about APIs and to verify my assumptions or if I need a suggestion about possible approaches to do something.
People have been committing terrible code to projects for decades now, long before AI.
The solution is a code review process that works, and accountability if experienced employees are approving commits without properly reviewing them.
AI shouldn't have anything to do with it. Bad code shouldn't be passing review period, no matter if it was AI-assisted or not. And if your org doesn't do code review, then that's the actual problem.
You’re putting the entire responsibility on senior employees. So we need much more of them. In fact, we don’t need juniors, because we can generate all possible code combinations. After all, it’s the responsibility of the seniors to select which one is correct.
It’s like how hiring was made crap by the “One-click apply” on LinkedIn and all other platforms. Sure it’s easy for thousands of people to apply. Fact is, we offer quite a good job with high salary, and were looking for 5 people. We’ve spent a full year selecting them, because we’ve receive hundreds of irrelevant applications, probably some AI-generated.
It’s no use to flood a filter with crap, hoping that the filter will do better work because it has a lot of input.
AI makes it much easier to push out bad code, fast...in a "frenzied" way one could say.
The answer is also the same.
Volume. AI makes it trivially easy to generate vast amounts of it that don’t betray their lack of coherence easily. As with much AI content, it creates arbitrary amounts of work for humans to have to sift through in order to know it’s right. And it gives confidence to those who don’t know very much to then start polluting the informationsphere with endless amounts of codswallop.
Honestly I find this to be the biggest advantage to using a coding LLM. It's like a more interactive debugging duck. By the time I've described my problem in sufficient detail for the LLM to generate a useful answer, I've solved it.
For me personally, it’s a fantastic way to learn. I could definitely see people just using it and not actually learning, but to each their own.
Having an oracle that knows how to put a framework of events together (even wit errors) is much better than asking a human to do it from scratch.
This sentence summarizes the issue with the current AI debacle, along with the whole "just copy/pase code from stackoverflow and earn top bucks" meme that was going around in 2010s.
You're not gonna be a valuable dev if you're just write wrong code faster. Not only does chatgpt/copilot give haphazard code half of the time, it approaches seemingly random syntax and format. Even if LLMs are polished, you're gonna need stand software engineering knowledge to know what's right and wrong.
In my code reviews the person who wrote the code needs to explain to me what they changed and why. If they can’t then we are going to have a problem. If you don’t understand the code that an LLM spits out you don’t use it, it’s that simple. If you use it and can’t explain it, well… we are going to have to have some discussions and if it keeps happening you’re going to need to find other employment.
The exact same thing has been happening for pretty much the entire time we’ve had internet. Stack Overflow being the primary example now but there were plenty of other resources before SO. People have always been able to copy/paste code they don’t understand and shove it into a codebase. LLMs make that easier, no doubt, but the core issue has always been there and we, as an industry, have had decades to come up with defenses to this. Code review being the best tool in our toolbox IMHO.
But that's not what these LLM systems are. https://hachyderm.io/@inthehands/112006855076082650
> You might be surprised to learn that I actually think LLMs have the potential to be not only fun but genuinely useful. “Show me some bullshit that would be typical in this context” can be a genuinely helpful question to have answered, in code and in natural language — for brainstorming, for seeing common conventions in an unfamiliar context, for having something crappy to react to.
> Alas, that does not remotely resemble how people are pitching this technology.
It is exactly what happened to you: it wrote bullshit. Plausible bullshit but bullshit nonetheless.
A significant problem is the subconscious defense mechanism or bias that compels us to conclude that AI has various shortcomings, asserting the ongoing need for status quo.
The capabilities of GPT-3.x in early 2023 pale in comparison to today's AI, and it will continue to evolve and improve.
https://news.ycombinator.com/item?id=27771186
Yet people don’t like it in this thread. Does it touch a nerve?
You just need to ask it what to ask. /s
And when they land a job in the industry, where exactly are the optimization and ethics when transforming XML into JSON and back again?
I might be in the wrong company, but I see most developers do extremely mundane tasks. At university, they have learned to code Dijkstra's algorithm blindfolded, but they never get to implement it again, because it is already available in a library.
The real added value of a developer is to transform human requirements into code. Transforming the human requirements into prompts, which are then automatically transformed into code is a big win, but I wonder if it will change things at a fundamental level. We are already way too smart for the jobs we do.
The point of learning Dijkstra’s algorithm isn’t to be able to reproduce it, the point is that you know what’s available to you to solve a problem and what areas of the algorithm you can tweak for your use case.
If you don’t have a good mental model of how the code works and how you write a maintainable solution then you’re not able to analyze the tradeoffs of the high level competing requirements like AppSec vs UX vs Maintenance vs Engineering Effort that is at the heart of what a software engineer does.
And this doesn’t change with AI either, the code that comes out of LLMs is often poorly designed but you can’t tell that unless you have worked on different types of systems to know why we might use immutable data here but shared memory in this situation.
Having worked with both kinds - I'll take a dev with experience in algorithms and no knowledge of a framework we need to use over an opposite. Especially in times of GPT, where gpt will allow you to switch to a new framework in no time, but struggle with anything besides the boilerplate code structure.
(Last night I ended up writing that kind of code because GPT-4 didn't quite get it right for me, but 90% of my code like that has been LLM-created in the past 6 months and I look forward to that creeping closer to 100%)
I have seen many jr level programmers struggle with AI coding assistants because they ask a question, get some code, paste it in, realize it doesn't work, but don't know why or the right questions to ask to properly debug it and get it working.
There is that. Although, if you need, say, to convert .fbx to Collada, there won't be enough examples out there for an LLM to infer how to do it. There's progress; most tools that wrangle meshes now speak glTF, so at least you only need O(N) converters, not O(N^2).
There are a number of programming in the large problems that tend not to be taught. A large collection of problems revolve around having state in one place that you want somewhere else. Sometimes you can just pack up the whole state and send it. That works if it's not too big and doesn't change too often. Perhaps the data is huge. Or somebody isn't allowed full access to it. Or it's changing rapidly. Or you need to keep up with changes with low latency. Or you must have guaranteed eventual consistency. Those problems come up all the time in areas from finance to game dev.
Inefficient solutions to such problems lead to bloated browsers, slow web pages, and inefficient back ends. An example is XMLRPC. Efficient solutions to those problems are complex, hard to modify, obscure, and hard to debug. An example is the internal representation of Microsoft Word .doc documents. Much of the web is trying to ship state from somewhere to somewhere else, in rather bulky ways.
This can have business implications. In the metaverse area, where I've been doing some things, Improbable tried to deal with such synchronization problems in a very general way. They blew through about US$400 million in venture capital, and produced a working system that needs so much server capacity that five indy games went bust, and their big demo, Otherside, is so expensive to run that they only turn it on for demos a few times a year. This may also be why Meta blew their metaverse business so badly and spent so much money. Doing this by special casing code results in an obscure, hard to modify system with race conditions and consistentency problems. That's the classic MMO approach, and is used by Second Life/Open Simulator.
A general understanding of such problems is useful, and is teachable. But what do you read for that? Not books on "how to do thing X in framework Y".
But after programming for so long the types of things I'm searching are basically API references. I know exactly where I'm going I don't need help getting there.
Here's an example from yesterday where I knocked together a tool for converting Atom XML to JSON using XSLT in a couple of minutes on my phone, just out of curiosity to see what it would look like: https://chat.openai.com/share/4bc7922b-b1c2-411c-aef9-b41b0f...
I can now spend time solving actual problems rather than reinventing the wheel.
Let's be candid, we all have package management Stockholm syndrome to some degree... the reality is that our laziness keeps us going back for more.
The performance gain comes at the cost of not knowing how some large percentage of your stack works or if it is going to be the next XZ.
Im not going to stop using packages, because that would suck, but I'm not so rosy eyed about them any longer. There are lots of problems in ecosystems and we're bad about addressing them.
I have bad news for your long term employability if that's the case.
I find that my code is 25% LLM-able on a good day with minor editing.
On a bad day it is 10% LLM-able with me having to edit every line to get them to fit together.
I once interviewed and was asked what is the difference between thread and a task. I provided a 'dumb' correct answer because I did not remember the text book definition, as I have been out of school for several years. The interviewer ignored everything I've said and told me "Actually, it's <insert textbook defintion>".
It almost seems that computer science teaches you too much of the theory and not enough of "get shit done".
I really enjoyed computer science and graduated with honors, but writing business code is kind of meh and boring. I know people who dropped out of CS due to having a hard time with algorithms and more advanced courses. I feel like they should have stayed and would do fine doing boring work. However, nobody tells you this, there seems to be a lot of gatekeeping in tech.
Yes. And in many other industries but it is especially bad with the types CS attracts.
What's are the XML and JSON being used for?
If you're working for a company, you almost certainly aren't working for the "XML to JSON, library salesperson" company, you're probably connecting different API endpoints. What do those endpoints do? Do they do ethical things?
The programmers who are mostly only capable of doing this kind of grudge work will lose their jobs and need to transition and adapt to a new form of grudge work.
And yes, as you point out, that's a lot if not most of them.
Some people believe that AI will take our jobs, but my point is that our work is already practically trivial, yet for some odd reason we are still in short supply.
As much as some of us have become JIRA slaves, our future generations will probably become AI slaves. True creative programming is beholden to a very select group of people, simply because there is so little demand for new things.
Nevertheless, doctors in many areas are in short supply and it's incredibly hard to become a doctor. Why? Because for the 5% of hard cases when you absolutely need an expert or else there are serious consequences, and it's very hard in advance to predict if someone's case is the 95% of trivial grudge work, or that 5% of critical work.
Software development is the same, the vast majority of the work is trivial grudge work and there's a lot of that grudge work, enough of it to keep millions of people employed. But there's still that 5% of the time when you need to be an expert, when you need to know data structures and algorithms and good architecture and have solid knowledge of your domain. The problem with software development is that most people just take that 95% for granted, get complacent and think that the 95% of trivial work is the job and that they don't need to be prepared for the remaining 5%.
My opinion, and that's all it is, is that in the future there won't be a need for that 95% of work, it will be automated and all that's left will be the remaining 5%. The people who became complacent and came to believe that their job is the 95% of trivial work will find themselves in a very difficult position.
"It's going to be less and less about knowing, and becoming more and more about knowing where to find the answer".
That held true for search and that holds true with AI coding assistant. From knowing how to use google search, to knowing how to prompt to get a reasonable clue.We've just added a new meta to the problem solving puzzle: is the computer giving me the right answer or is it confidently throwing me a red herring.
We've gone from knowing the code we run, to barely understanding how the compiler does it, to having no clue what is happening...
Soon enough someone will invent an OS where everything is done by speech or thoughts; and typing on keyboard will become a thing of the past, like hand writing... Programming will be done on the fly by the user's request and the computer will be compiling and executing it with a high degree of confidence. This is a future that is more likely to happen before the thinking machines really happen.
100% - this was not obvious to me until I was working at a startup and delegated a task to some others. They tried for close to an hour to find a solution to a problem and came up empty handed. I had a go and instantly found the answer.
What was the difference? It was our ability to put into Google the right terms to find the answer.
Already I find myself doing most coding via AI, with my work being high level skills (choosing how to organise code, knowing when to refactor and when the AI has gone too far).
The productivity increase is crazy.
The future quite likely will look like the minority report interface.
A somber harbinger of our near future.
I was writing a Wordpress plugin and by default in PHP all function definitions are global, e.g. is_single that WP defines is global. Naturally to avoid conflicts you would use a namespace, but since most of the examples I saw used prefixed function names, I decided to try that as well.
In my opinion, coding just feels much clearer when you prefix all your names, like my_library_my_func. When I see my_library_, I just immediately know that is my code. If you use different prefixes for different modules, you can tell from a glance which modules a piece of code interacts with. In C++, you can tell a random word is a field by the simple fact everyone prefixes them with m_. I've seen people using prefixes for pointers as well.
This is the same concept you have when designing an UI. Everyone agrees a problem with hamburger menus is that you don't know what's inside the burger until you click on it. If you want people to be aware something exists, you need to make it appear on screen, explicitly.
Instead, languages have evolved toward the very opposite. We ran away from self-documentating variable names and prefixes, and toward namespaces, "const" and other keywords, and "OOP" that feels less object-orientated and more press-the-dot-key-to-get-a-list-of-methods orientated. We depend on docstrings that show in the IDE, and then on auto-generated documentation from those docstrings. Typescript is probably the worst case of this, because it gives you a lot of tools to make the dot work the way you want, you'll spend way too much tinkering with the dot instead of just writing code that actually runs.
Thanks to this, when you look at code, you have to wait until your language server figures out what you're looking at for you. If the IDE doesn't work, it's effectively impossible to code anything in many cases. But the variable names are shorter so people think it's cleaner and better, like removing features from an UI to make it cleaner.
namespace Gujarati { class Masala { ... } }
Gujarati::Masala m; // variable with required namespace
using namespace Gujarati;
Masala m2; // variable with implicit namespace
Gujarati::Masala m3; // variable with unnecessary explicit namespace
namespace Bengali { Gujarati::Masala the_masala; }
Bengali::the_masala = ....;
using namespace Bengali;
the_masala = ....;
Bengali::the_masala = ...;
AKA "do watcha wanna do"Perhaps give Rust or Python, maybe Go a spin, and see how they do namespaces, imports and such. I find that mostly sane and readable, as they retain the full chain of custody (you can always trace where a symbol comes from by its qualification or import statement, unlike in less sane ecosystems such as C/C++/C#/Java, and apparently the insane version PHP uses).
LSP are useful but some languages are becoming useless - harder than they should be - without LSP, and that's going too far.
Seems like a bold claim. Care to back it up?
With LLMs, statistics play a much more important role so you're really not in the same realm anymore. It's like going from digital to analog, things work differently at a core level.
I learned first hand why teachers want you to master the fundamentals before reaching for a calculator. Most of the time if I couldn't figure out how to solve the problem, I would reverse engineer the steps from the solution. But I wasn't really learning how to think about the problems for myself.
I did abysmally on every single test. I got a B- in the class only because the homework was weighted ridiculously high and I had a >95% on that portion of my grade.
How to not recreate that failure mode will probably be this generation's big crisis.
I get by, but I often feel a bit handicapped vs my peers. Like building a house on a shaky foundation.
The main issue I run into is manipulating mental models, visualizing how they interact and combine.
If I were to try to make a programming analogy, it feels like I know how to work with `fold`s but don't understand recursion.
For anything even slightly non-trivial, I always spend more time fighting the prompt than I would have if I just sat down, read the docs, and thought a little about the problem.
And this doesn't even get into things like style, readability, etc.
Maybe this will change with later incarnations of these tools, but a cursory understanding of how these tools work make me suspicious. How can something that, from first principles, generates statistically random output, produce reliably functioning code for large non-trivial tasks? That's a very very different requirement then producing something like a poem or summarizing meeting transcripts, where a little randomness is expected and nearly all the training data is in the right format of regular human dialogue?
There's no intelligence in these tools, just regurgitation. The exact opposite of what you need for solving software engineering problems.
But... a significant amount of code is simple. Even in complex projects there's still a lot of trivial code.
And even when they produce something wrong, it's usually still faster than starting from scratch. At least for smallish bits of code. Though admittedly it can be a bit more frustrating on occasion because you're doing something more like code review and who doesn't hate code review?
For example, let’s say you wanted to write code in a language you did not know. Then these simple tasks can be accelerated because you’re not blocked by syntax errors.
Until you are because these tools don't actually know syntax, and then you have no idea how to fix it, and they only know how to do things additively.
01001001 00100000 01100001 01101101 00100000 01101110 01101111 01110111 00100000 01110110 01100101 01110010 01111001 00100000 01110011 01110100 01110010 01101111 01101110 01100111 00001010
Well, I thought this was funny. For what it's worth.
But during her final year project, she got stuck. The task got too hard for her and the LLM. The learning curve was broken.
Like a game designer that gives the player increasingly powerful items, educators should preserve that curve, or it becomes impossible to learn anything.
LLMs are great at syntax but less great at wisdom.
Perhaps this won’t be true for all time, but it’s true enough for now.
Refreshingly, it seems I’m not the only one who thinks so.
Difficult to imagine a scenario more likely to have driven me entirely away from programming.
What a bizarro world we’ve created in such a short time.
The need to work with other people?
Or the need to explain your work?
Both of those are important skills in professional programming?
Both are just 1 of many examples of why I found college, for computer programming, to be nearly a complete waste of time. I’m not saying I didn’t learn anything but I learned way less than I did on my own and most of what they taught was horribly outdated and didn’t take into account how you’d actually be writing code in the real world.
It’s like the teachers that said “you won’t be walking around with a calculator in your pocket always”. That’s not me saying math isn’t important, it is, but it’s the same flawed argument that makes you memorize syntax as if your IDE won’t auto-complete the boilerplate for you or pretends you don’t have all of the internet at your fingerprints to look up things. It would have been much better for the professors to spend their time teaching how best to manage a project or take business requirements and turn them a spec or pseudo code. That’s a skill I actually use every day and it hasn’t changed much whereas the language I use and how I write code has changed quite a bit.
I think in real life, syntax errors are harmless; they don't compile/run so they don't really get deployed. I think it doesn't really hurt understanding to have little red underlines if you forgot a semicolon, and if you don't really understand the algorithm you're going for, the smart autocomplete by hitting the `.` isn't going to help you do anything other than avoid typos.
A.I. rarely gives a complete solution and even less so the bigger and more complex the code becomes. The truth is that in the end you will have to learn coding 'for real' because A.I. will only help with a partial solution.
It's terrific for newbies because it makes it so easy to start coding right away and get results with simple and small tasks.
But, I've used it to review, debug, document, test, and explain code. I occasionally use it to stub out a solution but usually it then requires manual tuning. Any modestly complex algorithmic stuff it usually makes lots of mistakes. But it is able to spot uncovered edge cases, or suggest ways to test algorithms.
I think more of it as an artificial pair programmer pointing out my mistakes, and helping me be more productive. It's also good at figuring out syntax issues. Often when dealing with languages I'm less proficient in the main battle is simply figuring out how to do X in a language. If you are trying to learn things like Rust (which is hard to learn), AI is your best friend. Because it can explain you your code, your mistakes, and suggest alternate ways of doing things. All you need to do is ask. Remembering to do that is the hard part.
The simple code is just that, simple. Taking care of the simple code may free you to think about the bigger things, but the copilot grey text whisper in my face as I am typing crushes my bigger thinking and removes all the gains from taking away the small stuff. I don't actually need to be faster at the small stuff. I need to think clearer about the big things.
I will check back on this in a bit but for now my reaction is decidedly 'meh'.
One feature I think could be useful is to ask it to correct very basic errors in a section of code, but this need to be well-integrated in the editor to be worth it. This could also be automatic (the detection) - like an slightly more intelligent jetbrains inspection.
I've also tried some "whole program" synthesis with mixed results. It usually can get something up and running, but almost every time it has had subtle bugs in it - fixing these (with or without the AI) often got me close or higher to what it would have taken me to do it from scratch.
The advantage(?) is I might never have bothered beginning from scratch - getting the first rough draft get you immediately into iteration mode.
As an example - I asked GPT-4 to write a python program reading in a json file conforming to a jsonchema[1] and transforming this into a GPX file.
It ended up generating code trying to get `properties` keys from the json *file*. So it clearly did not understand the schema. Maybe jsonschema is to obscure?
[1] (I provided the schema and a link to the schema standard (though I'm not sure it actually read the link))
If it gets it wrong I just keep typing until it guesses the rest or I finish writing the comment.
I think a lot of people who have abstract problem solving skills don’t want to make tic tac toe games and to-do lists. They just want to get on and code, building what they want. LLMs are great for throwing you in the deep end.
If the code doesn’t work and you’re in a complete mess about debugging it - that’s great. It’ll force you to think through the WHY and HOW far more carefully than writing some stupid Hello World thing or doing another tutorial. You end up reading the documents and wrestling with ideas.
Best approach I find is to throw yourself at a LLM, then backfill your knowledge with books and resources, and speak to experienced people. That way you craft your own learning experience. Especially valuable if you just aren’t surrounded by software engineers - you’re forced to learn.
Its emphatically why I do not use any AI in my VSCode IDE...as you cannot trust the damn evaluation where each raw input is treated as the same every other input...
We devs use the same damn reasoning for developing a special set of lint rules as those pertain to the exp of coding and what things we want intended in our code constructs according best practices...
In short words, fluency is practice in both mistakes and corrections....there emphatically is no other way towards code fluency!
Genuinely seems many feel threatened by these tools that they need to emphasize the shortcomings.
And don't forget some random line about having studied algos in college and being able to reverse a tree, ugh...
There's no difference here in my mind between cheating and the models. If someone holds your hand for all your homework in school, you're not going to learn, whether that's a person or a language model.
So if AI advances in 4 years to the point where we're all deprecated, then fine, a student learning it got lucky. But otherwise, you're setting yourself up for failure if you lean too heavily on LLMs.
I don’t think many would describe Yann Lecun as threatened by these tools, here’s his take on the LLM approach: https://youtu.be/MiqLoAZFRSE?si=415gg2vhjz2Sd84s
I'll speculate bluntly on the reason: the overemphasis many have put on the interview skillse is the reason why many feel threatened in the first place. Because that "skillset" is among the most replaceable with AI advances.
Can current LLMs help with that? Almost never. What about in 5-10 years? Probably a little more, but I'm extremely skeptical that they'll ever reach beyond the tip of the iceberg.
But the way I look at it is: no matter how good AI gets, for AI to do something, someone must train it, instruct it, or ask it to do something for them, and then verify the results. All of which takes work from people. I mean even the mere instruction of saying "hey AI, do my taxes for me" takes work from me as I had to muster the very instruction, and there's no getting around this. So there will always be software developers regardless of however good AI gets. We may stop calling such people software developers, but I don't see why that matters.
Now, as whether we need less software developers because of efficiency gains? Unlikely to happen, because jobs are created from demand, and humans capacity for demanding things is endless, so the capacity for jobs is endless. This is the reason why the Jevons paradox happens. But in the case that we do in fact need less software developers, it still doesn't matter, because all it does is free up the time to do another job, just like a dishwasher does...
May be tech managers are better, but seeing the recent run of layoffs, it seems they're not really that much better. The problem fundamentally is your boss doesn't know how to code and will be so impressed that he can get code to write fizzbuzz, so why does he need you anymore?
I am, however, extremely concerned as a user, because the senior management in many places will push for them anyway, with the resulting drop in software quality across the board.
Also I do use algorithms every day.
I think you're projecting a little bit.
You're not skilled or experienced enough in the field to understand that programming sometimes goes beyond simply gluing together snippets of simple, generalized code until you have something that sorta works, and thus believe AI to be more than capable of replacing you, and you don't understand why other, more experienced people don't feel the same way.
Someone else on HN pointed out this great quote from here (my memory might have altered it slightly)
https://nautil.us/how-i-rewired-my-brain-to-become-fluent-in...
Written by the person who wrote the book "a mind for numbers"
Anyway, this idea about teaching how to use AI is backwards: Good luck debugging code you aren't skilled enough to write.
"Students don't need to learn grammar and syntax and really any vocabulary. AI assistance lets them understand higher level German concepts without needing to know how to conjugate for gender and number or remember if a noun uses der, die, or das."
You see a lot of examples of things that seem absurd when applied to non-technical topics, but as soon as you apply them to computers all skepticism goes out the window. If I told you I have a person who speaks perfect English but frequently lies and outright makes things up, you'd say that's a politician and not to be trusted. But if I say I have a computer with those same properties, suddenly it's the most amazing thing in the world, and we should implicitly trust it to make our decisions and educate our children.
Because a computer is a tool and a politician deems you a tool.
Anyway machine learning will change the way languages are taught. It did change how people learn games like Chess and Go. Having a conversation (with voice-to-text) with a bot in your second/third language will be an important part of language acquisition. It's honestly hard to imagine how it's not the case for me.
Are you maybe just in tech circles, not academic language circles?
To say that, as the article says, "Professors are shifting away from syntax and emphasizing higher-level skills" essentially means "Professors have stopped teaching programing languages and have started teaching how to turn natural language problems into AI prompts."
Higher-level problem solving skills are important, but I am skeptical of eschewing a lower-level foundation in favor of only teaching higher-level problem solving skills.
But as another commenter said, the analogy isn't 1:1. The example would be "Students don't need to learn German, they can just use Google translate for their time in Germany (and be hated for it by the locals)"
And yet, it seems that kind of politician is common and seemingly rules the world at this point. I'll let you decide what that means for the future of humanity.
With an LLM it is possible to write code that's too "clever", thus you won't be able to debug it. And in many cases neither can the LLM.
We already have this problem, even without the LLM-generated code. I see younger developers pull out all sorts of tiny libraries because a) they think it will save them time, b) they are insecure about the correctness of their code, and c) they often have no idea where to start when problems start to happen (solving problem is usually writing a github ticket or blindly trying another library).
I think LLMs will exacerbate the problem. These days I rarely see engineering spirit in figuring out how things work, willing to understand deeply OS or compiler internals, or even trying some crazy ideas, like "let's write a JIT to speed up our DSL".
I mean, at the end of the day I am not a coder, therefore any code I debug I'm probably not good enough to write, yet I've found numerous bugs in both open source and proprietary code with suggestions on how to fix it.
Edit: unless the the bug fixes were trivial
Doesn't work. A friend has been a teacher, at a not cheap private school, for going on 25+ years now. What she sees at almost every level is an avalanche of LLM "cheating". Even when there is extreme upfront emphasis on "this course is to help you learn, not just do whatever to find the 'correct' answers as quickly and easily as possible" the majority of students do the latter. She guesses that at least half are pasting in answers without even reviewing them. There are of course the few students that are there out of passion for learning, but those are the exceptions. This doesn't just apply to CS.
There are cultural and political ramifications that make enforcing this difficult (read rich parents that want those good grades). So she struggles along trying to swim against the current of LLM answers.
Quoting her directly, from about a month ago, "If they cannot type something into their phones and get an instant answer they're not interested."
Seems to be a reason behind a lot of things wrong with school right now.
...a kid was tasked with researching Peru "in the news." After 10 minutes I went to check on them and they had nothing done. They told me there was nothing about Peru in the news and showed me their Google search results. They had googled "in the news" only. They didn't include the word Peru in their search. Not only did they not use the technology correctly but they didn't ask for help or say anything after their one attempt to get information failed. They just sat there.
source: https://ol.reddit.com/r/Teachers/comments/1axhne2/the_public...
A bit like I personally think teaching programming in a typed language is a good idea so that the kids internalize that conceptually before they jump to a lang with auto casting.
Same with the tools...I think there is value in doing it the hard way initially.
And here we are in 2024 watching the emergence of natural language programming, where we merely describe the program's specification in natural language and have the computer generate the rest. There's your new paradigm.
Is it? When you take procedural, object-oriented, logic, and functional programming, they did not only changes how we code, they also change how we think about the solution. We had new entities and we could describe the relations between them to describe an algorithm. Natural languages have been there forever, but the thing it lacks is formality. Every term describe a very large class of objects and specifying which one you're referring too is arduous. The kind of specification needed to describe problem solving steps is what created programming languages in the first place.
Programming languages are not some arcane art that we need to suffer through. They're the best way to specify to a machine how it should work to do a task. Maybe AI can be the new machine, but its capabilities so far are not that impactful IMO.
That simple request is enough to generate a mountain of code. The real problem starts when you want to iterate.
The real problem is specifying what any of the quoted terms means (nouns and verbs). What is a query? What is a result? How many items in a page?... And then you recurse from whatever definitions and descriptions they gave you until what you have is terms from your favorite programming languages. Somewhere in the middle, you land into whitepapers and research materials. And sometimes the result is only good if you have PBs of data and lots of compute powers.
Having lots of code is not where you want to start unless you like to manage complexity from the get go and have clear understanding of the domain space.
I mean, with a large enough context window...
No, LLM is not a paradigm for programming, but it might be a new paradigm for autocomplete, refactoring, translating, and so on.
Interesting. How is the book in audio format?
As a "must read" book that no one actually reads, that may take the edge off.
I have also seen juniors with amazing ideas and ability to iterate, who get that the job is delivering value to customers, who are held back by their lack of expertise in the craft. This breed will flourish.
The old maxim “90% perspiration 10% inspiration” may shift as automation provides more leverage. This could be great for younger, less-entrenched, more-flexible students.
I feel like this could be a big deal in science in general. People of different fields often do unnecessary extra work (as in reinventing the wheel) because they're not aware that there's, say, 10 years of research on it.
To take an extreme example, just think of the poor fella doing medical research who rediscovered integration[0].
0. https://fliptomato.wordpress.com/2007/03/19/medical-research...
Maybe an introductory search in other fields is what required? Or heading to the library? Even in software engineering, we see people reinventing the wheel because they can't be bothered to read a computer science book.
On the other hand, it seems to be something LLMs are particularly bad at. There are many similar but subtly different concepts. People use the same words for different concepts and different words for the same concepts. Every paper invents new terminology. And there is often very little written material available.
Left unchecked, it will be amplified by LLMs. Detecting and ignoring the poisoned data requires way more "intelligence" than the current approaches can achieve.
Not sure if it'll exactly be bad, some naming schemes are just bad anyways. Old man yells at a cloud using words incorrectly...
My reaction has at best been "oh look how cute it is", like watching a kitten try to walk, when I have tried various LLMs out there.
I'm doing a complete rewrite of a C# project with Rider and Copilot integrates to it directly. This allows me to:
- Have the previous project open and ask questions about it from the LLM, like "Where is the DbContext initialised" or "How does FooModel connect to the database" and it'll give me the direct answer and links to the .cs files where it found the information.
- In the new version I can paste a bunch of SQL CREATE statements to Copilot and it can create the models for them automatically. It knows how to do foreign keys both in [annotations] and using the fluent model based on the statements I gave it.
- I can ask questions like "how can this be done more efficiently" and it gives decent suggestions. Like I learned about the C#11 'required' keyword[0] by having it be suggested to me :)
- I can make it do the tedious code changes for me like "write me the primary key generators for entity framework for classes FooModel, BarModel and BazModel" and I can just click "insert at cursor".
- It's also pretty well integrated to projects, so the code suggestions it gives are usually pretty well on point. Like I can just start typing DbSet and it'll automatically give me each of the models in the project (linked via a shared project) one by one as completions 100% correctly. Takes me 5 seconds to add 5 DbSets.
Working with an LMM takes some getting used to, just like with pair coding in general.
Your "partner" doesn't know what you think, so you need to communicate what you're doing efficiently and in a way they can understand. "Prompt engineering" is a stupid term, but it's still valid. There is a certain way you need to communicate with LLMs so that they understand what you want and give you a concise answer.
I use it like I would a Junior coder, give it the simple tasks I know 100% how to do myself, but can't be bothered because of the tedium.
[0] https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
LLM programming removes the need to write tedious code, which means the author has fewer opportunities to ask themselves if there are easier ways to model the problem they're solving. We would never have gotten language features like Objects, Iterators, first-class functions, and exceptions if all of the boilerplate to emulate those features could be autogenerated so easily.
Going forward, there will be less impetus for programmers to pick better languages and abstractions for their work, since the boilerplate cost of picking the wrong one is subsidized by the llm.
So I think the issue isn't so much that people won't know the syntax rules and bizzare-semantics trivia, but that people won't realize that the syntax rules could be different and that the whole point is for them to make your life easier.
That's a nice and positive spin on it.
Not magnitudes better than IntelliSense, but noticeable.
In day to day coding work it probably saves a few hours a month.
As it should be.
Programming IS syntax.
If you want higher-level /skills/ you need foundational skills.
If you want higher-level understanding, well that’s what pop sci is for.
And writing a novel is spelling.
Someone who hasn't mastered the written grammar of the language in which they wish to write a novel, is unlikely to produce anything someone else would want to read.
If you envision a mechanical solution without anything like a mill or lathe up there, do you consider yourself to be machining?
> Syntax is just a textual representation of concepts.
Mechanical parts are just the metal (or whatever material) representation of concepts. Does programming not refer to processes around taking those concepts and turning them into something 'tangible' of a certain variety?
It seems to me that programming is, in fact, just syntax (within some loose interpretation). As you call attention to, syntax doesn't mean much in a vacuum, but the bigger picture that includes thinking about concepts usually gets the "engineering" moniker.
What distinguishes programming languages from: random text, spoken languages, or even other programming languages? Syntax.
I hate that you define a function in python with: def func(): ; in clojure with: (defn func []; and Haskell with: func = ; just as much now as anyone starting to explore an interest in building with technology.
I hate that to participate with the internet you need to know 3 programming languages: html, JavaScript, and css. (While completely ignoring the backend.)
But it is that way because different people have different ideas of how to move these 0s and 1s around.
Now perhaps one of these overly optimistic proselytizers of the llm teachers might say, “exactly, and we can use this tool to abstract that madness away.”
Fine, but it’s something different than programming.
I say that without any condescension of either party. What’s it matter if the desired goals are reached? I mean, except that these tools are a silicon fire created by stealing the worlds creative output, and owned by unethical sociopaths who are trying to sell it back to us.
But when discussing education, this distinction is important to ensure programming is still taught in parallel to people who are only taught to use an llm.
Have we reached the apex of programming? Do all we need is to just stochastically complete tokens of preexisting code?
Or do we still have work to do in this field?
Who’s going to do the programming if everyone in the discipline learned only how to avoid the programming?
Absolutely atrocious idea, but not really novel. The idea that you can go through shortcuts and remove rigorous training in CS has been happening all over higher ed, it's why every new generation of CS graduates to be frank feels more clueless than the last one. I include myself in this to some extent, my university education about 10 years ago already felt like a glorified bootcamp and I had to learn a lot myself.
But I do thank at least one prof I had for having us take tests on paper and deduct one point for each syntax error, it's probably why I pay at least some attention when I write code.
Saying programmers should not focus on syntax and this "it's just like, concepts bro" is such a pothead mentality, it's like saying you can be a great novelist if you need to use auto correct on every third word because spelling doesn't matter. Find me one great novelists who does not have an excellent grasp on language because you have spelling assistants. If you don't have precision, a grasp on the mechanics and memory and the fundamentals down you'll be worse than useless in any discipline.