Writing a Shell in 25 Lines of Ruby Code
Jul 12, 2016
If you use Linux or Mac, every time you open a terminal you are using a shell application. A shell is just an interface that helps you execute commands in…
Read MoreHere you can find all 19 articles tagged “ruby” on Black Bytes, the blog where Clinica Stomatologie Bucuresti curs valutar crama lechinta Psiholog Cluj Jesus Castello writes practical tutorials about Ruby programming, Linux tools, networking and security.
Jul 12, 2016
If you use Linux or Mac, every time you open a terminal you are using a shell application. A shell is just an interface that helps you execute commands in…
Read MoreJun 27, 2016 · Programming
Tools like , & are great, they give you a lot of information about what’s going with your system. But how do they work? Where do they get all their…
Read MoreJun 14, 2016
Have you ever wondered how ranges work in Ruby? Even if you haven’t, isn’t it fun to discover how things work under the hood? That’s exactly what I’m going to…
Read MoreMay 16, 2016
The Ruby Standard Library is a series of modules & classes that come with Ruby but are not part of the language itself. These classes offer a variety of utilities…
Read MoreMay 03, 2016 · Programming
Random numbers usually follow what we call a ‘uniform distribution’, meaning that there is the same chance that any of the numbers is picked. But if you want some numbers…
Read MoreApr 04, 2016 · Programming
Do you want to learn how to write a Twitter application using Ruby? Then you are in the right place! In this post I will teach you, step-by-step, how to…
Read MoreDec 01, 2015 · Programming
If you aren’t familiar with the term, refactoring is the act of improving the quality of code without changing what it does. This will make your code a lot easier…
Read MoreOct 19, 2015 · Programming
Whenever you need to use some statements you could consider using a Ruby case statement instead. In this post, you will learn a few different use cases and how it…
Read MoreSep 14, 2015 · Programming
What would you do if you are given a big collection of text and you want to extract some meaning out of it? A good start is to break up…
Read MoreAug 17, 2015 · Programming
Have you ever wondered if there is an alternative to iteration? Well I have good news for you: there is, and it’s called recursion. Recursive functions are those that keep…
Read MoreAug 02, 2015 · Programming
If you want to know something about your source code, like the name and line number of all your methods, what do you do? Your first idea might be to…
Read MoreJul 12, 2015 · Programming
How often does your program do exactly what you want the first time around? Many times our programs won’t work like you expect, so we have to use the art…
Read MoreJun 22, 2015 · Programming
Ruby regular expressions ( ruby regex for short) help you find specific patterns inside strings, with the intent of extracting that data for further processing. Two common use cases for…
Read MoreJun 08, 2015 · Programming
Sometimes you just want an object that can store some data for you, the struct class is very useful in that situation. To create our Struct we pass in a…
Read MoreMay 06, 2015 · Programming
Ruby arrays are a fundamental data structure that is used to store data in memory. Inside a Ruby array you can store anything you want, from strings to integers and…
Read MoreMar 07, 2015 · Programming
Rubocop is a static analysis tool that will help you keep your code void of a number of style and potential error issues. It is very easy to get started,…
Read MoreAug 20, 2012 · Programming
SQLite is a serverless relational database. It is used notably by modern browsers like Chrome and Firefox to store data like history, cookies, saved passwords… We are going to see…
Read MoreJun 02, 2012 · Programming
Tracing is following all the steps taken by a program, specially function calls/methods, this can be a useful debugging tool when tracking down some problems with your application. In Ruby…
Read MoreMar 13, 2012 · Programming
Ruby sorting is really easy, lets see some examples. If we had this array: sorting normally we would get: Let’s say we wanted to sort by the second letter, we…
Read More