Frameworks for python & Ruby
What is Framework ?
A software framework, in computer programming, is an abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code providing specific functionality. Frameworks are a special case of software libraries in that they are reusable abstractions of code wrapped in a well-defined Application programming interface (API), yet they contain some key distinguishing features that separate them from normal libraries.
Software frameworks have these distinguishing features that separate them from libraries or normal user applications:
- inversion of control - In a framework, unlike in libraries or normal user applications, the overall program's flow of control is not dictated by the caller, but by the framework.[1]
- default behavior - A framework has a default behavior. This default behavior must actually be some useful behavior and not a series of no-ops.
- extensibility - A framework can be extended by the user usually by selective overriding or specialized by user code providing specific functionality.
- non-modifiable framework code - The framework code, in general, is not allowed to be modified. Users can extend the framework, but not modify its code.
Ruby on Rails or Python and Django Which Should be Best in Industry
Ruby on Rails vs Python and Django
From a technological standpoint, there is no “winner” between the two. RoR and Python and Django share certain similarities and of course have differences.
When it comes to deciding which to learn, your personal preferences as well as end goals are the most important factors. Let’s take a quick look at RoR compared to Python and Django.
Similarities:
Server side frameworks
Adhere to DRY principle (don’t repeat yourself)
Both have community supplied extensions and packages (which makes building a web app from scratch a lot easier)
Popular and trusted web application frameworks in the programming world
Ruby on Rails
Ruby is a programming language that was created in the mid-1990s in Japan by Yukihiro Matsumoto. Rails is an open source web app framework, written in Ruby, that appeared in 2005.
Benefits of using RoR
Main selling point of Rails is the philosophy called convention over configuration (CoC) – meaning it is a framework that has a structured layout with defaults (read: it’s easy to get up and running - sort of like a web app starter kit) Ruby syntax is ideal for those who prefer pattern-matching characters because it uses differing characters as analogues to keywords It’s built for speed and adaptation , Strong support community both online and offline Seen frequently: In the startup world.
Sites built with RoR:
- Hulu
- Square
- Airbnb
Python and Django
Python is a programming language that was created by Guido van Rossum in the early 1990s. Django is a free and open source web application framework, written in Python. Its initial release was in 2005.
Benefits of using Python and Django
Developer has more control in choosing layout and configuration options Transparent and minimalist, but things need to explicitly included Compared to RoR, many find updates to be less painful and less frequent
Python has a clean syntax that resembles English Python is stronger in areas like data manipulation, analytics, system administration, and scientific programming Seen Frequently: In the academic and science world.
Sites built with Python and Django:
- Disqus
Ultimately, the main difference between the is that RoR requires less work to get up and running and Django allows for more customization.
I Started my career python for my career it s most emerging programming language in this world at this time i found some difficulties for do some web application in python , this time i heard about Django , when i start Django i really take hardwork for studying Django because i didn't working any frameworks i did'nt even know what is advantage of frameworks , but i just enter to the Django its awesome its really easy to learn , many supporting community is available and we can do whatever we can. Now i know the frameworks from python , which is Bottile,Flask,Pyramid , i contribute three packages in the Django , Currently i working with ruby on rails.