Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ruby in prijatelji
Search
otobrglez
June 07, 2012
Programming
1
71
Ruby in prijatelji
Slides from talk that I gave about Ruby at #wwwhmb
otobrglez
June 07, 2012
Tweet
Share
More Decks by otobrglez
See All by otobrglez
Ruby in Rails - Svež pristop k razvoju
otobrglez
1
65
Other Decks in Programming
See All in Programming
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
210
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
230
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
710
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
今から始めるClaude Code超入門
448jp
8
8.6k
CSC307 Lecture 01
javiergs
PRO
0
690
Patterns of Patterns
denyspoltorak
0
1.4k
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.5k
CSC307 Lecture 06
javiergs
PRO
0
680
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
2.4k
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
580
Information Architects: The Missing Link in Design Systems
soysaucechin
0
770
The Cult of Friendly URLs
andyhume
79
6.8k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
140
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Tell your own story through comics
letsgokoyo
1
810
Accessibility Awareness
sabderemane
0
51
A Soul's Torment
seathinner
5
2.2k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
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