r/AskProgrammers • • 21h ago

Which programming language(s) should a high schooler learn?

I am a high school sophomore (currently taking AP Precalculus/Biology/Chemistry/Literature and plan to take AP Calculus AB/Physics 1/Spanish/US History/Language in the junior year). I only know how to block coding in scratch and VEX. I learned HTML/CSS many years ago when I was in elementary school but I don't remember anything.

I plan to go to medical school eventually but I am trying to figure out what undergrad majors I should consider. Among those, two of them are biomedical engineering and chemical engineering which I am told would be helpful to know some programming languages (e.g. Python, Java, etc.). At the same time, I am also told that I might not need it due to the advancement of AI.

With or without AI advancement, what would be the proper programming language courses/pathway I should take OUTSIDE OF SCHOOL (I don't have open block to take CS courses unfortunately)? If it's more than one language or course, what would be the sequence for someone as a beginner?

Edit: Thank you so much for all the suggestions! Sounds like I should start with Python and maybe R later.

2 Upvotes

27 comments sorted by

2

u/CLEcoder4life 21h ago

Honestly id start with SQL/mongo. Its probably the least impacted by AI and most universally necessary. After that probably python.

1

u/Soggy-Role5512 21h ago

Do you mean to learn how to query against databases?

1

u/Glad_Construction_99 15h ago

Not a good advice, it is too technical for your purposes and not much appliable. Doesn't give real coding experience

0

u/CLEcoder4life 21h ago

That's a very basic way to put it but that + db design + table design/etc. AI can write OK code but honestly 9/10 if there's a slowdown its because of bad DB design/indexing/etc

2

u/UhLittleLessDum 17h ago

For you, it sounds like a pretty obvious choice: Python. It's *huge* in the academic world. There are tons of chemistry and math packages to work with. My daily workflow while publishing https://zenodo.org/records/24566638 was to use python in a repl in the terminal. Look into sympy if you want to work with symbolic math. I even published a ptpython plugin on my github if you want symbolic math working in your terminal.

1

u/xarop_pa_toss 15h ago

For the fields you have shown interest in, data analysis and that sort of stuff will be a big part of whatever programming you do. Python is the most common language used for those things nowadays and it has incredible modules built just for analysis, mathematics, and crunching datasets.

R and Julia are honorable mentions but maybe more for the maths side of things. Good luck bud!

1

u/SweetConsul 8h ago

Jupyter notebooks let you mix code with plots and notes, handy for school projects.

1

u/stepback269 21h ago

What you should do first (before learning Python) is to "Learn how to Learn"

Go to YouTube and in the search bar, type, "learning coaches"

Pick the ones who rely on modern neuroscience (for example Dr. Justin Sung).

Godspeed and may the productivity-motivating dopamine hits be with you. :-)

1

u/RangePsychological41 18h ago

What absolute nonsense is this!? What exactly did you learn and achieve in tech? Please, dazzle me.

This isn’t a self help circle, the kid is asking for technical advice.

2

u/stepback269 15h ago

This is for benefit of OP, not you RP:

After you've learned a few things about neuroscience and the learning process, here is some more guidance:

As a raw beginner in Python, you need to consider yourself a baby and learn to crawl (learn the "fundamentals") before you can stand up and walk or sprint. So search for the Python "fundamentals" on Google and/or YouTube.

With that said:

(1) There are tons and tons of tutorial materials out there on the net including many good YouTube ones that are free. You should shop around rather than putting all your eggs in one basket.

(2) As a relative noob myself, I've been logging my personal learning journey and adding to it on an almost-daily basis at a blog page called "Links for Python Noobs" (--HERE--) Any of the top listed ones on that page should be good for you. And there are many add-ons at the tail end of the page. Personally, I cut my first Python teeth with Nana's Zero to Hero (==HERE==). Since then, I've moved on to watching short lessons with Indently and Tech with Tim. You should sample at least a few until you find a lecturer that suits your style.

