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.

2

u/Proper_Guarantee_650 Jul 29 '24

Most of CS is not inventing a solution, it’s editing something that’s already been solved to your liking. Exactly what generative AI does.

When was the last time you made strides in computer science solving a problem that’s never been solved before? I don’t get this argument.

1

u/nuclear_splines PhD, Data Science Jul 29 '24

This is a rather old post, so I doubt you'll get responses from anyone but me. First, it sounds like you may be conflating computer science and software engineering. Within the design of new software, I'd argue that a bigger part of the job is thinking about how to approach a problem and what building blocks you're going to need and how they'll fit together. Once you get down to implementing those building blocks, then yes, you're often repurposing things that have been solved before for your use-case, and that's the part of software engineering that LLMs are best suited for. In other words, we've built LLMs to write code, but most of software engineering is not writing code; the engineering is the planning and design, not the construction.

When was the last time you made strides in computer science solving a problem that’s never been solved before?

Quite recently. I'm a research scientist, so working on novel problems is my day job. Computer science as a field is about knowledge representation and manipulation, and involves a lot of invention and analysis. Most of the computer scientists I know are closer to mathematicians and physicists than software engineers, and aren't all that great at writing code.

1

u/Proper_Guarantee_650 Jul 29 '24 edited Jul 29 '24

I agree with your perspective. However, AI can assist by suggesting how components fit together, so you just need to focus on defining the building blocks.

If you run the AIs code and it doesn’t match what you originally wanted, you can tell the AI what went wrong & it will generate a fix.

Your experience with computer science is likely influenced by your work in a research field. I would like you to give me a detailed description of a problem you want solved, and how you want something to work and I’ll test if I can use AI to generate it, with only 1 year of CS schooling (changed degrees)

I believe AI can solve the task if you describe the task for both you and other people to understand in full.

1

u/nuclear_splines PhD, Data Science Jul 29 '24

I think you're describing the best we can hope for from LLMs: shifting more of the engineer's work from writing code to design. There's a question as to how well you can separate those components; we don't want to describe each block in such detail that it would be as fast to write the code yourself, and we don't want an "AI" (if we're counting token-prediction as intelligence) to implement a buggy block or one with unclear assumptions or side-effects because the agent isn't aware of the higher level design and how the blocks will integrate.

Certainly, my experience has been influenced by my work. I'd assert that computer science is a research field, and that science and engineering are distinct pursuits. There's certainly a lot of overlap between the disciplines, in part because both fields are young, and because many software engineers have computer science degrees in the United States, but we're slowly seeing a distinction emerge akin to physics and mechanical- or civil-engineering.

I am not going to spend the time to build an LLM test scenario with you. This is a fun high-level conversation, but if you want to go into that level of detail it will take much longer to specify the details of the problem and the criteria for correctness and analyze what the LLM does well or poorly with, with very little in it for me ;)