티스토리 뷰
Django vs Ruby on Rails 공통점
routes.rb
- Django의 urls.py와 비슷한 역할
- Controller(Django에서 Views)의 메소드를 실행시켜준다.
ex) get '/gogo', to: 'lotto#index'
=> get방식의 gogo가 url에 들어오면 lotto라는 이름의 controller에 가서 index라는 메소드를 실행시킨다.
성능
- Ruby와 Python의 성능 수준은 거의 동일하다. 일반적인 CRUD 앱에서는 차이가 눈에 띄지 않는다.
성능이 우선 순위 목록에서 높고 수천 명의 동시 사용자에게 서비스를 제공해야하는 경우 올바른 선택이 아니다.
Architecture
- 두 언어의 아키텍처 는 MVC 모델을 기반으로하며 잘 구조화되어 있습니다. 앱이 적절하게 배열되고 프레임 워크 내에서 정의 된 경로, 컨트롤러, 모델 및 경계보기와 같은 계층간에 기본 구분이 있습니다 .
Django vs Ruby on Rails 차이점
Language
- Python vs Ruby
Philosophy
- Django’s motto is “the framework for perfectionists with deadlines” – it’s catchy! Django also relies heavily on the DRY concept (i.e. avoiding repeating yourself).
- 반복을 피하고 빠르게 개발 가능하다.
- With RoR it’s “Convention over Configuration”. You have to create less code in Rails to achieve the same results, because you skip the configuration part – which is important in Django. Thanks to this, Rails is said to be more magical – many functions can happen without strict definitions, all thanks to conventions.
- 구조화를 하기보다 규격화 되어있는 프레임워크이므로 같은 결과물을 위해 코드 작성을 덜 할 수 있다.
'Web > Python | Django' 카테고리의 다른 글
{{ Django }} - MySQL에 Data Import (0) | 2020.11.21 |
---|---|
{{ Django }} - MySQL 연동하기 (0) | 2020.11.21 |
{{ Django }} - AJAX in Django (0) | 2020.11.06 |
{{ Django }} - URL Dispatcher & Regex(정규표현식) (0) | 2020.11.05 |
{{ Django }} - Slicing in django templates (0) | 2020.10.15 |
- Total
- Today
- Yesterday
- filter#isalnum#lower
- 리모컨#완전탐색#BOJ#Python
- 날짜 계산#BOJ#완전탐색#Python
- 종이자르기#분할정복#BOJ#Python
- PassingCars#Codility#Python
- 파이썬알고리즘인터뷰#4장
- 공유기 설치#BOJ#이분탐색#Python
- 터틀비치#리콘#xbox#controller
- 순열사이클#BOJ#Python
- NumberofDiscIntersections#Codility#Sort#Python
- 백준 알고리즘#BackTracking
- Distinct#Codility#Python
- 배열합치기#분할정복#BOJ#Python
- 나무자르기#BOJ#이분탐색#Python
- Swift#Tuples#Range
- N으로 표현#DP#Programmers#Python
- 토마토#백준알고리즘#Python
- django
- 랜선자르기#이분탐색#BOJ#Python
- 병든 나이트#BOJ#탐욕법#Python
- 섬의개수#백준알고리즘#Python
- 반복수열#백준알고리즘#Python
- 암호코드#dp#BOJ#Python
- 미로 탐색#백준알고리즘#Python
- 쿼드트리#BOJ#분할정복#Python
- django#slicing
- Brackets#Stacks and Queues#Codility#Python
- Triangle#Sorting#Codility#Python
- API#lazy#
- 텀 프로젝트#백준알고리즘#Python
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |