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
38
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
21
Haaave you met Ruby on Rails?
ndrx42
0
45
Hello Ruby on Rails
ndrx42
0
53
Kıymetlimiz "Ruby Gems"
ndrx42
0
54
Ruby 101
ndrx42
0
53
Other Decks in Technology
See All in Technology
AWS Summit Japan 2026の振り返りと2027へ向けて / AWS Summit Japan 2026 Recap and Prospects for 2027
kaminashi
1
170
どうして今サーバーサイドKotlinを選択したのか
nealle
0
180
プライバシー保護の理論と実践
lycorptech_jp
PRO
1
220
AIエージェントとPhysical AIが拓く製造業の変革(ハノーバーメッセリキャップ)
iotcomjpadmin
0
200
次世代ランサムウェア対策の考察 / 20260704 Mitsutoshi Matsuo
shift_evolve
PRO
5
1.6k
Mastraエージェント、どのクラウドにデプロイする?
minorun365
PRO
2
130
アラート調査向けAIエージェントの本番導入とその後/AI Agents for Alert Investigation: Production Deployment and After
taddy_919
1
310
勉強会企画をアプリで構造化してみた 〜そこで見えた、AIとの付き合い方〜 / I've structured a study group plan using an app.
pauli
0
280
IaC コードを資産へ:AWS CDK 社内ライブラリと横断展開 / aws-summit-japan-2026
gotok365
10
1.7k
AIで政治は変わるのか? — 中高生と考えたAI時代の民主主義(東海高校サタデープログラム)
eitarosuda
0
350
フルAIで個人開発して学んだあれこれ / yuruai vol.1
isaoshimizu
0
160
飲食店もAIで。レジ締めやハンディシステムをつくってる話 / Using AI for restaurant management
vtryo
0
230
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
1.1k
A Soul's Torment
seathinner
6
3k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
A Tale of Four Properties
chriscoyier
163
24k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
210
From π to Pie charts
rasagy
0
220
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
450
Information Architects: The Missing Link in Design Systems
soysaucechin
0
990
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
270
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