r/learnjava • • 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.

82 Upvotes

16 comments sorted by

View all comments

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.