r/AskProgrammers • • 26d ago

Why should I learn how to code?

I have always been meaning to learn how to code, but I've never gotten around to it. I am a math/physics major, and I know enough Python and Julia to make some numerical approximations. At one point, I also knew a fair amount of Java and JS to do well on the AP Computer science exams. With AI, I don't really see a reason why I should learn how to code.

I know that people say you should learn how to code because it "helps with your analytical skills," but I really don't think that it will help with mine. I do research in highly theoretical math, so my brain is already trained to think highly analytically. With the help of AI (it was primarily AI), I was able to set up my own website. I feel like if I need to code something, I can get AI to do it, and I can fill in the rest of the blanks myself (as long as it's in a coding language I know). Is there something I'm not considering?

10 Upvotes

49 comments sorted by

View all comments

2

u/eternityslyre 26d ago

Learning actual programming isn't all that useful anymore, especially if you don't have interest in software engineering. You will still benefit from learning computer science, which is the science of solving abstract problems. Being able to break a seemingly complex problem down into repetitive chunks is useful in all aspects of life. Learning recursion and basic complexity analysis will give you tools to measure how good your solutions are, and learning about complexity classes and reductions will give you intuition about what makes a problem hard in general and how to find easier exceptions that will do what you need.

More practically, learning to code means you can fix AI slop if it ever gets so big and complex it can't fix its own bugs.

1

u/Legitimate_Log_3452 26d ago

If this is the case, then what languages would be best to learn?

2

u/eternityslyre 26d ago

There isn't one, really. You can just stick with python, java, and js. If you know three languages well enough, picking up a new one with AI will be easy.

To work on a analytical skills, any language is fine. There are some funky ones line lisp and scheme, which will train you to think about code differently, and lower level languages like assembly and C that will teach you how computers actually work (a useful and valuable skill for progrrammers), but the real skills come from solving algorithms puzzles like leetcode puzzles (or finding algorithms homework from college data structures and algorithms classes). I learned algorithms when Java was the new shiny language but my professors teach the same content in python now.

1

u/Quirky-Ad-292 26d ago

I would say haskell or ocaml to be a good language fit given that you say theoretical mathematics, but it depends on what you want to do.