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
Hello Ruby
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ender
October 26, 2017
Technology
37
0
Share
Hello Ruby
Ruby 101 @ IA University
ender
October 26, 2017
More Decks by ender
See All by ender
Hotwire ile Modern Web'in Geleceği
ndrx42
0
19
Haaave you met Ruby on Rails?
ndrx42
0
45
Hello Ruby on Rails
ndrx42
0
51
Kıymetlimiz "Ruby Gems"
ndrx42
0
53
Ruby 101
ndrx42
0
52
Other Decks in Technology
See All in Technology
Google Cloud Next '26 の裏でこっそりリリースされたCloud Number Registry & Cloud Hub コスト分析 を試してみた
hikaru1001
0
120
Modernizing Your HCL Connections Experience: Visual Report to chain, Profile Enhancements, and AI Integration
wannesrams
0
190
AIが盛んな時代に 技術記事を書き始めて起きた私の中での小さな変化
peintangos
0
320
巨大プラットフォームを進化させる「第3のROI」
recruitengineers
PRO
2
1.8k
独断と偏見で試してみる、 シングル or マルチエージェント どっちがいいの?
shichijoyuhi
1
210
色を視る
yuzneri
0
280
EMから幅を広げるために最近挑戦していること / Recent challenges I'm undertaking to expand my horizons beyond EM
hiro_torii
1
160
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
940
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
10
2.6k
Cortex Codeのコスト見積ヒントご紹介
yokatsuki
0
130
生成AI時代のドキュメントに対する期待の整理と実践から得た学び / Rethinking Documentation for LLM: Lessons from Practice
bitkey
PRO
1
120
The 7 pitfalls of AI
ufried
0
110
Featured
See All Featured
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.6k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
170
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
330
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
490
The Curious Case for Waylosing
cassininazir
0
320
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Statistics for Hackers
jakevdp
799
230k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
Transcript
Hello Ruby Ender Ahmet Yurt www.enderahmetyurt.com
Ender Ahmet Yurt Full Stack Developer @ sigortaci123.com Ruby Türkiye
Organizer Yakut Podcast Speaker Open Source Developer
Context •Ruby •What’s it? •Features •Installation •First steps •Irb/Pry •First
program •Basics •Concepts •More… •Questions
Ruby •Yukihiro Matsumoto (Matz) •First version 1995 •Aim: Make developers
happy •Open source https://github.com/ruby/ruby •Ruby 2.5.0-preview1 (10.10.2017)
Features •Pure •Everthing is an object •Easy coding •Readable like
English •More ways to do a job •Dynamic language •Scripting language •Powerful communities •Global •Turkey rubyturkiye.org •Ruby Gems rubygems.org
Installation •OSX •Installed •RVM/RbEnv •Linux •apt-get install ruby <version> •RVM/RbEnv
•Windows •rubyinstaller.org
Irb/Pry •Irb (Interactive Ruby) •Pry (Alternative Ruby Gem) •gem install
pry
First Program
Basic IO Processes
Basics •Variables •Numbers •Arrays •Hashes •Flows •Loops •Methods •Classes •OO
•Modules •Proc/Lambda
Variables •Local variables •Global variables •Class variables •Instance variables •Constants
•Symbols
Numbers •Numeric •Integer •Fixnum •Bignum •Float •Complex •BigDecimal •Rational
Arrays •Initialize •Swap •Join & Delete •Enumerable methods
Hashes •What is it? •Key-value pair •Enumerable methods
Flows •True, False, Nil •NOT (!) •If-else-elsif-unless •Case when •Conditional
Assignment
Loops •for •while •until •loop (next/break) •each •each_with_index
Methods •What is it? •Type of parameters •Return
Classes •Basics •Attributes •Methods •Inheritance
Modules •Namespace •Mixins •include •exclude
Blocks •Anonymous functions •{} •yield •Procs •Lambda
Procs •Block is not an object •Proc is an object
•p = Proc.new {}
Lambda •A Proc object •l = lambda {}
Proc vs Lambda •Number of parameters •Not important for Procs
•Important for Lambdas •Return formats for methods •Procs not continue •Lambdas continues
More •Error handling •File process •RubyGems •Regex •Metaprogramming •Web programming
•Ruby on Rails •Developing a real product
Questions? Thanks ❤ enderahmetyurt.com rubyturkiye.org yakutrb.com