r/learnprogramming • u/7forest • Feb 08 '19
Two mistakes that trap new programmers
Most aspiring programmers get trapped and fail to move forward. As a teacher, I get to observe how some programmers keep moving forward. Here's two signs you are trapped.
Trapped coders focus on anything but coding.
Trapped programmers love to debate which language or framework is best. They spend their time figuring out what to learn and end up learning nothing at all. So let me answer all your questions.
Learn Python.
But what if I need to learn C#?
Learn C# after.
Isn't Javascript the language of the future?
Learn Javascript after.
My developer friend told me I should learn C++ because all languages are based on it.
Learn C++ after.
New programmers fear they could be wasting time learning the "wrong language". Programming is the fastest industry in history. Good developers learn new languages and frameworks on a yearly basis. Three years from now, your knowledge will be outdated. If that scares you then find a different career.
Trapped coders following directions too well.
Trapped programmers follow tutorials like mindless robots. Copying pasting code doesn’t teach you anything. Imagine starting a python tutorial that taught you how to print “hello world”.
print(“hello world”)Most people copy/paste this and move on. If you were my student, I'd push you farther.
Change the code so it prints “howdy”.
Print two alerts. One that says “whats up?” and “take care”.
Continue with the tutorial (usually goes to variables). After a few problems, print “hi” from mental recall.
Since we probably encountered variables by now, what will the code print below? Why?
greeting = “howdy” print(greeting) print(“greeting”)Fix the code below so it prints “hello”.
Print(hello)
By the end of my exercises, you would have a strong idea of how print statements work. A simple line of code can create a myriad of problems. Most people brush past it only to get stuck in the future. I always recommend finding a school or mentor for guidance. If you can't do that, be proactive with your learning and keep at it.
Good luck!
140
u/TheChance Feb 08 '19
Most universities are teaching C++ or Java. Most aspiring game devs will be using C++ or C#.
I firmly believe that everybody should be working on two very different projects at once (one in your spare time and one for a living/school/etc.)
And I always advise people to learn Python, as well, but I suggest learning it as the “spare time” activity, because it’s the ubiquitous scripting language, and it’ll let you move on to algorithms and data structures and paradigms sort of in isolation. It divorces what you’re doing from the language itself in a way that lower-level languages just can’t.
If you’re approaching the first year or two from both ends, a C-style language by day and Python for hobby learning, you’ll also get a much clearer picture of how the moving parts fit together in a large application, and damn near every other tool you’ll ever use will look vaguely familiar.
But that’s my big thing. Maybe not everyone’s.
Edit:
New programmers fear they could be wasting time learning the "wrong language".
Tell them it’s like worrying about the right power tool for a beginner woodworker to learn first. Ludicrous concern. You’ll use them all eventually.
11
u/ReaperOverload Feb 09 '19
I'm currently learning C in university (and will most likely switch to Java next semester). I'm currently trying to learn webdev in my free time to 'expand my horizon' and wanted to learn Python after that - do you think it would be smarter to do Python first, and webdev later?
6
u/firecopy Feb 09 '19
Start with JavaScript for web development.
Most languages can be used for web development on the backend, but JavaScript is the language used by browsers (Chrome, Edge, Internet Explorer, Safari, FireFox, etc.) on the frontend.
If you want to learn web development and start with JavaScript, you can use both on the browser and your web server.
7
0
Feb 09 '19
[deleted]
5
u/TheChance Feb 09 '19
The advice most students need, but never get:
Programming languages are tools, not activities. You don’t “write Python,” you write a program in Python. Programming is the activity.
To the extent that there is one correct tool for the job, it’ll have to do with libraries and choosing not to reinvent the wheel. Hypothetically, if it’s a complete language, you could write Quake in it. Eventually.
Otherwise, just try to avoid using the wrong tools for a given job, rather than trying to figure out which tool is perfect.
10
u/squeamish_ossifrage Feb 09 '19
How do you find a good mentor?
14
u/StoicGrowth Feb 09 '19 edited Feb 09 '19
If you're real serious about it — because it's commitment on your part — here's a quick run down of possible ways, among others probably but I guarantee these work if you keep at it (any domain, any age, but we'll speak tech here).
First understand this one thing: why do some people 'mentor'? Because they just love it. They love the domain, they love the doing, they also love elevating others (if they're really smart about it they know it's how they elevate themselves in the best possible way too). So you're not asking, not only, it's an exchange. You come in with all the interest, the passion, the will to learn and make cool stuff (more on that below), and you dig deep so you ask real questions (don't judge that yourself, just be confident that a good student always asks good questions that people who know love to answer).
These aren't just words but tangible things.
You need to actually make stuff. Nobody wants to mentor an armchair reddit poster. You'll pick other people's interest when you actually make real things and encounter real problems; that's exciting to solve.
You need to show up. Ideally physically to meetups etc. Find people around you. This is your best pool of mentor candidates, these guys hang around where it's at. Also digitally of course, and research where your domain is happening (some stuff is mostly on Slack for instance, other things are typical IRC candidates, Discord is getting strong, there's always github because tickets, etc.) Be present, be active, in the heart of your domain's community. Just exist. Participate.
Now if you want to actually kill these two birds with one stone: OPEN SOURCE PROJECTS. There are reasons why everybody and their mother suggests that to newbies, and the above is just two among many.
It's almost guaranteed, I kid you not, that you'll find a mentor or mentor-like figures by the droves if you get active in a decently active open-source project. "Mentor" doesn't necessarily imply age: it's about skill. So you'll find "veterans" leading open-source projects, there are thousands of them with very valuable experience to share and a project to drive, often on their own time, so they would really benefit from a great apprentice, believe me. You just have to go out there and show up and talk and see what's what. It's a very social field / era.
Don't forget #1, we're here to make stuff, not teach or learn or be friends even if we do all these things on the way. There's this focus which entails great relationships in open-source: by talking with project leads and really really trying to understand best what they need and seek from you and doing just that, you'll inevitably become someone people want to help (help you help them help the project). It's always about the work. When you've proven a good learner, maybe a good coder already for some things, you'll slowly become part of the project, and your questions will be less about learning and more about improving things: you'll be light-years ahead of where you are now, and this can be next summer.
Just my 2 cts mate, best of luck to you.
TL:DR: Make stuff, show up, ideally both at once by joining an open-source project (bonus points if the leads are actually living nearby you so you can meetup or whatever on occasion). The mentor-s will appear magically because you'll be obvious mentee-material. ;)
4
u/strikingLoo Feb 09 '19
Awesome write up! Would give you gold if I could. As a side question, what projects would you recommend for this?
2
u/squeamish_ossifrage Feb 10 '19
dude thank you so much for this answer. I really appreciate such a detailed response. I am totally dedicated and willing to put in as much effort as I can.
How do I get involved in an open source project? I've been spending a lot of time watching Ue4 streams on twitch and watching tutorials, but so far I have yet to find someone I can just haphazard throw my questions at when I get stuck on a tough problem or want to do something that there is no tutorial for. Of course I'm still just learning and trying to go through the bootcamp aspect of learning the engine as well as messing around and just making shit with what I learn.
Hopefully I can make some connections and get a mentor in the near future though finding one nearby is gonna be tough as I'm in a pretty rural area, but traveling a couple hours isnt out of the question.
Again thanks for such a great response.
2
u/StoicGrowth Feb 11 '19 edited Feb 11 '19
You're very welcome!
You seem to have a good mindset about it, that's the way to go imho.
There's not much to add, I'm trying to write something up but it's rambling, nothing you can't read in a ton of articles / books out there. So I'll just take 1 angle.
Passion. Think of it in their shoes: you're doing this work on some project, for instance a music player, and here comes "this guy". Passionnate, newbie but dedicated and learning "averagely or better" (brain works). They're humble (try to understand more than criticize), they ask questions (hey why do this that way and not like that? what's this file for?) which, as they get better, help us think better of the project. In so many words, "fresh blood", of the best kind. Like in the movies — only the babies we make are software and there's little physical touch involved beyond testing phones, right? :p
Well I can tell you that as long as he sticks around, I'll be so happy to see that guy log in to our slack or forum or git every day and essentially hand him over some work and explain whatever he needs to know to do it (and more! don't we all love talking about the things we know....), hoping that eventually we're just partners on the project more than trainer/trainee.
So have this long-term vision, it's always solid even when it doesn't pan out. Gives substance to you coming around, "not here just as a tourist, I love the project and I may stick around if things go well" — you never really say that but it's implied in the way you talk, plan things, etc.
You know, in free stuff where nobody gets paid (hobbies, open source, etc), I've seen people like this over and over. Awesome new fresh blood out of nowhere. Anecdotally for me it's like 1 out of 100 or less that becomes an actual mentee. I've been mentored like that too, people just love the doing, the passion, and the showing up always, always, always. We would always prefer a "normal" guy always there, than an elusive genius-star we can't rely on.
It's presence + passion for this specific thing we're doing. This mix is a powerful storm that turns empty fields into populated citadels.
So I hope you got the essence of it. We're all in this together, mentor/mentee only makes sense —hell the whole freaking idea of education, formal and informal— because we're all in this civ together trying to build it for ourselves and the next gen. So you take part in that, not asking, but proudly contributing you know? This time, this year, you're the newbie, but you're no less valuable! Trust that. Be freaking bold in offering your services and interest. Go do the things you want to do and be 100% sure you'll get there.
And find that great project you just feel passionate about. Maybe a music player. Maybe you're more serious and love containers. Maybe you're artsy just want to improve colors in some terminal app or re-design a website you love... Idk, whatever turns you on, man. What would you want to leave as a legacy to this world, as a first feat in your coding career? What makes sense now, for you, to dedicate hours?
Just find the people behind the project and talk. First rule of showing up is to actually make contact once.
Also, once you've found a possible home, read all the code from that project. It'll take hours, days, months, whatever. Just be methodical and ordered about it (ask!) and read. it. all. It's better if the code is well written (for your own sake as a learning dev) but the point here is to really understand how the software works. You'll be working on it, or copying it, so you need to do that at some point. You don't even need permission to do it if it's open source, you can read them all right now. And don't be shy about asking questions (wherever, forum, reddit, slack, discord, IRC...), just quote the code or files and tell what you understand, what you don't (just show that you've worked already, not asking for a shortcut, but avoid long write ups, be concise and to the point).
People will see that you have done the work. That they don't need to hand hold you, which makes it all the more pleasant to help you overcome obstacles. We always root for a good challenger.
Last thing: it's OK to voice that you're looking for advice, for coaching (a less loaded way of saying mentor, it's less intimidating socially). Just don't be needy about it (it's not an excuse or justification for your mistakes or for not trying to learn anyway!), simply honest that you want to learn the job.
You can go about it directly, like: "hey thanks so much for explaining this to me. Still learning, so is it OK if I ask you about the project sometimes? I'll make sure to respect your time, I'd really appreciate it."
Eventually you guys have a budding friendship / coaching vibe going on (it's all based on the fact that you actually work together on something, especially unpaid to do so, trenches together and all that, it can't be faked). It's about as good as mentorship gets in real life 99% of the time. The proverbial mentor figure is a rare, rare thing that often requires a whole other level of commitment, and not something we all wish for truth be told.
Oh, last thing (for real). A funnily meta (and crazy smart) way to begin is to write documentation for the project. It forces you to really understand the code to some level, so it's a great exercise, and a stupidly good "excuse" to ask as many questions as you want. And it's grunt work, and we value people who do the grunt work and do it well.
And I'm rambling. Sorry. Hope there's some perspective that helps. I'm mentoring you, right here right now, if you hadn't noticed, on how to best approach opened projects from my experience. That's a win for you! Now go do it again by asking questions about code to the people that wrote it! ;-)
→ More replies (1)2
u/squeamish_ossifrage Feb 12 '19
Thank you thank you! This is very cool, very helpful! In some ways I think I'm already following a portion of this advice; I've been really watching people on the twitch channel and talking to them about their projects and asking them to show me BP's and how they work and little by little I'm gleaning more information about the system. I've also joined some of the notable discords, though I haven't spent much time in chat there. I also have been streaming myself with a "learning" tag so anyone who is so inclined may jump in and offer assistance which has been great so far. Compound that with lots of tutorials I feel like it's a good crash course, though there really is no substitute for time & experience. So whether I feel I'm getting something or not I know there is an incredible expanse ahead of me before I can get to anything that remotely resembles a comfortable spot. But I will heed your advice and I will keep asking do whatever I can to learn as much as possible. And in doing so I will hopefully find some sort of mentorship which fits my goals.. because I do have a lot of audacious goals in mind for my career in game design, so if I work hard and meet the right people I truly believe I can accomplish them.
Thanks again for all the advice you've offered me so far
→ More replies (3)1
u/squeamish_ossifrage Feb 09 '19
Follow up question: you could counteract the first statement by saying "pick one language and stick to it" is there as simple a fix for the second problem?
2
118
u/tekneqz Feb 08 '19
Why python?
75
u/thezennihilist Feb 08 '19 edited Feb 09 '19
Really just pick any language and learn to use fundamental concepts like arrays, loops, functions, &c in that language.
Python is a great first language, it's easy to get started, it has a lot of great and useful packages, and you get high level concepts like classes/objects, iterators, even closures and higher-order functions if you really want to stretch your theory muscles.
C and C++ can be a tougher place to start, but even they aren't too bad to start with if you don't get too fancy with memory management or newer C++ features.
C is close to my heart as my first language, and it's also what I use at work. It can take some studying to really understand what happens to C code between writing it and running it but that knowledge is invaluable, IMO.
I'd recommend python and/or C but it just depends on what you want to build, really. If you want to be a front end designer then go master javascript, html, and css, and maybe learn python as a handy scripting tool.
12
u/lead999x Feb 08 '19 edited Feb 09 '19
I agree with you, C definitely is worth learning. I'm a hobby-only programmer and I started with C++98 and then moved on to modern C++, C, Rust, and D. And I'm trying to get into F# and .net. I feel like some of these languages just require more patience to learn and make things with.
3
u/thezennihilist Feb 09 '19
I'm having a blast with Rust so far. Even just the crate system feels like a huge step up from C's archaic #include nonsense.
→ More replies (1)8
u/khante Feb 09 '19
That is the thing. Almost all universities here in India start CS programming with C language. There is enough historical data out there to tell that people who start with C/C++ do well. At this point it is pretty much a circlejerk arguement as to which language shoudl be the first and everyone is heavily influenced by what they experienced imo
10
u/don_one Feb 08 '19
Personally I think C is a better start.
10
Feb 09 '19
The only real issue is someone can get hung up on the clunky things like C style strings or compiling code.
Personally I like JavaScript for a first taste simply because it doesn't require anything more than what you already have, a browser. Don't even need a text editor if you just want to paste shit into the dev console.
4
u/gyroda Feb 09 '19
C is a good start if you're trying to bece a well rounded programmer/CS person and you're willing to put a lot of effort in. It's great for taught courses where you've "trapped" someone in to a structured plan of learning because it helps inform things like computer architecture and how compilers work and other fundamentals. I recommend it for any course where students have opted in.
But for a brief "I just want to see if this is for me" or "introduce the masses to programming" python let's you get to some of the joys of programming easier. It's let's you build faster and have something to show for it easier. This makes it a very good "hook" to see if people might be interested in studying it further. I'd also put web development in here, despite my dislike of JS, because of the ease of getting something graphical up and running in a single, initial sitting.
2
u/strikingLoo Feb 09 '19
Bit out of topic but, what kind of project do you do where you get to use C often?
4
u/thezennihilist Feb 09 '19
I write firmware for a line of automated chemical sensor instruments. The hardware I work on is a handful of microchips on different circuit boards that control things like motors, heaters, and various sensors.
2
u/Yithar Feb 09 '19
I'd argue C is a better start. I'd also argue that Python teaches you things that don't transfer to other languages well.
99
u/ctb33391 Feb 08 '19
It's an easy language to learn
→ More replies (27)68
u/PC__LOAD__LETTER Feb 08 '19
So’s Ruby. So’s JS.
The advice should be “just pick a language.” Not “pick Python”.
26
Feb 09 '19
JS is not for beginners. It's messy, behaves weird, and is hard to write clean code. An experienced programmer can deal with these things, but a beginner will just end up developing bad habits that will be hard to unlearn.
9
u/Yithar Feb 09 '19
JS is not for beginners. It's messy, behaves weird, and is hard to write clean code. An experienced programmer can deal with these things, but a beginner will just end up developing bad habits that will be hard to unlearn.
Honestly, it's hard to argue with what you say.
TFW my co-worker graduated from a coding bootcamp that only taught Javascript and it's hard to teach her good habits. We use Typescript at work for our frontend, but she still has a lot of bad habits (using
anya lot,forEachinstead ofmap/filter/reduce, etc.).→ More replies (9)3
u/gyroda Feb 09 '19
I don't disagree, the only reason I might recommend it is because web development let's you get graphical things done quickly and everyone knows what a website is, so it can be more exciting than "look, I made a text thing".
Great for getting kids interested in the field, but I agree that JS is awful and that in a structured course it should come later.
54
Feb 08 '19
Just pick a language
Loving me some paradox of choice. And thats if beginners can't even make an educated decision such as "my language should be OOP".
15
u/PC__LOAD__LETTER Feb 09 '19
Anyone can google “top 5 programming languages for beginners” and just pick one.
The important piece of information is that language doesn’t really matter for learning. Not “Learn Python”.
9
18
u/At-LowDeSu Feb 09 '19
the point is that they were already planning on picking a language. So saying to 'pick a language' doesn't really help.
I think they should learn HTML/CSS/Javascript, but his point wasn't to 'learn python'. It was to learn a language.
→ More replies (2)13
34
u/antiproton Feb 08 '19
The advice should be “just pick a language.” Not “pick Python”.
No. The advice is good. Because "Just pick a language" doesn't resolve the question of "which language is best". Beginners need to learn how to code. The best language is the language that teaches you how to think like a coder.
Ruby doesn't have nearly the resources that Python does and Javascript is an "easy learn difficult to master" situation.
Only people who already know how to code suggest absolute beginners learn things like Ruby or JS.
→ More replies (4)17
5
Feb 09 '19
no, having a specific suggestion gets past the problem, which is indecision
→ More replies (1)4
u/Moikle Feb 09 '19
JavaScript is no way as easy to learn as python. I think you misunderstand WHY python is so easy to learn for someone who has never programmed before
6
u/mehum Feb 09 '19
If you know what you want to learn then generic advice is obviously useless, e.g. embedded => C, web => JS. If you just want to learn programming, Python is the most logical place to start. General purpose, most popular, lots of learning resources.
9
u/PC__LOAD__LETTER Feb 09 '19
JavaScript is the most popular, source. And plus, OPs entire point was that language doesn’t matter, not that Python is superior. That’s exactly the type of discussion he was arguing against.
22
u/givetonature Feb 08 '19
lol at JS. Pick a language that has classes, polymorphism, and inheritance.
57
u/PC__LOAD__LETTER Feb 08 '19
This is exactly the kind of analysis-paralysis circlejerkery that OP was warning against. It’s a fine language for learning. You can do a lot with it. End of story.
→ More replies (16)→ More replies (7)5
u/lannisterstark Feb 09 '19
Ah yes, the elitism. I'm surprised it didn't get posted sooner.
→ More replies (1)9
u/I_am_a_regular_guy Feb 09 '19
I think its more the idea that classes, polymorphism and inheritance are fundamental programming concepts, and should ideally be a part of the first language a new programmer delves into. I don't think it has anything to do with elitism and just more to do with what language actually benefits the learner the most as their first language.
→ More replies (4)2
u/Ran4 Feb 09 '19
Both ruby and js is much more inconsistent and contains more weirdity.
→ More replies (1)1
u/luc1dmach1n3 Feb 09 '19
If you go strictly with picking python you end up also breaking the "following the rules" rule.
1
1
u/musclecard54 Feb 09 '19
Idk. I mean sure they’re not all that different but the python community is geared towards beginners, there are a ton of beginner friendly resources for learning Python.
There are for most languages anyway, but there’s probably the most with Python, and sometimes you gotta try a few before you find one that meshes with your learning style.
It’s a fair suggestion, and it’s better than the “start with c++ cuz it’ll make every other language easy to learn afterwards” you get from some people.
→ More replies (1)1
u/toastedstapler Feb 09 '19
it's not like there's a definitive answer, python will do just fine. so will the others. op's suggestion isn't wrong
how does a beginner know which language to pick? being told one helps a lot
1
u/firecopy Feb 09 '19
From someone that has used all three, Python is the easiest to learn compared to Ruby and JS.
So if you do not know what you want to learn, might as well choose Python.
39
u/Barrucadu Feb 08 '19
Because it doesn't really matter what you start with, any reasonably well-documented language would do, and you'll be learning more than one over time anyway.
→ More replies (29)-3
u/JBlitzen Feb 08 '19
Because it doesn't matter what language you start with, so it's vital that you start with Python and not anything else.
...wait, what?
20
u/johnmollb Feb 08 '19
OP wasn't trying to make the point that learning python as a first step is critical, they were just trying to make the point that you shouldn't get caught up in deciding what language to learn. You should just start learning one.
→ More replies (6)14
13
u/Barrucadu Feb 08 '19
Are you intentionally missing the point of the OP?
Beginners often spend a lot of time agonising over what language to start with, but it doesn't matter in the long run. By saying "start with Python", that decision is made for them. If you say "just pick a language!", then they'll waste time trying to decide on the *best* starting language.
→ More replies (5)5
13
u/Like1OngoingOrgasm Feb 08 '19
It's designed to be extremely readable. There's tons of documentation and books to get started, and a near infinite amount of libraries to do whatever you want.
11
u/Sekret_One Feb 08 '19
Plainly, if you don't already have the answer then find that answer after- you're not going to have any context to weigh the arguments.
It's a good place to start. You can do a whole lot with it. Don't over think it.
2
u/ivix Feb 09 '19
This is the correct explanation.
If you aren't sure which one, learn python.
If you start with any other language, you need a good reason for doing so.
2
Feb 09 '19
Here are my reasons:
Portable, available on almost any platform you could already have installed.
Well documented, and tons of help available on stackexchange
1
u/yaxamie Feb 09 '19
Because, regardless of what you use professionally, you'll end up using to to reformat documents, clean up directories, ping webservers, or do whatever random little tasks you occasionally need to automate.
1
u/AlaskanIceWater Feb 09 '19
Python was my first language and JS my second. It's syntax and the way it behaves is a bit easier to understand from a logical point. Python is very logical, it basically behaves like it reads. JS too somewhat, but it's a bit more complicated.
1
u/lanzaio Feb 09 '19
Abundance of learning materials. The language isn't really important. Getting started and learning at a pace that keeps people interested is what's important.
1
Feb 09 '19
I would actually avoid it as a language for a new person because its missing various constructs like a for loop as one.
Note: python does foreach loops not for loops.
1
u/RedditLocked Feb 09 '19
did you not read like the whole paragraph about why? Because it doesnt matter. But programmers get analysis paralysis from that statement. So he is just giving you one. Just take it. No ifs and buts
1
u/tekneqz Feb 09 '19
Did you not read it? It literally just says learn python. Why though, best for jobs? No mention of that. Because it’s easy? So is JavaScript. So is java and C#, and both seem better for jobs. Learn python because it pays the most? No mention of that. How about you learn to think deeper.
1
u/RedditLocked Feb 09 '19
Sorry I came a little hostile before. What I mean is it's not about the whys and whats. Its just about picking one language. And beginners sometimes just need to be told what to use. Thats why OP recommended Python. No reason other than to just pick something for someone to get started with. Thats what I understood from the Trapped Coders paragraph
1
u/i8beef Feb 09 '19
Because this is posted to a programming subreddit and it's bound to ruffle feathers.
0
Feb 09 '19
[deleted]
1
Feb 09 '19
I mean, scratch really might be the best first language. Not for long, but maybe 30-40 hours, so you can grasp some concepts without dealing with syntax.
0
Feb 08 '19
[deleted]
3
u/KaladinRahl Feb 09 '19
Not sure why you're being downvoted. This is correct advice. If you are planning on going into web dev specifically you should learn JavaScript. Period. Followed by C# or Java. Python doesn't come close in regards to web dev. If you want to get into data science, you learn python first.
2
u/Yithar Feb 09 '19
Take my upvote. Not sure why you're being downvoted.
Javascript is quirky, but it's far more useful on the frontend as the language of the web. And I think C# or Java are far more useful on the backend side. You should learn things that you actually have a use for.
18
u/CantaloupeCamper Feb 08 '19
I feel like you can start with any of those languages ... the important thing is to get your time in before moving on to the others.
7
u/dtorssegment Feb 09 '19
My first language was C, and I think that in the long run, it was better. My friends who have learned python first found it difficult to understand memory management, the type system, and pointers. They also found it difficult to write programs without all the easy data structures provided by python. I think C is very good in that it has few features compared to Python and Java. Going from C or Java to Python is nice because you get to think of programming in a higher level way. Though, I am biased because I really like systems and hardware.
I do agree that the copy and paste attitude is detrimental. It is difficult to write programs when you suddenly do not have the structure and hints provided by tutorials.
I think, however, that tutorials are not a great way to learn. It’s better to have a goal like, “I’m going to implement a parsing calculator” than “I’m going to do 8 weeks of this online lecture”.
→ More replies (1)1
Feb 10 '19
I think, however, that tutorials are not a great way to learn. It’s better to have a goal like, “I’m going to implement a parsing calculator” than “I’m going to do 8 weeks of this online lecture”.
Why do you think that?
For example, I want to learn Java so I can build an app. I'm already familiar with C and I've been programming for around a year now, so I'm quite familiar with the basics of programming.
But I don't know Java. So my plan is to complete a high-quality 12 week MOOC and only then will I build an app. Of course there's much more to learn before I do that, but taking only one language, in this case Java, into account, I feel it's better to go through a tutorial before jumping into projects.
68
u/desrtfx Feb 08 '19 edited Feb 08 '19
You are attacking the problem from the completely wrong end.
Instead of "LEARN PYTHON", any good teacher would have said "LEARN PROGRAMMING".
Since you are so focused on the programming language, you completely forget that the actual code is only the very last step in a long journey.
Far more important than whatever you have listed up there is:
Learn problem solving - solve problems in a methodical way
Learn to break down problems into atomic subproblems
Learn abstract/algorithmic thinking
Learn to describe solutions with algorithms - language independent
Learn to convert algorithms into code - no matter what programming language you learn
Nearly every programming tutorial is about "learn language x", "learn framework Y", etc, but hardly any is about "learn programming" - your elaborate from above is no exception to that rule.
Obviously, you are also teaching your students to become "copy-paste code monkeys" instead of "real programmers". It also seems that you have zero real world practical experience, along with not really much teaching experience.
I've been teaching over 15 years, and have written plenty courses (including a couple for the European Union), besides that I've been programming as a professional for over 30 years.
While your advice is not the most destructive we've had here, it is definitely neither good advice.
98
u/Suulace Feb 08 '19
When I was new to coding, advice such as "learn problem solving" or "learn algorithmic thinking" was even vaguer than "learn programming." and didn't help me. It made my "what I don't know" anxiety even worse.
Learning an actual language that I could wrap my head around from the beginning gave me those skills along the way, which I transferred to other languages later.
23
u/TheChance Feb 08 '19
The advice should be, “Programming languages are tools, not activities. Programming is the activity.”
3
19
u/matter213 Feb 09 '19
I'm genuinely interested in how a curriculum like yours would be set out. Although it sounds like a great concept I have never seen a university program that is structured like this because frankly it sounds very vague and I feel that many students will become lost.
When you first teach someone how to play basketball you should teach them how to dribble, and in every 101 computer science course that I know of you learn how to print "hello world" (in some language).
2
u/desrtfx Feb 11 '19
I have not forgotten you. I am currently in the stage of collecting some resources and will come back as soon as I have something presentable. Might take a week or two, though.
3
u/michael0x2a Feb 09 '19 edited Feb 09 '19
One common tactic is to structure your course so you spend the bare minimum amount of time teaching details about the programming language and instead prioritize teaching application/problem-solving instead.
For example, you wouldn't have a lesson where you just say say "here's a for loop, here's how they work". It's a reasonable starting point -- but it'd be far superior to move on as quickly as possible to the more general concept of iteration instead.
I personally like doing this by walking through lots of practice problems. For example, one category of questions I like is to use loops to print out moderately complex n x m ASCII patterns. You can weave in lots of mini-lessons while walking through those sorts of problems: how to write nested loops, how to decompose problems (e.g. start by printing out a specific line with hard-coded numbers and steadily generalize to tackle the entire grid), how to combine basic algebra with code...
And of course, have the students do plenty of practice. (Which, as a side-effect, will make them more comfortable using whatever programming language I'm using to teach the class, but whatever.)
Anyways, the insight is that it doesn't really matter which programming language you use to teach this, so long as it has a relatively simple way of doing iteration. Java, Python, C++, JavaScript, whatever... The goal is to teach about the general concept of iteration, and really any mainstream programming language will do.
Of course, depending on your teaching style and your goals, your lessons might be pretty intertwined with whatever programming language you're using, or they might end up being quite separate. For example, I personally like to intertwine the two at the intro level: I think beginners benefit from having tight feedback loops. I then gradually switch to using more diagrams, flowcharts, and pseudocode and trust that the students have mastered the language well enough to start connecting the high level ideas to code on their own.
I could see somebody with a different teaching style approaching this quite differently though: maybe they want to have students start consciously reasoning about algorithms from day 1 and so deemphasize or defer actually writing code in favor of more general problem-solving exercises.
Or alternatively, you could perhaps start by teaching one language then hard-switch in the middle of the semester/after a semester to a radically different language and leave it mostly up to the students to self-teach and catch up -- basically, you force them to figure out how to generalize what they already know. I could also see this working with certain types of students.
I have never seen a university program that is structured like this
It's quite possible that your teacher may have actually taught you in this sort of way without you noticing.
At a superficial level, it can be a little hard to distinguish between a poorly-taught class and a well-taught one -- they're both going to have a lesson about loops at some point, for example.
The main difference is ultimately rooted in factors like what end goal and learning objectives the teacher has, the level of emphasis and time that's given to different topics, the number and difficulty of exercises/homework students are made to do (and the tempo of the practice itself), the prep-work and foreshadowing you do before the lesson itself, the execution of the pedagogy itself...
For example, suppose you're teaching Java or C++. To what extent is it correct teach students about the syntax of for loops? Obviously, you need to teach the basics -- but is it worth spending the time to teach students that you can write crazy loops that look like this:
for (int a = 0, b = 3000; a < 2*b; a++, b -= 3)? I think probably not -- that sort of knowledge is completely useless.2
Feb 09 '19
It's kind of funny. I did terribly in my only programming class in college, Java. We spent the entire time just learning Java and I just couldn't really grasp any of it. Years later I ended up self studying to be a programmer which only took a few months. I didn't struggle the second time around because I got a degree in math.
Writing proofs requires you to really get in touch with many of the core concepts that programming uses. Proofs don't have compilers or runtimes to tell you when you screwed up either, so you really have to understand it.
1
u/wheatless Feb 09 '19
Yea it definitely seems to vague. When you teach abstract theory and eschew practical application, students will (perhaps unsurprisingly) learn abstract theory and have no idea how to apply it. Then they'll forget the theory because they haven't had any way to use it. Even people who have been teaching for the longest time seem to forget this for some reason.
Long-term learning means connecting concepts. Connecting concepts to each other and, most importantly, connecting them to reality (where the student spends most of their life).
3
Feb 09 '19 edited Feb 09 '19
I'm starting to teach myself to code, and what you're referring to has honestly been my biggest struggle. I'm able to read guides and watch videos. I can pick up the language being taught reasonably well, and I don't struggle to follow along with the guides to solve simple problems. But it seems like there's very little out there to teach me how to apply these simple concepts to complex, real-world problems that I will actually encounter. Or even practice material of gradually-increasing difficulty to make me think harder and apply the concepts better. I look at code that my company uses, and it's like a foreign language where I know some of the vocabulary, but not the grammar or the overall meaning. It's been very discouraging, and I keep hitting the end of available online guidance before I'm really able to grow my understanding.
So since you seem to be one of the few that has identified my actual problem, and have a good deal of experience to go with it... What would you recommend that I do to actually learn these real-world problem-solving skills? If it helps at all, I'm currently in an IT-lite kind of job (mostly using proprietary software, with some very limited and template-based actual coding), trying to move in to a more technical job at my company. I have some access to outside learning-center online classes paid for by my employer, if I request and justify the expense. I'm also willing to pay some out of my own pocket, if needed, but going back to school and earning an entire degree on my dime isn't an option. The languages most related to my job, and thus easiest to justify, are VBA and SQL, though I'm also open to Python or really any other language for general learning purposes. Even just a guide that teaches the problem-solving better would be a godsend.
Thanks in advance if you're able to respond.
2
u/p1-o2 Feb 09 '19 edited Feb 09 '19
There are lots of good services out there which are focused on these skills. Destroy All Software is the one I typically recommend to people. I know that's kind of a terse answer but DAS really is just a library of lessons and examples of those real-world problems you're asking for.
1
1
1
u/Python4fun Feb 09 '19
I'd disagree about not being good advice. Your basis of learning programming is a great thing, but unless you are in a structured program it is odd and difficult for someone without some idea of how to use code to understand how to approach the more abstract things. This is why in a college environment you will learn the basics of what is an algorithm (make a sandwich trope) and then start into a language so that you have some understanding to build with as you move from simple to more complex problems to solve and move into data structures and complex algorithms.
→ More replies (4)1
u/AiexReddit Feb 09 '19
Yeah OPs post isnt perfect but this kind of abstract advice was the same kind of thing that made it hard to grasp CS as practical tool as a young uni student many years ago. "learn programming" as language agnostic advice sounds obvious to me now but wasnt the right way of getting us clueless youngsters on board at the beginning. setting the "python" specific part aside, id bank on OPs method producing more successful programming students in the long run.
1
51
u/kjdflkas Feb 08 '19
This sounds like it was written by someone who just learned how to print "hello world" in python and now considers themselves a programming guru.
18
6
u/Tyraniboah89 Feb 08 '19
This is good advice for me personally. My computer science 101 class covers C++, but I’m really enjoying messing around in Python too
7
u/just_give_me_a_name Feb 08 '19
It seems that the major gripe with this post is "Learn python" as a hard and fast rule.
If you don't know what you want to do; mobile, web, firmware, etc, pick up any language. Learn what you need after.
This sub is about learning programming, not necessarily about making career choices.
7
Feb 08 '19
These are two valid points but your take is a little strange.
First: the language of your choice does not really matter as long as you stick with it and try to do actual stuff with it.
Haskell? JS? Standard ML? You name it, if you like it, go for it, but stick with it.
Language choice for learning does not really matter. If you know how to code, you can quickly learn other languages and paradigms. If you want your first language to already be a good fit for a first job, you should read up on what languages are used for which kind of projects and in which companies. Either way: stick with your choice
The second part should be natural: if you do not have the base curiosity to try stuff out with your code, and fiddle with it - have the hacker in you - then yeah... maybe programming is not for you.
7
u/phxrocker Feb 08 '19
This is great advice. Everything I know in programming is self taught. Once I formed the habit to T-Y-P-E out everything and then play (break it, put it back together, achieve same results through a different method) with the concept I just learned, my learning accelerated 10-fold.
1
u/squeamish_ossifrage Feb 09 '19
i saved this comment. gold worthy.
2
2
u/knotUhRobot Feb 09 '19
I've grown up struggling and now when I have some success I get bored. It's like life isn't fun without challenging myself. I think I'll really love this continued education.
2
u/I_dislike_Nick_Cage Feb 09 '19
My uni teaches JavaScript in their "Intro into programming" as a first language.
3
2
u/Roly__Poly__ Feb 09 '19
In dance music production people often discuss best/etc when the whole point is to just finish the god damn track and make sure its enjoyable when its done.
2
u/theguy2108 Feb 09 '19
This is true for learning almost anything, don't let yourself get distracted and focus on working hard and try to understand and experiment with a solution rather than memorising it.
2
u/Headpuncher Feb 09 '19
This is exactly the sort of opinionated trash this sub does not need.
My advice, don't pick a language, don't pick an opinion; pick a career.
Pay attention to where you are. Where I live there are zero jobs with Python, none.
So, pick a career, look at what languages are being used in those careers (by reading job ads) and learn that.
3
u/XaMbSc Feb 09 '19
That's the only sound and realistic advice on this thread. Being aligned with what is needed is extremely important if you're looking to get a job. Worth mentioning is that knowing a programming language will not land you a job. You'll need to learn other tools as well.
2
20
u/override_acid Feb 08 '19
What a flying mess of BS! If that's the way you teach, I pity your students.
C#, Java, Ruby, JavaSript, etc are just as good as beginner languages as Python. Your "Start with Python" is just the modern age version of "Start with BASIC". - Start with the language you *want*/*need* to learn.
If you haven't yet realized, the special structure of loops in Python makes it quite difficult to translate them to other languages. Also the quite unique way that Python handles OO doesn't really ease the transition to other languages.
While what you are saying about modifying the code is not bad, but just doing the same over and over with different texts has zero effect. It is important to try other things, not just plainly repeat the same. It is important to leave the comfort zone when learning, not to stay in it.
Whoever upvoted that crap has no clue about programming, nor about learning to program.
16
u/looksLikeImOnTop Feb 08 '19
I would disagree. I do agree that starting language doesn't matter much, and since it doesn't matter, I think the recommendation for Python is okay. Yes, there are some growing pains when you learn your second language, but you would have that with any language you picked as a first. Javascripts complete lack of object orientation will make an OO language a completely new beast. Not having the range expressions or 'end' keywords from ruby will probably throw people off on their second language. C# is fairly run of the mill, but going from C# to Python or Ruby will also be quite a transition.
And for your second point, I think it's clear he's targeting people with no experience actually writing code (off the top of their head that is). Their comfort zone is copy and pasting. Having them try to evaluate code in their head and figure out why it isn't working, even with very simple code, is out of their comfort zone. Obviously he isn't going to have them play in the same sandbox forever. I've found this kind of repetition is necessary at times. Not for all, but I've taught some people basics of coding, and within 10 minutes of learning print "hello world" they aren't able to reproduce it on their own.
So while I do think his post isn't the end all be all for how to learn programming (definitely isn't) I think calling it a flying mess of BS was a pretty harsh judgment of it.
6
u/razibog Feb 08 '19
No, besides from Ruby they are really not. A beginner shouldn't bother themselves with syntax but try to describe the problem as close to his natural language as possible. After when they start to grasp critical thinking and computational thinking, they should be able to learn any language fairly fast. Granted it's not from a different paradigm, OO -> Functional.
Are you speaking from experience in teaching?
2
u/lead999x Feb 09 '19 edited Feb 09 '19
I was a non-CS major in college and my Into to CS class taught Scheme/Racket so even functional languages CAN be used to teach programming and CS. And while I had already been programming as a hobby for a while, I still took away a lot from that class since I'd never used a functional language before.
2
u/razibog Feb 09 '19
Ah yes, I wholeheartedly agree with that, what I meant was: it's easier to switch from Python to Java as from Python to Clojure. I learned a heck of a lot when I made some projects in Clojure!
→ More replies (1)1
Feb 09 '19
C#, Java, Ruby, JavaSript, etc are just as good as beginner languages as Python.
Nope. C# is great for enterprise apps but bogs down beginners with too much administration. Java is little different. Javascript is just too weird in its inheritance mechanism. Try explaining to a beginner why 'this' isn't what you think it should be.
And students don't 'need' to learn any particular language and don't know what they want to learn.
3
u/ReceivePoetry Feb 08 '19
Learn any language. Then learn some others. You don't need to start with python. Don't listen to people who ever tell you that you must without a doubt with this only this one language because it's the most important to learn first. Because there isn't a designated first language. Learn the one that interests you and is learnable in a way that works for you.
3
Feb 09 '19
1: There is no real wrong answer for a 'good' mid level programming language. Every one of them has quirks in their favor and ones that work against it. C is hands down the most versatile language on the market, even if it's dated, and will teach you basically everything there is to know about mid level coding languages. The flip side? It's also got the most difficult learning curve. Arrays and pointers will piss you off, and many mid-level languages do not even have them, and to the novice user, concepts like memory allocation are probably going to be wasted.
And on the flip side you have a language like Python which is easy to pick up, but lacks a lot of the nuance of other languages and encourages users to take certain things for granted. It's a lot easier to pick up bad programming habits with Python as opposed to a language like C or C# or C++ because those languages hold nothing back and force you to think about what you're doing more.
There's no real wrong answer to what language you should start with. They all cut both directions, and what makes the average person recommend one first is the simple fact that they themselves started there. Unless they had a shitty time learning the language, they're probably going to recommend what they're familiar with.
2: There's no reason to not learn one of the simpler languages on the fly. Languages like HTML and Javascript are a sufficient abstraction from mid level code and it's just useful to have at least a cursory understanding of how they work.
1
u/Python4fun Feb 09 '19
That being said, I think there is value in just going with one language and not worrying which it is (why not let somebody else tell me at that?)
2
u/Taha_TM Feb 08 '19
As a uni student, that’s never been taught any language other then html (I know it ain’t classed as a language by most) the way this person id learn the most. The way I learn the most is using Udacity what I know is from them. Python was a completely new language to me and I learnt it on my own and a help of a friend, in no way shape or form am I even out of the newb section of python but I know the basics pretty well that I’ve completed a full assignment based off python creating a bank system
1
u/kamomil Feb 09 '19
I learned BASIC. Did I learn the wrong language?
3
u/greebo42 Feb 09 '19
yeah I did too.
but that was a while ago, wasn't the wrong language for the TRS-80! :)
1
u/TarHeelActuary Feb 09 '19
This happened to me for so long. I'm more into statistical programming, and I constantly went back and forth between Python, R, etc. In my first job, I volunteered for some pretty complex projects involving automating spreadsheet tasks, exporting to dashboards, working with databases, etc. I basically BSed my way to being allowed to help with these projects. In my opinion VBA sucks, but I have finally had projects with deadlines that I have to meet, and I have learned so much about how to think in a logical and pragmatic way. I feel like after learning VBA I can learn any programming language.
1
u/GuardianAnal Feb 09 '19
What would recommend someone do if they don’t know what to program? I’m in that boat now :/
1
u/Mr7FootCock Feb 09 '19
Find a good tutorial on youtube and learn what ever they are teaching. The programing language doesn't matter.
1
u/manavsridharan Feb 09 '19
I learnt C++ first, but now I'm learning Python. I feel Python is an amazing starting language, so easy to get into.
1
u/mark_deshark Feb 09 '19
Totally agree OP. It’s so funny because in retrospect I was that person thinking about which framework to use and which language to use during my college years. Always being too afraid to stick to one thing and mastering it.
Now my journey is transitioning from tutorial learning to being able to learn about a tool or technology by reading its documentation.
1
u/M2D6 Feb 09 '19
I'm a beginner but something that really helped me was to define my goals. What exactly do I want to do with programming? Without a goal, or purpose you're doomed to just wander from language to language, from tutorial to tutorial. In this hobby/profession it is really easy to get caught up in "the next big thing" or the "golden goose". Having an overarching goal also helps you internalize and understand the point of the code you're writing.
Define your goals, and pick one language from whatever field/area you're interested in. For example if you're interested in web development, go with javascript, ruby, etc just pick one and stay with it until you have experience and the fundamentals down. I think that this is what the OP was getting at.
1
u/shinkyboi Feb 09 '19
I learned java as.my first language, should I also now lean python or move on to c++ or other languages?
1
u/Adrax_Three Feb 09 '19
I agree with everything except learning Python as your first language. Python is too easy and doesn't teach you fundementals you will need later. Puck up Java or another strongly typed language so you learn good habits, then learn whatever language you need. Once you have the basic knowledge it is not hard to learn a new language, for the most part.
1
u/timthefim Feb 09 '19
The thing that always slows down my motivation is when I’m introduced to classes and object oriented programming. Ive learned the basics and all the procedural coding fundamentals but I can’t figure out the other stuff for the life of me. It’s so frustrating.
1
Feb 09 '19
Why do people say Java is hard to learn? I ask this sincerely because I find it an enjoyable language to learn.
1
Feb 09 '19
This thread is hilarious.
> Trapped coders focus on anything but coding.
> Learn Python.
> Trapped coders following directions too well.
> blah blah but why Python? REEEEEEEEEEEEEEE
You really missed the point. :D
1
1
Feb 09 '19
Your post is very enlightening. In the sense that it's what I needed to hear as a form of reinforcement to keep going and continue on the path I'm on. Thank you for the well thought message you made, as a student whose still learning, this has alot of impact.
1
u/variable_name Feb 09 '19
So where can a beginner programmer find problem solving tutorials rather than the programming language itself?
1
u/Mr-Yellow Feb 09 '19
Trapped programmers love to debate which language or framework is best.
Learn Python.
That escalated quickly.
Not sure how the one language with funky strange whitespace stuff is suggested so much as an introduction to programming.
1
Feb 09 '19
Good pointers, I'm introducing a friend of mine to computer science and programming later today. Pretty excited but I know I want to cover a little bit of foundational theory then some basic code.
1
u/willdoge Feb 09 '19
I am a noob at programming even though I am in my final year of CS. Just stick to a language and build things. When I get better I'll start reading off github like a book
1
u/kmp3e_ Feb 09 '19
It doesn't really matter what language you start with, nowadays all programming languages are very powerful and their is no wrong way to start
1
u/SleightlyMagic Feb 09 '19 edited Feb 09 '19
Well wish I read this before I started.
I am starting with JavaScript, I work for the State and hope to stay within the state system and hop on board as a Application Developer when I have the chance in a few years to switch back to a day job.
I’m extremely busy compared to before I had a child. Working 5pm-1:30am, get home at 2am, Wife leaves for work at 6:30 am, 8 month old wakes up around 7:30am and demands my attention. Wife gets home at 4pm, I leave for work at 4:15pm.
He takes 2-1 hour naps before I go to work so I join him. Rinse repeat
Currently on an 11 day streak of learning for at least an hour a day, even skipping on napping myself when my son naps to watch a tutorial on a concept or hop on my SoloLearn app.
Found out my job pays for Lynda.com (comparable to Coursera) so signed up for that but not trying to spread myself too thin.
My brother bought me a Zenva humble bundle yesterday which looks great but I need to focus on 1-2 resources as to not spread myself thin on learning resources and focus on learning concepts and grounding my foundation.
Since I’ve found at least an hour a day at home, now I think I can fit in another hour by taking my laptop with me to work. Hey! 30 minute lunch and 2-15 minute breaks = an hour of learning to code!
Give or take 1-2 hours a day, over the course of 5 or so years before my kid(s?) are in school when I can start to get a day job I hope to build a portfolio.
I know I’m only 11 days in, doesn’t it take 3 weeks to build a habit? 20 more days to go!
Part of my goal is to develop myself to round myself around what they want in their job description
“using technologies such as NET Framework (C#, VB.NET, VB Script), JavaScript (JQuery, Ajax), Sybase PowerBuilder, Sybase SQL Anywhere, MS SQL Server, HTML, CSS, XML, PowerShell, and MS-Office”
2
Feb 09 '19
You'll be fine. Honestly, if you're 11 days in, your not very far in the journey. Don't get distracted because somebody said "learn Python". Just stick with JavaScript and learn how to program. Most job descriptions list way more skills than are needed. The most important skill is to be able to solve problems. And you learn to do that in code by first learning a language and learning how to use it. Lots of people will say lots of things about the "best" approach. But everybody in the software business comes from a different background and found a different way in. Some are academics who started in college and learned all the theory first. Some are tinkerers who started with a side project. Some are prodigies who started when they were 6. I have a bachelor's in philosophy, drifted for a while after college, then taught myself Java alongside a handful of other things. Java was fine to learn on, but Python would have been better. But I would have been better off sticking it out with Java, without ever getting distracted by Python. Learn JS. Find some you problems to solve. And maybe learn an important framework. Your seniors will mentor you along the way.
1
u/Machismo01 Feb 09 '19
Something I’ve realized: coder is a generic term that applies to many different types of programming.
Python, sure for nearly any cloud, server, or desktop work. Even applicable to mobile devices.
However, the hardware realm of embedded engineering has a new dynamic of slow processors, lack of resources, or battery life. Every clock cycle needs to be considered to ensure longevity of the product. Unfortunately, I haven’t seen a better tool to do this besides C simply because people don’t get lost or surprised by the assembly it will generate, normally.
That said, those principles should get dropped the moment you have a beefy modern processor and no battery concerns.
So an aspiring programmer wanting to make battery powered embedded products should probably take a different angle and learn Python second after intuitively understanding how to build EXACTLY what they want in C. Write a wake up and sleep ISR to understand what I mean.
Also those FPGA and CPLD designers, but they have so many tools in the tool bag, I don’t know when Python would make sense to learn. It would be a tool to use, but not the main one.
1
u/yubario Feb 09 '19
To give a bit of background I am a dev ops developer that writes websites and code to automate various processes. I would say in my case, learning python has been a complete waste of time.
I don't really have any advantages of writing websites in python compared to .NET core, one could argue C# doesn't have true mixins or decorators as advanced as python but that will be changing in C# 8.0
Also all around my company everyone is swapping to .NET Core because it's the new kid in town, it's practically required to develop new projects on it now.
At least with C# I can write functional GUI applications and websites with ease, trying to make a GUI application with python is horrendous and ends up looking like a 1990's reject.
1
1
u/abdoulio Feb 09 '19
Personally I felt trapped not because I couldn't make anything, but because I didn't know how to make smart decisions when comes the time to structure things.
I eventually stumbled (a few years too late) on design patterns was exactly the thing I didn't know I needed.
Here are two great resources to start learning. It's great because you can just pick a pattern, study it in an hour or less, then skip if it doesn't look like you'd ever need it:
https://refactoring.guru/design-patterns http://www.gameprogrammingpatterns.com/
1
u/firecopy Feb 09 '19
To clarify and improve OP's original advice:
If you don't have a project in mind, have a programming job, or know what language to start with:
Learn Python.
Why? It is one of the best languages to start off with, beginner friendly, and has a very strong community to support it.
But what if I need to learn C#?Learn C# after. If you need to learn C#, learn C#, especially if it is for a job.
Isn't Javascript the language of the future?
Learn Javascript after. Choose your language based on what you want or need to make.
My developer friend told me I should learn C++ because all languages are based on it.
Learn C++ after. Choose your language based on what you want or need to make.
1
u/phantom2707 Feb 09 '19
You just described me twice here. I needed a quick wake up call to change my ways. Thank you.
1
u/NevilleMthw Feb 09 '19
This advice is awesome. I'll keep that in mind as I'm learning Java. Cheers.🔥💯
1
u/eden_bry Feb 09 '19
So what you're saying is that if i want to learn a language I should... learn a language...
1
Feb 09 '19
OMG ppl are getting so hung up on the fact that the author is biased toward Python. The point is, if you spend your time making a decision, you won't spend your time learning something. Anybody who's been programming a while and knows more than one language, knows that most languages have the same basic set of features. And you can learn these features in Peru much any of them. Python is a good choice because it has simple syntax and a gentle learning curve. If you have no specific plans and just want to get your feet wet programming, yeah it's a good choice. Programming can be complicated and there are lots of pieces to track. Starting with something simple like Python allows you to focus on the basics like variables, sequencing, data literals, control structures etc. Pick a language. Learn it. See what happens when you change things. Python's a good choice if you don't have a specific career path in mind. Just don't expect to make the next big thing in your first week. It's a journey.
1
u/wheatless Feb 09 '19
I'd bet a lot of differences of opinion here come from:
What you assume a given individual wants to "learn programming" for.
How much time they can dedicate to the activity.
It is perhaps unsurprising that people will think very differently if one person assumes a learner wants to solve a certain problem with programming vs. wanting to have a marketable skill. Or if one person assumes a learner can learn full-time vs. just as a hobby.
1
u/max_pulman Feb 09 '19
Im a 13 year old who wants to learn how to program and I have no idea where to start I have downloaded IDLE to use python on as I am told it is the most useful and beginner friendly language any tips or advice?
1
u/firecopy Feb 09 '19
If you already have IDLE, that is good. As suggested in the Python Wiki, I would start with using Automate the Boring Stuff by Al Sweigart.
1
u/nootyface Feb 09 '19
I just started a CS degree with the Open University in the UK. The first units go into scratch to develop logical thinking. I believe it then moves into python to develop programming language skills and then you choose where to go. For software development, i think it goes into Java.
1
1
1
1
u/Kalub1125 Feb 17 '19
I was trapped, I can barely code even after 2 months of watching tutorials, and that’s all I was doing. I was a mindless zombie, but I’m changing that now as we speak, because I realized why I suck. I am getting better though. This post is so true. Thank you for posting this.
1
Feb 08 '19
While I respect your opinion, I disagree that new programmers should start with a high level language. Before you break into high levels of abstraction, you have to know what’s going on in the background. I can’t recommend starting with C enough. And before that, read a book on how signals and logic gates work.
7
u/Smallzfry Feb 08 '19
For people who are wanting to get a CS degree, your advice is sound. For people who are simply interested in programming and want to try it, it's a lot more work than they'll want to start with which is likely to scare them off.
I personally think Java is a good starting place because it abstracts away memory management while forcing people to think of their array sizes and variable types. Then if someone is interested in continuing they can go to C and learn why they have to declare array sizes and why variable types matter. For a lot of new programmers though, learning how to manage memory is a big step, especially for people who don't already know computers really well.
5
Feb 08 '19
that's horrible advice, it is a gigantic waste of time and has the potential to kill someones spirit early on while the benefits are tiny in regards to todays work requirements. It's like saying if you want to be a good cook you need to learn how to hunt and slaughter an animal first. Complete BS!
source: I followed that advice
6
u/Barrucadu Feb 08 '19
Please write me a sorting function, and justify how your knowledge of logic gates makes the code better.
0
Feb 09 '19
[deleted]
2
u/Barrucadu Feb 09 '19
Of course knowing how to choose the appropriate data structure and algorithm for the situation at hand is very important, but that still seems to have nothing to do with logic gates. Unless you're analysing the performance of an algorithm by looking up a data sheet of the processor and working out how many transistors are going to change state or something.
4
u/razibog Feb 08 '19
Oh god no, they are learning how to think in a completely new way, they don't need to know what's going on in the background, signals and logic gates.
2
1
Feb 09 '19
After using Java since highschool, I really don't understand how anybody can stand using interpreted languages like Python, and using a language that isn't type-safe feels like trying to build a skyscraper out of cardboard and masking tape.
2
u/Xaxxus Feb 09 '19
Do you still use java?
Try picking up kotlin. My office has a lot of legacy java code that we have to deal with. Kotlin interops with it flawlessly, and when we do convert some of the code over to kotlin, its so easy, and reduces so much boiler plate.
We have an old database table that has over 140 columns. In java, the object for that table is over 1000 lines with all the getters, setters, constructors and other methods.
In kotlin, the same class with all the getter/setter/constructor functionality is less than 200 lines.
On top of this, with our newer code, we can use most of the java tools and frameworks with kotlin (gradle/maven/spring etc...)
1
Feb 09 '19
Yep. 100%, and I'm a software engineer with 40 years experience. This nonsense about "which language is best" is silly when languages change so often. Python is a good first language. C++ isn't. Javascript isn't. It has nothing to do with how popular they are, but with how easy it is to learn language concepts and to use the language.
1
u/nlightningm Feb 08 '19
Love it! I just started learning Python days ago and I'm loving every moment I spend with it. I'm naturally a troubleshooter/experimenter and so every time I get a new small piece of code to work on, rather than copying and pasting I write it out piece by piece while commenting each line to translate into Basic English, and then after I run it I try to change stuff up to understand what certain part of the code are specifically doing to affect other things.
Means I'm right in line with how you teach, if anything, and I think these particular methods have helped me learn a LOT more about the advantages and dangers of doing things certain ways.
1
Feb 09 '19
I think most teachers are just SHITE. Even you pointed that out in your post yet somehow that was not the point of your post
1
u/ixanonyousxi Feb 08 '19
Am I the only one who interpreted the first point to mean start any language, doesn't matter which one, if you need another you can always learn that next. I did not get that this person was advocating that everyone start with Python.
3
u/nemec Feb 09 '19
There aren't many of us. Some of these commenters need a good whack with the cluebat.
1
u/okayifimust Feb 09 '19
Are you all completely illiterate?
OP is explicitly telling people that they shouldn't start with anything else other than exactly python. OP is going through a list of languages and reasons that people might have bring up and keeps saying "No, learn python."
Why is it so difficult to grasp that OP is not saying what you you guys would would want him to say?
OP'sIt's actual advise is bullshit. Stop pretending they are saying somesomething that outright contradicts their actual words.
Yes, the usual and sound advise would be to simply pick any language, and that it doesn't matter which. But it clearly does matter to OP - else he would be fine with people starting out with c#, c++ Or JavaScript.
1
u/ixanonyousxi Feb 11 '19
I saw it more as a variable than being explicit. You have your interpretation, i have mine, says nothing about literacy. And i haven't come back to this post in awhile so idk if the op has clarified but if they haven't then you have no authority to say what the op meant and you being an asshole about it does nothing for the convo. If they have clarified, well i posted this before they did so that's the information i worked with at the time.
1
1
-6
Feb 08 '19
Who is upvoting this nonsense? It couldn't possibly be sock-puppets - nah, surely not.
3
u/just_give_me_a_name Feb 08 '19
What's wrong with this post?
For an /r/learnprogramming post I think this is helpful. You aren't offering other help.
11
u/desrtfx Feb 08 '19
This post is less helpful than any single paragraph in the FAQ.
Python may be the current entry language, but that absolutely doesn't mean it is a must to start with it. Personally, I think that any explicitly typed language (Java, C#) is better suited as a first language because there is less "magic" going on.
The part about practice is just as useless. Simply repeating the same over and over will not improve one's understanding. Only venturing into uncharted areas will help improve.
The worst part of it that OP claims to be a teacher. All the advice is horrible from both, a practical (as in professional) and from an educational point of view. I've been teaching long enough and have created plenty of my own course to identify a bad teacher from more than a mile.
2
u/AbhorDeities Feb 08 '19 edited Feb 09 '19
The most unhelpful thing is them telling you to learn Python. No. Learn the language that your field is using. If your area is all C#, it doesn't make sense to learn Python. If your area is all Java, it doesn't make sense to learn Python. Learn what it is applicable to what you want to do, period. They should've just said to pick a language and learn that. Then move to another language afterwards.
6
u/just_give_me_a_name Feb 08 '19
This sub is about learning programming. It's about fostering a curiosity learning to write code.
To me; this post says: Pick something and learn. Stop getting hung up on the language choices.
I don't expect people to understand "If you're area is all C#". If they did, why wouldnt they be on a C# sub instead of a generic one?
2
u/AbhorDeities Feb 09 '19
But to me, it says to learn Python and then move onto another language. Which is just wrong in my opinion. I have nothing against Python personally; I just don't think it is the defacto first language like this post is expressing by the big bold "Learn Python". Then it proceeds to follow with other languages and telling them to learn it after.
As for the your second point, they are most likely in this sub and not the other, because this is generally the first stop shop in learning programming. I misspoke earlier though, I assumed that they wanted a career in the field. My advice is only applicable if you're looking for a job. Some people really are strictly hobbyists.
As for the not expecting people to understand part - while, they may not know it now; that is when we tell them. "Google for the jobs in your area, find out which language is the most prominent, and learn that one".
Overall - it seems like this thread is split on the "Learn Python" part. No one disagrees that the first language doesn't matter, it is more just trying to clarify what the OP meant. Some people are reading it differently than others. Some are reading it as the OP stated, others are reading into it.
→ More replies (9)1
u/therealjoggingpants Feb 08 '19
this post is far from helpful. Reeks of some "I'm smarter than you and this is the only proper way to do things" post
Also his second piece of "advice" is to.. learn...? Wow. Thanks..
3
u/just_give_me_a_name Feb 08 '19
This post is telling people to stop caring and jump in. I don't find anything wrong with that. Its excellent advice to starters, jr devs, and sr. devs.
I've been doing this for a while and have avoided learning things because of curves (clojure) but the overall message is positive.
-3
Feb 08 '19
You lost me at "learn Python"
I understand why you'd say that as a teacher; it's your comfort zone and you know it well enough to teach your students and correct their mistakes. But it's certainly not the be all and end all of programming languages to teach a new programmer.
I learned C# and Java at the same time, and I can emphatically guarantee that learning two at once, due to being similar but also different at the same time, taught me so much more about programming than what I would have with any other language choice. Picking up other languages afterwards has been trivial.
What would I suggest new developers learn first? JavaScript until they're comfortable with syntax, then move them immediately to TypeScript for the Type safety.
You're not doing anyone any favours by pushing Python down their throats at an early stage.
3
u/AiexReddit Feb 09 '19
The post is referring specifically at the students who are spending all their time researching what language to use instead of doing any actual programming.
I'm sure if OP had a student who was totally focused on JS as their tool he/she would support it. The main topic here is overcoming that indecision that can cripple progress.
681
u/antiproton Feb 08 '19
Boy, a whole heap of people in this thread missed both the point and the intended audience of the OP's opinion.
Watching developers argue about which whatever is the best whatever is like watching chimpanzees in a zoo fling shit at each other.
It's about as productive, too.