What is the difference between Ruby on Rails and Ruby? I have asked four people but none can come up with a definitive answer. Is Rails a library of sorts for Ruby, a la Django to Python or Cocoa to Objective C, or is it a totally different language with different capabilities? What can one do on Rails that cannot be done just with ruby?
Ruby is an open source, object oriented general-purpose programming language, whereas Ruby on Rails is an open source web development framework. As a programming language, Ruby has its own 'syntax' or language, as well as unique rules for its use and application.
Rails might be your first framework, and Ruby your first language. If you're new to programming in general, you'll want to start with Learn to Program. It'll teach you to write your own programs in Ruby, even if you've never written code before. It'll start you off with good habits.
Rails is not a programming language. Ruby on Rails is a web framework. Web application frameworks like Rails still use scripts written by developers, but they don't use their own language. Rails uses the Ruby programming language.
Django is to Python what Ruby on Rails is to Ruby. If you are looking for an alternative of Ruby, maybe something that works cross-platform, and enables full-stack web development, Python is a good option. If you decide on Python, Django is your go-to framework as it won't require frontend frameworks.
Rails is a framework for building web applications with Ruby. Ruby is a general purpose programming language. Yes, Rails is analogous to Django.
Ruby is a programming lang like python and obj C. Rails is not a programming lang. It is a web framework for creating web apps and uses Ruby programming lang. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With