Skip to main content

Just Learn to Code" Is Dead: What Young Adults Should Actually Study in the Age of AI

Dr. Mark G. Agresti, M.D. Mental Health
Just Learn to Code" Is Dead: What Young Adults Should Actually Study in the Age of AI

"Just Learn to Code" Is Dead: What Young Adults Should Actually Study in the Age of AI

By Mark Agresti, MD, board-certified integrative psychiatrist, Palm Beach, Florida

For fifteen years, the advice to every teenager was the same: learn to code. Coding was the safe bet, the six-figure ticket, the major parents could brag about. Today, AI tools can write working software from a few plain-English prompts, and many of the young people sitting in my Palm Beach office are asking a question their parents never had to: What is the point of studying something a machine can already do?

It is a fair question, and it is generating real anxiety. In my practice focused on young adult mental health, I now see high school seniors frozen over college applications, sophomores convinced they picked the "wrong" major, and parents losing sleep over tuition for a degree that might not lead anywhere. This article lays out what the data actually shows, which fields of study and college majors look most durable as artificial intelligence spreads, and how to make a career decision without letting fear make it for you. If your feed is full of #AIjobs panic and #careeradvice that contradicts itself every scroll, start here.

Students Are Already Voting With Their Feet

Research Spotlight: The Great Computer Science Exodus

According to the National Student Clearinghouse Research Center, undergraduate enrollment in computer and information sciences at four-year colleges fell 8.4 percent in spring 2026 compared with a year earlier, following a 3.6 percent drop in fall 2025. Graduate enrollment in the field fell 14 percent. At Arizona State University, computer science and software engineering enrollment dropped by more than a thousand students in a single year while mechanical and electrical engineering grew.

Meanwhile, the skilled trades are surging in popularity. In a 2026 Thumbtack survey, nearly half of Gen Z respondents said they were learning or seriously considering a trade, and four in five believed AI will eliminate many traditional entry-level jobs. Trade school enrollment in programs such as HVAC and welding is projected to grow about 6.6 percent per year.

Young people are not imagining the threat. Research from Stanford's Digital Economy Lab found employment declines concentrated among 22- to 25-year-olds in AI-exposed jobs such as software development, customer service, and clerical work. The first rung of the white-collar ladder is where AI is landing hardest.

So Is Computer Programming Pointless Now?

Here is the honest answer: coding as a standalone skill is losing value fast, but technology careers are not disappearing. They are changing shape.

The routine work that once trained junior programmers, writing boilerplate code, fixing simple bugs, building basic features, is exactly what AI now does well. A young person who studies computer science only to become an entry-level code writer is betting on the most vulnerable slice of the field.

At the same time, the Bureau of Labor Statistics still projects software developers to be among the occupations adding the most new jobs through 2034, and it ranks data scientists (up 34 percent) and information security analysts (up 29 percent) among the fastest-growing occupations in the entire economy. Someone has to design AI systems, secure them, check their work, and take responsibility when they fail.

The lesson is not "never study computer science." It is "never study only computer science." The durable path is technology combined with something else: computer science plus medicine, plus engineering, plus finance, plus cybersecurity. Universities are already moving this way, folding AI coursework into nearly every major rather than keeping it inside the computer science department.

The Five-Question AI Resilience Test

No career is truly #AIproof, and anyone promising one is selling something. But some kinds of work are far harder to automate than others. Before choosing a field, I encourage young adults and their parents to run it through five questions:

  1. Does it require hands in an unpredictable physical world? Rewiring a 1960s house or fixing an air handler in an attic is wildly harder for a robot than writing an email.
  2. Does it depend on human trust and presence? People want a human nurse at the bedside, a human teacher for their child, a human therapist in the room.
  3. Does it require a license and legal accountability? Someone has to sign the prescription, stamp the engineering drawing, and be responsible if it goes wrong.
  4. Does it involve judgment in messy, high-stakes situations? Crisis decisions, negotiations, and leadership resist automation.
  5. Will AI make this person more productive rather than replace them? The best fields are ones where AI becomes a power tool, not a substitute.

The more questions a field answers "yes," the more resilient it is likely to be.

The Fields I'd Point a Young Person Toward

1. Healthcare, especially hands-on and licensed roles

Healthcare passes nearly every test above, and an aging population guarantees demand. The Bureau of Labor Statistics projects nurse practitioners to grow about 40 percent by 2034, making it the fastest-growing healthcare occupation. Physical therapist assistants and medical and health services managers are also among the fastest-growing jobs. Federal Reserve Bank of New York data shows nursing graduates have some of the lowest unemployment of any major and the lowest underemployment of all, at about 12.8 percent, meaning nursing grads almost always land jobs that actually use their degree. Physician assistants, respiratory therapists, physical and occupational therapists, and physicians all share this profile.

2. Mental health and human services

I will admit some bias here, but the logic holds. Psychiatry, psychology, licensed counseling, and clinical social work depend on human connection, trust, and clinical judgment. AI can help with documentation and screening, but a young adult in crisis needs a person. New York Fed data shows social services majors with unemployment of about 1.9 percent. The demand for mental health care among young adults far outstrips the supply of clinicians.

3. Skilled trades and the energy transition

Electricians, HVAC technicians, plumbers, and welders work in unpredictable physical environments, need licenses, and face a wave of retirements in their fields. The two fastest-growing occupations in the country, according to the Bureau of Labor Statistics, are wind turbine service technicians (about 50 percent growth) and solar installers (about 42 percent). Many trades offer paid apprenticeships instead of student debt, which is a big part of why #skilledtrades and #toolbeltgeneration content has exploded online. One caution: in surveys, the physical demands of the work are the biggest hesitation young people report, so this path should match the person, not just the headlines.

