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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
270
CSC307 Lecture 02
javiergs
PRO
1
770
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
7.1k
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
600
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
CSC307 Lecture 07
javiergs
PRO
0
550
AI & Enginnering
codelynx
0
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
530
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
37
7.1k
Rails Girls Zürich Keynote
gr2m
96
14k
Being A Developer After 40
akosma
91
590k
Designing Powerful Visuals for Engaging Learning
tmiket
0
230
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
320
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Designing for Performance
lara
610
70k
Code Review Best Practice
trishagee
74
20k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
Raft: Consensus for Rubyists
vanstee
141
7.3k
エンジニアに許された特別な時間の終わり
watany
106
230k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
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