r/learnjava • u/[deleted] • May 13 '19
Is it normal to feel really stupid while learning Java because of constantly not realising what's the best way?
I guess yes but I really need to hear your stories of "everybody say programing is for geniuses so that's why they give up, but I had confidence in me and I ended up being a pro no matter of my genes because I carried on"
18
May 13 '19
You don't need to be a genius, you just need to plan, create, and implement an algorithm. The human mind is not great at dealing with huge complex problems so we create an algorithm and break one big complex problem down into small simple problems and solve each one and piece them back together. So we're only solving a whole bunch of simple problems. You don't need to be a genius for that. As for doing thing the best, most efficient way, well, I guess that comes with experience.
3
May 13 '19
Yeah, the algorithm thing is what I'm starting to see it's the key to understand it... I'm reading "Data Structures and Algorithms" to see if I can learn how to think in that way...
1
u/gokulegolas420 May 13 '19
Hey I'm literally going through the same book and as approachable as it is, I often feel like I have to go over the material multiple times before I even start to get it.
I don't have any advice other than keep plugging away, eventually it'll stick. With regards to Java I found the excercises in in codegym.io helpful. They have tons if excercises which really helps cement the syntax.
1
May 13 '19
I guess you can't get it at first time part by part because it's very abstract and you cannot easily link it to natural phenomena so you have to have "faith" and patience...
It's like... "The comprehension of a Java's concept often requires some level of comprehension of other Java's concepts". I don't know how to say it but it seems it's a "holistic" and intuitive knowledge that is builded as a whole, not as a sequence of fully understood pieces. Maybe everything is that way (cooking for example is more than following well learned instruction) but I think programming is especially that way because of what I previously said: computing is very abstract, it's not like real life objects ;)
12
u/ryuzaki49 May 13 '19 edited May 14 '19
I didn't understand the very basics for a very long time. How the main method worked and instance variables were really confusing to me. Objects? The fuck knows what are those. Methods? Why is my static method call not compiling? Who knows.
People mocked me as useless. But I persisted, and now I work as a Software Engineer and Java is my main language. I have a hunger to do what I do better. To learn more about Java and other languages and environments.
Programming is for geniuses but also for people that don't give up.
3
May 13 '19
So programming is for geniuses but also for people that don't give up.
That's a genius phrase.
2
u/Aturn13 May 14 '19
Honestly, methods, objects, and classes were one of the main things in Java that I didn't understand. Although I know a little bit more about each of them, I still need a lot of practice.
6
May 13 '19 edited May 13 '19
It is normal to feel a little discouraged when you can't understand concepts in the beginning, but the learning builds upon simple steps. The steps have to be small initially, but the experience of learning Java gets fascinating after a little while. I cannot emphasize PRACTICE enough. Imagine a problem, and solve it with Java as much as possible.
Also, make notes as you learn. Cram.com is a great (free) tool for making notes you can access from anywhere as long you have an Internet connection.
When it comes to programming, it is imperative to think logically and critically. When you run into programming obstacles, remember to keep calm and approach how to solve the issue rationally. Like the others are saying, resources like Stack Overflow, Geeks for Geeks etc. are abound nowadays and there are excellent inputs from folks on these sites who know what they're doing.
Lastly, feeling "stupid" can be a powerful friend in the end. The times I felt "stupid", I felt discouraged, but I also had a stronger resolve to keep pushing and I can honestly say when you break through the issues, the feeling of internal reward is something else...
1
2
May 13 '19
Even the best don't always know how to do things and are asking others, searching stackoverflow, etc.
1
May 13 '19
I guess if an elegant solution is already created by somebody, you just have to copy it. There will be time to improve or expend energy on unsolved problems...
1
5
u/eyeIl May 13 '19
All of the replies on here are SUPER encouraging. Can't wait to get home from work and practice
2
u/Zarkahs May 14 '19
nobody knows everything, no matter how much they claim to. you should try to have fun coding, because it's actually really fun solving problems and finding better ways to structure/refactor your code so it looks really pretty at the end. you're just learning, so play around, build programs to do random things, and post here and get some tips on how to make them nicer, it's a journey and you should enjoy yourself along the way. you'll learn a lot more like that than you would by trying to achieve some arbitrary point that you need to be at before you can call yourself a developer, you are one right now, albeit an inexperienced one ;)
1
u/DearLawyer May 13 '19
You can be doing this for decades and still feel stupid. Partly because as you get better when you do something stupid you notice whereas a n00b wouldn't see it as such =P
1
1
u/Loumier May 14 '19
Whats the kind of developers most hired by NASA? I would imagine embeded systems developers.
1
u/Droidheat May 14 '19
Haha, I am programming in Java for almost three years now and only realized the complete difference between equals() and == three days ago. It's normal to feel stupid while learning this.
1
u/Aturn13 May 14 '19
I agree with manabreak. I am still a newbie (be doing java for like 2 months now). All of my programs are still under 500 lines and are super basic, despite that I love coding. I haven't decided whether or not to get into Software Engineering or Cybersecurity( as an Ethical Hacking). It is 100% ok to be stupid, so we can be stupid together.๐๐
0
59
u/-manabreak May 13 '19
For the first few months, I struggled to even remember the syntax of for-loops and really couldn't wrap my head around the zero-based indexes. I stumbled over the most basic stuff and felt like I could never do any better.
But the thing is, I thoroughly enjoyed it all. I was in constant awe when I got something to work (even if it was botched by the next line of code). For my first year of coding courses, I basically did all the exercises and then some coding of my own, trying out stuff and playing with the code. I knew it was my thing, right from the get-go.
The code I wrote was atrocious for the first two years, and then I'd say I was rather mediocre for about five years after that and only started to learn proper ways of doing things about three years ago. I don't think I'm a genius and I still have a lot to learn all the time, but that's part of the fun for me.
My advice is to just be stupid and feel stupid and play around with code.