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 trialTodd Ferreira
3,192 PointsIs it necessary to learn javascript to learn Ruby and Rails development? Is it important to know javascript before Ruby?
In the Rails development track, one of the requirements is javascript basics. Is this important to know to learn Ruby and Rails?
2 Answers
thomascawthorn
22,986 PointsIn a word no. You will be able to get by but you will have a much better experience if you go through the required steps!
Tyler Fowler
20,743 PointsActually.. sort of kind of yes. If you're just writing, say, a REST API and you don't care about what the front-end will look like (or if it's not your job) then perhaps it's not, but JavaScript is the only language a browser natively speaks (other than HTML/CSS/HTTP of course) so it's very important to know. Even in frameworks that are far from JavaScript (.NET in C# or Java web applications) I've had to use JavaScript for either visuals or little hacks to get rid of obscure bugs in the server side of things.
thomascawthorn
22,986 PointsJavascript is used to create more engaging user interfaces but is not necessary to learn Ruby on Rails. Ruby on Rails is an application framework. JavaScript is only required in this course because it's included in some of the front end episodes. JavaScript can be used to progressively enhance applications as you mentioned, but is not a prerequisite to learn the Ruby on Rails framework itself.
Aurelian Spodarec
7,369 PointsWith ruby on rails i can build an aplication facebook like right? i mean comments , log in olog out this stuff.
thomascawthorn
22,986 Points- But Javascript is going to be important if you're planning on becoming a Ruby on Rails Developer.
Aurelian Spodarec you can build this kind of application using any server side language and database combination.
A framework like Rails for Ruby (or Laravel for PHP) simply provides shortcuts. It comes pre-packaged with functions and functionality that are native to a lot of database dependent applications, which saves you from recreating these for every application you build.
With Ruby on Rails you can build an application like Facebook, and the build a simple rails application course will take you through this. Be aware, it uses an older version of Ruby on Rails so you have to make sure the version you're using matches for a trouble-free ride. If you're looking to use the current version, you will hit some bugs (but nothing you couldn't solve!)
Aurelian Spodarec
7,369 PointsUh , what i wanted to do is to learn Ruby on Rails now and get to know all the database and all that stuff first and then to learn JS . Im currently going throw ruby foundations and im getting slowely used to it . I know JS basics and it looks similar to Ruby so i hope it will be easier to learn it after i get the basic database thingy to log in etc.. on ruby if thats good idea? Oh well i hope when i get there i will go fluid without any week problems : p For some days i though i will need PHP and Ruby do do certain things but i get it now.
Tyler Fowler
20,743 PointsAh, I just read more closely to the original question. I was mistaken, no you don't need to know JavaScript before learning Rails. Not really at all. The question I was speaking to was more along the lines of "Should I know JavaScript when using the Rails framework." To which the answer would likely (but not always) be yes.
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsI get it now as you said better experience as when i learned JS basis and then went to php , learned these basics and now on Ruby , now on ruby i got the idea and all was well, the same i guess but different grammar as i say it , like in JS you have var for variable and in php you have $ for variable so as in ruby you just write variable .