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
35
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
12
Haaave you met Ruby on Rails?
ndrx42
0
43
Hello Ruby on Rails
ndrx42
0
48
Kıymetlimiz "Ruby Gems"
ndrx42
0
50
Ruby 101
ndrx42
0
49
Other Decks in Technology
See All in Technology
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
200
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.2k
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
2.9k
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
データの整合性を保ちたいだけなんだ
shoheimitani
8
3k
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
140
Cosmos World Foundation Model Platform for Physical AI
takmin
0
650
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
AzureでのIaC - Bicep? Terraform? それ早く言ってよ会議
torumakabe
1
470
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
690
顧客の言葉を、そのまま信じない勇気
yamatai1212
1
350
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
900
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
72
Building a Scalable Design System with Sketch
lauravandoore
463
34k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
250
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
Music & Morning Musume
bryan
47
7.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
53
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
250
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
KATA
mclloyd
PRO
34
15k
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