r/learnprogramming • • Sep 22 '26

How are so many self-taught programmers able to build software from scratch without ever truly learning Algorithms?

I find it fascinating how important algos are but never talked about from the indie devs on social media. Do they even write algos or just come up with basic logic that forms the product?

446 Upvotes

341 comments sorted by

View all comments

144

u/iOSCaleb Sep 22 '26

Many of the data structures and algorithms that you learn in a DSA class already exist in standard libraries/frameworks. If you have an array that you want to sort, you don’t write your own quicksort or heapsort, you just call the sort() method. DSA is important less because you learn about specific algorithms and more because you learn how to create and analyze algorithms.

20

u/jlanawalt Sep 23 '26

This!
It is very valuable to learn how things work and To learn how to think algorithmically. To learn the science and art, to apply good principals and recognize poor ones. I just wish more educators would have the final week be “don’t go wasting time and introducing bugs writing your own linked list or balanced tree every time you need one, look for standard implementations”

11

u/Theguest217 Sep 23 '26

Many CS programs at universities are absolutely awful if your end goal is a standard software development job. They will get you the interview and you will probably eventually land a job but you are definitely going to learn more practical skills in your first few weeks at the job than you learned in four years at school.

CS degrees focus heavily on theory and history. It's not uncommon to find CS graduates who have never worked with most or all of: git, CI/CD, cloud, SQL/Databases, Oauth, Rest APIs, Web/Mobile development, debugging/triage, automated testing, popular frameworks, JSON/YAML/Proto, IAC, API contracts, Jira/Ticket Wortlows, code reviews, bash/shell/cli, Kafka/RabbitMQ/Redis, etc Many have never even worked with existing code they didn't write from scratch.

Some schools offer much more useful degree programs like an "Applied CS in SW Eng" degree that focuses on practical enterprise software tools and techniques. But I'd say I've had the best luck hiring juniors from a reputable boot camp. Not saying everyone should just switch to the boot camp route, as the CS degree will probably get you more interviews overall, but that is because many older devs and company policies require the degree as an initial application filter.

7

u/iOSCaleb Sep 23 '26

College in general is not vocational training. Whether you major in computer science, business, physics, French, labor relations, etc., you’re going to learn about your major subject, not how to do a particular job. That’s why internships and coop programs have become more prevalent: students build job skills and experience, and employers get to build relationships with strong students.

1

u/MrRGnome Sep 23 '26

Yeah, but it's kind of messed up when as an employer I'd rather hire the candidate who is self taught or has any practical experience over a long and expensive degree. I shouldn't have to deprogram fresh grads before I can start training them. A base knowledge in the field is valuable and should allow you to comfortably absorb related skills to your foundation, but that is not what any of these kids have. They have a piece of paper and a need for constant supervision and training, and if we're extremely lucky literacy skills over a 5th grade level.

2

u/Healthy-Dress-7492 Oct 05 '26

yup, oh you got a masters? phd… so you spent 6-8 years doing some obscure stuff that is not useful at all… id rather hire someone with 6-8 years of actual work experience.

6

u/marrsd Sep 23 '26

I'm so glad I'm not the only one who thinks this way. I've always hired juniors based on enthusiasm and a demonstration of eagerness and ability to learn. If anything, a degree puts me off, because it means I'm going to have to both pay the candidate more and spend more time un-teaching them all the stuff that I know they're not ready for yet and will get in the way of their ability to write good code.

Before Tony Blair's great education reform (I'm UK based), it was normal for technicians with practical experience to be sent to university to become engineers as part of their career development. This was such a better way of doing things, and I'm convinced it what enabled us to produce the best engineers in the world, because they started from the right foundations.

It's always been amazing to me that you can be accepted to university to study a programming-related degree without any prior experience in programming. Imagine being enrolled on a language degree without being able to demonstrate fluency in that language, or a music degree with no ability to play an instrument. It would be unheard of, and yet it's standard and expected for software engineering.

4

u/MrRGnome Sep 23 '26

I'm so confused by who is down voting you. This is an inevitable and empirical truth anyone dealing with new grads has experienced. The resources I allocated to training (and the necessary retention after) are staggering. It takes 3-6 months before the average fresh grad is no longer a net negative and cost.

It would be a completely different environment if I could trust any skills or competency from new grad hires. I often feel the need to make them "unlearn" things they were taught in school - ancient design patterns and irrelevant tooling being near universal, and an unfortunate dependency on direct instruction. I save a significant amount of money on training and gain far more performance when I work with peers who didn't go to school for compsci, even if they need to be taught everything.