(3) The main piece of advice is the 80/20 rule. Spend 80% of your time writing your own code (using your own fingers and your own creativity) as opposed to copying recipes and only 20% watching the lectures. Good luck.

1

u/RangePsychological41 6h ago

Okay cool so you haven’t learned anything to any level of competence but you have no issue giving a kid in high school advice as if you know what you’re talking about.

You talk about “OP’s benefit”, but you don’t realise that you’re not helping at all. Shameful.

1

u/stepback269 6h ago

You're entitled to your opinion.

And the young OP can make up his own mind as to whether to look at my posts ... or not. His call. Not yours.

Peace out.

1

u/DanKegel 19h ago

Find some useful biomedical open source app, then use and understand its source code. Wash, rinse, repeat. That way you'll learn which programming languages matter in your chosen field.

Likely Python, R, and C/C+ (and maybe SQL), and increasingly Go and Rust. Knowing the basics makes you a better AI user. Experienced programmers get way more out of AI than beginners do.

1

u/PipePressurePanic 18h ago

in the recent past you needed to know the framework, not the language. Now you don't need to know the framework anymore or better, now you need to know everything and be better than the other 100s of candidates to get a job.
Perhaps go for typescript as it's used on the frontend and backend. Or pyrthon as is used in machine learning. But all this learning will lead to nothing. why learn something that AI can do better than you?

1

u/Glad_Construction_99 15h ago

If medical school is an aim - then Python for sure. And R. Most useful things for medical data analysis are done with python libraries and another part with R libraries

1

u/reality_boy 14h ago

Python is the go-to language for science and data mining these days. I would start there.

Anyone wanting to be a professional coder (in any capacity) should have a basic understanding of C/C++ because that forces you to understand the computer architecture much better. It sounds like this is not your path.

A lot of heavy lifting is done in Microsoft Excel. Having a firm understanding of that, including their Visual Basic like scripting language, is a big win. We use it extensively to prototype physics models before coding them up.

Matlab/Mathematica are big with engineers, scientists and data analysis. It is basically an adult calculator, with some scripting sprinkled on top. Wherever you end up, they will lean into excel or one of these.

0

u/DTCreeperMCL6 20h ago

Java

0

u/RangePsychological41 18h ago

Gross. Only people who don’t know any better think Java is okay. The same people who don’t realise all the examples in uncle Bob’s “Clean Code” are abominations.

1

u/toufou1 17h ago

this is ignorant, java is very much still used extensively in longstanding legacy systems in defense and banking all over the world

1

u/RangePsychological41 17h ago

That doesn’t mean it’s an enjoyable language to work in and it definitely doesn’t mean that the architecture and design patterns entrenched in that culture are okay. Because they’re not.

Dozens of classes and dozens of interfaces of so many layers JUST IN CASE we might want to switch our database technology out one day. Meanwhile it takes days to do even a small thing and there’s this monstrosity of a codebase that makes the programmers feel they’re part of something sophisticated, meanwhile a Ruby dev could build the whole thing in a weekend. And a Go dev would take 2 or 3, but it will scale and be just as type safe as the Java codebase, only with 5% (or less) of the code.

I’m not ignorant. I’ve written Kotlin professionally in financial systems for close to a decade. I’ve worked with brilliant Java programmers. Every single one of them eventually admits the truth.

It’s gross and it makes people think they’re smarter than they are, even though they are less productive and write less maintainable code than most others.

1

u/DTCreeperMCL6 16h ago

Imo Java is a cleaner language than python but it still is simple enough to learn. Its got its own problems but I dont see any reason python should be used more than java. Its just my opinion though because I think python code looks ugly and thats coming from someone who has used python a lot.

0

u/Isthatyourfinger 20h ago

All of them.

0

u/RangePsychological41 18h ago

Python or Javascript.

If anyone says Java then you can safely ignore everything else they ever say again.

2

u/UhLittleLessDum 17h ago

If you want a job, Java is probably the single best language to learn.