background preloader

Ruby

Facebook Twitter

Ruby on Rails. Ruby on Rails emphasizes the use of well-known software engineering patterns and principles, such as active record pattern, convention over configuration (CoC), don't repeat yourself (DRY), and model–view–controller (MVC).

Ruby on Rails

History[edit] On December 23, 2008, Merb, another web application framework, was launched, and Ruby on Rails announced it would work with the Merb project to bring "the best ideas of Merb" into Rails 3, ending the "unnecessary duplication" across both communities.[7] Merb was merged with Rails as part of the Rails 3.0 release.[8][9] RSpec. RSpec is a behavior-driven development (BDD) framework for the Ruby programming language, inspired by JBehave.[3] It contains its own mocking framework that is fully integrated into the framework based upon JMock.

RSpec

The framework can be considered a domain-specific language (DSL) and resembles a natural language specification. See also[edit source | editbeta] Cucumber (software) References[edit source | editbeta] Further reading[edit source | editbeta]

Next

Building for the consumer, scaling for the enterprise. Matthew Baird is leader of Ticketfly’s technology group.

Building for the consumer, scaling for the enterprise

Now more than ever, consumers expect a first-rate experience for each and every purchase decision. From buying a concert ticket online to using mobile to pay for coffee in the morning, consumers interact with complex technology on a day-to-day basis, but slow or unresponsive systems can immediately damage the relationship and potential for future business. Platform performance is a business imperative — as is the need to deliver an impeccable customer experience — yet many businesses struggle with combining the two. So what’s the secret? There is no silver bullet when it comes to scalability, but there is a set of best practices that smart technology companies use to build scalable products with consumer value. Process Shorten your cycles so you can quickly respond to scaling challenges. In our business, we don’t have time to wait two weeks between releases to address new scalability challenges.

Monitoring.

Gems

Interactive Ruby. Un article de Wikipédia, l'encyclopédie libre.

Interactive Ruby

Sécurité. Start. #384 Exploring RubyGems. RubyGems can make it easy to add a feature to a Rails application, but it can also cause headaches down the road.

#384 Exploring RubyGems

Here I give some tips on researching gems to decide which one to choose, or when to do it from scratch. Download: mp4Full Size H.264 Video (22.4 MB)m4vSmaller H.264 Video (11.4 MB)webmFull Size VP8 Video (9.61 MB)ogvFull Size Theora Video (31.6 MB) Patterns - RubyGems Guides. Common practices to make your gem users’ and other developers’ lives easier.

Patterns - RubyGems Guides

Consistent naming There are only two hard things in Computer Science: cache invalidation and naming things. -Phil Karlton File names Be consistent with how your gem files in lib and bin are named. 10 Must Have Ruby Gems. One of the most beautiful things about Ruby development is the ease of adding functionality through packaged libraries called gems.

10 Must Have Ruby Gems

With the power of Bundler, you can quickly add and manage gems in few lines of code. With the recent release of Rails 3.0.4 I’d like to share the 10 must-have gems which allow me to focus on what’s unique to my app. 1. Getting started with Ruby on Rails 3.2 and MiniTest - a Tutorial. For fun, I thought I would start a new Ruby on Rails project and use MiniTest instead of Test::Unit.

Getting started with Ruby on Rails 3.2 and MiniTest - a Tutorial

Why? Well MiniTest is Ruby 1.9s testing framework dejour, and I suspect we will see more and more new projects adopt it. Rails Render. Learn Web Development with the Ruby on Rails Tutorial. Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama).

Learn Web Development with the Ruby on Rails Tutorial

This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments. Attachinary - a modern attachments solution for Ruby on Rails. When developing a website you are required for a somewhat tedious work of handling dynamically uploaded content.

Attachinary - a modern attachments solution for Ruby on Rails

The constantly added content includes images uploaded by your users and content administrator, user documents and other files. As a developer, you'll be responsible for adding integration of attachments to your application's model and taking care of the upload, normalization, storage, transformation and delivery of such assets. Over time, we've run into a lot of attachment management libraries for many of the web development frameworks available. For Ruby on Rails alone there are CarrierWave, Paperclip, Dragonfly, attachment_fu and quite a few others.

While Cloudinary streamlines all your image management needs and takes care of uploads, storage, transformations, manipulations and delivery, you still need to integrate it with your application's model. Getting Started with Rails. 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch.

It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. There are several curated lists of online resources for learning Ruby: Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails.

Web App Frameworks. Heroku. Un article de Wikipédia, l'encyclopédie libre. Éléments historiques[modifier | modifier le code] Heroku a été fondé par une poignée d'ingénieurs qui trouvaient le développement d'applications web trop fastidieux. James Lindenbaum, Adam Wiggins et Orion Henry fondent Heroku en 2007 avec l'intention de supporter toutes les applications Rack[4]. Le 8 décembre 2010, Salesforce.com se porte acquéreur de l'entreprise Heroku et l'intègre comme filiale du groupe. Le 12 juillet 2011, Yukihiro "Matz" Matsumoto, créateur et mainteneur du langage Ruby, rejoint Heroku comme Chief Architect[5] (bien qu'il se consacre essentiellement à Ruby). Au fil des années, le stack s'est élargi. Fonctionnement[modifier | modifier le code] L'infrastructure utilisée par Heroku repose sur AWS[7].

L'architecture Heroku est centrée sur les processus, et non sur des instances virtuelles ou des serveurs. Notes et références[modifier | modifier le code] The small, medium, and large of Ruby Frameworks. Want to use Ruby on your next web project, but don't know which framework to use? Ben Evans has done all the hard work for you. Ruby is a dynamic interpreted programming language written for simplicity and power, but it's just a language. It is not a dedicated web development technology, and, as such, you need a little help to make websites in Ruby.

This is where Ruby web frameworks come in. They come in different sizes and levels of complexity, so it's important to select the right framework for your project. Of course, technically, you can make any framework viable for any job. The small: Sinatra. Getting started with SSH - Kimmo Suominen. The following sections hope to provide enough information to setup a user new to ssh with the appropriate files necessary for accessing remote hosts in a secure manner.

Improvements to and comments about this document are welcome. Updated: The examples now show ssh version 2 commands, using OpenSSH. There are several security vulnerabilities in protocol version 1. Everyone should have already migrated to version 2 by now, so it was about time for me to also reflect best practises in this document. I also updated the link section at the end of the document to better reflect today’s software selection. Contents About public key cryptography. Ruby. Ruby. Modèle-vue-contrôleur. Un article de Wikipédia, l'encyclopédie libre. Pour les articles homonymes, voir MVC. Le patron de conception modèle-vue-contrôleur (en abrégé MVC, en anglais model-view-controller), tout comme les patrons modèle-vue-présentation ou présentation, abstraction, contrôle, est un modèle destiné à répondre aux besoins des applications interactives en séparant les problématiques liées aux différents composants au sein de leur architecture respective.

Ruby on Rails. Un article de Wikipédia, l'encyclopédie libre. Pour les articles homonymes, voir Rails. Learn Ruby: How to Get Up to Speed Quickly. Getting Up to Speed with Ruby Whether you already have experience programming with other languages or you’re learning Ruby as your first programming language, Ruby is a relatively easy language to pick up. You will need a walk-through that helps you set up Ruby initially if you aren’t an experienced programmer, but you’ll be able to start building your first program immediately. Ruby uses a package manager to allow easy downloads of existing repositories and libraries, known as ‘gems’ — any good Ruby tutorial will walk you through the process of installing Ruby gems, as well as writing code in Ruby.

Becoming a Ruby expert will take longer, of course. Ruby on Rails Guides. Untitled.