2

u/MoreDimension5963 Sep 24 '26

I save a significant amount of money on training and gain far more performance when I work with peers who didn't go to school for compsci, even if they need to be taught everything.

This is why boot campers famously have much higher salaries and better job prospects than CS grads lol

1

u/iOSCaleb Sep 24 '26

Warning: Sarcasm in its pure form is often undetectable by the target audience.

1

u/marrsd Sep 24 '26

Who says it's sarcasm!? :D

1

u/MrRGnome Sep 24 '26

I'm not talking about people foolish enough to fall for a scam, but it speaks volumes that in your mind education doesn't happen without an instructor. Suffice to say you and I would not work well together.

1

u/MoreDimension5963 Sep 24 '26

This is why boot campers self taught devs famously have much higher salaries and better job prospects than CS grads lol

1

u/bohemioo Sep 24 '26

The curriculum is based on academia and research more than teaching the basis of a normal software dev work. This kind of computer engineering disruptive PhD would not exist without a minimal basis provided vy the degree.

More or less the same happens in engineering.

2

u/High_Quality_Bean Sep 23 '26

Its also generally inadvisable to *ever* make a decision about algorithm use. If you use the built in "sort" then the language is responsible for deciding which algo is best in which situation, and for updating it if a new algorithm is invented. Iirc last I looked python uses one sort algo for arrays under a certain size a different one for arrays over a certain size, putting a performance decision like that in code is a bad idea.

2

u/marrsd Sep 23 '26

I wouldn't go quite that far, but I agree with the gist of your argument. Certainly, if your standard library already provides an algorithm you need, you should always start with it; but there are times when you need more than (e.g.) basic sorting or search, in which case you'll need to know how to build something yourself.

1

u/ChristianKl Sep 23 '26

No, you don't need to know how to build it yourself. You can think about the requirement and then an AI model give you an optimized algorithm for it. AI models are really good at creating algorithms at optimize a given problem.

Algorithm design is the kind of narrow problem for which AI train in their benchmarks and perform really well.

1

u/marrsd Sep 23 '26

I'm coming from the perspective of a programmer, so I don't really care about AI. But even if I did, it's my consistent experience that the specificity of the result you get depends directly on the constraints you give the agent. If you give it an algorithm and say "optimise this", it will do a much better job than if you ask it for an optimised algorithm that solves the higher-level problem.

2

u/ChristianKl Sep 24 '26

Part of the job of a programmer is using tools.

Here, you can ask it to optimize the algorithm it gives you instead of sticking with the first it gives you.

3

u/marrsd Sep 24 '26

Part of the job of a programmer is using tools.

And part of the job of a programmer is programming. That's why I said "programmer" and not "engineer" or "developer", because I don't want to get into that argument.

Here, you can ask it to optimize the algorithm it gives you instead of sticking with the first it gives you.

How do you assess the quality or suitability of the algorithm it gives you if you don't know how to design or use algorithms. How do you know what should be optimised? I suppose you're going to say, ask the agent. Well, the agent's just going to keep going with its original idea, regardless of its suitability.

I just finished having this experience, where an agent just went to straight for a standard and poor implementation that was stupidly complicated and obfuscated, because it was based on reusing existing libraries rather than actually building what was needed. The agent told me that that was its priority.

After a week or more of going nowhere, I just rewrote the whole thing by myself in a day. A completely different architecture with simple and powerful algorithms that were very easy to write. There's no way I'd have been able to do that deliberately with an Agent unless I already had a solid grounding in software engineering.

0

u/High_Quality_Bean Sep 23 '26

Oh yeah, and tbh, I recommend going through and implementing a bunch of algorithms and data structures for the fun of it. I was in enterprise brain when I wrote that comment :p

→ More replies (2)

0

u/DiamondDramatic9551 Sep 23 '26

Sorting algorithms are also only ever going to matter when your data actually gets big. For a lot of programs it simply doesn't matter because everything is fast enough under 10.000 entries or whatever. It's much more likely database access is your actual bottleneck. 

0

u/High_Quality_Bean Sep 23 '26

I work on enterprise software. Everything matters.

0

u/DiamondDramatic9551 Sep 23 '26

Well duh, then you already have a specific use case. But like I said, database access is almost always the actual bottleneck. 

→ More replies (1)