ruby on rails for .net developers

Post on 24-May-2015

1.302 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Ruby on Rails is an increasingly popular framework for building database-backed web applications. This presentation provides an overview of the Rails framework, the Ruby language, and what makes Ruby on Rails so exciting for developers. We'll see what all the fuss is about and why Ruby on Rails is worth learning for .NET and Java developers. Finally, we'll look at some working code together and discuss how Ruby on Rails stacks up against other web frameworks.

TRANSCRIPT

Ruby on Rails for .NET Developers

Brad TutterowDaugherty Business

Solutions

What is it?

Ruby the ProgrammingLanguage

Rails the Web Framework

Language FrameworkRuby Rails

C# WebForms

C# ASP.NET MVC

PHP Zend

Java Struts

Java Spring MVC

What’s the big deal?

Fun!

Easy

Productive

Why should I care?

Broaden your Horizons

Be a better .NET Developer

What is Ruby?

Java

C#

PythonRuby

C++VB.NET

Object Oriented

Design Time

Run Time

Dynamically Typed

Duck Typing

The RubyLanguage

The .each Method

Everything’s an object

Defining methods

“unless” statement

“if” at the end

Similar to C#

Object Oriented

Garbage Collection

Public and Private

Methods

Good IDE’s

Different from C#

No Compile-

time checking

InterpretedDynamicTyping

No curly braces or

semicolons

What is Rails?

A free and open source

Web Framework

ModelViewController Framework

All in one! ASP.NET MVC Ruby on Rails

Presentation ASP.NET MVC Rails

Database migrations T-SQL Rails

Data access & persistence

LINQ to Entities

Rails

Unit testing NUnit Rails

Testing web pages (?) Rails

Testing cookies and session state

(?) Rails

Convention over Configuration

D.R.Y.

Each piece of knowledge shouldhave one and only one place to live

Don’t Repeat Yourself

ActiveRecord

An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data. ~ Martin Fowler

Running Rails

Runs on ….

Store stuff in …

And others …

Write code with ….

Walkthrough

Creating a Rails Project

in 3 Steps

Step 1

They ALL look like this

Step 2

Step 3

Tada!!

DEMOhow_longwebsite

MVC in Practice

Model

Controller

request

View

response

Routes map URLs to Controllers and Actions

controller(a class)

action (method on the controller)

parameters(passed to the action method)

Routes map URLs to Controllers and Actions

Routes, Controllers, and Views

Demo

Creating a new controller

To the code

Creating a new

Model

Demo

Creating a new model

To the code

Free methods!

Controllers and

Models

Demo

Forms

Demo

Things to rememberFUN

EASY

PRODUCTIVE

Things to remember

Broaden Horizons

Improve .NET Skills

top related