Thursday, September 17, 2015

Frameworks for python & Ruby

                                               

                   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:
  1. 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]
  2. default behavior - A framework has a default behavior. This default behavior must actually be some useful behavior and not a series of no-ops.
  3. extensibility - A framework can be extended by the user usually by selective overriding or specialized by user code providing specific functionality.
  4. 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:
  • Pinterest
  • Instagram
  • 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.

Monday, September 14, 2015

Python Vs Ruby - Single window Comparison information



                                     Python & Ruby 



Python vs Ruby

Ruby and Python are both agile, interpreted languages with an object oriented design and very large communities. Although the languages share some ideas, syntax elements and have almost the same features the two communities have nothing in common.


Python 

Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL). 

Ruby
Ruby is a dynamic ,reflective ,object-oriented , general - purpose programming language. It was Ruby is a designed and devloped in the mid-1990s by Yukihiro "Matz" Matsumoto in japan . According to it's authorss, Ruby was influenced by Perl,Smalltalk,Eiffel,Ada and Lisp.

 Comparison between Ruby and Python 

comparison between Ruby vs Python

How are they different?

The Language:

The Ruby on Rails web framework is built using the Ruby programming language while the Django web framework is built using the Python programming language.

This is where much of difference lies. The two languages are visually similar but are worlds apart in their approaches to solving problems.

Ruby is designed to be infinitely flexible and empowering for programmers. It allows Ruby on Rails to do lots of little tricks to make an elegant web framework. This can feel even magical at times but this flexibility can be good and bad at times. Sometimes code works when you didn’t expect it to and leaves you feeling really impressed. Other times the Ruby magic can make it very hard to track down bugs for hours.

Python takes a more direct approach to programming. It’s main goal is to make everything obvious to the programmer. This sacrifices some of the elegance that Ruby has but gives Python a big advantage when it comes to learning to code and debugging problems.

One great example showing the difference here is working with time in your application. Imagine you want to get the time one month from this very second. Here is how you would do that in both languages


Ruby
require 'active_support/all'
new_time = 1.month.from_now

Python
from datetime import datetime
from dateutil.relativedelta import relativedelta
new_time = datetime.now() + relativedelta(months=1)