r/learnprogramming • • Jan 27 '16

When You Know the Basics, but You Still Can't Code

Hi /r/learnprogramming,

A few weeks ago I [asked] (https://www.reddit.com/r/learnprogramming/comments/3zouul/beginners_tell_me_about_the_difficulties_you/) programming beginners to tell me about the difficulties they faced, and a common problem was moving beyond the basics, especially after doing online courses. I've written an article about it here:

http://www.programmingforbeginnersbook.com/blog/when_you_know_the_basics_but_you_still_cant_code/

Below is a short summary.


People express this problem in a few different ways, such as:

  • "I've learnt Python through an online course, but I don't know how to use it to make programs."

  • "I know the theory, but I can't put it into code."

  • "I know about while loops, but I don't know how or when to use them."

  • "I know about loops and arrays and variables, but I don't know how to combine them." Usually the student completes some kind of online programming course, but feels lost once the course is over.

[...]

In summary, programming is hard. Really hard. And if you've just breezed through an online course, this might come as an unpleasant surprise.

Set up a real programming environment, with an IDE or a text editor. Write little text-based programs to learn all the features of your chosen programming language, before moving on to bigger, complicated projects. Write all the code yourself. Don't copy and paste other people's code without understanding it first.

Write lots of code. Read theory, but make sure to apply the theory to your code. Read, code, read, code, read, and so on, and eventually you will master it.

When you get stuck, try to fix the problem yourself, but don't be afraid to ask for help. You will learn faster if you ask questions. For a more pleasant experience, Learn how to ask questions the right way, because the programming community has a few grumpy bums in it.

Most importantly, have fun and keep going!

641 Upvotes

574 comments sorted by

740

u/[deleted] Jan 27 '16 edited Jan 27 '16

First off, I apologize for being an ass in responding to this, but I simply can't let it fly, as if it was incredibly valuable advice that is actually helpful. So, I apologize in advance for sounding like an angry ass.

This isn't enough. It's not much more than teaching people how to bowl by telling them, "throw the ball down the aisle as hard as you can, right down the middle and hit all 10 pins."

Simply saying, "Write little text-based programs to learn all the features of your chosen programming language, before moving on to bigger, complicated projects," is not enough and is not guidance. It really angers me when I hear developers say this, where the dev thinks he or she is distributing gold when really it's not helpful at all. And me saying such really is just met with anger and hostility because professional developers simply can't wrap their minds around what is going on through a beginner's brain when the beginner is struggling. And no, having been there once 10 years ago isn't enough for a developer to "understand". Times have changed. The environment and table dressing have changed, programs have changed.

When you get stuck, try to fix the problem yourself, but don't be afraid to ask for help. You will learn faster if you ask questions.

Oh really? Why didn't I think of that? Maybe I'll go to Stackoverflow and ask a question. Oh, looks like they really don't care for the way I asked the question. Guess I need to wrap it up in a perfect, hermetically sealed magic spell that's not asking an opinion in order for them to even take a look at my question. Or maybe I should try MDN, which really isn't easy to interpret as a beginner either.

For a more pleasant experience, Learn how to ask questions the right way, because the programming community has a few grumpy bums in it.

Oh, I see you already understand the 'grumpiness' of professional, elitist coders who are offended, as if someone took a shit in their Lucky Charms, when a noob asks an ignorant question. No, it's not ok to be ignorant around those sites, and you just validated my point.

How about this...for a more pleasant experience, how about devs learn to intuit what the beginner is attempting to say and not ostracize him or her like he was a piece of shit.

No. No, what is needed are more exercises. A shit load of them. Treehouse doesn't have them, CodeAcademy doesn't, Code School doesn't, Thinkful doesn't, Lynda doesn't. The resources online pretty much suck, and you stated so at the beginning of your post. They suck because the tutorial creators forgot what it was like to be a beginner. They forgot the number one rule, which is, "one learns to code by coding more and one codes more by working through examples. A noob SHOULD NOT be expected to shit out their own examples and problems while they're trying to fight syntax errors and learn new methods.

Simply put, the industry is inferior when it comes to creating a substitutive learning environment with a quality pedagogy. It sucks and devs simply refuse to acknowledge this. Why should they when they can simply thrust all responsibility back on the hapless noob.

</rant>

Let the flames begin.

10

u/rdpp_boyakasha Jan 27 '16

I don't really disagree with anything that you've said about the difficulties of learning to programming. I do think you're mischaracterising the blog post, though.

Simply saying, "Write little text-based programs to learn all the features of your chosen programming language, before moving on to bigger, complicated projects," is not enough and is not guidance.

Some people try to make Minecraft for their first project. All I'm trying to say to those people is to stick to something simple first. I'm not under the illusion that I'm "distributing gold." It's a common problem with a simple, common-sense solution.

professional developers simply can't wrap their minds around what is going on through a beginner's brain when the beginner is struggling.

This blog post is literally a response to asking beginners about their struggles. I just took the thing that most people said was a problem, and wrote about it. If that's not what is going through beginner's brains, then I'm stumped.

Here is where I asked: https://www.reddit.com/r/learnprogramming/comments/3zouul/beginners_tell_me_about_the_difficulties_you/

Maybe I'll go to Stackoverflow and ask a question. Oh, looks like they really don't care for the way I asked the question. Guess I need to wrap it up in a perfect, hermetically sealed magic spell that's not asking an opinion in order for them to even take a look at my question.

I agree, and I covered it in the blog post.

how about devs learn to intuit what the beginner is attempting to say and not ostracize him or her like he was a piece of shit.

The reality is that there are shitty people in the community. I can't change that, so I'm giving some concrete steps to navigate around it. What do you want me to do? Instantly change the minds of hundreds of thousands of developers with a tiny blog post?

No. No, what is needed are more exercises. A shit load of them.

This is just one blog post. I'm not trying to revolutionise programming education. I wrote a book with exercises in it, and it took forever to write.

number one rule, which is, "one learns to code by coding more and one codes more by working through examples.

Who says this the number one rule?

It sucks and devs simply refuse to acknowledge this.

I explicitly acknowledge it in the blog post. I acknowledge that the community has nasty people in it. I acknowledge how difficult it is to learn. I acknowledge that most professional programmers can't remember what it was like to learn their first language. It's all there in the blog post. It's like you didn't even read it.

This is the same attitude that I discourage professionals from using towards beginners – the name-calling and the lazy accusations. You seem to understand how counterproductive it is, and yet here we are.

32

u/[deleted] Jan 27 '16

Look rdpp, it's not a hard problem to understand, but you did show in your post, and your response to my comment, that you simply aren't 'getting it'.

It's two fold, and it's this simple:

  • The online tutorials, and books that are out there, inundate with methods and objects and functions and syntax while simultaneously NOT providing enough examples, scaleable examples, for beginners to work through at all stages. Think back to college, high school and grade school where they gave 30 math problems for students to work through to grasp the concept.

  • When beginners have trouble, the industry responds with A) advice, like yours, "Write little text-based programs to learn all the features of your chosen programming language, before moving on to bigger, complicated projects", which is not helpful, as I stated (but you refuse to accept) and no it's not a "a simple, common-sense solution," I'm telling you now it's not a solution, and B) ridicule and condescension.

That's it. Your heart's in the right place, but your solution is off target. The question is...are you going to keep believing you have the answer, or are you going to listen to a beginner's feedback? My money is on the former. Why? Because IT embraces stereotype. Can't teach IT anything. Anything. Why? Because IT is always, always, always right. Always.

You have feedback. Feedback that has agreeing comments and plenty of upvotes. Feedback from people who want to learn, who don't want to be spoonfed, who want exercises. The question now is, what are you going to do? Are you going to change your opinion on what the solution is...or maintain status quo. Again, you know where my money is.

→ More replies (4)

203

u/Isarian Jan 27 '16

Oh my god you hit my current problem right on the fucking head.

I have tried to learn to program three times and I'm almost 30 and giving it a fourth try.

90% of my problems stem from lack of scaling examples I can use to practice and develop my understanding to higher levels incrementally.

163

u/[deleted] Jan 27 '16

Exactly!!! Fucking A! Yes, it is this that is lacking! Scaleable problems that build on itself, applying all the things you previously learned and adding one more item and then having 3-4 examples to work through with a fucking answer available when you get stuck.

This...this is nowhere to be found. No, instead you get devs who say, "go read a book. Go Google, it worked for me. You just want to be spoon fed. Go to Stackoverflow. Go try CodeAcademy." Fuck them! They didn't learn on CA yet they suggest it as if it's a viable resource.

The problem isn't beginners. It's the entire industry and if anyone mentions it, they are flamed into oblivion. Why? Because the industry does not like to be questioned. Need an example? Go to any, ANY company and ask the sales team or the marketing team or the HR team if they like their IT dept. Just take a wild guess what their response will be. The IT Crowd is funny because of this very stereotype, yet when it's brought up from outside the industry or by noobs, well well, then it's a different story.

I'm sorry. I'm in hate mode, vomiting all over and nobody likes an vomiting ass. It just infuriates me to read this bile when it's praised and "here-here, right-o good chap" when really, the emperor has no clothes.

Lastly, if anyone, ANYONE mentions a bootcamp, well fuuuuck them if they do because devs will bring out their fucking torches and pitch forks and fat asses and condemn the poor soul for ever brining it up. I'm finishing my 3rd week of bootcamp and I've learned more in 3 weeks than I have in 2+ years of self study. ...yet they refuse to hear it.

Keep trying Isarian. It's not you.

47

u/jamesharder Jan 27 '16

The only programming book I've read that takes the "scalable building block approach" is head-first Java. Working through that book was an eye-opening and inspiring experience. At the end of the book I had coded (by myself) an entire instant messaging server-client app. It was amazing. I don't understand why more tutorials haven't followed that books lead.

→ More replies (15)

15

u/[deleted] Jan 27 '16

Just to add to your rant, I've tried learning python through CA, but (IMO) I hated it because I felt like their lessons would either hold your hand too much or completely abandon you, neither of which works for me.

→ More replies (6)
→ More replies (48)

8

u/MSgtGunny Jan 27 '16

