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
Greg Kitchin31,522 Points
Commonalities in programming
I'm writing my own small programs to help consolidate my knowledge, but want to write up some notes of the basic elements that are common to all languages, such as loops, conditions, data types (lists, dictionaries etc) functions/classes, etc, and have them nearby so I can refer to them at a glance. Then, hopefully take the same approach to other languages (currently doing Python, though I've done some Java in the past).
So what elements are common to all languages then?
Daniel Vigil26,473 Points
You can get into more specifics about what is under the hood of the language and why each one requires the syntax that it does but I think if you can get an understanding of general functions like loops, conditions, math functions, comparison functions, functions/methods, classes and Object Oriented programming you will find it to be a lot easier to jump into new languages by focusing more on how the language needs to be structured for those basic elements.