Category Archives for “Programming”

Here you can find all 27 articles filed under “Programming” on Black Bytes, the blog Clinica Stomatologie Bucuresti curs valutar crama lechinta Psiholog Cluj where Jesus Castello writes practical tutorials about Ruby programming, Linux tools, networking and security.

Hash Tables Explained

Feb 06, 2017 · Programming

One of my favorite data structures is the hash table because it’s simple & powerful. You probably have used it before since it’s an efficient way to store key-value pairs.…

Read More

How To Spy on Your Ruby Methods

Jan 03, 2017 · Programming

Ruby has a built-in tracing system which you can access using the class. Some of the things you can trace are method calls, new threads & exceptions. Why would you…

Read More

9 New Features in Ruby 2.4

Dec 06, 2016 · Programming

It has become a tradition to release new Ruby versions on Christmas. And in this post I want to cover some of the most interesting changes in the next version…

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

My New Favorite Enumerable Method

Mar 07, 2016 · Programming

Enumerable is an amazing module, and it’s a big part of what makes Ruby such a great programming language. Enumerable gives you all sorts of cool methods like , and…

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

Redis – the blazing fast datastore

May 01, 2014 · Programming

In the sea of NoSQL databases Redis stands out thanks to its speed and features, it can work as a cache or as a persistent database. Redis stores data in…

Read More

Sorting Java Collections

Dec 04, 2012 · Programming

Java collections are most of the data structures that come with the language. They share the same basics methods thanks to the collection interface. One of the most common things…

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