r/AskComputerScience • u/therosahd • Feb 04 '21
How do the best programmers learn their craft?
16
u/iFixReality Feb 04 '21
Practice.
10
u/scriptmonkey420 Feb 04 '21
Lots of failures, lots and lots and lots of failures. Its the only way to learn really is by failing and adapting.
14
u/digiacom Feb 04 '21
Good answers so far, but I think a big part is mentorship. Good teachers/senior coders are so helpful.
8
7
6
Feb 04 '21
I can't say this enough.
If you don't become intimately familiar with a good debugger to step through your code, you are missing out on the best learning tool ever.
1
u/emasculine Feb 05 '21
heh, one of the first things i did starting a project with literally no code at all (think: bare metal) was to write a debugger. it took me a while, but without it the entire project would have likely been years late.
4
u/turtle_dragonfly Feb 04 '21 edited Feb 04 '21
I think "learning how to learn" is one of the most important lessons, and it can vary by individual. You could really replace "programmer" in your question with just about any field of expertise, and I think it still applies.
Lots of people want to know "how do I learn X", but I think the real answer is "if you learn how to learn, you can apply that to any X". It involves paying attention to yourself and how your own mind works. No amount of "17 easy steps to learn X in 3 days" tutorials will teach you that, though.
For me, one formative experience for this was playing chess with my father when I was young. We'd talk through different moves, I'd try different strategies (and lose a lot :), and for me, internally, it helped develop a sense of how I navigate through reasoning about things and absorbing new knowledge, though I didn't think about it in those terms at the time. I still can't fully put into words some of those insights I learned about myself, but I can apply them. I'm sure different people have very different stories from mine.
Maybe ask yourself: what is something else you have learned, and how did you manage to do that? Maybe you can apply those lessons.
3
4
Feb 04 '21
Listen here cuz I’m only gonna say this once.
Programming is the hardest thing to learn because it entails everything. And I mean literally everything.
You can program for math, for science, for business logic, for Language, anything out there you name it.
The real question is how can you do the same thing better or work for someone who does.
That being said, you learn syntax and logic, data structures, algorithms and Design patterns to program one thing.
Apart from what they teach you in college whatever field you are programming for, will be a different learning curve.
So specialize in something, and compete to be the best at that thing.
That does not mean specialize in AI or machine learning, that means how can you apply computer science to a problem someone has, and or is working on.
I hope this cleared up hours wasted learning something you won’t use ever!
11
u/1597377600 Feb 04 '21
Listen here cuz I’m only gonna say this once.
it entails everything. And I mean literally everything.
We're already off to a bad start! Just kidding haha
5
Feb 04 '21
Still, it’s true. I’m not tryna get upvotes or make it look not worth it.
It’s a satisfying field with a lot to cover is what I’m saying, don’t give up and pace yourself!
Learning to diffuse and getting ready for another session will go a long way instead of cramming
3
Feb 05 '21 edited Feb 05 '21
Programming is the hardest thing to learn because it entails everything. And I mean literally everything
Programming is not the hardest thing to learn.
Learning a mathematical science and training your brain to understand abstract concepts that can be used to model and automate phenomena is difficult...until you understand the principles of modeling and abstract reasoning well enough.
But that's not done by just doing linda tutorials for React or whatever fad of the month shit.
And I would consider neither the hardest things to learn, because I'm not naive enough to equate being a programmer with some idiotic notion of intellectual superiority.
Half of the programmers in the industry know very little. Half are not qualified to just program anything beyond gui applications.
1
Feb 05 '21
Bro, literally I explained why it’s the hardest, you said it’s not then have a reason why it could be
1
Feb 05 '21 edited Feb 07 '21
you said it’s not then have a reason why it could be
I did not give a reason why it could be.
Keep your pathetic hope for prestige and recognition out of this discussion.
There is no real evidence that programming is the hardest discipline to learn. If anything, it's middle rank.
A programmer is generally the equivalent of a pseudo engineer: copying recipes that other people have invented through discoveries in the past, and tying them together to conform to the needs of an API someone else wrote.
You didn't invent calculus, or trigonometry. You didn't come up with economic theories.
You've probably never even proved a real theorem.
You probably cannot even prove the correctness of your code. Instead you "test" using shitty superficial methods that are at best just good enough for you to move on until something kills your function that you have to take into account.
People do not die if your code fails. You are not held to a high standard.
You didn't go to a nice school and get fast tracked to a company making 500k a year.
You aren't reverse engineering CPU microcode.
You don't understand how a nuclear reactor works.
Just shut up, bro. You know dick.
1
Feb 05 '21
Ok so, all of those things fall under computer science realm,
It’s not pathetic
The reason it is true, is because if you want to code a program that would help you within the field you are using your code for, you don’t just need to know computer science,
You also need a rudimentary understanding of what you’re coding.
And sure you explained computer science physics is what you call mid tier, thats also important because imagine how little processing a good programmer needs to launch a rocket and have it return.
It’s not just the small amount of optimized ram and hardware that they software engineers had to kno, they needed an understanding of the physics beyond transistors and architecture.
This is why computer science is the hardest, it isn’t one field, it’s the field of mans best tool to be applied to the rest of everything
2
Feb 06 '21
Ok so, all of those things fall under computer science realm,
CS intersects those things. But CS is not programming, and you can't just know CS without understanding fundamentals.
It’s not pathetic
The reason it is true, is because if you want to code a program that would help you within the field you are using your code for, you don’t just need to know computer science,
You also need a rudimentary understanding of what you’re coding.
...which computer science provides the structure for. Everything else is its own discipline.
Proof theory existed before computer science came to fruition, and there's a lot more in common with proofs and programs than you're aware of.
And none of that really has anything to do with programming, beyond reading trivial code that you should be able to understand with little effort.
And sure you explained computer science physics is what you call mid tier, thats also important because imagine how little processing a good programmer needs to launch a rocket and have it return.
No, I explained software engineering is mid tier.
It’s not just the small amount of optimized ram and hardware that they software engineers had to kno, they needed an understanding of the physics beyond transistors and architecture.
And that requires a lot more knowledge than just learning how to write some JavaScript.
This is why computer science is the hardest, it isn’t one field, it’s the field of mans best tool to be applied to the rest of everything
No, it is the intersection of a few key concepts that have existed for over a millenia. It is not the umbrella discipline. It grounds areas in mathematics that needed to be grounded, such as iteration.
Computational disciplines are useless without the building blocks they're trying to automate. Being good at those building blocks takes far more tedious work than you're apparently aware of.
2
u/oefd Feb 06 '21
Ok so, all of those things fall under computer science realm
The fact computer science can have beneficial applications in math, electrical engineering or nuclear reactor design doesn't make those things a subset of computer science.
In fact computer science is far more an applied field of math than vice versa. Programming is far more applied electrical engineering than vice versa.
The reason it is true, is because if you want to code a program that would help you within the field you are using your code for, you don’t just need to know computer science, You also need a rudimentary understanding of what you’re coding.
So is interior design really a superset of architecture because a good interior designer needs to understand the concept of a load bearing wall and other such basics? If a physicist helps design an MRI machine are they now a qualified doctor?
No, obviously not. Some people may genuinely be qualified physicists and doctors both, but the overwhelming majority of the time a cross-disciplinary project either only requires someone to dabble a little bit in one field and be an expert in the other, or the project is undertaken by an interdisciplinary team of experts so each can help the other get to the end goal.
I'm not a network engineer even though I've worked with and written networked applications for years. I'm sure as hell not a cryptographer because I wrote some code that used TLS while doing it.
1
Feb 06 '21
Ok sure I get your point, but what makes those harder than computer science?
I’ll back up my claim before that besides the physics that goes into building the hardware, which is part of computer science,
There is also the software that accompanies it.
Knowing the tool for building something requires the foresight and knowledge of the thing being built,
And computer science has touched every single craft you just mentioned,
The argument boils down to which subset of the human experience is the hardest to apply to the modern world. Strength, speed, etc.
And I say that the hardest is logic.
I didn’t say those things are a subset of computer science, however computer science is everywhere now. Meaning were there to be a computer that does all those things you mentioned,
It’s creator would need to know computer science to get there first.
And if it is not true, why is there an argument that AI would be mans final invention.
Final meaning the hardest to pull off
2
u/oefd Feb 06 '21
Ok sure I get your point, but what makes those harder than computer science?
Does it really matter? I'm just pointing out that the fact there's a lot of cross discipline applications is:
Not uncommon among other fields
Not related to difficulty
Knowing the tool for building something requires the foresight and knowledge of the thing being built, And computer science has touched every single craft you just mentioned,
And math touched everything computer science did and more seeing as all this thinking about computation springs from math. And math from philosophy. The idea we can even know things and have logical systems is the domain of philosophy. The entire concept of science and the scientific method is a application of philosophy.
So what? All kinds of fields pervade all kinds of other fields all the time - and even insofar as it's true that computer science leaks in to other fields more than other fields do: so what? How does that correlate to difficulty? As per my example: a physicist doesn't have to understand more than the tiniest fraction of medicine as compared to a doctor for that physicist to design an MRI machine. Neither does the electrical engineer, or the mechanical engineer, or whoever else that's involved. The doctors that do know the medicine also don't need to know more than the tiniest fraction of what the physicist knows to understand the basic concept of the MRI and how it can provide diagnostic data.
The argument boils down to which subset of the human experience is the hardest to apply to the modern world. Strength, speed, etc. And I say that the hardest is logic.
Why is logic the hardest? Why is computer science any more an application of logic that math? Or philosophy? Philosophy gave us the concept of what logic even is, and math is a pretty pure application of abstract logic.
I didn’t say those things are a subset of computer science, however computer science is everywhere now. Meaning were there to be a computer that does all those things you mentioned, It’s creator would need to know computer science to get there first.
They wouldn't because the systems we're talking about don't have a creator. They have teams and entire organizations that create them.
Even if we did have such magical people that were the ultimate renaissance expert in all things: why would the fact they'd need to know computer science be any more relevant than all the other shit they'd need to know? We fundamentally couldn't even have computers without electrical engineering, which in turn is built on physics and math - anywhere computer science is you necessarily bring those fields as well because computer science is an application of those fields.
And if it is not true, why is there an argument that AI would be mans final invention.
I don't even know what this is supposed to mean - the fact AI is under the computer science is somehow relevant to nature of how difficult a field it is because some people assume that a general AI could be dangerous to the point of getting everyone killed?
I think in general you're suffering the availability bias: the tendency to over value the importance of things which you can bring to mind most quickly. If you spend most of your time in or around computer science and related topics obviously you'll know more about it, and you'll see the world through a lens coloured by that.
It's easy to think: "oh shit, computers are in everything these days!" and get an inflated opinion without realizing how often people in other fields can have just the same thought about what they do.
1
Feb 06 '21
Bro you don’t know how to argue because I agreed and ended it with saying the hardest is logic, which was my final point.
And I’m not assuming the most complicated and final thing to create is an AI. Because in the future the best art (being as everything is already known) will probably have AI enhancing it.
I’m using AI as a general idea to of which I mean intelligence.
Which also correlated to logic. Am I understood? I never said you’re wrong tho, and if I did I forgot. I don’t think I did.
1
u/part_time_ficus Feb 04 '21
I'm certainly not the "best" programmer, but I'm experienced enough to know the answer is "just do it, as much as is humanly possible"
ABC: always be coding
and huge bonus points if you find someone to mentor you at work. a mentored hour of practice is worth 150 hours of unmentored practice. (don't check my math idk, seems right)
1
u/venuswasaflytrap Feb 04 '21
Suffering.
Virtually everything I would consider 'good programming', are just habits to prevent a problem that I've run head first into in the past.
1
u/rickpo Feb 04 '21
A solid foundation of simple computer science (that you will learn in the first two years of a university degree), Thousands of hours writing code. Thousands of hours of reading other people's code, including lots by someone who is a great programmer. And passion, drive, and perseverance.
1
u/AmyHeartsYou Feb 04 '21
Learning from mistakes.
The best way is just to jump in and see what happens, and when it breaks, spend the time figuring out why.
1
u/emasculine Feb 05 '21
well for one, not being afraid to admit that you're clueless and ask questions. for another, being clueless and doing it anyway is a virtue.
1
u/decentralizedcitizen Feb 04 '21
Set your pc on fire and then try to extinguish flames by applying methods from C++ documentation only to realize that it makes the fire burn stronger.
-4
u/ryan_would_ Feb 04 '21
Google -> Stackoverflow -> Comfortability understanding other’s code -> GitHub -> etc.
21
u/Rick-powerfu Feb 04 '21
Jumping into the deep head first.
Fuck ups were my greatest learning from literally no knowledge or experience on .net or SQL.
However I could find the cause or even find a way to quick fix it with notes, backups and a very detailed list of how I got there for the development team.
Maybe a year in my first office job and in software development for laboratory analysis software I was able to fix so much for customers without it killing development time because they'd need to replicate the shit and no one ever spent time using the system in our company.
Staff turnover etc, I found out we had multiple screens that did the same shit with different layout, process or just a different title
I think we removed 18 screens/ pages and added 4 new massive components.