r/learnjava • u/AntMan5995 • Feb 04 '21
Lessoned learned as a beginner programmer
Hey Everyone!
Hope all is well and that you are staying safe. I'm not new to programming as I have went to a non profit bootcamp learning Javascript back in 2019. Since then I was going back and forth in which language to learn between sticking with JavaScript, Python, Ruby and even Java. It took me about a year to decide on a language and truly stick to that language. My advice is for beginners especially self taught learners like myself, DO NOT JUMP FROM LANGUAGE TO LANGUAGE!!!! Stick to one language and get really good at it. It will pay off in the long run. I'm not a huge fan of JavaScript so I have decided on java and sticking with it! I hope this brings some encouragement to others out there. Don't make the same mistake I have made.
25
u/itsAlphapolaris Feb 04 '21
I would advise anyone starting new to not spend too much time trying to learn various languages, please spend Time on learning concept like how to analysis an algorithm like calculating time complexity ,figuring how to use do-while - for loops then move on to learning Data structure and algorithms like stack , queue , linked list , graph, tree , recursion etc If you are good in DS and algorithms , a lot of company will be willing to hire you even if you don't know the language they work on.
1
u/Eulerious Feb 05 '21
While I agree that you should not spend too much time learning various languages and rather focus on the things you listed, languages can teach you important concepts as well. Yeah, most languages are multi-paradigm languages. But I think it is easier to learn functional programming with something other than Java. I also would advise to learn a dynamically typed and a statically typed language so you get to know the differences.
One of the important questions here is: what do we classify as a beginner programmer? First weeks? First months? First year? Because yes, during the first weeks you should just stick to one language and learn everything from loops and conditions to the data structures of your language. First months? You can (and should) pick up another language. (Second half of) First year? You should start caring about good code (patterns, SOLID, whatever). And all of this depends on how much time you can devote to learning - some can learn 5h per week, some can spend 40h per week... The first months of one can take another person years.
6
Feb 05 '21 edited Feb 05 '21
I disagree a bit. Especially for people who want to be more well rounded. Concentrating solely on one language may not help you later on when you need to understand something else. Like someone said earlier about java: understanding an OOP language helped tremendously with using other OOP languages. So even though I started with java, I learned JavaScript and Python at the same time. I thought it was more beneficial. I think overloading is not good at all, but mixing 2-3 languages (especially if you’re learning one for back end and one for front end) helps tremendously later on.
2
Feb 05 '21
For people who don't have a programming background, it's not very efficient to learn multiple languages when you are just starting out. It's better to specialize so that you learn the fundamental programming principles, explore data structures, algorithms, frameworks, and etc without having to juggle between X languages, syntax, and etc.
This way they can get a job quicker then decide to learn other languages if needed/want to.
3
Feb 05 '21 edited Feb 05 '21
I think it depends on the person honestly. I think some people could get stuck being really good with one language and have a hard time later on with other languages because they are stuck on what they know. Different learning styles I think.
1
u/SolveMrReece Feb 05 '21
Yeah I agree, I think you should be self-aware enough to realize if you are jumping between languages because you got stuck on one and are avoiding a problem or if you are genuinely trying to learn. For me, learning multiple languages has been really beneficial. Whenever I look at a problem my brain looks at how I would solve this in Java and JavaScript and this compare and contrast method really solidifies concepts in my brain. It wasn't until I covered OOP in both Java and JavaScript that I felt I really understood what I was doing.
1
16
u/trisul-108 Feb 04 '21
I think you really need at least two languages, JavaScript and the one you concentrate on. Without JavaScript, you are lost in web UI and restricted to backend where Java is so great. As a beginner, you need to be able to do Full Stack or it will be too restrictive ... this will also bring in SQL. Sorry about that, we're up to three already.
7
u/Pauli7 Feb 04 '21
And whats bad about beeing backend only? 🧐
4
u/trisul-108 Feb 04 '21
I think that at least when starting out you should understand apps end to end. Any hole in your knowledge will gnaw at you. Later, we all specialize and the field is so enormous it will be even more so.
2
u/hatsunemilku Feb 04 '21
I beg to differ partially.
While it is true that knowing a programming language really well is good and that you should focus only on a single language at the start, it is not because you know it that is good. Its because knowing said language gave you the knowledge and resources to solve problems.
Taking java as an example, by knowing java, you can basically jump between OOPS languages without much issue. Why? Because learning java taught you how to handle objects, how to handle methods (or functions), how to handle utilities, etc.
This is the main reason why veterans can jump between languages in a 5th of the time that a new programmer would take. they don’t know the language, they don’t need to know the language in fact, but they know what tools they need to know to get the work done and how the principles of said tools work.
Personal example (I’m also a relatively new programmer in college):
I had my database course last year and it was hard because it was on MySQL so I was a relational one. I was coming from learning C so I didn’t have real knowledge of objects (relational SQL LOVE objects).
so, while I got a 95 out of 100 on my grade, I wasn’t happy with my performance.
This is when I started learning java and it all clicked. I was able to grasp the “how-to” on objects relatively fast and I feel comfortable in java. This also gave me more confidence in my abilities to plan and create databases as I could now see everything in “objects”.
This doesn’t mean I’m good, it means that I can jump between them without much problem because I understand the concept. hence, I can solve problems with java AND MySQL.
1
u/Migeil Feb 05 '21
relational SQL LOVE objects
I have to disagree here. I'm guessing you're referring to ORM? ORMs have to exist exactly because SQL is not object oriented and we need a way to link OO languages to our database.
Objects store both data and behaviour. That's a problem already, there's no behaviour in SQL data. Objects also allow inheritance and composition. Again, this is something SQL has no idea how to handle by itself. We need to explicitly tell our database that composite objects correspond to data in other tables via foreign keys.
ORM exists exactly because SQL does not love objects.
0
Feb 05 '21
I know the feeling..my progression C# PowerShell scripting C++ C Java Spring framework Thymeleaf Html /CSS Scss JavaScript Angular/typescript React native
2
u/Compleanxiety Feb 05 '21
It’s hard not to jump from language to language in college because that’s how the degree program is structured.