Ruby on Rails Tuesday, December 29, 2015

Nojin Park <hourglassxe@gmail.com> writes:

> Hi all,
>
> I've started learning Ruby and I'm still learning the basics.
> My goal is to create web applications using rails and multiple API's (API
> mashup.. Google, FB, Twitter,etc...)

Welcome!

> I see most people coding in Java script when communicating with API's and I
> have 2 questions.
>
> 1. Is learning java script the only option to communicate with API's?
> 2. If yes, do I need to learn entire java script? or just learning small
> basic portion will still do the work?
>
> I have no "real coding experience" but have pretty good understanding about
> how the web works under the hood.
> Thanks in advance :)
>
> E

The answer to this is, to my mind, you code in the language of your
application. If you application is written in JS, you write in JS; as
your application is written using Rails, you write in Ruby.

What's possibly confusing the issue is that many public APIs as you have
listed transmit responses in JSON, which is a JS object. However, every
language used to communicate with web services has the ability to
understand that, including Ruby.

In addition, Rails has a tonne of contributed gems to interface with the
popular web services.

That said, you'll still probably need to learn some JS along the way
anyway because it's pretty much expected your own application front end
will need to use some.

Take it slow, learn in stages; there's a lot to learn and you should
expect it to take some time.

--
Tamara Temple
tamouse@gmail.com
http://www.tamouse.org

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/m2h9j1qeud.fsf%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment