Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CI, Django, Rails

evanpurnama
September 24, 2013

CI, Django, Rails

evanpurnama

September 24, 2013
Tweet

More Decks by evanpurnama

Other Decks in Technology

Transcript

  1. A N D W H Y W E E N

    D U P U S I N G R A I L S CODEIGNITER. DJANGO. RAILS
  2. PHP, PYTHON, RUBY •  PHP <?php echo “Hello World” ;

    ?> Frameworks : CodeIgniter, Cake PHP, Laravel, Symfoni, Zend, Yii Success Story : Facebook, Flickr, Wordpress, Wikipedia, Zynga, MailChimp
  3. PHP Creator : Rasmus Lerdorf, hate programming, that’s why programmer

    hates him Fortunatelly he did not develop the PHP we know today. Dozens, if not hundred of people, develop PHP. He was simply the first developer. Full interview : http://www.sitepoint.com/phps- creator-rasmus-lerdorf/
  4. PHP “One of the key values at Facebook is to

    move fast. For the past six years, we have been able to accomplish a lot thanks to rapid pace of development that PHP offers. As a programming language, PHP is simple. Simple to learn, simple to write, simple to read, and simple to debug. We are able to get new engineers ramped up at Facebook a lot faster with PHP than with other languages, which allows us to innovate faster.” – Senior Engineer at Facebook
  5. PHP “And we do all of this in PHP, which

    is really pretty cool. It’s true that the platform wasn’t really designed for what we put it through and it hurts us from time to time, but that is to be expected. Once you get to the scale of computing we’re at, the language you use is much less important than the platform you build on it. A simple language change isn’t going to make these problems less complicated, or less awesome.” – MailChimp
  6. CODEIGNITER Code Igniter Link : http://ellislab.com/codeigniter Model View Controller (MVC)

    pattern. Compatible with almost all PHP version that currently exists in the market. Use Active Record to access database but no ORM build-in. (there are DataMapper, Doctrine though)
  7. CODEIGNITER CodeIgniter : Pros : •  Simple, I mean simple

    •  Not get in the way •  Tons of PHP developer know CodeIgniter Cons : •  No limitation, means you can go so far (wrong, bad architecture and approach). •  Tons of PHP developer but very few the good one, difficult to differentiate
  8. PYTHON •  Creator of Python : Guido van Rossum • 

    Worked at Google, but now join Dropbox (since January 2013) •  Hugely being used in science and academic environment. (numpy, scipy) •  There are some very good Web Framework too! (Django, Pyramid, Flask, Web.py, Web2py) •  Success stories: Google, Youtube, Dropbox, Instagram, Pinterest, Reddit, Quora
  9. PYTHON •  Beautiful is better than ugly. •  Explicit is

    better than implicit. •  Simple is better than complex. •  Readability counts. Sample : for i in range(10): print i print i+1 for i in range(10): print i print i+1
  10. PYTHON •  Python Paradox •  “you could get smarter programmers

    to work on a Python project than you could to work on a Java project” •  “the language to learn, if you want to get a good job, is a language that people don't learn merely to get a job” •  http://www.paulgraham.com/pypar.html
  11. DJANGO Pros: •  Django documentation is quite good. •  A

    lot of tools and library if we will go to beyond web application (numpy, scipy, nltk) •  Readable •  We can get very good programmer. •  It is Python. Cons: •  A lot of manual work. (generate the apps, declare and change database, even though there are tools like South) •  Difficult to get good and easy server deployment. •  We can get very good programmer. If we can get any.
  12. RUBY Ruby is a dynamic, open source programming language with

    a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. https://www.ruby-lang.org/en/ Ruby is simple, but complex. ”Ruby is simple in appearance, but is very complex inside, just like our human body” - Yukihiro “Matz” Matsumoto The creator is now working at Heroku
  13. RUBY Ruby is one of the fastest growing programming language.

    A lot of ruby developer come from Rails developer. Ruby community is always be hot! Success stories: Twitter (early years), Hulu, GitHub, 37Signals, Shopify
  14. RAILS Rails is created by DHH (David Heinemeir Hanson). It

    was created when he been hired by 37signals as partner to build internal tools, Basecamp. He decided to build Basecamp using his favourite tools and programming language, Ruby and make it work for him. Then Rails was born.
  15. RAILS •  Rails using MVC pattern. •  Rails introduce us

    to ruby gem, which is very useful. (something similar with plugin or thirdparty add-on) •  Documentation of Ruby on Rails is awesome! •  Community of Ruby on Rails is hippy! •  Ruby on rails is modern web application framework. It not just help to make web development easier but also redesign of web development itself.
  16. RAILS Pros: •  Ruby on Rails is mature enough. • 

    Community is great! (ecosystem) •  Deployment is easy! (use Heroku) and become easier and always get better. •  Low-Hanging Fruit “Targets or goals which are easily achievable and which do not require a lot of effort.” •  Ruby isn’t cool anymore Cons: •  Not so many Ruby on Rails programmer we can find, mostly already got job or occupied by their own thing. •  Ruby isn’t cool anymore
  17. RAILS Big Question : Why do we end up using

    Rails? 1.  It get the things done. 2.  Deployment is easy (using the right way). 3.  Ecosystem is great. 4.  It’s mature enough and a lot of success stories we already know. 5.  It makes us proud and happy.