background preloader

Ruby on Rails

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). 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] Rails 3.2 was released on January 20, 2012 with a faster development mode and routing engine (also known as Journey engine), Automatic Query Explain and Tagged Logging.[11] Rails 3.2.x is the last version that supports Ruby 1.8.7.[12] Rails 3.2.12 supports Ruby 2.0[13] Technical overview[edit] Like many web frameworks, Ruby on Rails uses the model–view–controller (MVC) pattern to organize application programming. Framework structure[edit]

SpringSource.org 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. 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] Chelimsky, David; Astels, Dave; Helmkamp, Bryan; North, Dan; Dennis, Zach; Hellesoy, Aslak (December 22, 2010). External links[edit source | editbeta] Solution stack In computing, a solution stack is a set of software subsystems or components needed to perform a task without further external dependencies. For example, to develop a web application, the designer needs to use an operating system, web server, database, and programming language. Another version of a solution stack is operating system, middleware, database, and applications.[1] Linux-based solution stacks[edit] Linux (the operating system) Apache (the web server) MySQL or MariaDB (the database management systems) Linux (operating system) Apache (web server) Seaside (web framework) Smalltalk (programming language) The cloud stack of LEAP for: AppScale (Cloud computing-framework and free and open-source alternative to Google App Engine), OpenStack Linux – OpenStack controller nodes run exclusively on Linux OpenStack – providing an infrastructure as a service (IaaS) Ganeti Xen or KVM (hypervisor) Distributed Replicated Block Device (storage replication) Ganeti (virtual machine cluster management tool) Node.js

Spring Framework The Spring Framework is an open source application framework and inversion of control container for the Java platform. The framework's core features can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform. Although the framework does not impose any specific programming model, it has become popular in the Java community as an alternative to, replacement for, or even addition to the Enterprise JavaBean (EJB) model. Version history[edit] Modules[edit] The Spring Framework includes several modules that provide range of services: Inversion of control container (dependency injection)[edit] Objects created by the container are also called managed objects or beans. In many cases one need not use the container when using other parts of the Spring Framework, although using it will likely make an application easier to configure and customize. Aspect-oriented programming framework[edit] Data access framework[edit]

Building for the consumer, scaling for the enterprise Matthew Baird is leader of Ticketfly’s technology group. 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? 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. Since we’ve invested in automating our release process using technologies such as Capistrano, we’re able to spend our time writing great software and not use valuable resources pushing bits into production.

rails/rails Source code repository A source code repository is a file archive and web hosting facility where large amounts of source code are kept, either publicly or privately. They are often used by open-source projects and other multi-developer projects to handle various versions. They help developers submit patches of code in an organized fashion. Often these web sites support version control, bug tracking, release management, mailing lists, and wiki-based documentation. People who write software retain their copyright when their software is posted to any open-source software hosting facilities, including the "non-gnu" section of GNU Savannah—with the exception of contributors to FSF-copyrighted programs at GNU Savannah.[1][2][3] Overview[edit] General information[edit] Features[edit] Other features[edit] Available version control systems[edit] Popularity[edit] Note 1: GitHub Blog: Those are some big numbers. Specialized hosting facilities[edit] See also[edit] Notes[edit] References[edit] External links[edit]

Interactive Ruby Un article de Wikipédia, l'encyclopédie libre. Interactive Ruby ou irb est un interpréteur de commandes qui permet d'exécuter des commandes Ruby de manière interactive. Il peut être utilisé pour tester le langage. Il est fourni avec la version officielle de Ruby. Une version existe également sur le Web[1]. Exemple d'utilisation[modifier | modifier le code] irb(main):001:0> n = 5 => 5 irb(main):002:0> def fact(n) irb(main):003:1> if n <= 1 irb(main):004:2> 1 irb(main):005:2> else irb(main):006:2* n * fact(n - 1) irb(main):007:2> end irb(main):008:1> end => nil irb(main):009:0> fact(n) => 120 Voir aussi[modifier | modifier le code] Liens externes[modifier | modifier le code] Notes et références[modifier | modifier le code] Portail de la programmation informatique

Active record pattern This pattern is commonly used by object persistence tools, and in object-relational mapping (ORM). Typically, foreign key relationships will be exposed as an object instance of the appropriate type via a property. Implementations[edit] Implementations of the concept can be found in various frameworks for many programming environments. part = new Part() part.name = "Sample part" part.price = 123.45 part.save() will create a new row in the parts table with the given values, and is roughly equivalent to the SQL command INSERT INTO parts (name, price) VALUES ('Sample part', 123.45); Conversely, the class can be used to query the database: b = Part.find_first("name", "gearbox") This will find a new Part object based on the first matching row from the parts table whose name column has the value "gearbox". SELECT * FROM parts WHERE name = 'gearbox' LIMIT 1; -- MySQL or PostgreSQL ColdFusion[edit] ColdFusion has an open source implementation of the Active Record pattern. PHP[edit] Ruby[edit] Java[edit]

Related: