2024-02-04T05:35:25.975Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
45219c35-7f40-46e3-b3fe-714078aaad38
42921c433668387fcf86421c681832a8efb7b207bf3bac0dde2e5bf1f7864407
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
Ruby, a dynamic interpreted scripting language made famous for taking simplicity and code readability to the extreme.
It was first conceived by Yukihiro Matsumoto, AKA Matts, in 1993 as an easy to use scripting language like Python, but with genuine object oriented features like small talk.
It exploded in popularity after David Hana Meyer Hanssen, aka DHH, created Rails in 2,000 5, a model view controller framework.
At the time, it was a game changer for startups because it reduced the complexity required to build a full stack web application, and has been used to build unicorns like Twitter, Shopify, GitHub, and Airbnb, just to name a few.
Ruby is often called a programmer's best friend, spent thanks to its minimal syntax that relies on plain English words and the use of blocks to write concise functional code.
At the same time, it's a true object oriented language where everything is an object and every object can be modified, giving developers the flexibility to extend or modify the behavior of the underlying language.
The developer ecosystem is large and mature.
Code is shared between developers with the RubyGems package manager where a program is organized into a self contained format called a gem.
To get started, install Ruby, then create a file ending in dotrb.
To declare a local variable, give it a name followed by a value.
There's no variable keyword, but you can define constants in all caps for global variables with a dollar sign.
Every value is an instance of an object, which means we can call methods directly on a string like so, and parentheses are usually optional.
Ruby is dynamically typed, which means there's no type annotations.
However, modern tools like RBS can add a type system on top of it, kind of like how TypeScript does for JavaScript.
Now to print a value to the standard output, use the puts method.
We can define our own custom methods using the def keyword, which end with the end keyword.
Every method will always return exactly one object.
No return keyword is necessary.
Free.
Or if you don't want a named method, you might create a block with the do keyword, which works like an anonymous function.
Blocks can also take arguments found in between the pipe characters.
Now used the class keyword to create blueprints for your own custom objects.
An interesting point is that Ruby supports duck typing, which means that if it walks like a duck and quacks like a duck, then it's a duck.
In other words, it won't throw type errors based on the class itself, but rather the methods that are implemented on it.
Define the initialize method to run code when a new object is constructed.
Any variable that starts with at belongs to an object instance, while any variable with a double at is static and belongs to the class itself.
You can easily add getters and setters to a class using the attribute accessor method.
And now we can create a new object instance by calling the new method on the class.
Now run your code with the Ruby interpreter from the terminal.
This has been Ruby in 100 seconds.
Hit the like button and subscribe if you want to see more short videos like this.
Thanks for watching and I will see you in the next one.

Speaker 0: Ruby, a dynamic interpreted scripting language made famous for taking simplicity and code readability to the extreme. It was first conceived by Yukihiro Matsumoto, AKA Matts, in 1993 as an easy to use scripting language like Python, but with genuine object oriented features like small talk. It exploded in popularity after David Hana Meyer Hanssen, aka DHH, created Rails in 2,000 5, a model view controller framework. At the time, it was a game changer for startups because it reduced the complexity required to build a full stack web application, and has been used to build unicorns like Twitter, Shopify, GitHub, and Airbnb, just to name a few. Ruby is often called a programmer's best friend, spent thanks to its minimal syntax that relies on plain English words and the use of blocks to write concise functional code.

At the same time, it's a true object oriented language where everything is an object and every object can be modified, giving developers the flexibility to extend or modify the behavior of the underlying language. The developer ecosystem is large and mature. Code is shared between developers with the RubyGems package manager where a program is organized into a self contained format called a gem. To get started, install Ruby, then create a file ending in dotrb. To declare a local variable, give it a name followed by a value.

There's no variable keyword, but you can define constants in all caps for global variables with a dollar sign. Every value is an instance of an object, which means we can call methods directly on a string like so, and parentheses are usually optional. Ruby is dynamically typed, which means there's no type annotations. However, modern tools like RBS can add a type system on top of it, kind of like how TypeScript does for JavaScript. Now to print a value to the standard output, use the puts method.

We can define our own custom methods using the def keyword, which end with the end keyword. Every method will always return exactly one object. No return keyword is necessary. Free. Or if you don't want a named method, you might create a block with the do keyword, which works like an anonymous function.

Blocks can also take arguments found in between the pipe characters. Now used the class keyword to create blueprints for your own custom objects. An interesting point is that Ruby supports duck typing, which means that if it walks like a duck and quacks like a duck, then it's a duck. In other words, it won't throw type errors based on the class itself, but rather the methods that are implemented on it. Define the initialize method to run code when a new object is constructed.

