Tag Archives for “ruby”

Here 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.

Ruby Ranges: How Do They Work?

Jun 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 More

How to Generate Weighted Random Numbers

May 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 More

Introduction to Refactoring

Dec 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 More

The Many Uses Of Ruby Case Statements

Oct 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 More

Recursion and Memoization in Ruby

Aug 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 More

Static Analysis in Ruby

Aug 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 More

Debugging your Ruby Programs

Jul 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 More

Mastering Ruby Regular Expressions

Jun 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 More

Using Struct and OpenStruct

Jun 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 More

Mastering Ruby Arrays

May 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 More

SQLite basics

Aug 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 More

Ruby tracing – A useful debugging tool

Jun 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 More

Ruby: fine grained sorting

Mar 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

Popular posts