Ruby and Rails James Crisp.NET Practice Lead ThoughtWorks Australia From aperspective.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Advertisements

REST &.NET James Crisp.NET Practice Lead ThoughtWorks Australia.
@ScotHillier Web Parts Workflows Pages Libraries App Parts SharePoint-Hosted Apps Provider-Hosted Apps.
Single Page Apps with Breeze and Ruby.
© ThoughtWorks, 2007 Delicious Dot Net A tasty take on WPF, WCF, LINQ and O-R Mapping. Your host: James Crisp.
.NET 4.0 Code Contacts .NET 4.0 Code Contracts About Me James Newton-King Developer at Intergen Blog:
(Advanced) Web Application Development Test Driven Development with Ruby and Rails Bruce Scharlau, University of Aberdeen, 2013.
.NET Core Libraries Common Language Runtime CodeGen Garbage Collector Security Model Exception Handling Loader & Binder Profiling & Debugging APIs Entity.
Getting Started with Capistrano and Ruby on Rails Slides taken from
Ruby for.NET Agenda Introduction Ruby – Getting Started – The Language – Ruby Gems – Rake Rails – Getting Started – Demo – Building.
Test Automation Framework Ashesh Jain 2007EE50403 Manager Amit Maheshwari.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
1 JRuby on Rails GAO ANG Sun Functional Campus Ambassador 1.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 21 Rails Intro Nov 10, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
ISPW Natural Demo Mar 2011 Created by the kindness of CN Rail using the their Test ISPW system Through the efforts of Paul Vaenas CN - IT - Release Management.
RUBY ON RAILS Mark Zhang. In this talk  Overview of Ruby on Rails  Core ideas  Show a tiny bit of example code  Touch on several general web development/
RUBY ON RAILS It’s so rad. What we’ll cover  What is Ruby?  What is RoR?  Why RoR?  Developing with RoR  Deployment  Demo  Questions.
Ruby on Rails. What is Ruby on Rails? Ruby on Rails is an open source full-stack web framework. It is an alternative to PHP/MySQL. It can render templates,
Nathaniel Neitzke Lighthouse1, LLC
Fun with Ruby and Rails Chris Jeris 18 October 2011.
Ruby on Rails CSCI 6314 David Gaspar Jennifer Garcia Avila.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Brakeman and Jenkins: The Duo Detects Defects in Ruby on Rails Code Justin Collins Tin Zaw AppSec USA September 23, 2011.
Cloud computing lectures: Programming with Google App Engine Keke Chen.
Basic Programming in Ruby Today’s Topics: Introduction last class irb history log Methods Classes (briefly) Using 3 rd Party Libraries rubygems ‘ require.
By: Maksim Surguy & Cesar Acosta require 'sinatra‘ get ‘/' do "Hello World!" end.
Ruby on Rails Your first app. Rails files app/ Contains the controllers, models, views and assets for your application. You’ll focus on this folder for.
Ruby. Who am I? 1- Bunlong Van 2- Sreyleap Lay, 3- Chhon Meily Blog:
Dynamic Languages and the Web Jimmy Schementi Microsoft
Ruby on Rails CSE 190M, Spring 2009 Week 6. Overview How to use a database Demo creating a blog application on Rails Explain how the application works.
Ruby on Rails. What is Ruby? Programming Language Object-oriented Interpreted.
Richard Zuraff General Mills
Ruby on Rails WTF? Created by Matz in 1993 Inspired by Smalltalk Rubygems = CSPAN Rake = ant Rdoc = javadoc.
Ruby on Rails vs ASP.NET MVC Simone Chiaretta Web Architect, Council of the EU Milano, 19 Febbraio 2011 Sandro.
USING RUBY An Introduction By Evgeny Rahman. About Me Principal Engineer at FirstFuel Software 10+ years in Software Engineering 5 years working with.
RUBY ON RAILS (RoR) Ishwor Khadka. Why Ruby on Rails?
Chapter 15 © 2013 by Pearson Overview of Rails - Rails is a development framework for Web-based applications - Based on MVC architecture for applications.
Checking under the Hood: A Guide to Rails Engines Mike Perham
LOGO System Call. Introduction System call is the mechanism used by an application program to request service from the OS. Users use it to communicate.
Why Use Google BigQuery?. LogosPlatforms Why use BigQuery? Cost Effective Infrastructure Maintenance DB Administrators.
IronRuby for the.NET Developer Cory Foy - Cory Foy, LLC + + =
Lecture 13b Rails – Controllers and Views Topics SaaSSaaS Readings: SaaS book Ch March 3, 2014 CSCE 740 Software Engineering.
Define, bundle, deployDefine, bundle, deploy Working with Windows Server Containers and Docker James David O’Brien.
Introduction to Ruby&Rails Yuri Veremeyenko Monica Verma.
1 Dr Alexiei Dingli Web Science Stream Installing ROR.
Developer track Marta Ribeiro
Dayu Zhang 9/10/2014 Lab03. Outline Brief Review of the 4 Steps in Hello.cpp Example Understand endl and \n Understand Comment Programming Exercise -
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
Lecture 12 Rails 169 Review Slides Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering.
Know Your GlassFish Gem Jacob Kessler. Overview ● Fast, simple, easy – gem install glassfish – glassfish. ● Everything from GlassFish to serve a Ruby.
GlassFish Gem Vivek Pandey Sun Microsystems, Inc.
JRuby on Rails Presenter Name
JRuby on Rails Brian Leonard ブライアン レオナルド
Chapter 13 Web Application Infrastructure
C# Basic Syntax, Visual Studio, Console Input / Output
C# Basic Syntax, Visual Studio, Console Input / Output
2015 Summer Camp additional classes:
Ruby Tooling in NetBeans
JRuby on Rails Charles Oliver Nutter JRuby Core Developer
Lecture Note Set 1 Thursday 12-May-05
Using Dynamic Languages to Build Scriptable Apps
Capistrano David Grayson Las Vegas Ruby Meetup
Sanan Aamir and James Rowe Midwestern State University
Module 0: Introduction Chapter 2: Getting Started
Ajax on Rails 28-Nov-18.
ASP.NET 5 on .NET Core Damian Edwards Principal Program Manager.
Sparklines.
DEVOPS & THE FUTURE OF TESTING
Presentation transcript:

