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
AIで効率化できた業務・日常
ochtum
0
160
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.6k
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
420
SLOをサービス品質の共通言語にするために 取り組んできたこと
wakana0222
0
170
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.7k
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
230
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
280
トークンをケチるな、設計しろ:GitHub Copilotを賢く使うコンテキスト戦略
ochtum
0
260
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.8k
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
12
4.5k
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
Featured
See All Featured
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
570
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
360
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
230
Abbi's Birthday
coloredviolet
3
8.4k
Utilizing Notion as your number one productivity tool
mfonobong
4
330
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Building AI with AI
inesmontani
PRO
1
1.1k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
600
WENDY [Excerpt]
tessaabrams
11
38k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Automating Front-end Workflow
addyosmani
1370
210k
Ruling the World: When Life Gets Gamed
codingconduct
0
270
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