educative.io

Learn Ruby from Scratch (Educative)


Built-In Classes: Hashes - Hash Syntax Confusion (optional) This lesson focuses on giving an introduction on the two types of syntaxes of Hash used in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5752207420948480). Variables - Types of Variables and their Usage Get to know various kinds of variables in Ruby. Moreover, learn how and when to use them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5680572198289408). Writing Classes - Initializing Objects Get to learn ho do we initialize and instantiate objects in Ruby! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5741256864956416). Built-in Classes: Strings - Exercise 5: Prepend a String Prepend a string to another string. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5657278443159552). Built-In Classes: Arrays - Working with Arrays Get yourself versed in Arrays and how to operate on them in Ruby! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5651404538511360). Variables - What are Variables? This lesson gives an insight into variables and variable assignment. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5661420402245632). Built-In Classes: Arrays - Exercise 1: Guess the index? Guess the index of an array element! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5753921112899584). Built-in Classes: Strings - Exercise 4: Convert String to Integer Write a function to convert a string to integer or float. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5133064799780864). Built-in Classes: Numbers - Working with Numbers This lesson goes through the types of number evaluations in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5163538666487808). Why should you learn Ruby? - Programming is Creation Motivate yourself to bring your code to life! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5701569219657728). Variables - Quick Quiz on Variables! Ready for a quick quiz on Ruby variables? View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5752897300070400). Variables - Reusing Variable Names This lesson explains how variable names can be reused in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5765486922956800). Built-In Classes: Hashes - Working with Hashes This lesson will discuss the "hash" data structure. Moreover, you'll learn how to get your hands dirty with them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5723216391700480). Objects - Instances This lesson explains how objects are formed via their classes. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5731054170144768). Built-In Classes: Arrays - Things you can do with Arrays! This lesson shows how you can work your way around with arrays and do all sorts of calculations with them! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5641397264711680). Built-In Classes: Arrays - Exercise 3: Find the length of the array Exercise to find the length of the array. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5711383756800000). Built-In Classes: Booleans - True, False and Nil A quick intro to True, False and Nil in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5742272624721920). Built-In Classes: Hashes - Exercise 1: Guess the Answers! Work your brains up on Hashes! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5673649784750080). Objects - Objects, Classes and Methods Prepare yourself to learn more about objects, classes, and methods! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5659711005261824). Objects - Classes This lesson gives an introduction to classes in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5714595855466496). Built-in Classes: Numbers - Exercise 2: Guess the Type? Guess whether the result is float or integer. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5105624253726720). Variables - Things on the Right go First This lesson describes how Ruby figures out the expression on the right first. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5633201930240000). Built-in Classes: Strings - Working with Strings This lesson will teach you how you can operate on strings in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5665925286068224). Built-in Classes: Numbers - Exercise 4: Even or Odd? Check whether a number is even or odd. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/6275629179731968). Writing Methods - Return Values This lesson focuses on how and what a method returns values. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/6266885700059136). Writing Methods - Exercise 2: Greet randomly! Greet in various languages! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5179621708398592). Writing Methods - Scopes This lesson briefs about the local variables and scope of a variable and their scope. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5753568388710400). Writing Methods - Combining Methods Learn how to use methods within methods! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5647053199769600). Writing Methods - Exercise 1: Greet the person! In this challenge, you will create a method that takes a name as an input and appends and prepends text with the name to greet the person. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5760885402370048). Writing Methods - Exercise 4: Check Leap Year In this exercise, you will write a method that takes a year as input and returns in boolean form if it is a leap year or not. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5751646390845440). Writing Classes - Getting Started with Classes! This lesson is a simple introduction to classes to get you onboard! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5725273681035264). Built-In Classes: Arrays - Exercise 8: Even Reversed Write code to reverse only the even elements of the array and building a new array out of them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5647277074939904). Built-In Classes: Arrays - Exercise 7: Reverse the Array Write code to reverse the array. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5740495045132288). Built-In Classes: Arrays - Exercise 6: Combine elements of an array Make a new array out of existing one by combining certain elements of the array. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5697038566031360). Built-In Classes: Hashes - Exercise 2: Flip the keys & values! Find out how you can flip the keys and values of a dictionary! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5640387947397120). Built-In Classes: Arrays - Exercise 4: Replace an element in the array Exercise and learn how to replace an element in the array. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5663812699029504). Built-in Classes: Strings - Exercise 1: Concatenate Substrings Code to merge and concatenate two strings! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5178054582206464). Built-in Classes: Strings - Exercise 2: Padding & Justifying Complete the function to justify a string via padding. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5750161405902848). Built-In Classes: Arrays - Exercise 2: Return the index of the Element Exercise to return the index of an array element. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5645550498086912). Built-In Classes: Arrays - Exercises 9: Delete an Element Write code to delete an element from the array. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5164567311155200). Built-In Classes: Hashes - Exercise 3: Playing with words Work your way around with Hashes! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5693200475881472). Built-In Classes: Hashes - Exercise 6: Add delimiters to the table Learn and write code to add delimiters to the table. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5735049026600960). Writing Methods - Definition This lesson will explain how to define your method in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5720239442493440). Objects - Predicates This lesson briefs the predicate methods in Ruby and how to use them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5670503721205760). Objects - Bangs This lesson gives an introduction to bang methods in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5737161613639680). Objects - Quick Quiz on Objects! Let's test your knowledge about Objects! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5767559781548032). Objects - Calling Learn how to call an object's methods in Ruby! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5769975163781120). Objects - Methods Defining methods of an object is crucial since they exhibit an object's properties and behaviour. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5692158946312192). Objects - Object Oriented Programming An insight into Object Oriented Programming. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5681589568667648). Writing Methods - Constituents Learn about what constitutes method! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5151645902045184). Conditionals - Shorthand Syntax This lesson explains the shorthand syntax to write conditionals. Writing Classes - State and Behaviour This lesson focuses on state, behavior and encapsulation in Ruby methods. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5757715179634688). Writing Classes - Interacting Objects Learn how objects interact with each other in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5085604337418240). Writing Methods - Flow of Execution (optional) Learn how and in what flow Ruby runs your code. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5761752448892928). Objects - Passing Arguments Learn how to pass arguments to a method in Ruby! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5637277854203904). Writing Classes - Attribute Readers This lesson explains the attribute readers and how they are related to instance variables. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5725107787923456). Objects - Listing Methods This lesson teaches how to list down an object's methods and how to "chain" method calls with a single line of code! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5703935746637824). Writing Methods - Methods An introduction to methods and their importance. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5692266857365504). Writing Classes - Quick Quiz on Classes! Ready for a quiz on Classes? View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5682682637844480). Blocks - Block Return Values This lesson discusses how and what a block returns. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5749563331706880). Blocks - Inversion of Control This lesson explains how the principle of inversion of control works in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5657582312095744). Nested Arrays - Exercise 2: Print the output using Nested Arrays By using the nested arrays, print the output of a matrix. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5686378457202688). Get Ready for some more Drill! - Challenge 4: Append hearts equal to the element in array Let's add some more logic to your previous code! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5730902235676672). Nested Arrays - Working with Nested Arrays This lesson will briefly discuss Nested Arrays and it uses! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5688809408692224). Get Ready for some more Drill! - Challenge 5: Join 'em with a newline character! Now use your previous code, instead of joining elements with space, join them with a newline character! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5769848999116800). Get Ready for some more Drill! - Challenge 6: Align them! Now using your previous code, align your output as required. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5637564006400000). Writing Methods - Usage This lesson will brief you on how to use methods in Ruby after defining them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5687116654706688). Writing Methods - Printing Things Discover some other ways to print something in Ruby! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5090992373891072). Operators - Arithmetical Operators An intro to arithematic operators and their usage in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5634612826996736). Operators - Comparison Operators Learn about comparison operators and how we work our way around with them in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5672889575538688). Operators - Operators are Methods This lesson presents how operators are methods too! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5739238230327296). Gear up for some Icing on the Cake! - Questions and Commands This lesson explains what questions and commands are, and how methods can execute them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5689154616688640). Gear up for some Icing on the Cake! - Writing a new Method This lesson demonstrates the steps of writing new methods in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5162157834502144). Gear up for some Icing on the Cake! - Terminology: Arguments vs Parameters This lesson clarifies the difference between arguments and parameters. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5134088612610048). Gear up for some Icing on the Cake! - Alternative Syntax Gather some alternative syntax that can be used for strings and arrays! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5755812509122560). Gear up for some Icing on the Cake! - Using the Right Words This lesson demonstrates the importance of using the right names for variables, methods, classes, and whatnot! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5186613378285568). Gear up for some Icing on the Cake! - Arguments and Parentheses This lesson discusses the use of parentheses when passing arguments to the methods. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5709255063633920). Advanced Topics - Using Libraries This lesson discusses how and when to use libraries and their syntax in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5650817738604544). Conditionals - Nothingness and the Truth An introduction to Nil, True and False objects. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5765867027562496). Advanced Topics - Modules This lesson discusses modules in Ruby and it explains how they relate with classes. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5723866542374912). Advanced Topics - Regular Expressions This lesson summarizes the use of regular expressions in Ruby in detail. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5759978627399680). Ready for a Long Haul? - The Mailbox Class Write your own mailbox class! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5768310863953920). Ready for a Long Haul? - Reading from a CSV File Extend your previous code to read from a CSV file. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5735088218177536). Your Collateral Apparatus! - Text Editor This lesson discusses some good text editors and how to go about with them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5117926113804288). Ready for a Long Haul? - The Mailbox Html Formatter Now lets move onto building Mailbox Html Text Formatter! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5636647567753216). Writing Methods - Exercise 3: Convert Miles to Kilometers In this coding challenge, you will write a method in Ruby that takes miles as input and converts it into kilometers. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5642425909379072). Your Collateral Apparatus! - Interactive Ruby Familiarize yourself with working with Interactive Ruby (IRB). View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5670878960418816). Your Collateral Apparatus! - Terminal This lesson discusses the importance of being proficient with terminal and its basic commands. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5703177114484736). Your Collateral Apparatus! - Ruby Runtime Get yourself acquainted with using the "Ruby runtime". View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5661273836486656). Writing Classes - Defining Classes This lesson will teach you how to define your own classes in Ruby! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5708494854422528). Built-In Classes: Hashes - Exercise 5: Aligning the table columns Write code to align the table columns. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5162323727613952). Built-In Classes: Hashes - Exercise 4: Combine the words with its language Play with Hashes such that you identify the key, value pairs across two dictionaries and put them together. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5656846262075392). Writing Classes - Instance Variables A detailed description of instance variables and how they work in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5648554290839552). Get Ready for some more Drill! - Challenge 2: Make it Uppercase Convert the first letter of array elements' to upper case. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5659090382487552). Writing Classes - Attribute Writers This lesson briefs over attribute writers and their connection with instance variables. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5684666375864320). Blocks - What are Blocks? This lesson will tell you what blocks are and how do we use them in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5763490300035072). Blocks - Alternative Block Syntaxes Get to know some alternative syntaxes that we use for blocks in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5716646702350336). Blocks - Iterators This lesson goes through Iterators in Ruby and will show you how they can be chainable. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5067548294905856). Blocks - Block Arguments This lesson discusses what block arguments are, their usage and their Ruby syntax. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5677751478517760). Get Ready for some more Drill! - Challenge 3: Append one heart next to all array elements Append a substring to each element of the array using string interpolation. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5187812211032064). Nested Arrays - Exercise 1: Sum the rows of a matrix Write a code such that it calculates the sums of all the enteries in rows in a matrix. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5732095699714048). Conditionals - What are Conditionals? This lesson gives an insight into conditionals in Ruby and their usage. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5732605190209536). Conditionals - Conditionals Return Values This lesson discusses the conditional statements which return values and how to use them. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5694209793196032). Advanced Topics - More on Character Classes (Regex) This lesson discusses the character classes of Regex in detail. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5640887774216192). Built-in Classes: Strings - Exercise 6: Remove Characters from String Practice exercise to remove certain characters from a string. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5733831940243456). Operators - Logical Operators A brief intro to Logical Operators and how we use them in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5700239927279616). Gear up for some Icing on the Cake! - Top-level Object This lesson explains the concept of "top-level object", and how it works in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5109939622117376). Gear up for some Icing on the Cake! - Lots of Other Methods Get to know some other cool methods that you can use in your every day Ruby code! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5719378301550592). Coding Challenge: Truthiness - Challenge 1: Prettify the table Have questions about Challenge 1: Prettify the table? Go for it! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5769603078684672). Coding Challenge: Truthiness - Challenge 2: Populate the table Have questions about Challenge 2: Populate the table? Go for it! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5638142719688704). Built-In Classes: Hashes - Things you can do with Hashes! This lesson will let you practice some imporant functions to perform with hashes. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5674210814853120). Advanced Topics - Private Methods This lesson briefs on why and how to make methods private. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5683425130315776). Ready for a Long Haul? - The Email Class Start off by writing your own email class! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5702480826466304). Ready for a Long Haul? - The Mailbox Text Formatter Format your mailbox using MailBoxTextFormatter class! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5110699831328768). Ready for a Long Haul? - Storing our HTML to a File Now lets code how to store our HTML output to a file! View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5669976513970176). Your Collateral Apparatus! - Programming Workflow This lesson briefs about the programming workflow in your environment. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5726488619909120). Get Ready for some more Drill! - Challenge 1: Delete elements from an array Complete the code to delete elements from the array. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5659974608879616). Built-in Classes: Numbers - Exercise 1: Playing with Numbers Ready for a time calculation exercise? View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5693493607399424). Writing Classes - Object Scope and Self This lesson discusses the scope of an object and the usage of the keyword "self". View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5638830484881408). Gear up for some Icing on the Cake! - String Interpolation This lesson explains string interpolation, their usage in strings and "escape sequences". View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5652720409116672). Writing Classes - Defining Instance Methods This lesson focuses on defining instance methods in Ruby. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5668001902755840). Built-In Classes: Arrays - Exercise 5: Extract even elements from array How would you extract the even elements from the array? View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5730161353818112). Built-In Classes: Symbols - Symbols An introduction to symbols, when to use them along with their difference from strings. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5683934620811264). Built-in Classes: Numbers - Exercise 3: Finding Modulo In this exercise, you'll write code to take mod of two numbers. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5766439331954688). Built-in Classes: Strings - Exercise 3: Guess the Output? Concatenation or addition? Take this quiz to figure it out. View the lesson [here](https://www.educative.io/collection/page/10370001/5658174447157248/5144828715204608).
About the Learn Ruby from Scratch (Educative) category [Learn Ruby from Scratch (Educative)] (1)