Ruby and Rails James Crisp.NET Practice Lead ThoughtWorks Australia From aperspective

James Crisp

Runtimes MRI

IronRuby Console Demo

public class CSharpDemo : Demo { public void SayHello() { for (int i=0; i<5; i++) { Console.WriteLine(“Hi from C#!”); }} public IEnumerable Greet( public IEnumerable Greet( IEnumerable guests) { return guests.Select(g => “Welcome” + g.Name); }}

class RubyDemo < Demo def say_hello 5.times { puts “Hi from Ruby!” } end def greet(guests) def greet(guests) guests.collect { |g| “Welcome #{g.name}” } endend >> RubyDemo.new.greet(fred, tina) => [“Welcome Fred”, “Welcome Tina”]

Tools and Frameworks

c:\> gem install rails

desc “Generate application code” task :code_gen do # do the code generation # do the code generationend desc “Compile code” task :compile => [:code_gen] do #do the compilation #do the compilationend desc “Test application” task :test => [:compile] do # run the tests # run the testsend Rake

Capistrano desc "Start ferret server" task :start, :role => :app do run "cd #{current_path}; script/ferret_server -e #{stage} start" run "cd #{current_path}; script/ferret_server -e #{stage} start"end desc "Stop ferret server" task :stop, :role => :app do run "cd #{current_path}; script/ferret_server -e #{stage} stop" run "cd #{current_path}; script/ferret_server -e #{stage} stop"end

RSpec describe User do it "should be in any roles assigned to it" do it "should be in any roles assigned to it" do user = User.new user = User.new user.assign_role("assigned role") user.assign_role("assigned role") user.should be_in_role("assigned role") user.should be_in_role("assigned role") end end...end

Routing Table Controller Method ModelView

Rails Project Demo

See also... Rails & screencasts Ruby / Rails API John Lam's blog for Iron Ruby Slides for this talk

-.net logo – agile development with rails - Matz - Ruby book – JRuby logo - YARV logo – IronRuby logo Image References

Questions?