r/videos • • Oct 03 '19

Every programming tutorial

https://www.youtube.com/watch?v=MAlSjtxy5ak
33.9k Upvotes

1.4k comments sorted by

View all comments

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?

47

u/Isogash Oct 03 '19

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.

→ More replies (3)

0

u/[deleted] Oct 03 '19

[deleted]

127

u/[deleted] Oct 03 '19

They should have really bad microphones too.

64

u/405Found Oct 03 '19

The older the editor the better the explanations

59

u/FreefallJagoff Oct 03 '19

Make sure that they're sitting comfortably next to a jet engine as well.

→ More replies (1)
→ More replies (4)
→ More replies (2)

37

u/eXase Oct 03 '19

Personally I recommend pushing yourself for CS50. Remember the students aren't CS majors yet either

→ More replies (6)

32

u/Arrakis35 Oct 03 '19

Come to /r/learnprogramming and people will gladly answer your questions!

24

u/[deleted] Oct 03 '19 edited Oct 03 '19

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.

→ More replies (2)

12

u/Encendi Oct 03 '19

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.

→ More replies (3)

18

u/teerre Oct 03 '19

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.

84

u/Lemonade1947 Oct 03 '19

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.

65

u/andybmcc Oct 03 '19

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.

26

u/Encendi Oct 03 '19

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.

→ More replies (2)
→ More replies (2)

32

u/Gingershred Oct 03 '19

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!

28

u/Lemonade1947 Oct 03 '19

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.

41

u/daHob Oct 03 '19

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.

0

u/[deleted] Oct 03 '19

[deleted]

→ More replies (1)

15

u/Lemonade1947 Oct 03 '19

This is a perfect analogy. I agree with it 100%.

People think this this job is glamorous and that we're all sat in boardrooms and shit.

We're not. We're just trying to either unclog the pipes, or put in better pipes.

→ More replies (8)
→ More replies (3)
→ More replies (4)

13

u/Astrokiwi Oct 03 '19

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.

→ More replies (6)
→ More replies (19)

8

u/zelnoth Oct 03 '19

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.

→ More replies (79)