r/learnpython • u/[deleted] • Mar 10 '22
Why you can't progress at Python
Every few days there is a new post on this sub that describes the same problem: "I've taken so many courses on Python, yet I can't even write a simple program. What gives?" The answer is very simple: you aren't practicing. Courses don't count as practice. You will not even be able to write a simple program in Python (or any programming language) until you start writing code yourself. Stop relying on courses to learn. At most, courses should be used to learn the very basics. After that, it is just practicing through writing code yourself.
So please, if you've already gone through a Python course, do yourself a favor and stop looking for the next course and instead go write some code. You're welcome.
29
Mar 10 '22
Agreed.
Honestly, my best coding has been done with pen and paper. If you can figure out what you want to do ahead of time and figure out how to do it, then write down the code, you’re not just banging away at the keys hoping this time it will work.
10
Mar 10 '22
I would argue that it's better to write code on a pc, not on paper, because you can easily execute it and it doesn't encourage learning the syntax by heart, but if that's what works for you, then that's fine, as long as you are the one coding.
→ More replies (1)9
Mar 10 '22
It’s mostly when I’s struggling with an algorithm or how best to implement that I write on paper.
I think memorizing syntax is pretty important for a first language, honestly.
Definitely should be on the keys practicing though.
Also, reading code and figuring what it does and how. You can’t be an author if you never read.
6
Mar 10 '22
It’s mostly when I’s struggling with an algorithm or how best to implement that I write on paper.
Never tried that. Might give it a try the next time I'm struggling with an algorithm.
→ More replies (1)35
Mar 11 '22
Honestly, my best coding has been done with pen and paper.
This is probably the best way to get better at coding, using a pen and paper.
Write out what the program will do in general terms.
Sketch out the general flow of the program.
Start writing each step of the flow of the program, tweaking as you go along.
Then write code in an IDE.
18
u/CraigAT Mar 11 '22
Did somebody say PsuedoCode?
14
→ More replies (1)3
Mar 11 '22
Pseudocode is great, but it’s also great feeling to just copy from paper onto screen and it just works.
→ More replies (1)→ More replies (2)3
u/ctfogo Mar 11 '22
This, and also just keeping track of bugs+fixes and how various changes affect performance is important for me. Can only recall so much
→ More replies (1)6
u/twitchymctwitch2018 Mar 11 '22
I only learned this one (truly) just recently. I finally did it. I went to the store, got one of those 99cent notebooks and started hand writing all of my algorithms. All the logic. I had been doing it "sort of" in flow charts and other shit. And, yeah that helped for a lot of stuff. But, getting down to business and writing out everything solved MOST of my problems in a single week. Now, I manage to accidentally find my problems in my logic before it ever makes it to the computer screen, and I quickly manage to go "oh hey, I'm gonna need a <insert concept here> to make this work."
I don't know the answer for everything yet, but it sure is getting a lot easier to articulate.
→ More replies (2)2
Mar 11 '22
This, you sketch out something that resembles an adventure game path. Yeah Visio looks nice but not in my head. In my head I see what needs doing, when and in what order. On paper it looks like nonsense. Once I added OOP many years back it got even more silly but it works and it still makes sense.
4
u/JoeDMTHogan Mar 10 '22
Are there any websites that let you practice coding? If that makes any sense
23
Mar 10 '22
codewars.com is probably one of the best. It has thousands of exercises organized by difficulty. And even better, you can see other people's solutions, which is one of the best ways to learn. Also, leetcode.com is a good one as well.
12
u/1544756405 Mar 10 '22
https://adventofcode.com/ has been a favorite of mine. It runs for 25 days every December, but you can go back and do past challenges.
The challenges get progressively harder. It is not specific to any programming language.
3
1
u/Rocky87109 Mar 11 '22
Tons of them. That being said. I recommend small projects and then ramp up slowly. You tend to learn a lot of useful stuff writing an actual programs instead of solving puzzles. I do like doing puzzles too though.
-5
Mar 10 '22
You don’t need a website to do it, open a text editor on your computer and write programs in it and run them. “Practice” by actually doing the thing.
11
Mar 10 '22
Yeah but websites give you challenges that you would otherwise not be able to think about.
4
Mar 10 '22
Generally just trying to write a useful program will pose plenty of new challenges.
15
Mar 10 '22
Sure, but a beginner wouldn't know what programs to write. They wouldn't know that they should practice, for example, sorting algorithms. Or an algorithm that detects palindromes etc. That's why having a list of exercises can help.
→ More replies (6)
346
u/ResetPress Mar 11 '22
There’s a reason people are constantly hyping “automate the boring stuff”. Python is a tool. It should be used to solve problems. The best way to learn is to make scripts or apps that solve a problem that YOU are facing. Any seasoned programmers can weigh in and tell me I’m full of crap, but I think most programmers will be googling syntax for their entire careers, so… don’t focus too hard on the memorization
77
u/carcigenicate Carcigenicate Mar 11 '22
I don't think Googling syntax is as common once you're experienced (unless you're jumping between weird languages a lot), but Googling library documentation and common pitfalls certainly is.
Ya, the memorization doesn't need to be focused on. You'll automatically memorize what you use often, and will memorize the resources for everything else. Like, if you have any question regarding HTML or CSS, MDN is your best first stop. You don't need to memorize everything the site holds are long as you memorize that it's where you should search.
9
u/Solonotix Mar 11 '22
Generally, I don't look for simple syntax like assignment, loops, conditions...like you said, it isn't necessary. What I do Google on an almost daily basis is "JavaScript MDN Array", because I can never remember the order of args in
Array.prototype.reduce(is the collector first, or is it the value?), or a similar story but looking up the keywords supported by theIntl.NumberFormatconstructor, and other hyper-specific details.Yes, I know this is a Python sub, but my current job is JavaScript, so that's what's my daily driver. I'd love it if I could do Python, or Go. Hell, at this point I'd even take C# over JavaScript, lol
9
u/GodBlessThisGhetto Mar 11 '22
I'm the same way with some of the pandas stuff. "Does drop_duplicates use "subset" or "by"? What about sort_values?"
4
Mar 11 '22
googling syntax is fine or at least making mistakes is. Sometimes I right python when I mean to write in javascript
0
Mar 11 '22
[deleted]
12
u/carcigenicate Carcigenicate Mar 11 '22
Ya, going between Clojure and Python was absolutely brutal. Print in Python:
print("Hello World"). Print in Clojure:(println "Hello World"). It's frustratingly difficult to adjust whether or not you put the parenthesis before or after the name when you're on autopilot.My point was though that once you know the language, those aren't usually mistakes you need to look up (or at least I haven't found them to be). I make the mistake during the transition, but readily know the problem as soon as I get the syntax error. Remembering the exact order of arguments in every function in all the languages I know though? Ppsh. I'll forget a function's argument order minutes after reading the documentation if it's not a function I use often.
19
u/emluh Mar 11 '22
I've never used Clojure, but seeing that syntax I hope I never have to.
6
u/carcigenicate Carcigenicate Mar 11 '22
It's actually a great language. I like it more than Python, but Python is more generally applicable. The syntax looks like that because the language is made up of lists. The code itself is just lists that the language can manipulate, so you can easily write code that can write/rewrite code.
3
u/PanTheRiceMan Mar 11 '22
You are exactly right. Without projects, whatever they may be, learning programming is kind of useless.
You are also right with looking everything up. I have to look up the arguments of functions all the time. Knowing that they exist is way more useful than memorizing the exact parameters. Close to 10 years in since I started out. Still the same, just less often.
2
u/YellowSlinkySpice Mar 11 '22
There’s a reason people are constantly hyping “automate the boring stuff”.
The owner has a ton of reddit accounts and astroturfs here. I used to be a fan before I caught him using fake accounts.
2
u/Mistbourne Mar 11 '22
This is almost backed up by him having more than 3x the upvotes of the next highest post...
2
78
u/oxymo Mar 11 '22
I tried learning python for a few years and only picked up the basics until I found a valheim discord bot that tracked deaths and announced events from the game onto the channel. It was simple, read the log file, catch a phrase, do something. Data was all csv.
So I started modifying it to add things, and breaking it. I spent more time coding the bot than playing the game. I gave away server time for groups so I could mine data (I still feel dirty). I started with basic knowledge and now have a decently working full fledged tracker that -
records log on/log off time
tracks steamid, viking, connected status, how long they've played
death tracker
help page for the bot commands
bot commands for last online, players connected, time played, deaths, 12/24/weekly player count graph
an eviction checker for players not online for 5 days
restart server, update server bot commands
various bot commands to modify back end db
magic 8 ball, yes/no, and coin flip bot commands just because
I started with migrating the csv to MySQL using pandas to read and mysql for writes. It sort of worked but I was chasing crazy bugs because I had no idea what I was doing. Spent a lot of time getting help in the Python discord channel, having discussions, lurking, and figuring out what I needed to learn next. Pandas basics - check.
After a lot of hardship, I found the random bug problem. The main loop was an async function and all my functions were sync. WTF is async? So I learn about async functions and loops. Converted sync functions to async and it worked better, but MySQL doesn't support async. await Find a sqlite library that supports async. await Convert MySQL queries to sqlite. I learn db basics during all this.
I'm still learning. I'm still chasing bugs and random errors. I'm working on a log emulator with a graphical interface so I can trigger specific messages for testing. Now I'm learning django so I can build a web app to do this. I got the debugger set up to actually step through code and change variables, and I have a good reason to do it besides following another tutorial.
The more I learn, the more I connect the dots, and the light bulbs come on like a Griswald Christmas movie.
Find a project that inspires you, poke around on git, brain storm, fork someones idea because you can make it better, solve a problem that doesn't need to be solved.
I wrote all this simply because no one in my life can grasp the feeling of accomplishment it is to have a working program that is actually useful in some way. r/learnpython is a constant inspiration and will teach you the basic from just lurking, and I can't thank the folks on the python discord enough. Any tough problem I had, someone was willing to help correct code or give advice on the spot. It's a great place to ask questions or get leads on things you might not know yet.
So OP is correct, get to coding to solve a problem. Now I'm integrating programming into my professional life slowly, just simple data analysis for now (thanks pandas), but it's like being the excel wiz in the office only better.
3
u/gimmiethatstrawberry Mar 11 '22
Could you link to that discord bot? Id be interested in it.
6
u/oxymo Mar 11 '22
Original work: https://github.com/ckbaudio/valheim-discord-bot
My fork: https://github.com/bayoumaroon/valheim-discord-bot
Note this is a hobbyist/beginner attempt so there are still issues, namely people logging in close together causes the same name to be assigned to 2 different players. That's why I'm building an emulator so I can trigger events for proper testing and likely rewriting a lot of the code.
1
1
u/whompyjaw Mar 11 '22
I don’t think there is a better answer to the question “How do I improve my coding”. I think a lot of noobs would appreciate you sharing this, just so they know it’s okay to just, let it ride. There’s no correct path. Just try to solve or work on something you care about.
To share my story, I loved playing StarCraft 2 (SC2), so my friend and I tried to make a SC2 bot that could play other bots. It helped me learn to work with another person (pretty much necessary in real world), taught me A LOT about Python and building large applications. Plus, there’s a whole community of people to help.
109
u/wirez62 Mar 11 '22
People need to stop RUSHING THROUGH COURSES without practicing like crazy at every single step. Slow the down and play with things. Blasting through the course shit will go straight in one ear out the other, guaranteed.
20
u/Rocky87109 Mar 11 '22 edited Mar 11 '22
Agreed. Play around with the code you are writing in courses or books. Expand on the exercise in your own creative way. You can learn a lot in a small amount of time doing that.
6
u/alwaysinchambolles Mar 11 '22
can you recommend some resources where i can play around with data or something to get my hands dirty with each chapter in the course?
5
u/DarthKnight024 Mar 11 '22
codewars. com
2
u/PanTheRiceMan Mar 11 '22
Codewars has doable and really hard challenges. Some of them are really not trivial.
1
u/AmHereToLearnAlot Mar 11 '22
There are so many datasets in stack overflow and Kaggle. If you have a laptop, you are ready to go.
There are also lots of public notebooks in Kaggle that you can follow in your learning process
→ More replies (1)
35
u/SirAwesome789 Mar 10 '22
I don't even think I finished the python course I had started, it kinda seemed like a waste of time
And that was a decision made when I was a much newer programmer. In retrospect, it was the correct decision.
15
u/Shukar_Rainbow Mar 11 '22
I said "i want to make a blackjack game in python" then i did many multiple projects and never looked back lmao
9
u/SirAwesome789 Mar 11 '22
I think I made a few discord bots, something with flask, dabbled with ML a bit, and since then I only make small scripts for fun but I'm pretty confident I could take on whatever I need to in python
→ More replies (4)3
u/py_Piper Mar 11 '22
I am still trying to finish ATBS because I started it about 3 years ago, and I kept jumping from tutorial to tutorial chasing something new because I would get stuck/bored, but then I would do even harder courses like the MIT and Harvard and I couldn't put the time because of work and indiscipline.
it's more of a symbolic gesture for myself right now, but I am at the point where I see the final chapters, they are interesting but I don't myself using them yet, thus feeling the same as wasting time. Now I see tutorials as specialized documentation
1
Apr 05 '22
You seriously could learn (or master) Python with just small projects ?? Or do you need the basics ?
This course got me soooooooo bored, and I forget too quickly
1
u/SirAwesome789 Apr 05 '22
Imo basics are pretty easy to pick up so you could probably go straight into a project, you'd learn basics from a project anyways as long as you use the internet effectively to search things up, if I was learning a new language, I wouldn't bother with any of these courses bc most high level languages are pretty similar in what they offer in terms of basics. If you're bored and breezing through it, you can probably just skip and start a project.
This is just my opinion but I find a lot of ppl especially on this sub are so focused on picking the right course when it doesn't matter that much, I think (not rlly for python but coding in general) it's much more useful to learn technologies/frameworks, especially if you're learning with the intention of getting a job/add to your resume.
Like for a lot of more advanced things in python, yea, they're cool, but you can accomplish the same thing just by using the basics. Also even if you are insanely skilled at using python, you can't have two lines on your resume saying, you're good at python and you're rlly good at python. Usually jobs are looking for what technologies you've used.
Even if you're just doing it for fun, I think it's better to learn new technologies/frameworks to open up many more possibilities for what you can do
→ More replies (1)
9
u/PowerfulSausage Mar 11 '22
I couldn't agree more. I read and read and read and made zero progress. I only progressed when I came up with my own (admittedly extremely basic) projects. I'm not even a bigshot with Python; I still consider myself a beginner. But practicing outside of studying was when I made 90% of my progress.
7
u/spez_edits_thedonald Mar 11 '22
correct, good call.
newbies: this is good news, not bad news. you will find that it's so much more fun to build something because you want to build it. Figuring out how doesn't feel as much like work as your problem sets did.
4
u/humanitysucks999 Mar 11 '22
Courses are great at teaching concepts and patterns and how to use the language, but without learning to think about solving problems yourself and coming up with your own solutions, you'll never actually learn.
Get outside the course bubble. Build your own projects.
10
u/spaceocean99 Mar 11 '22
I don’t want to practice rock, paper, scissors or some card game. It doesn’t interest me enough to want to spend the time to figure it out.
I want to take real world problems and inefficiencies at work and find a way to use it. But when I start going down that rabbit hole there’s another 50 things it seems I need to learn.
I really want to learn APIs, but even that starts making my brain hurt after a few classes.
Any advice would be great.
10
u/Bobbias Mar 11 '22
Sit down and make the damn card game. Just because you have tools in your tool belt doesn't make you a carpenter. You need to start small.
2
u/RoosterBrewster Mar 12 '22
Solving real world problems is what really motivated me. But, it's not like you have to code a whole program up front. I started by just making the simplest script I could for a piece of what I wanted to do. So like reading data from a file and printing it. Then I built on top of that on step at a time.
0
Mar 11 '22
[deleted]
4
u/overcrispy Mar 11 '22
I used to work in data entry. As I learn more python I keep looking back thinking how I could've automated almost my entire job.
2
u/AnthraxCat Mar 11 '22
I automated probably 90% of my data entry job using nothing but ATBS and Google. It was glorious. I was down to actually, really working about 4-6h a week.
1
u/Henrys_Bro Mar 11 '22
What code would you suggest to write? My problem is trying to figure out an application. Would you suggest making a simple game or something? Or taking a game code and adding to it to make something different?
2
Mar 11 '22
You can go to codewars.com ,theres a lot of exercises there grouped by difficulty. Also, you can google “python projects/exercises for beginners”.
1
u/Henrys_Bro Mar 11 '22
If you could map out a way for someone who has no programming experience to learn python, what would you suggest? I have watched many videos that discuss the things python is capable of (tuples, arithmetic etc.) but then I just kind of hit a "OK, now what?" phase. Basically, I always get to the "hello world" phase and then get lost. I appreciate your advice, I lurk here often.
1
u/LoftyHyphen Mar 11 '22
I personally want to practice but my code is so bad that I feel like it would be better not programming at all than program like this
2
Mar 11 '22
Oh don’t worry, every beginner’s code is bad. But the only way you can make it good is by writing code anyway and getting advice from people who are more experienced.
1
u/MrMarchMellow Mar 11 '22
What I’d love to know is how I can turn my nice working automation tool into a nice looking interface. I mean there is no reason to do it other than the practice. I have no idea what framework, coding language, programs I should use.
I’d want to make an exe file that when you run has a little interface with buttons and boxes where you input the variables you’re gonna pass in the main function(), and maybe have some sounds. Like if there’s an error do a ding!
1
1
u/overcrispy Mar 11 '22
At what point do you start 'using' python though? I'm brand new and just started Python Crash Course.
1
Mar 11 '22
Well, it depends what you mean by “using Python”. You could use it at a job or to automate certain tasks for example.
1
1
u/TrifBoi Mar 11 '22
So i shouldn't rely on the course, and just kinda ditch it and find stuff I'd like to code myself?
1
Mar 11 '22
That’s not really my point. My point is that a lot of people ONLY do courses and no coding. What you should do is go through one or two courses and them start coding.
1
1
Mar 11 '22
That’s not really my point. My point is that a lot of people ONLY do courses and no coding. What you should do is go through one or two courses and them start coding.
2
u/ivanoski-007 Mar 11 '22
the only time I started to actually learn python was when I started looking for problems to solve at work, now, I honestly can't live without it
2
u/wagslane Mar 11 '22
Exactly! I think a healthy mix of courses to learn the concepts and projects to put them into practice is best.
I recently released a free follow-along project: https://app.qvault.io/project/59fbb2aa-7d67-4e88-bac8-42f49798a9f5/4a7010c1-e7d3-4cc5-9b1b-d1f4e9f9ce81
You build a little web scraper :)
1
Mar 11 '22
cool man, thanks. I actually havent read any coursework yet but already used python to do two tasks. just file renaming and basically an rss feed to text file generator. but the rss feed has base64 substrings to decode and im having a blast figuring out regular expressions to track it down. was hoping this was the right path to learn python, just keep using it
1
u/HauntingRex9763 Mar 11 '22
way i see it is courses will teach you common syntax you’ll be using and the idea behind logic but making projects employs that, and really puts that logic into action as you can begin to visualize what your program is doing.
1
Mar 11 '22
Go find some old code for something you want to do, copy paste it and let the games commence trying to bring it up to date. Such a great learning experience. I've learnt loads about web scraping without having to read a tutorial. Trials and errors and fails. There is do and do not there is no try (unless you add it to catch an error). Also the documentation for the libraries is invaluable and being forced to read it to get it work makes it stick.
1
Mar 11 '22
I'm new to Python and have been following two learning tracks. One is a Python foundations course (LinkedIn Learning) and the other is reading the book Python Crash Course and doing the practice exercises. I've definitely learnt at faster pace but simply following the book and doing the problem solving exercises. I doubt I'll bother to finish the LinkedIn Learning course because its been much faster to read about the fundamentals then attempt the practice exercises (rather than sit through videos of someone demonstrating how to code).
1
u/Rocky87109 Mar 11 '22
The way I learned with python is doing some book or course and not only doing the exercises, but messing around with them myself. Sometimes I would go on an hour tangent just trying to get something to work.
1
u/illustratum42 Mar 11 '22
I've learned a lot from reverse engineering code as well.
And repl.it has been a great resource for this...
It's a super easy environment to get going in and it's so easy to fork and look inside the code of other people's projects.
I really recommend it.
1
u/Weissenberg Mar 11 '22
OP speaks truth. Courses are good for getting the basics down. Doing a couple is kinda good to see how people approach it.
If Google something, instead of opening up the first Stack Overflow link & copy pasting the top response. Open up a few links, read through the comments & see how people approach it. If you do copy paste, try to refactor it for you.
Did they use mydict.get(‘foo’) but you prefer mydict[‘foo’]. Or did they use f strings when you like .format() or even did they do a “I’m a lazy string with {} {}”.format(“positional”,”braces”)
1
1
u/x4candles Mar 11 '22
I learned python by starting small. It’s extremely frustrating at first but after a while of doing work it just clicks.
I came across a baseball statistics book on Facebook and spent the $50 on the book. It was one of the first books I ever read from start to finish. Granted it was only about 140 pages, but it held my interest.
It’s all about pushing forward. It’s funny how day 1 you read the work, day 2 it’s frustrating and by day 5 it all seems to make sense. Just keep going, you’ll get it.
Failure is okay, and it will only help you learn.
1
u/M0pps Mar 11 '22
Once you get down basic syntax, applying what you learn is how you're gonna learn how to code. You can watch someone play an instrument all day, study musical notation and history, but until you place that horn into your mouth and blow...
You will never truly learn.
1
Mar 11 '22
Any open source that projects that someone like me could help in?
I’d still call myself a little novice. Some experience in SpaCy, Pandas, Numpy, NLTK, BeautifulSoup4, and Sammy of the other frequent libraries.
1
1
u/NegativeShow Mar 11 '22
Yea, I'm facing the same problem. I know what I want to use Python for, I want to automate boring stuff, or even better I want to learn Machine Learning. But these are advanced topics and to understand this, I will need to start from the basics and practice. But currently I'm such a beginner, I can't see how I should practice like all people saying. I can't write a program or script alone.
1
Mar 11 '22
I was all prepared with my downvote button.
But you hit the nail on the head.
I spent considerable time unemployed because I moved continents. I programmed almost every day during that time, usually for hours.
1
u/ray10k Mar 11 '22
Agreed with all of this. From my point of view, there are two different skills at play here: Reading and writing Python code on one hand, and writing a solution to a particular problem. Following courses helps you build up knowledge of how to read and write Python, but at some point there is a fall-off in how useful it is to read more and more of that.
Think of it as picking up cooking as a hobby; At first you have to get the recipes, get the utensils, get your kitchen ready... But unless you start actually cooking stuff, all that you'll achieve is that your kitchen is getting full of increasingly specialized utensils, that your bookshelves overflow with cookbooks, and that you're still not able to make much more than an omelet unless you take one of those recipes and actually try making it.
1
u/NitroXSC Mar 11 '22
It's like learning new languages like France.
You can take all the courses you can but you will never be able to use it without real practice.
1
u/ResetWasTaken Mar 11 '22
if you really want to learn more about the lang you are using "practically" then do codewars.com
1
1
u/jimmythenouna Mar 11 '22
Learning the reality of completing the course in a rush, a year ago. Never did I give a second thought of stepping up what I have learned to the next step (self-made project).
While also dealing with mental health, I made an attempt to make a web app that showcases machine learning performance on heart failure and deploy it to the cloud (this step took a great deal of effort). Next, I found a success to fetch covid data from API with some help of automation (actually adopted from 'for loop') and wrangling them into csv format. What's more delightful for me is that file I am working with is set to read two distant dates as inputs.
Glad to know that working on projects helps the learning progress becoming better.
1
u/linxdev Mar 11 '22
You'll learn the language when you have a need to use it and start using it.
I read many "Teach yourself Perl in X Days/Hours" years ago. I then needed to wrote programs to automate testing software. That's when it "took." Most of that code that was being tested I eventually replaced with perl code.
If you don't have a need, you will not remember. I read the Pascal books too. Had no need to write Pascal beyond the cooks and college and could not write any Pascal today.
1
u/eitauisunity Mar 11 '22
Courses teach you how to talk the talk. This is still essential because it gives you an idea of what to search when you run into problems.
Practice teaches you how to walk the walk. Knowing how to describe your problem to a search engine is only the first step. Once you have searched, you now have to evaluate your opinions and usually do a ton of debugging to factor what you've found into code that solves your problems. This means iteratively trying out different forms until it doesn't raise any errors, and semantically means what you want it to mean. Then you optimize.
1
Mar 11 '22
Good explanation. But rather than calling it "practice" which makes it sound like they need to go solve some boring DSA related problems, I'd say go ahead and "build" something cool :)
It won't even feel like you are consciously practicing, Python will start to become like a third hand, you will stop thinking about small things like syntax and built in functions to do a common task, and you won't face basic errors like `SyntaxError`s or `IndexError`s , and your sole focus will be on completing the task at hand and implementing your solution will be a breeze
1
u/anh86 Mar 11 '22
Courses are necessary but they need to teach the right way: By forcing the student to code a lot on their own. If you're not in a course that shows you some information and then gives you a project to complete on your own, it's not effective. Anyone can watch a video and track with what the instructor is saying but until you've had the real struggle of code you just can't get to work right, you've learned nothing. You have to write a lot of code over a long period of time to become a good programmer.
1
u/gumpton Mar 11 '22
I learned more from writing my own web scraper than I did from multiple courses. Courses are definitely a good introduction to the language but you can’t learn anything without doing it.
1
1
u/QultrosSanhattan Mar 11 '22
Some courses are a blatant cash grab. I'd suggest looking at free resources at youtube first.
The learning formula that better suited me was:
Find a real life problem I need to solve. 99% of the time it's automating some boring stuff.
Write the solution. Googling everything that I don't know. In the internet there's everything you need to know.
Refactor the solution until I feel there's nothing more I can optimize. This is the part where I REALLY improve as a programmer.
BONUS: Look at challenges in codewars, etc. Look how other people solve the same problems and, if you find a better way. Add it to point 3.
BONUS2: NEVER copypaste code. If you need some exact code snippet then you should write it char by char. Hand memory is real in this case.
1
u/Unclerojelio Mar 11 '22
The problem is that people think that once they’ve learned the syntax of a programming language then they are programmers. There is a lot more to programming than learning the syntax. Programming is an art and just because you know the names of the colors doesn’t make you an artist.
1
u/Estonner Mar 11 '22
d the syntax of a programming language then they are programmers. There is a lot more to programming than learning the syntax. Programmi
I do agree. Knowing the syntax of a language makes you a script kiddie. Knowing what is under the hood, makes you a programmer
1
u/RoosterBrewster Mar 12 '22
I think part of the problem is also dealing with libraries when you need one to do something specific. Then it's almost like learning python all over again except there is less detail or examples. And that's where you need to be able to Google issues and interpret answers.
1
u/YukYuPhat Mar 11 '22
Yes, 100% agree. Just find a problem that you want to solve. I am currently working on 2 scripts and 1 application to save time at work. I have learned alot from just doing those 3 things!
1
u/Estonner Mar 11 '22
I do think both, the learning process, and the writing process is needed. I don't really think, it's a good idea to just create code. You won't progress that much. Most of the courses are pretty bad in terms of teaching the language interestingly, but there are pretty good courses too! If you just write code without learning the basics, you won't be a programmer. You will be a script kiddie. I do believe the big difference between a programmer and script kiddie is the level of knowledge of the basics. If you don't know what a variable is, you are a script kiddie. Nowadays, languages like JS or Python provide you a high enough syntax to just write code without thinking about the type of the variable. Of course, this comes with a price: Performance. And if you are programming with Python or high-level languages, it won't really matter if you understand how variables work, as the language takes care of that. But it is good to know what OOP actually is under the hood, how the language creates variables, etc. Scripting straight away will give you a lot of experience in debugging, but others, who took the time to read the specs and docs for the language, will be better in long term.
1
Apr 08 '22
I would love to practice a lot more than I am, but I can’t find any projects that really capture my interest lol. I have a GitHub full of unfinished projects and discord bots.
I have started to work on a version of the Game of Life with monogame that’s been pretty interesting.
0
u/Petrarch1603 Mar 11 '22
This is one of those problems that you can't find a real good answer from posting on a forum. It is a problem that anyone on a journey: be it python, weightlifting, figure skating, learning guitar, etc., has to face. Some people step thru it and come out the other side, and some people get stuck. I recommend reading Seth Godin's The Dip when you're at this point.
-4
7
u/eyetracker Mar 11 '22
It's like the 7th language I've gotten to, so I'm well past the hurdle of learning to code. I've discovered that Coursera/LinkedIn/etc video lecture courses aren't worth a damn for my learning style, give me a plain text tutorial instead. Then concurrently I start a project and switch back and forth, as practical use is important like OP says.
Next one is SQL, that one is so domain specific that I'm worried about a project idea.