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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
ender
October 26, 2017
Technology
0
37
Hello Ruby
Ruby 101 @ IA University
ender
October 26, 2017
Tweet
Share
More Decks by ender
See All by ender
Hotwire ile Modern Web'in Geleceği
ndrx42
0
16
Haaave you met Ruby on Rails?
ndrx42
0
44
Hello Ruby on Rails
ndrx42
0
50
Kıymetlimiz "Ruby Gems"
ndrx42
0
53
Ruby 101
ndrx42
0
51
Other Decks in Technology
See All in Technology
クラウド時代における一時権限取得
krrrr38
1
180
管理者向けGitHub Enterpriseの運用Tips紹介: 人にもAIにも優しいプラットフォームづくり
yuriemori
0
170
自動テストが巻き起こした開発プロセス・チームの変化 / Impact of Automated Testing on Development Cycles and Team Dynamics
codmoninc
3
1.3k
A Gentle Introduction to Transformers
keio_smilab
PRO
2
990
越境する組織づくり ─ 多様性を前提にしたチームビルディングとリードの実践知
kido_engineer
2
160
【SLO】"多様な期待値" と向き合ってみた
z63d
2
320
AWSをCLIで理解したい! / I want to understand AWS using the CLI
mel_27
2
230
AWS SES VDMで 将来の配信事故を防げた話
moyashi
0
220
白金鉱業Meetup_Vol.22_Orbital Senseを支える衛星画像のマルチモーダルエンベディングと地理空間のあいまい検索技術
brainpadpr
2
270
マネージャー版 "提案のレベル" を上げる
konifar
21
14k
Claude Code Skills 勉強会 (DevelersIO向けに調整済み) / claude code skills for devio
masahirokawahara
0
750
When an innocent-looking ListOffsets Call Took Down Our Kafka Cluster
lycorptech_jp
PRO
0
110
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
480
Balancing Empowerment & Direction
lara
5
930
The Curious Case for Waylosing
cassininazir
0
260
What does AI have to do with Human Rights?
axbom
PRO
1
2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
The Spectacular Lies of Maps
axbom
PRO
1
600
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Agile that works and the tools we love
rasmusluckow
331
21k
How to build a perfect <img>
jonoalderson
1
5.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
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