Any variable that starts with at belongs to an object instance, while any variable with a double at is static and belongs to the class itself. You can easily add getters and setters to a class using the attribute accessor method. And now we can create a new object instance by calling the new method on the class. Now run your code with the Ruby interpreter from the terminal. This has been Ruby in 100 seconds.

Hit the like button and subscribe if you want to see more short videos like this. Thanks for watching and I will see you in the next one.
Ruby, a dynamic interpreted scripting language made famous for taking simplicity and code readability to the extreme. It was first conceived by Yukihiro Matsumoto, AKA Matts, in 1993 as an easy to use scripting language like Python, but with genuine object oriented features like small talk. It exploded in popularity after David Hana Meyer Hanssen, aka DHH, created Rails in 2,000 5, a model view controller framework.
programming
At the time, it was a game changer for startups because it reduced the complexity required to build a full stack web application, and has been used to build unicorns like Twitter, Shopify, GitHub, and Airbnb, just to name a few.
Ruby is often called a programmer's best friend, spent thanks to its minimal syntax that relies on plain English words and the use of blocks to write concise functional code. At the same time, it's a true object oriented language where everything is an object and every object can be modified, giving developers the flexibility to extend or modify the behavior of the underlying language. The developer ecosystem is large and mature. Code is shared between developers with the RubyGems package manager where a program is organized into a self contained format called a gem. To get started, install Ruby, then create a file ending in dotrb. To declare a local variable, give it a name followed by a value.
software development
programming
software
ideologies
There's no variable keyword, but you can define constants in all caps for global variables with a dollar sign. Every value is an instance of an object, which means we can call methods directly on a string like so, and parentheses are usually optional. Ruby is dynamically typed, which means there's no type annotations. However, modern tools like RBS can add a type system on top of it, kind of like how TypeScript does for JavaScript. Now to print a value to the standard output, use the puts method. We can define our own custom methods using the def keyword, which end with the end keyword. Every method will always return exactly one object. No return keyword is necessary. Free. Or if you don't want a named method, you might create a block with the do keyword, which works like an anonymous function. Blocks can also take arguments found in between the pipe characters. Now used the class keyword to create blueprints for your own custom objects. An interesting point is that Ruby supports duck typing, which means that if it walks like a duck and quacks like a duck, then it's a duck. In other words, it won't throw type errors based on the class itself, but rather the methods that are implemented on it. Define the initialize method to run code when a new object is constructed. Any variable that starts with at belongs to an object instance, while any variable with a double at is static and belongs to the class itself. You can easily add getters and setters to a class using the attribute accessor method. And now we can create a new object instance by calling the new method on the class. Now run your code with the Ruby interpreter from the terminal. This has been Ruby in 100 seconds. Hit the like button and subscribe if you want to see more short videos like this. Thanks for watching and I will see you in the next one.
Ruby, a dynamic interpreted scripting language made famous for taking simplicity and code readability to the extreme. It was first conceived by Yukihiro Matsumoto, AKA Matts, in 1993 as an easy to use scripting language like Python, but with genuine object oriented features like small talk. It exploded in popularity after David Hana Meyer Hanssen, aka DHH, created Rails in 2,000 5, a model view controller framework. At the time, it was a game changer for startups because it reduced the complexity required to build a full stack web application, and has been used to build unicorns like Twitter, Shopify, GitHub, and Airbnb, just to name a few. Ruby is often called a programmer's best friend, spent thanks to its minimal syntax that relies on plain English words and the use of blocks to write concise functional code. At the same time, it's a true object oriented language where everything is an object and every object can be modified, giving developers the flexibility to extend or modify the behavior of the underlying language. The developer ecosystem is large and mature. Code is shared between developers with the RubyGems package manager where a program is organized into a self contained format called a gem. To get started, install Ruby, then create a file ending in dotrb. To declare a local variable, give it a name followed by a value. There's no variable keyword, but you can define constants in all caps for global variables with a dollar sign. Every value is an instance of an object, which means we can call methods directly on a string like so, and parentheses are usually optional. Ruby is dynamically typed, which means there's no type annotations. However, modern tools like RBS can add a type system on top of it, kind of like how TypeScript does for JavaScript. Now to print a value to the standard output, use the puts method. We can define our own custom methods using the def keyword, which end with the end keyword. Every method will always return exactly one object. No return keyword is necessary. Free. Or if you don't want a named method, you might create a block with the do keyword, which works like an anonymous function. Blocks can also take arguments found in between the pipe characters. Now used the class keyword to create blueprints for your own custom objects. An interesting point is that Ruby supports duck typing, which means that if it walks like a duck and quacks like a duck, then it's a duck. In other words, it won't throw type errors based on the class itself, but rather the methods that are implemented on it. Define the initialize method to run code when a new object is constructed. Any variable that starts with at belongs to an object instance, while any variable with a double at is static and belongs to the class itself. You can easily add getters and setters to a class using the attribute accessor method. And now we can create a new object instance by calling the new method on the class. Now run your code with the Ruby interpreter from the terminal. This has been Ruby in 100 seconds. Hit the like button and subscribe if you want to see more short videos like this. Thanks for watching and I will see you in the next one.
Ruby,
ruby
a
a
dynamic
dynamic
interpreted
interpreted
scripting
scripting
language
language
made
made
famous
famous
for
for
taking
taking
simplicity
simplicity
and
and
code
code
readability
readability
to
to
the
the
extreme.
extreme
It
it
was
was
first
first
conceived
conceived
by
by
Yukihiro
yukihiro
Matsumoto,
matsumoto
AKA
aka
Matts,
matts
in
in
1993
1993
as
as
an
an
easy
easy
to
to
use
use
scripting
scripting
language
language
like
like
Python,
python
but
but
with
with
genuine
genuine
object
object
oriented
oriented
features
features
like
like
small
small
talk.
talk
It
it
exploded
exploded
in
in
popularity
popularity
after
after
David
david
Hana
hana
Meyer
meyer
Hanssen,
hanssen
aka
aka
DHH,
dhh
created
created
Rails
rails
in
in
2,000
2,000
5,
5
a
a
model
model
view
view
controller
controller
framework.
framework
At
at
the
the
time,
time
it
it
was
was
a
a
game
game
changer
changer
for
for
startups
startups
because
because
it
it
reduced
reduced
the
the
complexity
complexity
required
required
to
to
build
build
a
a
full
full
stack
stack
web
web
application,
application
and
and
has
has
been
been
used
used
to
to
build
build
unicorns
unicorns
like
like
Twitter,
twitter
Shopify,
shopify
GitHub,
github
and
and
Airbnb,
airbnb
just
just
to
to
name
name
a
a
few.
few
Ruby
ruby
is
is
often
often
called
called
a
a
programmer's
programmer's
best
best
friend,
friend
spent
spent
thanks
thanks
to
to
its
its
minimal
minimal
syntax
syntax
that
that
relies
relies
on
on
plain
plain
English
english
words
words
and
and
the
the
use
use
of
of
blocks
blocks
to
to
write
write
concise
concise
functional
functional
code.
code
At
at
the
the
same
same
time,
time
it's
it's
a
a
true
true
object
object
oriented
oriented
language
language
where
where
everything
everything
is
is
an
an
object
object
and
and
every
every
object
object
can
can
be
be
modified,
modified
giving
giving
developers
developers
the
the
flexibility
flexibility
to
to
extend
extend
or
or
modify
modify
the
the
behavior
behavior
of
of
the
the
underlying
underlying
language.
language
The
the
developer
developer
ecosystem
ecosystem
is
is
large
large
and
and
mature.
mature
Code
code
is
is
shared
shared
between
between
developers
developers
with
with
the
the
RubyGems
rubygems
package
package
manager
manager
where
where
a
a
program
program
is
is
organized
organized
into
into
a
a
self
self
contained
contained
format
format
called
called
a
a
gem.
gem
To
to
get
get
started,
started
install
install
Ruby,
ruby
then
then
create
create
a
a
file
file
ending
ending
in
in
dotrb.
dotrb
To
to
declare
declare
a
a
local
local
variable,
variable
give
give
it
it
a
a
name
name
followed
followed
by
by
a
a
value.
value
There's
there's
no
no
variable
variable
keyword,
keyword
but
but
you
you
can
can
define
define
constants
constants
in
in
all
all
caps
caps
for
for
global
global
variables
variables
with
with
a
a
dollar
dollar
sign.
sign
Every
every
value
value
is
is
an
an
instance
instance
of
of
an
an
object,
object
which
which
means
means
we
we
can
can
call
call
methods
methods
directly
directly
on
on
a
a
string
string
like
like
so,
so
and
and
parentheses
parentheses
are
are
usually
usually
optional.
optional
Ruby
ruby
is
is
dynamically
dynamically
typed,
typed
which
which
means
means
there's
there's
no
no
type
type
annotations.
annotations
However,
however
modern
modern
tools
tools
like
like
RBS
rbs
can
can
add
add
a
a
type
type
system
system
on
on
top
top
of
of
it,
it
kind
kind
of
of
like
like
how
how
TypeScript
typescript
does
does
for
for
JavaScript.
javascript
Now
now
to
to
print
print
a
a
value
value
to
to
the
the
standard
standard
output,
output
use
use
the
the
puts
puts
method.
method
We
we
can
can
define
define
our
our
own
own
custom
custom
methods
methods
using
using
the
the
def
def
keyword,
keyword
which
which
end
end
with
with
the
the
end
end
keyword.
keyword
Every
every
method
method
will
will
always
always
return
return
exactly
exactly
one
one
object.
object
No
no
return
return
keyword
keyword
is
is
necessary.
necessary
Free.
free
Or
or
if
if
you
you
don't
don't
want
want
a
a
named
named
method,
method
you
you
might
might
create
create
a
a
block
block
with
with
the
the
do
do
keyword,
keyword
which
which
works
works
like
like
an
an
anonymous
anonymous
function.
function
Blocks
blocks
can
can
also
also
take
take
arguments
arguments
found
found
in
in
between
between
the
the
pipe
pipe
characters.
characters
Now
now
used
used
the
the
class
class
keyword
keyword
to
to
create
create
blueprints
blueprints
for
for
your
your
own
own
custom
custom
objects.
objects
An
an
interesting
interesting
point
point
is
is
that
that
Ruby
ruby
supports
supports
duck
duck
typing,
typing
which
which
means
means
that
that
if
if
it
it
walks
walks
like
like
a
a
duck
duck
and
and
quacks
quacks
like
like
a
a
duck,
duck
then
then
it's
it's
a
a
duck.
duck
In
in
other
other
words,
words
it
it
won't
won't
throw
throw
type
type
errors
errors
based
based
on
on
the
the
class
class
itself,
itself
but
but
rather
rather
the
the
methods
methods
that
that
are
are
implemented
implemented
on
on
it.
it
Define
define
the
the
initialize
initialize
method
method
to
to
run
run
code
code
when
when
a
a
new
new
object
object
is
is
constructed.
constructed
Any
any
variable
variable
that
that
starts
starts
with
with
at
at
belongs
belongs
to
to
an
an
object
object
instance,
instance
while
while
any
any
variable
variable
with
with
a
a
double
double
at
at
is
is
static
static
and
and
belongs
belongs
to
to
the
the
class
class
itself.
itself
You
you
can
can
easily
easily
add
add
getters
getters
and
and
setters
setters
to
to
a
a
class
class
using
using
the
the
attribute
attribute
accessor
accessor
method.
method
And
and
now
now
we
we
can
can
create
create
a
a
new
new
object
object
instance
instance
by
by
calling
calling
the
the
new
new
method
method
on
on
the
the
class.
class
Now
now
run
run
your
your
code
code
with
with
the
the
Ruby
ruby
interpreter
interpreter
from
from
the
the
terminal.
terminal
This
this
has
has
been
been
Ruby
ruby
in
in
100
100
seconds.
seconds
Hit
hit
the
the
like
like
button
button
and
and
subscribe
subscribe
if
if
you
you
want
want
to
to
see
see
more
more
short
short
videos
videos
like
like
this.
this
Thanks
thanks
for
for
watching
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
In this video, a speaker explains the basics of Ruby, a dynamic interpreted scripting language used for creating web applications. Ruby is a developer-friendly language, with minimal syntax and ability to be modified by developers. It is a caller-friendly language, with the ability to use block and variables, and the ability to print values to standard output. The speaker also discusses the use of the class keyword and how it can be used to create blueprints for custom objects.
Ruby in 100 Seconds
Ruby is a dynamic programming language most well-know for powering the Ruby on Rails fullstack web framework. Learn why developers love the simple object-oriented code produced by the Ruby language. 

#programming #compsci #100SecondsOfCode

🔗 Resources

Ruby Docs https://ruby-doc.org/
Rails RoR Docs https://rubyonrails.org/

🔥 Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment. 

🎨 My Editor Settings

- Atom One Dark 
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- What is Ruby used for?
- Who invented Ruby?
- Who invented Ruby on Rails?
- Ruby quickstart
- Ruby basics tutorial
- Which Startups used Ruby on Rails?