If you need help on a problem/want to bounce ideas off of something let me know. I've been in the industry for several years now, but have been told I'm decent at explaining complex topics.

8

u/BataReddit Jan 27 '16

So true. Yes, I can follow the online course. I fully understand the things they say. Yes, I took some classes (online and offline). And of course I understood what was said. I made the examples provided. Sure, I could spot the mistakes I made in those examples. I knew how to correct them. Tried Android, Python, Basic etc. I can look up the syntax of programming languages in the databases provided. But once the simple examples are done, you're left out in the cold by most of the tutorial sites.

What's the next step? If you ask for help, most of the time you get scolded, looked down upon etc. All you need to do is find some nice programmers (they are out there, I know one or two). But they do not always have time to help a noob, so I can't always ask them to solve my programming problems. So it's back to google and continue to struggle. And in the end I have other priorities, but it's sad, because it would be really nice to be able to write some real code. And not copy examples from sites like CodeAcademy.

→ More replies (22)

85

u/[deleted] Jan 27 '16

I gave up programming after the last time I asked a question on StackOverflow.

43

u/RamenJunkie Jan 27 '16

That has been answered on another 5 year old thread for a version of things that are no longer valid. Please use the search function

< Thread has been closed by moderators>

16

u/Danfen Jan 27 '16

The part that I hate is when one of the only responses (or the only upvoted response) is something along the lines of

"what are you trying to ask? Please think about the problem you're trying to solve OP".

I don't know if it's language barriers or what, but I can usually easily understand the questions fine, but I can't answer as the thread's been locked for one cockadoody reason or another

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

81

u/[deleted] Jan 27 '16

My god! This is the saddest thing I've heard all day. I hate those elitist bastards with all my heart.

There was something inside of you that wanted to learn. Don't let those fucking bullies intimidate you. That's all they are. All of them. They now have power and they know it and they don't want to share it. You deserve better. Get fucking back in that saddle and give it another shot. You CAN do it if you hate them enough. I'm serious. Something inside you wanted to do it and you got burned when you had the audacity to ask a question, but sadly, you let them intimidate you and make you feel like shit.