4. Engineering that touches the physical world

Mechanical, civil, and electrical engineering combine technical depth with physical systems, safety codes, and professional licensure. These majors consistently show unemployment near or below 2 percent in New York Fed data, and students are flocking to them as computer science enrollment falls. Engineers will use AI constantly as a design tool, which makes them more valuable, not less.

5. Education, especially special education

Special education graduates had the lowest unemployment rate of any major in the New York Fed's analysis, at 0.7 percent, and four of the ten lowest-unemployment majors were in education. The tradeoff is pay: most of those low-unemployment majors earn below the median early-career wage. But for a young person who loves working with kids, teaching remains deeply human and in short supply.

6. Technology, but the right kind

For the student who genuinely loves technology, aim at the layers AI depends on rather than the layer it replaces: cybersecurity, data science, AI engineering and safety, and "computer science plus X" combinations like bioinformatics, health informatics, or robotics. These roles involve judgment, accountability, and a constantly moving target.

Fields That Need a Rethink

Some paths are not doomed, but they carry more risk if pursued the old way. Majors that funnel students into routine knowledge work, such as basic coding, entry-level data entry and clerical roles, scripted customer service, routine content writing, and junior financial or research analysis, overlap heavily with what AI does best. Students who love these fields should not abandon them, but they should deliberately add a second skill set, internships with real-world responsibility, and fluency in using AI tools themselves.

Meet Ethan: The Coder Who Didn't Quit

Composite patient vignette. Details are combined from many cases and do not describe any real individual.

Ethan, 20, came in as a computer science sophomore with insomnia and constant dread. He had loved programming since middle school, but every week another headline told him AI would make his degree worthless. He was ready to drop out and "just do HVAC," despite having zero interest in it. His anxiety had narrowed his thinking to two terrifying options: stay and fail, or quit and settle.

In therapy we worked on the catastrophic thinking first, then the decision. Ethan realized what he loved was not typing code but solving puzzles about how systems break. He kept his major, added a cybersecurity concentration, and started using AI coding tools aggressively instead of competing with them. His sleep returned once the decision was made from curiosity rather than panic.

Meet Sofia: Paralyzed by Choice

Composite patient vignette. Details are combined from many cases and do not describe any real individual.

Sofia, 17, a straight-A senior in Boca Raton, could not finish her college essays. Every time she imagined a major, a voice in her head listed the reasons AI would destroy it. Her parents wanted pre-med; her friends were posting #GenZcareers videos about welding; TikTok told her everything was over. She described a constant tightness in her chest and had stopped seeing friends.

Sofia did not need a perfect prediction of the 2040 job market. She needed to understand that no one has one, and that choosing a direction is not a life sentence. Using the five-question test, she found that the work she enjoyed most, volunteering with children with disabilities, scored high on every measure. She applied as an occupational therapy track student and, more importantly, learned skills to manage her perfectionism that will serve her in any career.

The Skills Worth Studying No Matter the Major

Whatever a young person studies, a few capabilities will compound in value as AI spreads:

  • AI fluency. Knowing how to direct, question, and verify AI tools. The competition is rarely human versus machine; it is a person versus a colleague who uses AI well.
  • Communication and persuasion. Writing clearly, speaking confidently, and explaining complex ideas to real people.
  • Emotional intelligence. Reading people, managing conflict, building trust. Ironically, these social skills are exactly what years of screen time have eroded in many young adults, which makes them even more valuable.
  • Statistics and critical thinking. AI produces confident answers that are sometimes wrong. People who can spot the errors will always be needed.
  • Adaptability. The ability to keep learning without falling apart. This is as much a mental health skill as a professional one.

A Psychiatrist's Warning: Don't Let Fear Pick the Major

The biggest mistake I see is not picking the "wrong" field. It is choosing purely from fear. A young person who hates physical work and gets pushed into a trade because it is "safe," or a creative kid forced into nursing by worried parents, is set up for burnout, depression, and eventually another career change. Job security means very little if the person dreads every day of the job.

The healthiest decisions sit at the intersection of three things: what the person is genuinely curious about, what they are good at, and what the world will reliably need. AI changes the third circle. It does not erase the first two.

For Parents

Your teenager is facing more career uncertainty than any generation in recent memory, and they know it. Instead of handing them a list of "safe" majors, ask what problems they enjoy solving, encourage internships and job shadowing in fields that score well on the resilience test, and remind them that most people change direction more than once. If your child's worry about the future is causing insomnia, panic attacks, withdrawal from friends, or an inability to make any decision at all, that is anxiety that deserves treatment, not just a better spreadsheet. Career anxiety in young adults is one of the most common reasons families in Palm Beach and across South Florida reach out to a psychiatrist today, and it responds well to care. Protecting #youngadultmentalhealth is as important as choosing the right major for the #futureofwork.

Anxious About the Future? Let's Talk.

Dr. Mark Agresti is a board-certified integrative psychiatrist whose practice focuses on young adult mental health. His psychotherapy-based office helps students and young professionals work through career anxiety, perfectionism, decision paralysis, and depression with supportive psychotherapy, CBT, and insight-oriented therapy, combined with medication, nutritional, and lifestyle approaches when they help. He sees patients in person in Palm Beach and by telemedicine throughout Florida.

Mark G. Agresti MD LLC

44 Cocoanut Row, Suite M202, Palm Beach, FL 33480

Phone: (561) 760-4107

Email: [email protected]

Web: DrMarkAgresti.com

This article is for educational purposes and is not career, financial, or individual medical advice. Patient stories are composites created for illustration and do not depict real individuals.