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
73
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
67
Other Decks in Programming
See All in Programming
ローカルLLMでどこまでコードが書けるか -縮小版 / How much code can be written on a local LLM Shortened
kishida
2
150
act1-costs.pdf
sumedhbala
0
140
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
150
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
290
A2UI という光を覗いてみる
satohjohn
1
170
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
320
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
820
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
180
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
1k
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
150
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
220
Featured
See All Featured
The Curse of the Amulet
leimatthew05
2
13k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
Making Projects Easy
brettharned
120
6.7k
30 Presentation Tips
portentint
PRO
1
330
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Being A Developer After 40
akosma
91
590k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
270
The Cost Of JavaScript in 2023
addyosmani
55
10k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
230
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
380
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.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