If anything I says matters, git it a couple more shots (think of it like dating. Just because she said "no" once doesn't mean it's the end, you just need the right approach...and new shoes...and breath mints. That's it!) Start with HTML, then some CSS and start with some basics. If you need direction, I can give you 5 exercises to work through.

→ More replies (39)

8

u/[deleted] Jan 27 '16

Yep. I won't go there anymore. The users and mods are all elitist fucks.

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

15

u/Feroc Jan 27 '16 edited Jan 27 '16

I started to learn coding about ~20 years ago, so yes, maybe I can't really remember how it was as a total beginner and yes, it absolutely was a different time back then. There were no online courses that I could make, there wasn't even a forum I could ask questions. All I had was a book and a friend of mine who wanted to do some coding, too. And yes, later I didn't had to learn everything myself, because I studied computer science (not too long) and had a professional education (guess that's something that's not common in America) as software developer.

But still I tell you that those courses suck (at least those that I've seen), they may be alright to show a beginner the syntax, how to write loops, assign variables and so on. It doesn't matter how many more exercises you could do as long as they are the same way.

I guess to help beginners you would need good tutorials on how to setup a new project in a normal IDE and how to structure a project. That's it.

Then it's just better to solve problems the student is actually interested in and not some generic internet example. And if the problem is "I want to create a game", then the student should be realistic enough not to start with "I want to create my own MMO, way better than WoW", it should be a simple text adventure.

Yes, it's hard to do it all by yourself and I know how it feels to ask "stupid" questions. But you also have to see that a lot of developers study multiple years for their jobs. It may look like a simple topic if you just look at syntax and think that you're ready because you know the basics, but it's a pretty hard topic that involves way more than just the syntax.

36

u/Iyajenkei Jan 27 '16

I thought of something else. You ask a question and get linked to the documentation, like you have any hope of understanding that gibberish.

31

u/[deleted] Jan 27 '16

Almost every time I've been told to read the documentation, there's nothing about my problem in the documentation.

20

u/Iyajenkei Jan 27 '16

we should all start a support group.

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

23

u/[deleted] Jan 27 '16

Precisely! Yes. None of the resources are beginner friendly. Devs just think they are, since they can understand it. And read some of the comments to my comment. They say I'm "whining" and refer to my issues as "can't make it on the bunny slopes", validating everything I pointed out.

→ More replies (1)
→ More replies (7)

32

u/Iyajenkei Jan 27 '16

This fucking guy, gets it. Heaven forbid I ask a question. I love trying to solve problems and love that feeling when things click. I enjoy writing code for some of the same reasons. But damn I hate a lot of the atmosphere. Problems aren't always the same. Im sorry that as a beginner I can't Frankenstein code or understand the similarities enough to figure something out.

11

u/[deleted] Jan 27 '16

Frankenstein code...

I love this. I'm taking it. Perfectly illustrates what is expected of us.

10

u/twopi Jan 27 '16

I think you've got a good point. But the problem is a bit deeper.

Who is going to develop the exercises in a thoughtful way that introduces only one new idea at a time? Who is going to check all this code to ensure it does what it's supposed to? Who will help folks walk through these errors and learn from them?

We have a decent educational system to teach people how to be engineers. We have decent programs for teaching medicine and biology and even music. Somehow in computing (perhaps because it is relatively new) there is this assumption that self-teaching is a good idea. Honestly, as you point out, there are precious few alternatives.

Computing education as a discipline is really not as effective as it could be, and there are some good reasons for this. Becoming a programming teacher (especially at the high school level) is a complete waste of earning potential. Anyone who can teach programming in multiple languages could most likely find another job that didn't enforce vows of poverty and humility like public school teaching does.

Even in universities, where the situation is better, we've got this semi-official divide between theoretical computer science (where it's almost uncool to teach practical languages) and applied (where it's equally uncool to teach theory.)

I think as an industry, we have not placed enough emphasis on how we want to train people up in this field, and we've left it to self-discipline and random chance.

The real answer to a huge number of /r/learnprogramming posts is this:

You need to find a good programming teacher who can make you practice a lot, who will push you past the inevitable hard spots, and who will help you understand what you don't know you need to know.

..and we as an industry need to value those teachers, because most of us shouldn't be doing it ourselves. Teaching programming is a vastly different skill than programming itself, and it requires a unique personality on top of the already strange characteristics of an experienced programmer.

Unfortunately we have no way of preparing or reinforcing those quality teachers, and the good ones often give up teaching because they can earn more writing an app in a month than they can teaching for six months.

(I actually do contract coding and write books over the summer to supplement my teaching or I wouldn't be able to send my own kids to college.)

→ More replies (4)

27

u/Butcherbirdsings Jan 27 '16

So much yes to this.

FreeCodeCamp seems to be bridging some gaps for me. Lots and lots of excercises, and the gitter chat rooms are really awesome places for posing questions. If you don't understand why or how something does or doesn't work, you can go in there and at least one person will be able to explain it to you, sans pitchforks.

→ More replies (1)

19

u/Lauxman Jan 27 '16

That's an outstanding description. The hardest part isn't practicing the code, it's getting the ball rolling from Hello, world. Staring at the empty text editor is the most intimidating thing for a new programmer like me.

4

u/Seanobi777 Jan 27 '16

I know exactly the feeling. After you get something going, got the Hello World working, and then you want to go a bit further in and create something more, it's like staring at a brick wall and you ask yourself "Uhhhh.... What now?...."

→ More replies (1)

9

u/TopNFalvors Jan 27 '16

I'm going to defend Stackoverflow as it's been an invaluable resource for me over the last few years. I know it takes a while to get the hang of the site, but it really is a wonderful place to ask questions, find answers, and learn.

I think the key to asking a successful question on SO, is to take the time to formulate your question so that it's easy to understand, and also show(code) that you've been working on the problem at hand.

Another tip, is when you start typing in the title to your question, similar questions will appear in the box below. A lot of times, you'll find other users who have asked the same question or a similar question.

Yes, you'll still get the occasional down-vote, but don't take those personally, just learn from the experience.

→ More replies (3)

9

u/dmazzoni Jan 27 '16

Simply put, the industry is inferior when it comes to creating a substitutive learning environment with a quality pedagogy.

Inferior to what?

You're criticizing FREE resources. Name another industry where it's actually possible to learn all of the skills you need to succeed in that industry for free.

Virtually every other profession requires a Master's degree, a few require a 4-year degree. Non-professional trades typically require 1 - 2 years of trade school and some apprenticeship.

Guess what? All of those resources exist for developers too, and they're excellent. I'm not talking about a short boot camp, I'm talking about a degree in Computer Science, Software Engineering, or a related field from an accredited university. Attend one of those programs and you'll get plenty of exercises, plenty of support and guidance, and resources to help you succeed. No, it won't be easy and it won't be perfect. There are bad teachers and bad schools, but even the worst C.S. degree program I've ever heard of does a better job teaching than the average free online tutorial.

8

u/[deleted] Jan 28 '16

You're criticizing FREE resources.

Yes. I criticize free resources. I criticize paid for resources. I criticize books. So what. Should I get down and suck their cock in gratitude because it's free?? No. It's there "to teach" and they suck.

They are inadequate. You just don't like people talking shit about your sacred realm and you refuse to see that the emperor has no clothes.

8

u/Othello Jan 27 '16 edited Jan 27 '16

I first started learning to program as a teenager. Couldn't wrap my head around something I don't remember any more, had a couple questions. I must have gone to a couple dozen IRC rooms, whatever online communities I could find. Everywhere I went people shat on me, and I never got an answer to a single question. I'm in my 30s now and am only just trying to get back on that horse. It wasn't just the attitudes people had, it was being stuck on these things with no idea of what to do that drove me off.

→ More replies (5)

8

u/midwestcreative Jan 27 '16 edited Jan 27 '16

Well said. I'm specifically saving your comment, not the post, for the wealth of good info in the discussion you started. I have slowly, brutally, finally started to get a grasp on how to sort of, kind of, piece the building blocks together in simple ways and come up with my own (very basic) examples and exercises, but amen, yes this is what's needed.

EDIT: And absolutely the elitist, nerd battle, inability/unwillingness to put themselves in the perspective of a beginner bullshit needs to stop(but it won't). I sometimes get a bit OCD when I'm learning and I like to deeply understand every detail of what is actually happening deep down with a piece of code or what not, or maybe even "Why did they make the syntax this way? It's so awkward." and I get 20 people all explaining things I don't understand with things I understand even less, and as I push through and try to get some of their responses I realize that many of them are flat out wrong, AND when I do finally get the concept, it's often SO SIMPLE to explain if everyone would just get the elitist stick out of their ass... but everybody wants to throw in their answer so they can sound smart, instead of actually teaching.

Anyway, thanks for this. I love a good rant when it's intelligent and has a good point. I do have to say I don't think the OP deserves quite as much blame and anger for the entire bad situation as you're expressing. I saw a few good things in there, and I think some people are genuinely trying to teach something helpful even if they're still not really getting there. But anyway, lots of great points and I very much enjoyed the rant.

→ More replies (1)

8

u/hydrocat Jan 27 '16

Man.. You forgot to open the rant tag, you should write <rant> at the beginning of your post

→ More replies (2)

6

u/mercert Jan 27 '16

Learn Python/Ruby/C++ The Hard Way is an amazing series that takes a scalable approach. Definitely the best books I've read yet. Not perfect, but the best.

Also this post fucking killed it. You're so ridiculously spot on. Maybe you should write a book from that perspective?

6

u/Kryspy_Kreme Jan 27 '16

Although it's designed primarily as a programming test website, I would highly recommend codility's set of lessons on www.codility.com/programmers . They are hard enough that you actually learn some of the harder concepts and they give you feedback on the programs you write, with regards to how they work on edge cases and their O(n) complexity.

6

u/[deleted] Jan 27 '16

Stack Overflow is very useful. But I would never actually commit anything myself.

When I post innocent things on /r/programming I get reamed. It's terrifying.

6

u/edoules Jan 27 '16

What's wrong with being patient with an academic program?

Intro isn't the final course.

A physics student isn't going to understand it all at the beginning, but can certainly get ahead if they have the aptitude.

By the same token, it's possible that one needs some patience when there isn't that aptitude.

→ More replies (2)

5

u/G01denW01f11 Jan 27 '16

I've had the same frustration with the exercises sucking. It's almost like you have to have creative ideas if you want to get good at programming, which really shouldn't be the case. There's lists of projects, like that mega-project repo, but I've found them all to be either way too easy and boring ("Check if a string is a plaindrome!"), or not obviously viable ("build a file system.") Fortunately, I found something I wanted to do to take me beyond "I know the syntax," but that was just luck.

Or my favorite: "Get into open source." Um... I code for a living, and that still feels daunting.

I'm trying to create a friendly community to break past that beginner stage at /r/MonthlyProgram, but you're right: it's so hard to remember how it was starting out, the best way to communicate....

→ More replies (2)

15

u/j0nny5 Jan 27 '16
  1. Obligatory, "I love you / are you me?"

  2. This is exactly why we need instructional designers (people that have studied learning) to be a bigger part of learning resources. I honestly see this as a problem of funding a proper curriculum, something the big orgs (Oracle, et. al.) have dedicated serious cash toward, but often in the wrong places. If you want to teach humans, in any subject, you must understand learning theory and the hundreds of years of research that have gone into improving instruction.

This is what I did my masters in. STEM Subject matter experts often don't make good teachers, and teachers can't be experts in everything and still be effective teachers. Even if there were a resource which tied all of the best resources together and filled in a lot of those "Step 2: ???"s, we might actually see diversity in this field, which is the only way to get over innovation stagnation.

Remember that this is what we want after all. More ideas, more competition, more breakthroughs.

→ More replies (3)

4

u/csdp Jan 27 '16

I'd recommend courses at EdX. The one I took for Python was excellent. Try solving the Project Euler problems next.

4

u/Demonofyou Jan 27 '16 edited Jan 27 '16

I find myself to get stuck mostly due to not knowing what the proper terminology is. That is because it's hard for someone like me to look up specific things that are needed to be searched online. Sometimes I do find it but don't even realize because of the difference in terminology.

That's why when I do ask a question I try to make it as clear as possible and ask to be pointed in the right direction. I've already realized that I do learn lots more if I read the documentation on something or search it myself. But it's not always possible.

→ More replies (1)

4

u/firest Jan 27 '16

The closest think I can think of as "working out problems" are working on Project Euler... and that's it. However, everyone learns how to program for a reason, so people might try to write programs to automate tasks/solve problems that they know they will encounter in the future.

For example, I knew I would need to solve PDE's numerically for my research. So after I learned the basics of programming, I went online and learned how to solve a reaction diffusion equation with particular boundary conditions numerically for example.

The point that I am trying to get at is, people who want to program should already have an idea on how they might use it. If someone is learning just for the sake of getting ANY job, then they should know how the job market is around their area. Then they can do projects that are similar to what they are most likely to do.

Even if you don't know crazy math, and just want to go into web development, that's fine. Make a website yourself. A friend of mine did a while back and it was all about how to make PB&J.

I agree that there should be more "problems" that beginners should work on for the sake of mastering the basics. But beginners should also be accountable for being creative and coming up with their own projects, scaled appropriately for the level that they are in. That's what I think.

→ More replies (2)

10

u/mully1121 Jan 27 '16

Thank you, I've found it incredibly intimidating (and not helpful) to ask questions. And to be honest I've even run into this with my professors, its incredibly frustrating.

10

u/[deleted] Jan 27 '16

It is intimidating. Developers are bullies who know their place in the digital hierarchy and they will not hesitate to wield their sharp, condescending wit to anyone who hasn't learned to code on DOS on a Tandy 1000 from Radio Shack.

It's not you. It's them.

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

7

u/mrd34th Jan 27 '16

Dude, I wish I had at least half the amount of passion you do

→ More replies (4)

6

u/DemonicSquid Jan 27 '16

This is spot on.

As someone attempting to return to programming after a twenty year break and brush up on my knowledge of languages that aren't things like COBOL, Ada, Lisp, or Modula-2 you encapsulate everything that is wrong with so many online resources.

I have an advantage in that I grew up with programming and studied AI at one of the best universities in the UK. However, I never pursued that as a career, preferring the arts instead. I'm currently learning Python and if I'd not had the familiarity with maths and algorithmic processes before I'd be screwed!

As much as I appreciate experienced developers taking the time and resources to help those trying to start, if they want it to be effective they need to think like a beginner and simplify things as much as possible.

→ More replies (1)

3

u/SMACz42 Jan 27 '16

Thank you so much for this validation.

→ More replies (1)

3

u/bububoom Jan 27 '16

Such a great post. I agree very much on online learning experience as sucky. I've been coding for a long now but tried code academy and such because of curiosity.

There's no way I could solve all of the tasks when I put in the perspective how little did I know back then. It's simply assuming you understand too much.

→ More replies (1)

3

u/Sinehmatic Jan 27 '16

I'm buying gold tonight and giving it to you.

→ More replies (2)

3

u/squeezedfish Jan 27 '16

This sums up why I've given up coding. I have done a few online courses but when I try to create programs alone my mind goes blank in the ide. I've looked at examples online and their either basic e.g hello world or really complex. It's a shame as I really enjoyed learning the languages I just don't know where to go after something like a codecademy course

→ More replies (3)

3

u/JakeLV426 Jan 27 '16

I work in digital art at a games studio, alongside a bunch of engineers. We've found common ground in this discussion which basically boils down to this: you can literally teach everything you know to 10 people, and only one or two of them will find success- most likely because they put on their work hats and logged a ton of mileage doing exercises. To expect to be savvy and qualified after taking some course is pure folly...these are difficult fields which require great self motivation. great comment, it's true enough to transcend into other related fields. Mileage people, say it with us

→ More replies (4)

3

u/[deleted] Jan 27 '16

http://asmarterwaytolearn.com/js/index-of-exercises.html is what I just went to for studying. Each chapter has 20 exercises to run through, with the book. It is a real bitch to follow the rules of indentation but it is worth it now that i'm in the loops section. But I agree all the online sites suck, freecodecamp.com is good but doesn't teach anything just tells you to write code.

→ More replies (1)

3

u/NateThompson114 Jan 27 '16

I understand your issue, if I have said one thing over and over again (to my junior programmer), is take what the instructor gives you and overblow it. IE An instructor tells you to add var 1 and var 2, well you do that, then you try subtracting and multiply before you go on to the next course. These "little" things reinforce what you are being taught. This is not to say you won't get mad and fail and such, but after some time it will begin to click. Programming is like being a soccer player, and your only job is to score a goal, but the other goal has a brick wall in front of it(and of course like its said, some shitty elitist yelling at you to "just do it!"). So you kick and you kick and fail and fail. But then one day you come in and the wall is gone and it's so simple and "why didn't I do it like this in the first place" is the only thing you can think, it's something you will deal with time and time again, but it does get easier. As for the elitist, the thing is once you get over the hump, it seems so simple, I have this problem while teaching to not yell at my junior programmer(he tells me I am nice, but that maybe the fear talking...j/k), but I take a step back and think of how it was for me, I am sorry that you have gotten the brunt of the 'grumpiness' but it is reality and something you need to think about getting into it. I will tell you it is the users that do erk you and make you angry, its the user who comes up to you to tell you that "another user, who knew a user said that your API sucks and doesn't work", and you know this person couldn't spell API, but I have learn to meditate which you should also learn on top of programming lol... I know its all a little cliche but its the truth, the courses suck and the teachers suck, but there isn't anything that you as a junior programmer can do, except rise above it all and become a great programmer, and teach the world how you wished you had been taught. I would be happy to help if I can(PM me), I specialize in C# ASP.NET and HTML, Javascript/jQuery etc, I also work on QuickBase, Progress Database, have some knowledge of SQL etc, as well as currently studing Angular JS, Dockers, Python and Ruby (sorry I guess you could say I am a work aholic with children).

3

u/imspooky Jan 28 '16

Yes! Thank you!

one learns to code by coding more and one codes more by working through examples.

This is a sticky note on my desk now.

→ More replies (1)

3

u/[deleted] Jan 28 '16

I am an absolute beginner and want to say thanks to /u/rdpp_boyakasha and /u/Cool_Bastard for getting this discussion going. I agree with both on many issues - most of all with the call for more exercises and friendly help from experienced users.

I started several weeks ago learning c# from scratch and so far my list of what helps me most is:

  1. A welcoming atmosphere. True beginner-friendliness, patience and humor. Teachers who radiate a passion for their topic and for teaching.

  2. Easy to understand explanations (duh).

  3. Lots and lots of progressing exercises with solutions. You learn only by actually typing out code yourself, agreed.

  4. Experienced coders (or teachers) who review your solutions/code. Because I quickly learned getting it to work is one (wonderful) thing, writing good code another. And because there are often many possible solutions to practice exercises.

  5. Pacing myself! I discovered, rather late, that the more tolerance and patience I have for going back, reviewing the basics many times and looking at different explanations and taking it s l o w... the better I learn and the more fun I have.

I found most of this with Bob Tabor's c# course on MSVA. But I've been preparing my very first "please review my code" post for days because I see how no matter how you post a question someone will make you feel like you should regret it. (I need to man up, here) and I am still looking for more exercises along with solutions that are "guaranteed" good examples.

→ More replies (4)

11

u/10_6 Jan 27 '16 edited Jan 27 '16

I completely agree with you regarding those educational sites you mentioned. A lot of coding sites today bombard the user with hundreds of functions, syntax related discrepancies, github syntax, and a ton of other things that are important, but not that important when learning to code for the first time. When teaching a specific language like JS or Python, most of those websites you mentioned also try and teach the user all the ins and outs of a language, when in reality, a lot of things are learned when working on a project or working on an app. These educational websites are great for a lot of people, but I've also seen a lot of people become unmotivated or quit early on because they were being fed so much information they felt they couldn't keep up. Projects and challenges are very important when teaching people to code.

I created Coderbyte a while back and my goal with it is to provide as many programming challenges, solutions, videos, and tutorials that I can so users can be engaged in solving programming challenges. I try and provide a nice, easy-to-use interface with over 100 challenges that are easy to get started on, and if the user is stuck they can see other user solutions or watch a video to help them understand.

16

u/FountainsOfFluids Jan 27 '16

$24 per month. Great. As soon as I get that job as a programmer I can afford to start learning about programming.

→ More replies (17)
→ More replies (1)

4

u/Jafit Jan 27 '16

And no, having been there once 10 years ago isn't enough for a developer to "understand". Times have changed. The environment and table dressing have changed, programs have changed.

War... has changed.

Simply put, the industry is inferior when it comes to creating a substitutive learning environment with a quality pedagogy. It sucks and devs simply refuse to acknowledge this. Why should they when they can simply thrust all responsibility back on the hapless noob.

There is a large element of responsibility that lies with the learner. There has to be.

You're right that its good to learn by working through examples, but when I was learning to code by making shitty flash games in Actionscript 2, there was no free online code school to spoonfeed examples to me in nice easy to digest mouthfuls. I tried to make something, encountered problems, sought out examples and tutorials by myself, and tried to hack my way around whatever road block was currently in my way. Very occasionally I'd ask the Newgrounds BBS for help.

Its nice that these online code schools exist, they make learning syntax very painless, but perhaps they don't teach the most important skill in programming, which is how to go and find your own examples and answers.

→ More replies (5)

2

u/1337Gandalf Jan 27 '16

Honestly, I tried taking online tutorials, watched countless youtube videos, and took code academy coures etc and it never stuck.

what worked for me was just digging into an open source project (I started with FFmpeg, but it's not even close to a good example to learn from) and googled literally everything I didn't understand.

it's a daunting task, and you'll spend literally weeks googling the same shit worded differently, there will be times you read a function and don't know 90% of what's going on; that's ok. just be persistent.

I took a long break a couple of times it was so frustrating, and you probably will to. that's ok.

→ More replies (2)

2

u/iTipTurtles Jan 27 '16

You summed it up perfectly, I have tried numerous books/online coursers based on the recommendation of others.
This has helped in some degree, but not with the initial problem at hand when it comes to learning.
But then comes the issue of what next, ive learnt some syntax, ive learned some explanations. But I havent learnt how to apply them.
Ask a question, get pointed in the direction of another piece of online material, cycle continues.
I am now in the stage where I am rapidly losing motivation.

2

u/Sambiino Jan 27 '16

Thank god you said this. I got so angry reading OP's post because it's the same unhelpful bullshit that's been recycled again and again practically everywhere. I expected the comments to be just more variations of the same nonsense.

→ More replies (1)

2

u/NotchsCheese Jan 27 '16

As a semi beginner you couldn't be more right.

→ More replies (1)

2

u/[deleted] Jan 27 '16

Oh really? Why didn't I think of that? Maybe I'll go to Stackoverflow and ask a question. Oh, looks like they really don't care for the way I asked the question. Guess I need to wrap it up in a perfect, hermetically sealed magic spell that's not asking an opinion in order for them to even take a look at my question.

This is so incredibly accurate it's not even funny.

2

u/C0rinthian Jan 27 '16

There is a key thing that I think is missed: if you want to learn code, you need to read code. A lot. Find a project you like and then try to figure out how it works. More importantly, figure out how it's organized. Look at the structure and composition. See if you can figure out why they did it the way they did.

This is something that the basic tutorials don't get into: the hard part isn't writing the code. It's decomposing a complex problem into something that you can tackle with code. The software engineering aspect. The shit you do on a whiteboard before touching a keyboard.

Thankfully there are a multitude of examples of real world projects you can study. Do it. Read up on software design models and methodology. If you have an idea for a project, start sketching it. I don't mean UI, I mean draw the blueprint for your application. What components will it have? What will they do? How do they connect? Look at those components: are they too big? Can they be broken up further? Do it. Keep doing it until you have your idea fleshed out into a bunch of small items which aren't complicated on their own. Then implement one. Then another. Keep going.

Anyone have any good recommendations for open source projects which are good examples of design that a beginner can learn from? Those would be useful resources to have on hand.

→ More replies (1)

2

u/Farobek Jan 27 '16

"No, what is needed are more exercises."

I disagree. What you need is to become proactive and be willing to teach yourself as opposed to being spoon-fed.

2

u/RamblingJack Feb 02 '16

Hey, thanks for this post. I've been working on learning programming first in high school, then on my own, now in college, and this comment and the conversation it led to really resonates with me. I feel like I've taken a dive into some insane world where everyone knows more than me and even the simplest things involve a monumental struggle.

The space between understanding individual functions in abstract and suddenly being expected to create large, complete programs is uncomfortably large and vague, and the assignments I'm working on now have left me with the uncomfortable feeling that I missed some important steps somewhere along the way that everyone seems to have assumed. I'm still working my way through things, but it's nice to hear some of my difficulties with it all put so clearly into words.

Cheers!

→ More replies (1)

2

u/[deleted] Feb 10 '16

I agree completely that the lack of examples and exercises are a fundamental problem with modern programming education. I wish people would stop writing tutorials over concepts that have been discussed 1000s of times and instead write exercises that complements the currently available content. I've been writing SQL exercises that go along with the Sam's Teach Yourself SQL book, and I think more content like this needs to exist.

Unfortunately a lot of students are geared towards instant gratification due to platforms like codecademy. They'll watch a screencast, go along with a gratifying but lesson-less ebook, make something pop on their screen and get the warm-fuzzies. But then they have learned nothing.

I'm not calling this new generation of programmers lazy. They have been deceived.

This new generation of programmers has been sold the lie that you don't need to learn your ABCs before you can write a novel.

→ More replies (1)

6

u/[deleted] Jan 27 '16

what is needed are more exercises. A shit load of them. Treehouse doesn't have them, CodeAcademy doesn't, Code School doesn't, Thinkful doesn't, Lynda doesn't.

You need some examples? I mean, maybe you don't want to be a programmer.

At some point, you either have a use for this skill, or you just.. don't.

Let's compare it to carpentry.

I can go online to learn carpentry and find the same five tutorials on how to build tables and spice racks, but how do I become a real carpenter?

The answer is.. go build something.

But WHAT, you say, WHAT SHOULD I BUILD??

And the journeyman carpenter will answer, "Look man, if you have literally nothing you want to build, maybe you don't really want to be a carpenter."

4

u/Whackles Jan 27 '16

Problem is that as a carpenter you don't have 25 free perfectly viable tables sitting right there. So making the table feels like a useful endeavour. It's a lot harder to come across a thing to code which isn't just busywork.

→ More replies (5)

4

u/MadeItMyself Jan 27 '16

I up-voted you because i agree that beginners need to ask questions about why they want to learn programming. However, I would say that the journeyman carpenter in your example is not being helpful. I want to learn carpentry so I can build a new set of cabinets for my kitchen, so i should just set out to do that? It is going to be a disaster without intermediate training steps and i am probably going to just quit after I realize I am not at all prepared to finish the project.

What the journeyman carpenter should do to help his apprentice is say "I need a cabinet door for this project I'm working on, go measure, cut and route one and we'll see if it's usable."

→ More replies (1)
→ More replies (8)

3

u/lykwydchykyn Jan 27 '16

Simply put, the industry is inferior when it comes to creating a substitutive learning environment with a quality pedagogy.

Can you give me an example of an industry that does it better?

→ More replies (3)

-9

u/[deleted] Jan 27 '16 edited Jan 27 '16

Oh, I see you already understand the 'grumpiness' of professional, elitist coders who are offended, as if someone took a shit in their Lucky Charms, when a noob asks an ignorant question. No, it's not ok to be ignorant around those sites, and you just validated my point.

LOL

First off, I am definitely a professional coder who gets offended sometimes. So take my response with a grain of salt.

However, I've also been doing this for 25 years now, and let me tell you: this is a job that people get burnt out on. A LOT. If you can't even make it on the bunny slopes, you're only going to end up as that intern who comes into my company, writes a lot of shitty code that fucks shit up, and then ultimately decides 5 years later after constant shit storms that this "isn't the career for you". Don't get me wrong, that kind of shit keeps me employed, but don't kid yourself.

Programming is frustrating. It takes a lot of digging into documentation, code that doesn't make sense, putting up with bullshit, and not giving up. When you finally feel comfortable with a language or environment... guess what! New technology has come out and you have to start all over again. It's a never ending cycle.

You have to enjoy that shit. If you don't, you'll probably be a lot happier if you choose some other career. The people around you will probably be happier, too.

edit: I hate to get all "old man with a cane" on you, but remember that 25 years ago there was no stackoverflow. There were no forums. A lot of times, documentation was really bad if it wasn't just outright missing. It took me literally months to figure out what an array was, because the documentation I had was just terrible at explaining it, and gave no examples. So really, this shit is not easy. Don't expect it to be. If you like the challenge, you'll get there. If you don't... well, I guess the rest is up to you.

9

u/je66b Jan 27 '16 edited Jan 27 '16

. If you can't even make it on the bunny slopes, you're only going to end up as that intern who comes into my company, writes a lot of shitty code that fucks shit up, and then ultimately decides 5 years later after constant shit storms that this "isn't the career for you". Don't get me wrong, that kind of shit keeps me employed, but don't kid yourself.

If they cant handle the bunny slopes howd they get the job? And howd they keep it for 5 years... Sounds like a shit company tbh.. No way the job market can be that dry that theyre not replaceable.

When you finally feel comfortable with a language or environment... guess what! New technology has come out and you have to start all over again. It's a never ending cycle.

This is fairly common for all things that plug into a wall or run on batteries, not just programming.

You have to enjoy that shit. If you don't, you'll probably be a lot happier if you choose some other career.

And now advice no one has ever heard before about any career path ever...

Your tangent isnt really beneficial to this guys statement at all. Theres a space in the tech community where people think theyre entitled to make others feel like shit for attempting to learn something, forget what you know or struggled through.. youre a brand new dev right now, the internet pretty much holds all the answers, its how youve been raised, why not attempt to use it?

So you go online.. You go online and post for help, you dont know how to do independent research cause the problem you have you dont know how to solve cause you dont even know what the problem is.. JohnnytwoshoesXX sees your post, instead of helping you or even ignoring you, he takes time to trash your code, call you a scrub after purposely suggesting something you dont understand, or do something generally opposite of helping.. Hes now wasted both his and your time.. Is he right? Did he need to do that? Who did he help? Who did you help giving this half-assed "pep talk"?

We know its hard.. We know its challenging.. Hence the cry for help, yes theres people that want to be spoonfed, but theyll disappear on their own. OPs statement as well as the guy you responded to literally took the words out of my mouth, ive tried to study up C++, python, and now im on C#.. Im well versed on basic programming principles but i have no fucking clue what to do with them and no one has an answer other than "i dunno.. Build something"

If youre a professional programmer on a learning sub do your job and help out, take your 'vast knowledge' and write a post or blog with some language neutral beginner exercises, otherwise wtf are you even doing here?

→ More replies (3)

20

u/[deleted] Jan 27 '16 edited Jan 27 '16

If you can't even make it on the bunny slopes

Could you be any more condescending?

I'm not ridiculing. I'm being serious, asking an honest question. I'd like to see you put effort in being more condescending. Seriously. Did you take a look at the responses my comment got? Do you see how others are agreeing with me? Those aren't my upvotes that got put up there, so I'm not the only one here with this opinion.

You do realize you're simply validating my point. You do see this, don't you?

Bunny slopes?? With all due respect, I say this with no sarcasm. Fuck you.

  • You call learning Git and Github a bunny slope?

  • You call learning the Mac terminal a bunny slope?

  • Is JavaScript a bunny slope?

  • Is writing specs, making them all fucking pass, pushing them into functions, pulling user input and shoving it into the function to make it work a mother fucking bunny slope?

You act as if learning JavaScript is as easy as strapping on Bootstrap and gliding through code as simple as pasting a goddamn class selector.

Guess what. ...it's not. JavaScript, as a beginner language, is no fucking bunny slope.

Lastly, where the fuck, THE FUCK do you think olympic skiers learned how to ski? ...you got one guess.

→ More replies (17)

6

u/Iyajenkei Jan 27 '16

I don't understand why that's an excuse. It was hard for you or harder for developers who have been around awhile and that's good reasoning for shutting people out? Because it's easier now? So I shouldn't ask questions because it's easier now. Got it.

→ More replies (13)
→ More replies (14)
→ More replies (57)

5

u/canipleasegetaname Jan 27 '16

One of the biggest problem that I'm facing right now is that I know how / what to do when tackling a problem. But I can't remember the right syntax off the top of my name. Whenever I see my friends or people online code, it seems like they can always remember the specific syntax / code to do something while I have to go back to my old notes / projects to learn the correct syntax.

2

u/rdpp_boyakasha Jan 27 '16

Try making a cheatsheet. Cram all the common syntax into a single page, print it out, and keep it next to the computer. After a while you'll have it memorized, and you can throw the sheet away.

16

u/NightmarePulse Jan 27 '16 edited Jan 28 '16

Can't you just look it up? That is what most people do. You aren't expected to memorize everything, especially when you code in different languages.

Edit: added a "you" in place of the extra "just" =P

→ More replies (6)

3

u/bmamba2942 Jan 27 '16

I found this to be a good resource for coding syntax. I believe I picked it up from this sub before. I know that doesn't quite answer your question, but I have to occasionally lookup syntax as well. I don't see it as a big deal.

2

u/[deleted] Jan 27 '16

Design and breaking a problem properly is a better skill to have than being able to write code really fast. If you have to look stuff up do it. But if your design is correct you only have to write the code once.

When people's design is poor. They have to do the implementation phase often many times to solve a problem.

Being able to do both effectively takes a bit of time.

3

u/YeOldeDog Jan 27 '16

Your being way too hard on yourself, 'Avoid getting hung up on syntax' should be in the top ten rules for a code monkey. Just as a book is really not about its grammar or spelling, correct syntax is not your software. Good design and decent algorithms are your software, syntax is simply what enables your design to run. Many times a single design can be coded into a number of quite different programming languages, especially when you are ramping up your skills.

→ More replies (12)

22

u/DoTheEvolution Jan 27 '16

some older copy/paste I posted in python subreddits


  • get through codecademy python course, or Dive in to Python, or Learn Python the Hard Way... whatever some introductory course to programming and python

  • start working on your own project and learning stuff that is needed to complete it. Eh, you dont have any? Thats normal but you will need some eventually... meantime...

  • start doing challenges. CodeEval, or CheckiO, or Codewars from easiest to hardest, its important to do some challenges, it will keep you using the language and it will get your confidence up, not to mention learning stuff as you search for solutions

  • have a look at PyQt, short zet code tutorial. To make user interface, windows, menus, buttons, tables,... you realize that you can do very interesting things rather easily. Having some basic understandings of some GUI library is needed or you be quite limited with what you can make of python and what projects you can undertake...

  • if you want to continue PyQt way there are some yotube tutorials. And beyond that theres a book

  • if you dont know html and css it might be good thing to get some under your belt, its easy and the web will be with you your whole fucking life. Html and css in 30 days(its free course once you register and actually last like 3 days even if moving slowly)

  • web scrapping is an excellent thing to know, learn and try scrapping

  • Understanding whats API and using some is also essential, maybe start with reddit api

  • basic idea about databases, zetcode short intro to sqlite. You got some data, even just few? You wanna use a database just to play with it.

keep doing those challenges, try some more on /r/dailyprogrammer or find new source of challenges that you can do while you wait for some inspiration of what you want to try to do in python, some project of your own now that you have some basics. But if nothing comes to mind, just keep doing challenges and moving in to directions that interest you...

→ More replies (1)

17

u/bububoom Jan 27 '16

Projecteuler is an AWFUL recommendation for a beginner. I don't understand the circlejerk of projecteuler. And bullshit like "i always learn new language by solving" what the fuck. I've solved around 50 PE problems a few years ago and a lot of them involved some tricky math tricks and the code was just a few lines performing arithmetic.

I doubt a lot for those who recommend project euler. You will learn nothing by solving it. At least not programming. At the early stages one needs to write a lot of code and solve a lot of problem, not guess some tricky algorithm for calculating 10000-th prime number which is divisible by its digits sum.

26

u/holyteach Jan 27 '16

Don't forget about Programming by Doing, my site designed for exactly this sort of learning.

Source: I've been teaching beginners to code for the better part of two decades.

3

u/je66b Jan 27 '16

This is awesome, hope it gets more exposure, if i was learning java right now id have found a goldmine

Edit: Actually looks like i could do some research and do these with C#.. Sweeeeeet

2

u/Funkydunkie Jan 27 '16 edited Jan 27 '16

This is looks really useful, thanks!

E: This is actually exactly what I needed. Bitesize projects to do to keep me refreshed with Java and larger projects to help improve my skills. Thanks again!

2

u/ghostabdi Jan 28 '16

respect yo. That is awesome and is exactly what my teacher had us do while teaching us. I learnt loads through building games, and of course that is how he hooked us on coding. He also built an automated code tester so he could minimize the time looking over our code manually to spot things like proper variable names, no hardcoding etc...

→ More replies (4)

46

u/Xer087 Jan 27 '16

http://www.projecteuler.net/problems

I'm still a student but if I was a professor with students I would highly recommend they go here and start with the most basic of problems. It's multilingual and ranges from 1 step above "hello world" to about "Super Nerd". These questions will force the student to put themselves out there to find answers. There is also a forum where people can submit their codes and you can skim through that for variations of code that solve the same problem. From there you can ask yourself "why did they do it "way x" over "way z" and over time you are leading yourself to answers. Which as we know seeking answers is a big part of the job. Unless you wrote the language, you won't know every little thing.

I haven't had a chance to read the article yet but once I'm off I will.

55

u/CatatonicMan Jan 27 '16

Fair warning - Euler is all about algorithms, mathematics, and theory. You'll learn how to solve complicated problems and discover interesting algorithms, but the actual amount of programming you'll end up doing is fairly limited. Euler is all about theory.

The best way to get better at coding is to do projects. Make simple games (pong, tetris, platformers), build applications (file checksum/hash calculator, simple file compressor, a text editor), build websites (a blog, a portfolio) - these will help you get better at the practice.

12

u/LaurieCheers Jan 27 '16

My new favourite set of programming questions is http://adventofcode.com. Far less emphasis on theory - most (though not all) of the questions are tractable enough to be solved by brute force, so all you have to do is write it.

→ More replies (2)

3

u/Xer087 Jan 27 '16 edited Jan 27 '16

I'm not a pro coder by any means, and that's why Euler appealed to me. It is very basic, but I often found myself wondering into the unknown while comfortably wading through things I could handle and getting more comfortable with the programming environment. The OP wrote the piece for people who had some knowledge but lacked know how and experience. I saw Euler as a good way to get comfortable in the "surroundings". You won't walk away able to program a text editor but you will get more comfortable creating and using methods/classes/objects (What ever your poison) and feeling out how they can be extensions of your work.

While the complexity of the problem does increase, the skills required to complete them are rather basic (relatively) while not jumping straight to "Create and roll out an app" and I felt were a good stepping stones into the programming environment.

Also for people who lack vision it gives you focal points.

→ More replies (2)

19

u/[deleted] Jan 27 '16 edited Jan 27 '16

While I'm playing a game, the whole time I'm thinking how it'd be better if it did this or that and think about how I'd do it differently if this was my game. That's where all my hobby projects come from, and I always have 3-4 in active development at any given time.

I start every project with "Hello world". I've had 250k LOC projects that took 5 years to write that began with "Hello world" on their first compile.

Then you just incrementally add the next most basic feature. Next "Hello world" is drawn in a graphic window. Then it can go full screen. Then it's drawing a polygon under it. Then it's loading and drawing a single full 3D model from a local file. Then it's querying the network for a list of models to draw. Then it's downloading the models from the network. Then...

4

u/[deleted] Jan 27 '16

Yeah - I agree with you. I don't think the op and a lot of non coders understand that all big applications are assembled out of smaller and smaller bits. Hello world is so intrinsic to development because it's the first minimum product you have. Iterating from there is the rest of the process.

I almost think the want a turnkey system that just understands what they intend rather than what they tell the machine to do. That might be an interesting AI problem -- but probably something in the very very hard space of problems.

But I get the frustration. They are approaching a field composed of people that would have been hand lettering bibles back in the day and expecting them to drop down and explain the meaning of simple words and phrases. It's not going to be pleasant for the outsider.

I hope these guys learning understand that they are not really learning a language - they are learning a thinking style. Once they acquire the ability to think in code they will at least be able to take their knowledge and apply it to real world problems.

→ More replies (2)

9

u/Anon_badong Jan 27 '16 edited Jan 27 '16

I started learning programming when I was a kid. We had apple computers in our elementary school, and were taught to enter commands and coordinates into the computer, and it would make the "turtle" triangle draw lines on the screen. I LOVED it, but it was the only programming exposure I would have until I was in my early teens.

When I was 14, a friend of mine had a Windows 95 computer, and his dad taught me some basic DOS commands. I loved it. I wanted to learn more. I did not have the resources to teach myself to program.

Fast forward to University. I go into my first ever programming class, where they will be teaching us Java. The title of the course is "Intro to Programming." I sit down in my lecture seat, excited and nervous about starting my programming career. One of the first things the teacher says is "If you have never had any programming experience, this is going to be a very difficult course for you." My heart sank. Within the first 3 homework assignments, I was lost and overwhelmed, and dropped out of the class, and changed my major from Computer Science to Sociology. I later minored in a Humanities program that taught me the beginnings of Visual Basic, and thus started my programming career.

Many years later, I've been programming small scripts for very specific tasks, and I still don't feel like I know how to program. After all of these years and the time I've committed to learning, I can tell you that there IS a gap and a problem for modern programming that not many seasoned programmers understand. If you didn't grow up with the language, you aren't going to be able to learn it the same way as someone that did.

I've seen the best books and tutorials encourage people to use the Java API because it will tell you what to do, but that's utter nonsense. I can use a method call found in the API, but understanding the complex underpinnings of a language that has evolved over time, without knowing how and why it changed is utterly frustrating.

The problem is, a lot of programmers take for granted that they had the chance to evolve with the language, whereas many of us are looking at the API from Java 7 and 8 and wondering how this language got to be so huge, and why all of these classes are necessary.

If you are teaching a foreign language, practice is key, but it does no good to practice if you don't know what you are saying is anything beyond gibberish. True immersion into the language absolutely requires an understanding of why its built the way it is, what parts it has, and immersing oneself in an evironment where the questions can be answered quickly. IMO this is why online courses simply aren't enough, and will never be enough to learn programming. You need the feedback from others that know what they are doing. You need to understand WHY you do it the way you do, and just like most math instruction, there are very few people that actually know why, and are good at explaining it.

The OP covered one small aspect of what is required to learn a language. He's right, you do need to practice, but that is FAR from the whole story. The frustration many of us feel is valid. Stack Overflow is full of nonsense and overly bloated examples that don't necessarily teach you anything. Seasoned programmers telling people to just write more code is frustrating because nobody has the time to write a bunch of code just to have it not work and have no idea why. This happened to me just the other day when I was using some code in a program I wrote from scratch, and I still have no idea why its happening. I've googled it. No luck. The only hope I have of understanding why its doing what its doing is understanding why the Java class is the way it is, and what behavior I can expect from it, but it is very difficult to find that information in the API, or understand what the API means even if I do find some information.

This huge gap between understanding concepts, and actually being able to use the API is the obstacle to learning programming. IMO, programming tutorials do us no favors by using classes and starting with loops and conditionals or specialized classes that do particular things. In the end, the process to learn programming is sum'd up by saying: immersion comes first, understanding comes last, and the gap in the middle has to be filled with a lot of persistence, sweat, and tears. We all want to think there is a better way, and believe there is, but I'm not convinced. I have yet to find any other way.

Perhaps we should all start out like children and learn the building blocks of the language first, before diving into the deep end, but I have yet to find a tutorial or book that is willing to explain why things are the way they are to a depth that satisfies me. Head First Java is the closest I have come, but again, it skips some things I want to know, and I really just wish I had a whole series of books that just explain why Java classes are the way they are, and what problems they were attempting to solve when they created them. For now I know that I have to memorize a hell of a lot of strange and difficult to recall facts about all kinds of quirky behaviors of the language, and that is overwhelming.

Perhaps we should learn from those that have had the task of learning English in their adulthood? I imagine the process is much the same, although more frustrating since you aren't allowed to ask questions in the programming world online without a huge amount of condescension.

Edited for clarity

3

u/reddilada Jan 27 '16

One of the first things the teacher says is "If you have never had any programming experience, this is going to be a very difficult course for you."

My experience was exactly the opposite. Our teacher asked everyone who had been learning programming on their own to raise their hand. These were the ones that were going to have a difficult time.

3

u/Anon_badong Jan 27 '16

Wow. Well, this was way back in 1999. I hope that teachers are more adept these days at starting with the basics. :)

→ More replies (3)
→ More replies (1)

32

u/iamktothed Jan 27 '16

I'd argue that the best way to learn coding is to be curious and challenge seeking. Find a project or an idea and implement it. You'll get lost, frustrated and flustered but when you come out from underneath it you will see that you're stronger and wiser for it.

19

u/SSJNinjaMonkey Jan 27 '16

Don't you love it when you're learning new code and you just cannot seem to grasp what's happening. But you go get a coffee and your subconscious works it out for you. :D

32

u/sickhippie Jan 27 '16

My favorite debugging tool is a 20 minute nap.

8

u/Butcherbirdsings Jan 27 '16

I want this on a tshirt.

→ More replies (6)
→ More replies (3)
→ More replies (3)

4

u/Lilywing Jan 27 '16

Thanks for the advice! I'm in this stage of learning my self, and its super annoying, I've been doing problems to try and get bettter

4

u/lurgi Jan 27 '16

To use an analogy, I know the English language pretty well. I'd even say very well. I know about the present and past and future tense and why, arguably, one of these is not a tense (future, in case you were wondering). I know about the Oxford comma and why my parents, God, and Ayn Rand think I should use it.

I can't, however, write a good novel. Or, for that matter, a short story. I can write a pretty decent paragraph and I've got some kick ass sentences rolling around in my head, but that's my limit.

If I wanted to write a short story I'd have to write one. And then write a different one. And keep writing them until I figured them out (and none of them will be any good compared to the true masters of the form). Knowing the English language would be an important first step, but you can know everything about English and not know how to structure a really good dramatic scene. You can be a great novelist and not know how to write a play. Or a poem. Or a science fiction novel.

This is not too far removed from programming. You know Python. Congrats. You are now qualified to write the Python equivalent of short sentences. If you are feeling ambitious you can write a short story which will be a rip-off of another short story that you read before, only you won't tell it as well (and the main character's name will change from Bob to Bill halfway through and you won't notice). Novels may take you a few years and you may never be able to write one (although you might well be able to contribute scenes to novels that other people are writing. Or edit their work. That's fun, too).

So, get writing.

2

u/bluelite Jan 28 '16

Learning to program is more than just writing a lot of programs. To use your analogy: you can't become a good writer by simply writing a lot of stuff. Sure, it's part of the process. But you also need to read a lot of other people's writing. A lot. The best writers do a lot of reading.

That's a significant piece that's missing from most CS educations. Student's are expected to write programs, but spend precious little time reading programs.

Artists get better not just by painting/drawing/sculpting, but by studying lots of art.

Musicians get better by listening to lots of music.

Athletes get better by watching other athletes compete.

Programmers should get better not only by writing lots of programs, but by studying pre-existing ones. It'll have to be more than simply "look at this program." The beginner will need to be taken step by step through its structure and runtime behavior. And then show them another, and another, and another.

6

u/[deleted] Jan 27 '16

Read, code, read, code, read, and so on, and eventually you will master it.

Haha. Hah. Ha. I wish. When someone thinks they have mastered coding, give me a call.

→ More replies (1)

3

u/[deleted] Jan 27 '16

A typical example of an intro project for Web Development is a blog. Find some small blog or static site generator on Github and dissect the code to see what they did. Look up things you don't know or play around in a REPL until you get it. It doesn't even have to be good code your only goal is to understand it in full. Same approach I take to learning a (human) language - read an intermediate book in it once I know the basics and study it until I can read it through.

Start writing your own and as you do repeat this process, pulling inspiration from other projects. Don't copy and paste just study other projects. Throw it away and do the same thing again 1000 times. Then you will have taken your first step of a thousand mile journey.

3

u/midasgoldentouch Jan 27 '16

For those of you that are looking for ideas for those "little text-based programs," there's a list of resources for programming challenges in the sidebar. If you're ready to move onto more substantial projects, there's also a list of project ideas in the wiki, the new sub r/monthlyprogram, and usually some listed within the individual language subreddits. Of course, you could always expand on the programming challenges as well - like taking the balancing chemical equations challenge from r/dailyprogrammer and adding a GUI, a step-by-step solver showing exactly the problem is solved, or a quiz-based program that instead provides questions and answers to the user. However, once you've been at this long enough, you'll start to get swamped with ideas. Just trust me on that one...

3

u/pickituputitdown Jan 27 '16

Shout out to r/learnpython every one there have been great for all my many, many questions

3

u/The_Floyd Jan 27 '16

IMHO The problem is that most of these online courses focus on teaching you how to use all the 'bells and whistles' of a language but not on how to think about and solve a problem. This is, in part because people are impatient and want to start 'coding' right away.

Teach them, first, how to solve a problem and describe the solution(the algorithm, if you want to call it that), and then teach them how to 'fit' that solution with the language vocabulary.

2

u/Kazeshinrin Jan 27 '16

Logical thinking is very important in programming, which was why I didn't score well in my programming methodlogy module in university.

2

u/[deleted] Jan 27 '16

Gonna go ahead and save this one. I am currently working on getting my 2 year degree in programming, this should help though out my actual programming classes.

2

u/jamessmith17 Jan 27 '16

It's been said before and I will reiterate it as well: start your own project. One of the best ways to learn a language is to start a project wholly in that language and then go through the whole process of building and deploying the project. Get friends to test the program and other developers to critique the code and the project. Use all your spare time on this one project and at the end you will not only know the language confidently, but you will have experienced how to deliver a project in that language. Then, when you go to interviews for jobs, you can demonstrate the project and show them the code. It's a great way to show you not only know the language but that you also know how to use that language in real world projects.

6

u/AynGhandi Jan 27 '16

If you have just done say Codecademy, you have absolutely no clue how to even begin your own project. Yes, some people manage to work it out by themselves, but plenty of people just stall here. Its not a coincidence that subs like /r/learnpython and /r/learnprogramming are full of people going ''well, i've done X, what now?". It's because there is an absolute flood of tutorials going "this is a variable, this is a loop, good luck you now know python!", and a lack of good educational resources which show things like how to divide up a problem in small pieces, create those pieces and how to bolt all those pieces together again.

It's also not helped that some of the people who do manage to figure out how to start get scared away by places like Stack Overflow, which is quite a hostile place. So in the end only a certain type of person remains, which perpetuates the whole myth that only greybeards can program.

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

2

u/brureader Jan 27 '16

This might have been already posted here, but I read this article yesterday, and might show someone "insight" into the question.

2

u/[deleted] Jan 27 '16

I was encouraging my girlfriend to learn some basics of programming and showed her Python course on Codeacademy.

She did some exercises be she couldn't grasp what REALLY is that all about - and how do you actually write programs.

She says "show me how you do it". So I started explaining some simple things like printing text, operations on numbers etc, 10 minutes later I was parsing Open Weather API to show current weather for our city :/

I think that's the problem - when you know a little more, you jump too fast, too far and people get lost on the way.

I started by reading Delphi book for absolute beginners. And I think this is the best way to start, so you can very slowly understand how do you actually program.

1

u/[deleted] Jan 28 '16

No, the problem is that we don't have a bf looking over our shoulder to help us out with our code. To point out syntax errors, logic errors, etc. That is sorely needed and can only be found by having a bf coder or by going to college (maybe) or bootcamp (definitely).

2

u/CubeActimel Jan 27 '16

I think it is really important to simply code more. Not thinking about what to code and then failing but googeling for beginner exercises (there are some good pdfs). The first few might be no problem at all but then comes a point (most of the time "simple" school mathematics we all forgot at one time) and then they don't have to ask professional coders, they have to understand the mathematics and after that how to use the code and loops they learned to solve their problem. Once they did a few exercises where they first had to understand a concept and then applying it in a program they've learned not to copy and paste code but to think about a problem and then how to express it. There are thousands ways of how to write the same program and therefore it is important to try to solve it themselves as the code from the professionals is often really compact and optimized, where beginners can't understand how he solved his problem in one line of code with shit he never heard of. Even though a you want to start big as a beginner I think it is really important to do these beginner exercises. If you can solve them without a problem maybe look that the code is clean and understandable and try to shorten and optimize the code yourself. I don't know how many times I looked a solution after I was done and how bloated my code was. It is important to look at code from other people too, try to understand what they've done. You don't have to solve everything by yourself, but try not to copy and paste but to really understand at which logic or syntax part you have problems, it will help you avoid the same problem and taking on a problem in a rational, scientific way. Sorry for the blocktext, I am on my phone. If anybody is interested I can look up sources for beginner exercises. Ps: What really helped me was buying a beginner book. I even bought it after I wrote my first game, so I already kind of understood what I was doing. There are thousands resources on the net and by learning by yourself you will sure miss some basic stuff, because how could you even know about it? Get a book and learn the simple shit, it will really help you on avoiding some problems because you don't understand something because you missed some basic stuff.

2

u/ironicperspective Jan 27 '16

What most fail to realize is that one class/course isn't going to actually make you learn the language. It takes a lot of time and effort, just like learning any other language in the world.

1

u/PalTonk Jan 30 '16

Like if you learn how to read a language, but not how to pronounce or actually speak the language and you end up in Russia and try to speak russian without those things. It's just going to be impossible. At least with languages you have some steps you take all the way to speaking fluently.

After you're done with cplusplus.com it's just a question of... uhm what now? Like the title says: "When You Know the Basics, but You Still Can't Code"

2

u/RICHUNCLEPENNYBAGS Jan 27 '16

Well, despite the pointless hostility you got I don't see what other advice could be given.

→ More replies (1)

2

u/CropDustinAround Jan 27 '16

I have not been a professional software developer long. But it pains me to see how people go about learning to code. There is no simple trick or secret save for this: most developers write scripts not programs. Knowing the basics is literally all you need in the professional world ( ie an actual company).

Very few corporate developers write entire programs. Those are the elite among even the employed developers. What 'noobs' dont understand is that companies have large code bases and working programs that often need maintained or improved by the 'basics'. This requires fixing it with an often small amouny of code to actually make work since the framework already exists. This framework is (roughly) called the architecture, and is the design and implementation of software. That is a whole new beast.

Once you know the basics then you know what you need to know to be an entry level developer. This is hard for the 'noob' because they feel like that cant be all there is. Well to bad. It is. Writing larger programs is still just stringing multiple smaller scripts into a larger file to hold it all in one place.

O and did i mention that i had a relatively unreleated degree (bs and ms in mathematics) when i was hired to be a developer? I learned from the same websites and books as everyone else when i got here.

1

u/[deleted] Jan 27 '16

You're right, and to add on: the problem that I've found is that the online courses don't go beyond just learning a syntax. Having just started in a software developer role in the "real world" I've spent more time dealing with stuff like version control, dependency management, doing builds and deploying to a web server (this especially), interfacing with other programs/webservices. This is all stuff I had very little knowledge of coming out of school and it was overwhelming. Sure knowing syntax you can write a nice little program in a vacuum, but I think that practical knowledge relating to configuring and running programs in a real world environment is seriously lacking in these online courses (and in my college education as well).

→ More replies (1)

2

u/Farobek Jan 27 '16

"Write little text-based programs to learn all the features of your chosen programming language". Disagree. Write something that you are willing to spend hours/days/nights pulling out your hairs for.

1

u/[deleted] Jan 28 '16

Fucking PRECISELY!

3

u/[deleted] Jan 27 '16

People cannot program because they do not understand what they are learning. Most books teach it really wrong. Learning the syntax and function calls does not teach you how to program.

Actually the thing you suddenly realize at some point is that the programming language you learn is completely irrelevant. It is how you take a problem and break it up into sizable manageable chunks and implement it that really matters.

When you master the part about breaking up a problem into steps. You suddenly realize that you don't have "steps" you actually have something that resembles function in which case the rest is really simple. Which is to type the program into a computer. This stage is basically called design something not often looked at or taught in more learn to program books.

Until you actually solve an problem in this way. You haven't actually learned to programmed anything in any language.

This can be applied because if you take a step back. python / c / c++ / c# / java / php / perl / bash / many others. They all have the same basic building blocks (many people fail to realize this). They all do if / while / do while / do until / functions / case statements / and have the same underlying basic data types. They also all have around the same lib's for doing operations.

1

u/RICHUNCLEPENNYBAGS Jan 27 '16

Most people do not learn well by first learning abstractions and then learning concrete applications but rather in just the opposite order.

→ More replies (1)

2

u/ghostabdi Jan 27 '16

If you are brand new to coding and are just taught the syntax which what a lot of teaching code stuff out there does, it's useless. You truly need to do problems with your new skills. Grab a Python textbook, C#, Java, whatever it is you want to learn and go through it, I say a textbook because it quizzes you on applying your new knowledge in critical ways that broadens how you think about problems.

2

u/[deleted] Jan 28 '16

Not new. Been trying for over 2 years. Am now in bootcamp.

→ More replies (2)

1

u/zehydra Jan 27 '16

I've got the opposite problem; I can code, but my theory isn't as grounded as it should be.

1

u/denialerror Jan 27 '16

A lot of universities have their syllabus and sometimes lectures online for free. Find a course you think you are lacking in and go through it.

1

u/mplang Jan 27 '16

Nothing beats experience. You'll never really learn how to write code if you don't write code.

→ More replies (1)

1

u/[deleted] Jan 27 '16

I'm in the same situation myself. I learned some basics of C but I realistically can't do much past writing little programs that prompt for user input and display some kind of message, or programs that do basic arithmetic The assignments in the class I was in demanded more complex programs above my skill level, and it was frustrating. OP's advice in the article is helpful especially when he mentions not to write things well above your skill level, and work your way up there. Definitely something I need to keep in mind.

1

u/[deleted] Jan 27 '16 edited Jan 27 '16

Thank you! I'm about to finish a second online course in Python & have been feeling uncertain about where to go next/how to not take classes forever. Thanks for the part advice, part pep talk. :)

EDIT: Now that I've read through the top comments and disenchantment, I don't feel as good. Sigh.

1

u/xian0 Jan 27 '16

Where would you like to take it? The only thing you can really do is build programs, big personal projects, open-source projects or industrial applications. It is a programming language after all. You might find yourself back in a class, perhaps you want to make a P2P messager app, you might find yourself right back to videos learning about P2P network algorithms, but that's normal.

Don't worry about the top comment, the newbies are just dominating the hivemind. They keep fobbing each other off with codecademy and I think people just leave them to it.

1

u/panda5303 Jan 27 '16

hey guys, I've been reading your comments and checking out the websites you've posted but I can't seem to find what I'm looking for. I'm taking a new online class at the local community college, it's a Software Design class which uses Visual Studio 2013. I have no prior experience with coding, I do however use Excel daily at work and understand formulas and have done a tiny bit of vba but that is it. So my issue is our class has no book, we only have a class website with notes from the instructor and I tried to email him and ask what type of coding we are doing so I could research it but he told me I didn't need to and to only reference the class notes. I'm ready to pull my hair out!!! I'd like to think of myself as a tech savvy quick learner but I don't know what to look for.

To give you an idea of what we have been doing so far it's just super basic coding - SetTitle("Demo 1")

SetForegroundColor(Color.White) SetBackgroundColor(Color.Blue)

DisplayLine("Hello World!") DisplayLine("Hello " & "World" & "!!!") sName = "Tyler DisplayLine(sName)

Do you guys know what type of coding this would be? What pages I should look at/terms to look up? Also in the current problem I am working on I am stuck on figuring out how to properly setup GetRandomNumber() where could I find examples? Thanks in advance for your help and sorry for the novel!

2

u/1337bacon Jan 27 '16

So you're working with Windows Forms.

Do you guys know what type of coding this would be?

not sure what are you asking here. DisplayLine is a method for diplaying the text between the parenthesis. sName is a variable.

GetRandomNumber, for this check Random() class.

What language are using? I've been working with C# for a few years now. You can pm me if you need any more info.

1

u/hontes Jan 27 '16

I've noticed in a lot of these newer online courses that it usually starts out very basic ("Hello World" type exercises) then becomes progressively harder and harder very quickly, missing a lot of nuances in the middle.

So in terms of level of difficulty, it usually goes something like:

Level 1, then 2, 3, 5, 10, 20, 50, 75, 100, after which you're expected to be a developer.

I think the levels should be more like this:

Level 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5...................... 99, 99, 99, 99, 99, 100, 100, 100, 100, 100

The best way to learn is really to dive in and work on a project (whether your own or somebody else's). For example, if you want to be a web developer, create a website. The caveat is that the website should be something extremely simple (for example, a basic static web page, not a social media site). The first projects you do will be horrible and it's okay. They're only for learning. They will also take a lot of time and that's okay, too. After you finish one basic static web page, you can create a site slightly harder than that (create another site with one or two extra features). And so on and so forth.

As far as StackOverflow or any other kind of forum, I do also find that some people are snarky or cranky especially if the questions have been asked repeatedly. I do get their point of view because these very basic questions are always asked but at the same time, a lot of beginners don't have the language or skills to ask questions properly so it is really important to be nice.

If anybody wants to be a web developer and has this same problem (know the basics but can't code), please PM me and I'll be happy to mentor or provide guidance and advice.

1

u/[deleted] Jan 27 '16

If anyone is interested Codewars.com is a great place to test your skills that you learned and apply them. I want to say there is a few thousand exercises on that site. Once I started learning the basics, I was able to learn a lot quicker using the site.

1

u/Aceflamez00 Jan 27 '16

The issue here is that people don't know what APi Frameworks are, so that's why they are limited to text only. If you want to do some cool shit with code learn how to incorporate APi frameworks into your code, better yet learn what APi's are. PS : E xternal libraries = APi Frameworks.

1

u/iCameToLearnSomeCode Jan 27 '16

One contributing factor to this problem is the artificial environment that online courses provide to students. Students are usually typing code into a web page that contains instructions and hints. This is not how real programming gets done. So when the course is over and it's time to use a real programming environment, students feel lost without the environment that they are accustomed to.

Any Youtube video by a 15 year old kid will solve this for you, I learned to set up a couple IDEs and do basic powershell commands before almost anything else, maybe I got lucky but most I have seen show you how to get the environment the instructor is working with and then build the project. I love game build videos for this reason often times the kid running it is younger than the language they are teaching so they remember their first time trying to learn a language and they show you everything from how to download the interpreter to how to move the game to your smart phone. While obviously not as helpful for getting you employed as your boss is probably not having you design crappy java games I found them to be great tools for bridging the gap between the ordered "enter this line of code" type instruction and building your own programs.

1

u/andre-lima Jan 27 '16

None of these courses teach programming logic.

I learned it by making RPGs using RPG Maker. Learning syntax is useless if you don't know the logic first.

For that, I usually sugest people learning Scratch before anything else: https://scratch.mit.edu/

1

u/popup20 Jan 28 '16

Thank you. I created a reddit account just to tell you that. Thank you so much for validating what a nightmare learning java has been.

1

u/clyzev1 Jan 28 '16

Read some books from O'Reilly.

I do not know if he did write something about Python.

But here must be beginners friendly books.

I really advice you to read books.

When i watch online courses it just doesn't stick in my head.

So try books. And code and read and code and read until you will be able to code more and more..

1

u/clyzev1 Jan 28 '16

Practise..

Practise making functions that do small things like searching for wifi etc.

Then make a bigger app like a reservation system then go bigger and bigger..

1

u/[deleted] Jan 27 '16

I don't agree with any of this. Taking a class can show you the simple crap about how to write code. Takes it out of context of how that code would fit into a functional program. Coding is practical. The best way to learn is find something you want to make and figure out how to do it. Doesn't matter if it sucks or if it's great. Code is never done and can always be improved. Most programs really aren't that complicated. Most programs have been broken up into smaller pieces so that they can be maintained, but more importantly so that each individual part can be tested to make sure they work when they build more complicated around them.

0

u/[deleted] Jan 27 '16

[deleted]

2

u/[deleted] Jan 27 '16

Yep. I started learning to program last year for Computer Science and put in tons of hours. When I first learned python I was completely lost and after a lot of stumbling and messing up, I'm here now and I'm pretty confident.

Learning a programming language is essentially learning how to use a hammer, saw, and other basics tools to build, but doesn't teach you how to build anything. You're going to have to build a lot of shitty tree houses and dog houses before you feel like you kinda got this.

What sucks is there is no way to do this unless you see other examples of dog houses or tree houses, but what is the equivalent of that in terms of coding?

I chose a reddit bot and used PRAW with python. It was fun and engaging for a beginner IMO.

0

u/[deleted] Jan 27 '16

[deleted]

→ More replies (1)

2

u/freakzilla149 Jan 27 '16

I haven't tried too many MOOCs but in my view MIT 601x is almost there. Add in maybe 3 more weeks of content which helps students to learn about actual development stuff like handling libraries, UI, understanding how to handle files etc. and it would be a very strong start to programming.

As it is, its still a very strong prep for a CS course.

1

u/edbluetooth Jan 27 '16

I learned python using Udacities CS101 python course.

granted I already knew C when I started it - but i thought that the scaling questions were excelent.

1

u/[deleted] Jan 28 '16

The problem is the quality of beginner resources touted on this board. They don't really teach you how to program. Codecademy is completely worthless, unless you have literally zero programming experience.

Absolutely! Thank you for responding.

0

u/[deleted] Jan 27 '16

[deleted]

0

u/[deleted] Jan 27 '16

[deleted]

4

u/[deleted] Jan 27 '16

That's just malicious coding for anyone who has to maintain the code. That would not fly in any professional development environment where code reviews happen.

Though I did work on a legacy project that had a 22000 line switch statement wrapped in a function called "doTheDonut". So I guess there is shit everywhere.

It's good for you though. Makes you realize what good code is as opposed to shit code.

4

u/reddilada Jan 27 '16

Eight thousand line switch within switch within switch ending with goto repeat for me. Actually there were loads of goto repeats and several goto skips and goto agains thrown in for good measure. And no structs. Structs just obfuscate.

There is nothing like living with a coding horror to teach you how not to do something.

0

u/[deleted] Jan 27 '16

[deleted]

1

u/at-work-account Jan 27 '16

Not an expert programmer here, but I know you want to stay in the zone but sometimes it's more important to step out of it while programming and modify your plan in accordance with what you've spent time implementing. Theres no point in being in the zone if it's not making you efficient as you could be. If you took more time out of the zone now you'll probably end up being able to manage your planning/mind in the zone once it becomes a part of your thought process.
You say you randomly diverge into features and such. Perhaps sitting down with a specific task in mind would help you. For example spending a few hours ONLY refactoring code and do nothing else. Take it one kind of task at a time if you can!

0

u/[deleted] Jan 27 '16

[deleted]

1

u/[deleted] Jan 28 '16

Just saying there needs to be more examples in tutorials and books. Not a tough concept. Not talking about confidence (I'm the founder of a multi-million dollar ecommerce company) so, no idea why you'd even say that.

0

u/[deleted] Jan 28 '16

[deleted]

1

u/[deleted] Jan 30 '16

I founded back in 1999, so fuck off.