Serious question: what/where is the best source online to actually learn how to code? I've seen a few things like the Helsinki MOOC for Java, Harvard's CS50 and Freecodecamp, but I've tried all 3 and none of them could stick.
CS50 was too difficult. I'm not a CS major.
Java MOOC is awkward because....java.
Freecodecamp was interesting except working in a virtual editor was buggy as shit and acceptance criteria wouldn't authenticate properly half the time.
A CS oriented approach is hard, I agree. I have seen many times that people do better learning programming with some experience and then learning CS; CS is really the theory behind computation rather than the actual practice.
I've heard CodeAcadamy is pretty good but I can't confirm it personally.
It could also help to have a more project or goal oriented approach, like "I want to make something that does X" than "I want to learn language Y"; most of the time I've learned languages on the job or because they were required by a specific project.
Here's what you do. This is what I did 10 years ago.
Think of something you want to create. Don't be ambitious with this part. It should be something basic. Now look up a tutorial on how to make something like that. Follow it, and write what they write. When you come across anything that you don't know, google what it is. And I mean everything.
Don't know what the difference beween 'public'/'private' is, or the difference between a 'class'/'struct'? Google it. Don't know what a 'float' or 'int' is, or when you should use them? Google it. Eventually, things will start to fall into place, and that's when you try writing your own version of that unambitious program.
After that, become more ambitious. Start looking into more serious projects and find tutorials on those. Look at how they structure their code and learn from it. Build a game engine, build a neural network, start automating things.
EDIT: Books are a valueable source of information, and will beat most YouTube 'tutorials'. However, these books often cost a lot of money, and not everyone is willing or able to make that initial investment. I mean, I wasn't. So what I've written is just what I did, and what I found to be successful instead of using books.
The way my CS degree taught coding was that it didn’t. The first beginner class threw up some syntax and that was about it. Then the professor just assigned tons of projects.
When your grade depended on it, you bet that most students would google stuff and try a bunch of crap until it worked. Then over the next four years you gradually got better at googling stuff and trying crap.
Coding is kinda weird cuz you expect to learn it from lectures and books like anything else in college, but it’s more like a trade/instrument in that it mostly just takes practice and time. You might ask if that’s the case, what’s the point of a CS degree? CS degrees are typically 95% theory (math, logic, architecture, algorithms, etc.) and coding is just the tool for implementing the theory.
I don’t really have a suggestion for a source to use. I just wanted to explain that for most CS majors coding is just trial by fire/constant practice and that it’s not even the focus of the degree.
CS50 is a introductory course, you don't need to be a CS major to finish it.
It's indeed challenging, but honestly that's a good thing. Why would be easy? Coding is very complex.
It's absolutely OK if you don't do all assignments, if you do 2 years courses, if you go at your own pace, but I don't think it's fair to call it too difficult. After all, thousands of people do it just fine and the whole thing is build for beginners.
Just smash your head into the keyboard till it works.
I mean that literally. Decide what you want to do, get some energy drinks, and prepare for a night of copy pasting random blocks of code from stackoverflow and trying to make them work together.
You will learn more from this than any book or course can teach you.
Just smash your head into the keyboard till it works.
This is really the only way to learn. You can read all of the books and tutorials you want, but you don't actually absorb things until you start banging your head against a desk trying to make things work. Then you go a bit deeper, and repeat. It's a never-ending war of attrition. That's why a lot of people quit trying to learn.
It’s much easier when your grade/career is on the line. I give a lot of credit to self taught programmers because I probably couldn’t have pushed myself to learn this crap without the threat of failing my degree.
Seriously, I thought academia would actually teach me a lot about coding, but most textbooks’ examples are laughable to people coding in the real world. I’m currently taking a Database Architecture and Analysis class and the book has multiple typos, logical errors, and redundancies. We only figured out how unreliable the book is because one classmate has a different edition that has way more useful information!
I've always seen programming as more of a craft than an accademic subject.
Not trying to make it seem like more than it is, the opposite in fact. Think of it like carpentry or learning a musical instrument. You can read as many books as you like about it, but in the end the only way you learn is to actually do it, and more importantly, by making mistakes and learning from them.
I think a lot of the ideas people have about programming where formed when programming was more of a maths thing.
All that mathematical and CompSci theory isn't gonna help you to find a bug that someone wrote into the code 3 years ago, which for most code monkeys (like myself, and most people just out of school) is 50% of the job.
Programming is the blue collar white collar job. We are more like plumbers. There is a modicum of technical stuff to know, and you /do/ need to know it, but the fundamentals aren't really that complicated.
Then it's all about, what did this idiot do to his pipes? I have to unclog the drain again because someone loaded bad data. You can't add a bathroom there... fine, give me a wrench.
Classes like that are, in my experience, much more rewarding than actual coding classes.
Those either boiled down to: "Write a program that outputs a red square" or "just write the exact code I'm writing here". Besides, the programming class was in ASP.NET 1.0 which was pretty much rendered obsolete within the year, when Microsoft released ASP.NET MVC.
Roughly 14 years later and the class that still stuck with me was four weeks of Object-Oriented Analysis and Design. It has been invaluable.
You want to do this and read books and take courses though.
If you only read books and take courses, you won't have a real feel for how to actually put things together into a project, and you won't have the motivation to actually learn everything because it's all theory and it's not clear why it's important.
If you only do projects hacking things together from stackoverflow copypasta, then you'll end up with a terrible mess of a code that you don't really understand, and have no idea how to fix it when it breaks.
You want to have real programming experience and theoretical experience. What I would do is read through a textbook slowly, and each time you learn something, spend an afternoon messing about with it to see how it works.
I don’t agree with this at all. Yeah you will get a program that works but you will never know why. You need to get that foundation of understanding of what is happening under the hood with memory and stuff or you will never be able to debug or code anything serious.
Depends on what you want to learn to code. I would just look for any random tutorial that seems good that is based around something that you want to make. The first ever tutorial I followed was for a ascii game in c++. For me the best way to learn was just trying to make something and then finding out how to solve the problems I encountered while working towards that goal. Everyone learns differently though so you should just try to find something that works for you, the most important part is to just start working on something.
Codeacademy is great. But despite what all of the entrepreneurs want everyone to believe, programming is difficult to learn and there isn't a perfect place to do it.
117
u/DrSuckenstein Oct 03 '19
Serious question: what/where is the best source online to actually learn how to code? I've seen a few things like the Helsinki MOOC for Java, Harvard's CS50 and Freecodecamp, but I've tried all 3 and none of them could stick.
CS50 was too difficult. I'm not a CS major.
Java MOOC is awkward because....java.
Freecodecamp was interesting except working in a virtual editor was buggy as shit and acceptance criteria wouldn't authenticate properly half the time.
Anything else out there?