Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Ruby in prijatelji
Search
otobrglez
June 07, 2012
Programming
76
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ruby in prijatelji
Slides from talk that I gave about Ruby at #wwwhmb
otobrglez
June 07, 2012
More Decks by otobrglez
See All by otobrglez
Ruby in Rails - Svež pristop k razvoju
otobrglez
1
68
Other Decks in Programming
See All in Programming
Railsバージョンを4倍にした話
optim
0
370
Workers Cache を知る
syumai
0
360
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.3k
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
210
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
Domain-Driven Transformation
hschwentner
2
2.3k
すこし踏み込む CancellationToken
htkym
2
1.7k
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Designing for Timeless Needs
cassininazir
1
530
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Designing for Performance
lara
612
70k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
Technical Leadership for Architectural Decision Making
baasie
3
600
Visualization
eitanlees
153
17k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Navigating Team Friction
lara
192
16k
Color Theory Basics | Prateek | Gurzu
gurzu
1
490
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
Documentation Writing (for coders)
carmenintech
77
5.6k
Transcript
Ruby in prijatelji Oto Brglez za #wwwhmb
Kontakt in vprašanja • @otobrglez • skype: zverchi • http://opalab.com
• @wwwhmb, #wwwhmb, wwwhmb.si
Kdo sem? • Razvijalec • Veliki projekti, mali projekti, “free”
projekti • (Izredni) Študent ;) • LinkedIn: http://www.linkedin.com/in/otobrglez
Za koga je ta talk? • Razvijalece, ki so že
programirali. • Razvijalece, ki rabijo nove izzive. • Ljudi, ki iščejo zabavo in srečo.*
Potek • Ruby - (uvod, splošno, kako?, itd...) • Prijatelji
(DSL, ogrodja, Rails,...)
Ruby ~ Zgodovina Yukihiro Matsumoto - @yukihiro_matz Japonska 1990 21
december 1995 ~> Ruby 1.0
Klasifikacija in inspiracija • Dinamičen • Reflektiven • Splošen •
Objektno orientiran • Inspiracija PERL, Smalltalk, Eiffel
Paradigme • Funkcijski • Objektno orientiran • Iperativen • Reflektiven
• Dinamični tipi (Duck typing)
Implementacije • MRI (C by Matz) • Y ARD •
JRuby • Rubinius • IronRuby • MacRuby • HotRuby
Namestitev? • OSX ~> Prednameščen • Ubutnu and alike ~>
apt-get ... • Windows ~> http://rubyinstaller.org/ • http://www.ruby-lang.org
RVM = Ruby Version Manager
RubyGems
IRB = Interactive Ruby Shell
Vejitve, zanke, funkcije,...
String, Array[], Hash{},...
Razredi in OOP
Dedovanje, Mixin,...
ruby-debug19
ri, rdoc
Ruby Reference/doc • http://apidock.com/ • http://ruby-doc.org/ • http://rubydoc.info/
End of part 1. Vprašanja?
Sledi... • DSL • RSpec • Sinatra • Ruby on
Rails
DSL = Domain-specific language • “In software development, a domain-
specific language (DSL) is a programming language or specification language dedicated to a particular problem domain, a particular problem representation technique, and/or a particular solution technique.” - Wikipedia
Bolj poznani “DSL-ji” v Ruby svetu... • RAKE ~ Ruby
“Make” • RSpec ~ Ruby Specification framework • Sinatra ~ Web application framework • ...
RSpec = Behaviour-Driven Development tool for Ruby programmers
Sinatra
Ruby on Rails David Heinemeier Hansson @dhh Julij 2004 Ruby
on Rails z Mac OS X Leopard
Filozofija • CoC = Convention over Configuration • DRY =
Don’t Repeat Yourself
Kaj ima? • MVC ~ Model-View-Controller Pattern • Scaffolding •
WEBrick • Rake • Prototype in Script.aculo.us ~> jQuery • RESTful Web Services • UJS = Unobstrusive JavaScript • ActiveRecord
Simple projekt: pozdravi-me
Scaffold
What?
None
Hvala! http://pozdravi-me.heroku.com/
Novo v Rails 3.1 • Assets Pipeline • HTTP Streaming
• jQuery Default