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
Search
Stojan Dimitrovski
November 28, 2012
Technology
180
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Кратка презентација за Ruby
Оваа презентација ја држев на еден од состаноците на Connect Lab при ФИНКИ, УКИМ.
Stojan Dimitrovski
November 28, 2012
More Decks by Stojan Dimitrovski
See All by Stojan Dimitrovski
Goroutines: The machine behind the machine
hf
0
68
RxAndroid at #JavaSkop
hf
0
650
Other Decks in Technology
See All in Technology
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
Rust で関数型ドメインモデリング
takonda
0
140
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
Local CI × GitHub Actions
gogutan
2
190
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
150
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
340
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
190
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
420
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
730
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
How to train your dragon (web standard)
notwaldorf
96
6.9k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
The Cost Of JavaScript in 2023
addyosmani
55
10k
Mobile First: as difficult as doing things right
swwweet
225
10k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Transcript
Ruby
во сеќавање на... _why github.com/whymirror
Руби е: динамички рефлективен објектно-ориентиран
also, very slightly Japanese
YARV (KRI) / MRI Rubinius IronRuby Имплементации:
Здраво, свету! > puts “Здраво, свету!” Здраво, свету!
Gently: WTF!? for (int i = 0; i < 10;
i++) { printf(“Здраво, свету!\n”); }
Прочитај го ова! 10.times do puts “Здраво, свету!” end
Enough fooling around...
Променливи: duck = “патка :)” quack = 10 шатка =
:квачка ducks = [ :митра, :петра ] a.k.a. duck typing
Константи: DUCK = “патка :)” QUACK = 10 ШАТКА =
:квачка DUCKS = [ :митра, :петра ] Константите во Ruby и не се баш константни...
Wait, wait, wait...
Броеви: 17.35 17 0x11 0b10001
Стрингови: “^.^”
Стрингови: '=_-'
Карактери: 404 not found.
Симболи: :симболче
Булеан: true & false
None
nil
Полиња: q = 11.1 a.k.a. низи niza = [ 3.14,
q, “(:”, :okay ]
Мапи/Речници: a.k.a. hash-table mapa = { :key => “value”, 3.14
=> “пи” }
Дигитрон oд $1000...
Функции! def absolute_value(number) return -number if number < 0 number
end
Функции! {1} def absolute_value number return -number if number <
0 number end
Функции! {2} def absolute_value number if number < 0 return
-number end number end
Функции! {2.5} def absolute_value number if number < 0 then
return -number end number end
> absolute_value(10) => 10 > absolute_value 10 => 10 >
absolute_value -10 => 10
Блокови! (0..10).each do |i| puts i end
Блокови! [ 32, 55, 66 ].each do |i| puts i
/ 10.0 end
Блокови! map = { :a => 3, :b => 4
} map.each do |key, value| puts “#{key} => #{value}” end
Блокови! поздрав = “Здраво!” espeak = “espeak -v mk '#{поздрав}'”
10.times do Kernel.system espeak end
Блокови! broevi = [ 1, 2, 3, 4, 5, 6,
7, 8 ] broevi.map! do |broj| if broj % 2 == 0 broj + 1 else broj end end
...