Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Joe Dayvie
Joe Dayvie
11,956 Points

How to avoid confusing different languages?

Hello,

I am quite new to serious coding and have decided to start with Swift as my first language to learn (besides HTML & CSS since those are not technically "languages"). Anyway, it has its tough moments and I am trying my best to grasp concepts (I just think the more practice I get the better I will become).

I was viewing another course on Treehouse and it showed a variety of languages with their own, unique syntax. While I know the general idea is the same, how do you differentiate between languages?

Do many programmers stick with a couple languages to use and know them well? Just plenty of time, patience & practice? Is it not expected to know the syntax for each and researching is common?

I appreciate any information you may have as I am simply curious and thought its good to understand the expectation of that now =)

Thank you!

Joe

3 Answers

Hi Joe! I have been (more seriously) programming for five years now and have experienced a variety of languages. I would say it is a mix of all! Definitely patience and practice in the languages you are frequenting most will make their syntax feel second nature. But with other languages or ones you have done in the past but are refreshing your memory, looking things up online is definitely a valid option. In one of my software engineering classes in college, we took the exam on our laptops and our professor told us we could use the internet if we wanted since when we're "real" software engineers, we will be able to look things up whenever.

The important thing is the semantics, and syntax can just be googled. Though the more comfortable with a language, the less you have to google; and the less you have to google, the more quickly stuff can get done. I hope you are having fun on your immersion into the programming world!

Joe Dayvie
Joe Dayvie
11,956 Points

Katie,

I appreciate you taking the time to respond! =) Its nice to know that as I progress, searching via google is not frowned upon. Of course the more we know the better but I know I tend to criticize myself too hard sometimes (don't we all?).

Especially since Swift is my first language, I am just getting an overall understanding of the language and then specifically to Swift as well. After this I will either finish up/refresh on Javascript then Ruby but I will see...so many options =)

Its been a goal of mine for a while so I am just happy I finally decided to make it happen.

Joe

Kevin Korte
Kevin Korte
28,149 Points

Hi Joe, I'll give you my two cents

  1. Do many programmers stick with a couple languages to use and know them well?

Some yes, and some no. It's personal preference. It's certainly good to focus on one area to become good at, but I find it too boring to just stick to 3 or 4 languages. I like to continue to learn and diversify my sills through as many languages as I can. I think most try to do that as well.

  1. Just plenty of time, patience & practice?

Yes, don't get frustrated or give up. If this were easy, it wouldn't be such an exciting and rewarding endeavor.

  1. Is it not expected to know the syntax for each and researching is common?

You should have a solid understanding of the syntax of the major comments of the language you are using, and as you learn more, you'll develop patterns in your mind that will help you remember the syntax between many languages. Some job interviews might test you on code problems on the spot, so having a good understanding of the syntax is helpful, however having the documentation of the langauge(s) you are using open on your computer is highly recommended. I use the documentation all day every day to help me get the syntax correct the first time around. And I still make syntax errors.

Joe Dayvie
Joe Dayvie
11,956 Points

Kevin,

Thank you for taking the time to read & respond! I am the same that I want to learn all I can, especially when I have such a strong interest & passion. I find myself having to slow down because I want to keep consuming more knowledge but if I don't take the time to really grasp the concept, then its all a waste!

I read that some interviews/individuals will ask to hand right out the code. Once I am more comfortable in programming in general, I will start to do that as I think it does 1: Make me more aware of the syntax errors and 2: Helps me memorize it more.

I appreciate it again =)

Joe

Jayden Spring
Jayden Spring
8,625 Points

Hi Joe,

I thought I must give my view given the past hour I have just had! As Kevin said syntax is everything, if you working in Swift/C variants the syntax is relatively similar, but it always helps to have a good documentation browser at hand to keep you on your toes (I use something called Dash by Kapelli, would highly recommend).

Personally I work mainly in C++ and JS and (now) dabble in Obj C and Swift. For the past hour I have been (nearly screaming) working in PHP and every 5 minutes I'm getting a syntax error of sorts as I'm realising I'm not doing something correctly, but that's part and parcel of the fun and pleasure of seeing your end product dazzling in front of you. As Kevin said don't give up, you have the best resource available in this day and age, Google! Most of the answers to my problems come by typing them into Google when the documentation of a platform becomes blurred lines after reading it for ages.

Like many people, and as Kevin said I too like to constantly learn something new, pushing myself. To this day I still have my first program that I wrote in C back in the early 2000s when i was a young teen and it always brings a smile to my face. I hope that everything goes well for you, and no mater how frustrated you get or think you may as well give up - we've all been there.... Sometimes daily!

Best of luck! Jayden

Joe Dayvie
Joe Dayvie
11,956 Points

Jayden,

Thank you for reading and responding - It's a great help to hear from many people. I will make sure to lookup Dash by Kapelli to keep as reference =)

It seems odd to say, but I do look forward to those days...although in my future years, I will probably laugh at myself for saying that. Being able to finish a project you built up and see it work successful must be an amazing feeling when it's quite complex.

It is nice to know that google is widely accepted and not frowned upon to check on syntax and others aspects. Obviously with more time and practice, I will remember more and take less time. That is quite an experience that you have - Congratulations!

Thank you again =)

Joe