r/computerscience • • Jan 11 '24

Is computer science dying?

I’m a highschool senior that is planning on pursuing computer science in college and as a career. i’m starting to learn more and spending more outside time on watching coding videos and such. But as i’m spending more time in this field, I keep seeing my people saying “coding is dying” or “if you don’t learn ai now you’ll be behind everyone” which is worrying me quite a bit. Is this field really dying or being taken over by ai? Or is there still an incredibly large field that will still demand people for some time to come?

10 Upvotes

76 comments sorted by

View all comments

31

u/nuclear_splines PhD, Data Science Jan 11 '24 • Bravo

Is computer science dying? Is coding dying?

No. Generative AI is good at copying text it's seen before, and tweaking it to match a prompt. It's quite good at regurgitating simple boilerplate code that's been written countless times before, like "read a CSV file and get me a particular column."

Generative AI is not creative. It cannot solve novel problems, and it cannot design software, and it fundamentally does not know what it's doing. If we widely adopt generative AI into the workflow of developing software (which seems like it could be likely!) we will still need humans to design the software, break it into building blocks, identify the building blocks that are simple enough for generative AI to solve, and verify the solutions we get back.

Generative AI can't understand if the code it produces works or is bug-free, and definitely can't understand more conceptual tasks like how to design a program, because Large Language Models don't "think." We've produced an incredibly powerful autocomplete, but its role is still to predict the next token based on prior tokens and a context window, and to mistake it for a reasoning consciousness that can "take over" the field would be a mistake.

All of that is just speaking to writing code. As others have pointed out, computer science is much broader than programming, and LLMs are no substitute for human thought.

If you don’t learn ai now you’ll be behind everyone. Is there still an incredibly large field that will still demand people for some time to come?

Now these are very different questions. If we use generative AI to automate writing simpler code, then fewer programmers today can finish the same work that would take more programmers just five years ago. You can't replace a whole human with AI, but maybe a team of eight people plus AI can do the work of ten people without AI. The labor market could shrink considerably, especially for entry-level software engineering.

4

u/[deleted] Jan 14 '24

[removed] — view removed comment

4

u/nuclear_splines PhD, Data Science Jan 14 '24

Not at all, for a variety of reasons. We could make arguments about free will and self-drive or the nature of creativity, but the difference I would like to focus on is that word 'token.' An LLM does not see words, it cannot see letters or shapes or sounds, but tokens - if this were a word embedding, each word would be a literal coordinate on the surface of a sphere - the context windows for an LLM are much more complicated, but not fundamentally different. Running vector math on coordinates in word embedded space can give a facsimile of understanding, but it falls short in a variety of contexts as described in recent papers here and here.

Ultimately, our understanding of reality is dependent on our bodies - a topic known as embodied cognition. You can't understand what an apple is by reading about it, you need to hold one, feel its smooth skin and heft, smell the barely sweet scent permeating the skin, feel the sensation of biting into it, the juice pouring out, that taste and crunch. If I try to describe a fruit you haven't eaten to you in text then you try to relate it to the closest experience you have had, and this goes for reading about anything you haven't experienced. Crucially, an LLM doesn't have any true experiences to relate to, its perception of reality is limited to a stream of tokens, and so it fundamentally does not and can never understand what it is talking about.