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
Rubymotion. Sugar for iOS.
Search
Aliaksandr Lomau
December 07, 2013
Technology
1
180
Rubymotion. Sugar for iOS.
Cocoaheads, Grodno, December, 2013
Aliaksandr Lomau
December 07, 2013
Tweet
Share
More Decks by Aliaksandr Lomau
See All by Aliaksandr Lomau
Fails Night
allomov
0
25
"Ya Ne Lochu Comp" Challenge.
allomov
1
71
Catch and Throw in Ruby
allomov
0
32
Mortal Rubizza
allomov
0
59
Рэмбовидная проблема: особенности развития открытых технологий
allomov
0
35
Vault-tec: Safest Future
allomov
0
140
Promises and Reality
allomov
1
44
Cloud Theory for Rubizza Classes
allomov
0
70
Антология деплоя
allomov
0
65
Other Decks in Technology
See All in Technology
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
13
35k
オブザーバビリティの Primary Signals
onk
PRO
0
530
レガシーをぶっ壊せ。AEONで始めるDevRelの話 / Qiita Night 2024-2-22
aeonpeople
3
110
強みを伸ばすキャリアデザイン
yug1224
0
200
AWS を使う上で知っておきたいオンプレミス知識/aws-on-premise-essentials
emiki
1
4.1k
Databricks における 『MLOps』
databricksjapan
2
120
WebアプリケーションにおけるPDOの使い方入門 / phpcon odawara 2024
meihei3
2
420
OpenTelemetry を使ったトレースエグザンプラーの活用 / otel-trace-exemplar
k6s4i53rx
2
630
Databricks におけるデータエンジニアリング
databricksjapan
0
370
NLP2024 参加報告LT ~RAGの生成評価と懇親戦略~ / nlp2024_attendee_presentation_LT_masuda
taro_masuda
1
190
A (short) History of AI
harishpillay
0
100
AWS パートナー企業でテクニカルサポートに従事して2年経ったので思うところをまとめてみた
kazzpapa3
3
1.3k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
42
6.7k
RailsConf 2023
tenderlove
1
530
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
320
20k
Clear Off the Table
cherdarchuk
82
310k
Learning to Love Humans: Emotional Interface Design
aarron
266
39k
Navigating Team Friction
lara
177
13k
Thoughts on Productivity
jonyablonski
57
3.8k
Become a Pro
speakerdeck
PRO
9
4.5k
Documentation Writing (for coders)
carmenintech
59
3.9k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
225
51k
How To Stay Up To Date on Web Technology
chriscoyier
781
250k
Transcript
rubymotion Sugar for iOS
HELLO code1n « allomov đ
I will talk about rubymotion
I will talk about rubymotion RubyMotion Laurent Sansonetti
How it works? 1 2 3 4 RUBY CODE AST
(semantic tree) LLVM IR Machine code Ruby parser RubyMotion LLVM code generator
How it works? # Ruby "Hello BRUG".class.ancestors => [String, Comparable,
Object, Kernel, BasicObject] # RubyMotion "Hello BRUG".class.ancestors => [String, NSMutableString, NSString, Comparable, NSObject, Kernel] OBJECTS
Ruby is neat RubyMotion Objective-C
met aprogramming is almost magic
Objective-C <objc/runtime.h>
send def tableView(tableView, didSelectRowAtIndexPath:indexPath) menu_row = self.menu_items[indexPath.row] # => 'profile'
self.send("open_#{menu_row}") end ! def open_profile; #...; end def open_messages; #...; end ! def open_feed; # ...; end
method_missing Slide is missing Please, imagine suitable image
define_method module Mouth def self.can_say(name) define_method("say_#{name}") do name.upcase end end
end ! class Person include Mouth can_say :hello end ! person.say_hello # => "HELLO"
DSl Domain Specific Language
Teacup teacup :main_window do style :UILabel, text: 'Hello!' style :hi_button,
origin: [10, 10], title: 'Hi!' end
20.times do rmq.append(UIButton).tag(:foo).move(l: rand(200), t: rand(500), w: 80, h: 20).style
do |st| st.text = rand(200).to_s st.background_color = rmq.color.blue end end RMQ
REPL Wanna see some magic?
TDD RubyMotion integrates Bacon Bacon is small clone of the
popular RSpec it can simulate user behaviour on device
Game in 15 minutes?
REPL Wanna see some magic? AppStore
THANK YOU FOR YOUR ATTENTION. Bye ! code1n « allomov
đ