r/learnpython • u/mon0theist Aspiring Pythonisto • Jan 22 '20
Finally getting over "the hump" is such a great feeling
Posting this hopefully as an encouragement for others who are struggling learning this stuff to keep going.
The hump:
That initial stage when you're first learning where everything seems either way too simple to be of any use or way over your head so that you'll never comprehend it, so you feel stuck and unable to progress any further; then after some time you start to question how you managed to make it this far in life while being this stupid. Your brain labors to wrap itself around the understanding of these patterns and concepts that you know are simple logic, yet they elude your comprehension anyway, leading to tears of frustration and self deprecation. "I guess I'll just work Helpdesk my whole life", you start to think. Hey at least it's a job. You look at others' solutions to the practice projects/problems and you think "of course, that was so obvious. I'd have figured it out if I wasn't an idiot."
Then, finally, after several weeks or months or maybe even years, for some random reason or perhaps no reason at all, something clicks in your brain you finally start to "get it".
I first started trying to even have any semblance of learning to code like 3-4 years ago. Started with the free Code Academy Python course and bounced around to a bunch of different courses and books. Lots of ragequitting, lots of being busy with the working father & husband life, lots of just procrastination quitting and gaming instead. Lots of feeling stupid for not being able to think in simple logic.
But FINALLY, after trying to study and learn on the side here and there, after starting and restarting Automate the Boring Stuff like 3-4 times, I'm getting to the point where I can actually figure out the Practice Projects at the end of the chapters without having to go look up someone else's GitHub to get a solution. Obviously I still have quite a long way to go, but I'm finally starting to get over hump. Maybe I'm not retarded after all sniff
So if you're also stuck trying to get over the hump, just keep going and keep trying. It'll click eventually. Even if it takes a while. I know that sounds oversimplified and unhelpful but that's the same advice I got and I've found it to be true.
My current plan is to (finally) complete ATBS, then go through ATBS 2nd Edition just to see what new stuff is in there, then go on to complete CS50 via edX, and then I've got an Android development course on Udemy I bought a while back that maybe I can finally start on, and then from there, I don't know. I'm open to suggestions :) I'm trying to get to the point where I can actually work as a developer and get out of Helpdesk support, and maybe develop my own Android app(s) on the side.
But anyway, tl;dr: Keep going :)
EDIT: looks like someone posted the new MIT edX course so I hope I can complete that as well: https://www.reddit.com/r/learnpython/comments/esdgks/free_mitx_course_starts_today_jan_22_2019_on_edx
25
u/Alex_Jinn Jan 22 '20
Yes, keep going.
One thing I have learned is that if you get stuck, don't hesitate to seek help. Stackoverflow is the most convenient way to get help. If you're a beginner, whatever challenge you're facing is something that someone else has already seen.
Don't view places like Stackoverflow (or a textbook) as "cheating." If you're a novice, the best way to learn is to follow an expert or just other people who have been through it. Once you get good with the fundamentals, you will be in a better position to come up with creative solutions to new problems.
My click was when I just focused on one language and took more action with building projects. A lot of people focus on just learning the syntax. Then by the time they are done, they become distracted. When they get back in the game, they either end up learning a new language or relearning what they did before.
4
u/mon0theist Aspiring Pythonisto Jan 22 '20
The only issue I have with that is that I feel like if I'm not solving the problems using specifically what was taught in the course material then I haven't properly understood and absorbed the course material
7
Jan 22 '20
If you know the big picture, the flow on how to solve it, you are doing well. The rest is just details. And that's what books and the internet are for.
1
u/_TR-8R Jan 22 '20
Dude that's such a shame. The course material should be a tool that helps you learn Python, if reading it isn't helping then of course you should look elsewhere, you're blaming yourself for the textbook failing to communicate in a way that makes sense to you.
8
u/burlyginger Jan 22 '20
There.... Will be more humps :)
4
u/mon0theist Aspiring Pythonisto Jan 22 '20
Oh no
5
u/_________KB_________ Jan 22 '20
The next major step is to not just be able to understand and solve problems, but to efficiently solve them using optimized data structures and algorithms. That step can become another hump if you don't push forward and practice.
2
2
1
u/got_data Jan 22 '20
Given a list with an arbitrary number of functions (f, g, h, ...) such as
funcs = [lambda x: x*x, lambda x: x+5, lambda x: x/2]compose function z = ...(h(g(f)))
e.g. using
reducefromfunctools👿👿👿
2
u/ifoundyourtoad Jan 22 '20
I’m so new to all of this, how does it all work. Can I get python on excel and how much is it? I’m a super noob and I’ve done VBA. Very minimal but I understand the inner workings of it.
1
u/mon0theist Aspiring Pythonisto Jan 22 '20 edited Jan 22 '20
If you have the time, try to just go through the entire Automate the Boring Stuff. There's a lot of foundational stuff that has to be learned before you can get to the Excel stuff.
You can buy the book/udemy course if you want to support the author, but he also makes the book free to read in its entirety at automatetheboringstuff.com
2
u/Mark0P0LO Jan 22 '20
Python itself is free to install. The book “Automate the Boring stuff” is a big favorite for people just getting started. It goes on sale all the time and Udemy gives away their course that uses the book for free now and then. Looks like it’s $12 on their site right now for an MLK day sale. I think I got my copy of automate the boring stuff off of a humble bundle sale. I feel like I see python stuff on their all the time, so it’s worth checking now and then.
2
u/Stabilo_0 Jan 22 '20
I have the opposite feeling with same effect: when I understand something (lambdas, classes, async, pandas etc), even just one slightly harder than average part I get so overwhelmed by feel of accomplishment that I have to force myself to learn further. Don't think I'm narcissistic, I understand that there are more things to learn and, say, understanding lambdas doesn't make you any better, but that feeling is just as damaging to the progress.
1
u/mon0theist Aspiring Pythonisto Jan 22 '20
lambdas, classes, async, pandas
Where's a good place to learn those? I've briefly seen lambdas but I didn't understand their purpose
1
u/Stabilo_0 Jan 22 '20
In case of lambdas i took one python course on coursera, there were a lot of problems requiring lambdas to solve so its not a very original advice but you kinda have to use them over and over until it clicks for you.
Heres a good article on the subject https://realpython.com/python-lambda/
As far as im aware there is a division in used practices when part of programmers try to avoid using lambdas as much as possible or even drop them completely in favor of defined usual functions. I tend to do that too simply because i can understand lambdaless code later much better.
For the love of it i just cant remember it well enough like in this example i used in mentioned course:
r = sorted(sorted(r, key=lambda x: x[1]), key=lambda x: x[0], reverse=True)Unless you are very familiar with using lambdas you waste time trying to understand whats going on looking up for similar cases online (like i just did).
From my understanding lambdas are here when you want to call a specific function just once but dont feel like allocating some memory for it or space in code with 'def'.
>>> mylist [0, 5, 8, 9, 3, 1, 5, 6, 7, 9, 5, 3, 1] >>> sorted(mylist, key=lambda x: x%2==0) [5, 9, 3, 1, 5, 7, 9, 5, 3, 1, 0, 8, 6] >>> sorted(mylist, key=lambda x: x<3) [5, 8, 9, 3, 5, 6, 7, 9, 5, 3, 0, 1, 1] >>> sorted(mylist, key=lambda x: x>3) [0, 3, 1, 3, 1, 5, 8, 9, 5, 6, 7, 9, 5]Here lambda is used as an argument for key which expects either None or some function to sort mylist by. You could just write
>>> def bigger_than_three(x): return x>3 >>> sorted(mylist, key=bigger_than_three) [0, 3, 1, 3, 1, 5, 8, 9, 5, 6, 7, 9, 5]But lambda is shorter and if you wont need the function anywhere else why not to use it there then?
Another example i can think of is where you create elemenths using some sort of loops, heres one from pyqt5 tutorial https://www.learnpyqt.com/courses/start/layouts/
for n, color in enumerate(['red','green','blue','yellow']): btn = QPushButton( str(color) ) btn.pressed.connect( lambda n=n: layout.setCurrentIndex(n) ) button_layout.addWidget(btn) layout.addWidget(Color(color))here we create buttons via for loop and we want to dynamically connect each button with different layout so when user presses on button that layout would become active and visible. Instead of defining a function somewhere outside loop we just called lambda. And we cant just pass layout.setCurrentIndex(n) here because it will just work and return something to btn.pressed.connect function which expets a function to call and not a result of said function.
2
u/barryhakker Jan 22 '20
I guess it also really helps to figure out how you learn best. I've always been amazed at the ability of some friends to just take whatever theory and terminology of what they were studying for what they were and just... apply them. Over the years I have come to realize I am the kind of person who REALLY needs to start off first with building up the most basic framework of understanding before I can hope to proceed to application.
To put it in an analogy: if we were to study the topic of WW2 Germany my friends might start with reading first hand experiences from survivors whereas I might start off with studying the geography and climate of the Eurasian continent and its effect on history. I honestly have come to think that the two methods are opposites on a spectrum. Might be worth your while to figure out where you stand.
1
u/mon0theist Aspiring Pythonisto Jan 22 '20
Some people are really good at mental math, whereas I have to write everything down and show my work
1
u/WhatDaHellBobbyKaty Jan 22 '20
I cannot read a concept and understand it fully. I always say that I have to F it up and learn by fixing. I just have to play with it to retain the knowledge.
2
8
7
Jan 22 '20
I really appreciate your post as I am currently a CS student bashing my head against the wall of understanding vs implementation. One of my professors for my last degree would always say that, "if you don't struggle with it, you won't understand it." A truly maddening statement that is always true. Such a dick he was =)
7
5
u/sharkbound Github sharkbound Jan 22 '20
to kinda add on to this, i have found out myself that in programming, the journey to the destination is the best part, and if you keep trying regarding of frustration, you will get it done, it may take a while, and it may not be fast, but it will happen.
that moment when you break the barrier is the best part of programming, the feeling of
it took a week, but i did it, i made sure to see through the hard parts, figure them out, and get the finish line having improved, even if it might have been a tiny improvement
3
u/WhatDaHellBobbyKaty Jan 22 '20
Well put... I totally agree. I had one class where each program would take an hour or two to 'write' but then 6 hours to get it to work properly. Strangely the hours melted away. At the end, I was proud to have persevered through it.
Thank you to the OP because I am right in the void that you describe. I just try and find new 'projects' to code and hope it "clicks."
5
u/bei60 Jan 22 '20
you start to question how you managed to make it this far in life while being this stupid
I'm currently here.
It's nice hearing someone struggle and make it eventually, good for you pal! Keep going :)
3
u/Shootace Jan 22 '20
When you get through ATBS 1st edition, here is the link which shows the differences between the 1st and 2nd edition. I am finishing up ATBS on Udemy and at the same time using this site to complete the 2nd edition. Best of luck!
3
u/Bluedoug307 Jan 22 '20
No word of a lie... but i really needed to hear this and you described it perfectly. It being too easy and too complicated. Cheers brother i’ll get there too💪🏻 thanks so much for sharing
3
u/Jepruio Jan 22 '20
Exactly the same I’m reading through JavaScript Eloquent, which is literally confusing the hell out of me, best advise is to not skip that topic and keep trying, read other material online about it until you get your head around that topic, it is working wonders for me, although I get confused if I give it a while, even coming back to it the next day and suddenly it clicks
3
u/anchorthebanker Jan 22 '20
I’m only about two months in(on and off), but I really needed this. My problem is when I’m reading through my materials and doing their exercise problems, I have no issues, or I figure out what I’m having problems with pretty quickly.
But when I try to do something on my own, I have now idea how to do anything and it makes me so frustrated!
I really want to start building projects without having to reference the materials or look everything up, but maybe I just need to keep practicing and it’ll end up clicking one day.
2
u/tha_sauce Jan 22 '20
Thanks for this, just what I need right now to kick my training into 2nd gear. I'm using the Python Crash Course. The book is in 2 phases, the 1st phase teaches syntax with easy to follow tasks. The 2nd phase which im looking forward to is for projects. There is a game and web application.
Anyone know of other resources for python projects?
2
u/AussieMazza Jan 22 '20
Great post. I'm still below the point of fully 'getting it', but some concepts I'm now completely at ease with including dot notation (took a while to get my head around that for some reason).
There's always a solution somewhere online so it's more about figuring out why that particular solution worked or how the person who wrote the code was able to get the same result with far fewer lines of code.
I've only been into learning Python for a year or so, but have definitely come a long way. I intend to run through some of the projects in Automate The Boring Stuff soon and look forward to seeing some results of useful code!
1
u/0xbxb Jan 22 '20
Dot notation?
Do you mean like:
object.attribute1
u/AussieMazza Jan 23 '20
Largely, yes.
Specifically I was referring to calling a method within a class, e.g.:
newlist = [] newlist.append('item')
It seems fairly straightforward now but I knew what 'append' did (in this case), but didn't know why you use the dot.
2
u/geoffnolan Jan 22 '20
I had to learn Python as part of a university program and it went fast. They started with "hello world" and moved to lists and dictionaries soon after.
My first major "click" was when I learned about imports- It taught me that there *was* a beginning of programming. And that I was to work downward from there. It oriented me in the right direction.
2
u/acquireCats Jan 22 '20
Thank you! I needed this right now. I'm at the part where I've started and restarted a few times. I know how to do simple, simple things; but I feel like I am nowhere near where everyone else is. I know I need to keep on keeping on, but it can be so frustrating.
2
u/MrMoonMan2015 Jan 22 '20
Thank for this post. I am pretty much going to same process. Tried to learn python 4 years ago and felt I wasn’t going nowhere. Rage quit multiple times and felt this isn’t it for me. But the drive to achieve the ability of becoming a developer so I know that it’s the process of learning programming is what is hindering my progress. Thus, I am once again at square one in getting my foundation in Python. For me, I going over the book Learning Python by Mark Lutz. I am engaged in this voluminous book simply because I want the inner workings of Python. My goal is end up working in Big Data since I am scientifically inclined.
2
u/appsplaah Jan 22 '20
I know that sounds oversimplified and unhelpful but that's the same advice I got and I've found it to be true.
Not at all.
It's what every self struggling Python Self Learner like us needs.
Thanks and I wish you best wishes in your career ahead:))
2
Jan 22 '20
I'm gonna save this and read it again and again until I get past stage one.
I'm clinging for dear life here . ; )
2
u/0xbxb Jan 22 '20
It’s also really random sometimes. You’ll bang your head over something you don’t understand, then a day or so later your brain is just like: “alright here you go, you understand it now”.
2
u/mpeck001 Jan 22 '20
That’s encouraging. I haven’t even started yet. I have two goals learning more about Kali linux and pentesting and to learn Python. Through the years I’ve dabbled with trying to learn code. Get a chapter in and I’d drop it. Played with Kali years ago and stopped. I’m 43 and my life is in a place where I can dedicate time to it so I’ve been playing with Kali just past few weeks. At this age I do find it harder to grasp things but blame some of that to my own frustration. I have to relax my self organize my thoughts more and take notes. I also do microsoldering as hobby and side job. Fixing MacBook boards and phones. Random things as well. But. I am hoping to really finally learn Linux and coding before I’m to old lol.
1
u/hobbesosaurus Jan 23 '20
probably be easier to learn linux on a regular distro, and just have Kali as a VM
2
u/ernamewastaken Jan 22 '20
Just wanna say thanks for posting this. You really nailed down how I feel and many others I'm sure. I've been struggling for many many years but computers and programming still hold my interest. I find posts like this to be brave because trolls are so quick to tear down others, especially the noobs. These kinds of posts help me feel normal and not as stupid as my brain keeps telling me. Thanks :)
2
Jan 22 '20
Great post...let me say I have not reached the "it just clicked" point yet but I keep plodding along...I have a few years before retirement...too many actually...but I would like to be able to pick up contract programming jobs when I get done with my real job...making pizza subs...I do not make pizza subs...
2
u/terracehousesu Jan 22 '20
This post made me laugh and feel comforted, understood, and encouraged at the same time. Thanks for the realness and the push to keep going.
2
2
u/Pastoolio91 Jan 22 '20
then after some time you start to question how you managed to make it this far in life while being this stupid.
You read my tiny little mammalian mind.
2
Jan 22 '20
Galaxy brain moment: programming is a never ending series of humps, each feeling just as great as the last one.
2
Jan 22 '20
Dude, I never post on here, but I just had to say how much I commiserate with this. Also a working husband and father, seriously questioning my intelligence while trying to learn Python. I've almost completely finished a Udemy course and I've learned a lot but you perfectly summed it up when you said everything either feels too simple to be useful or so complicated I'd never figure it out. And here's the thing: I was actually CS major for a couple of years when I was fresh out of I high school, but I didn't finish, and as they say, "use it or lose it." I've wanted to be a developer since I was a teenager, more years ago than I care to think about. Life gets in the way. I think I've finally reached a point, though, where my stubbornness and self-discipline might actually overcome my lack of brilliance.
Judging from the number of comments and upvotes, there are a lot of us out here having the same problems. Good luck to you all and to myself. And thanks for the reminder to keep going.
2
u/IAmACoolMan Jan 23 '20
I identify with this a lot! One thing that has helped me with solving problems pretty quickly is drinking a diet coke or two to get in the right headspace.
2
Jan 23 '20
Congratulations on figuring things out for yourself and thank you for your post!
I was having a hard time getting myself into coding. I was interested in it, but I was making very little money, unable to afford bootcamps and the like (plus, I was highly suspicious of those magical 3-month courses).
I quietly gave up on it, but then I switched jobs from a 12h cash register worker to a humble 8h office job.
I befriended someone in the new workplace, we had a lot in common and he told me he'd been learning to code in his free time for many months now. He inspired me to try it myself, to push a little harder. He eventually quit, and now he's home, unemployed, putting most of his free time into learning coding so he can land a better job in a few months from now.
He's taking it seriously, and he's making a lot of progress. But meanwhile, I was falling behind. I started to neglect it, I was always tired, or not in the mood. I felt ashamed of myself, really. My friend was making so much progress, eager to show it to me and I kept thinking "wow, he's so smart, he has it all figured out while I'm too stupid to even learn the basics".
But then I found out I'm eligible for free university courses, and started to look into it more deeply. I sadly don't have the right qualifications for a course that gives a university degree/diploma, but I'm more than eligible for a weekend university course that is highly practice-orientated and gives a certification. It's for 2 years, and the last half year of the course is a junior practice job at one of the university's partners.
I have to wait till July to know if I passed but I have very good scores, and I'm having high hopes.
Since then, my whole thinking about this changed. I feel more confident and I stopped competitively comparing myself to my friend. I don't feel bad, or stupid anymore, instead I just feel happy, because he's already farther down a road I'm going to take soon too. I think "GOSH, of course he's better at coding, he's been coding for months at home now, you'll catch up to him!"
So thank you so much for your post, it was so good to read it!
And sorry for my rant, heh. ^^
1
u/pw0803 Jan 22 '20
Hear hear! I recently used nested for loops to return a list of all mongo dbs and collections and just that simple three lines of code made me feel like a god: I'm finally getting this!
Something along the lines of (sorry, mobile),
For db in MongoClient[db]: For cn in database[cn]: Print(db, cn)
Over the bloody moon!
1
u/stormshade69 Jan 22 '20
Good job!!! Keep at it im almost on the hump as well been keeping side tracked by looking for a job and often times technical prep work for interview
99
u/Ahren_with_an_h Jan 22 '20
My click was realizing that if I would release the frustration I am feeling and just focus on the problem at hand my problem solving brain will just do what it does. Sitting there fighting my frustration just holds onto the feeling and prolongs the lack of understanding.
There's no such thing as someone smarter than me, just people who have put more time in focusing on problems.