Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Blog Directory  >  Software Blogs  >  Programming Blogs  >  Black Bytes programming Blog  > 

2018-04-18 16:37
There are a few articles out there about how to find memory leaks. But how about creating one? I think it will be an interesting exercise so you know what a memory leak looks like in Ruby. L… Read More
2018-03-07 13:00
Writing a C extension allows you to interact with Ruby from C. You may want to this if there is a particular important method you would like to optimize with the speed of C, or if you would… Read More
2018-02-13 15:28
Have you ever wondered about the differences between symbols & strings? Let’s talk about that! Strings are used to work with data. Symbols are identifiers. That’s the main di… Read More
2018-01-31 16:00
Maybe you just heard about functional programming & have some questions. Like… What is functional programming exactly? How does it compare to object-oriented programming? Should y… Read More
2018-01-21 14:00
A string is just a sequence of characters. Since strings are objects they have a lot of methods you can use to do things with them. In this article you will find the most useful Ruby string… Read More
2018-01-07 17:37
In this article you will learn many different ways to write a Ruby loop. A loop lets you repeat some action a number of times. You can also go over a list of things, like an array or a hash… Read More
2018-01-01 22:02
Nil… What is it, really? Well, nil is just a Ruby object. As you can see here: [crayon-5a4ade83e5837102895603/] There is only one nil object, with an object_id of 4 (8 in 64 bit Ruby)… Read More
2017-12-07 15:44
Ruby will intentionally hide some exceptions from you. Sometimes this can be useful. Like when using the Kernel#loop method with a block, the loop will stop when a StopIteration exception is… Read More
2017-11-01 15:56
New Ruby versions keep improving & Ruby 2.5 is no different. Ruby 2.5 is introducing some optimizations: String interpolation will be around 72% faster when a large string is created Str… Read More
2017-10-18 14:06
Let’s say that you want to compare two arrays, element by element so you can find the differences. Or maybe you want to find the biggest number on every index, or you just want to merg… Read More
2017-10-02 15:54
Build an Image Downloader in Ruby Watch this video to learn how to build an image dowloader program step-by-step using Ruby, Nokogiri & RestClient! Starting a new project & not sure… Read More
2017-08-21 15:30
What happens when you require sinatra into your project? How does route matching work? How are requests & responses processed? So many questions, but so little time… No problem! I… Read More
2017-08-07 16:00
This is the 3rd entry in the “Practical Computer Science in Ruby” series! Today we are going to talk about linked list. So what’s a linked list? Like the name says, a linke… Read More
2017-07-24 16:00
How many ways are there to sort an array in Ruby? More than you think… …even though Array only has two sorting methods (sort & sort_by) these methods can take a block, whic… Read More
2017-06-26 15:30
Metaprogramming sounds like a very fancy word, but is it any good? It can be useful, but many people don’t realize that using metaprogramming has some costs. Just so we are on the same… Read More
2017-06-12 15:30
You may have heard (or even said yourself) that Rails / Ruby has too much magic… …but where does that idea come from & what can you do to dispel that magic? When something… Read More
2017-05-22 16:00
This is the next installment in the “Practical Computer Science” series, where you will learn how to apply classic computer science concepts to solve real problems using Ruby. To… Read More
2017-05-08 16:00
If you are looking for an object that behaves like an IO object (files, sockets, etc), but that you can control like a string, then StringIO is for you. Let me show you some examples & t… Read More
2017-04-24 16:00
Are you using the full power of OOP (Object-Oriented Programming) or are you missing out? If you are taking decisions based on the type of an object then you are missing out on one important… Read More
2017-02-06 15:00
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. Th… Read More
2017-01-03 02:46
Ruby has a built-in tracing system which you can access using the TracePoint class. Some of the things you can trace are method calls, new threads & exceptions. Why would you want to use… Read More
2016-12-06 15:51
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 so you can keep up with the new… Read More
2016-11-22 17:20
Why would you want to write a port scanner? Writing a port scanner is a great way to learn the basics of the TCP protocol, which is the transport layer used by most internet protocols (inclu… Read More
2016-11-07 15:00
As you may know, Minitest is the default testing library for Rails & DHH’s favorite. Some people prefer it for its simplicity and how little code it has compared to its main &lsquo&hell…Read More
Build Your Own Web Server
2016-08-10 18:15
Have you ever built your own web server? I think this is a great learning exercise & in this post you will learn how to do this, step-by-step! Listening For Connections So where do we st… Read More
Writing A Shell In 25 Lines Of Ruby Code
2016-07-12 16:14
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 your system. In addition to that, t… Read More
2016-06-14 15:56
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 show yo… Read More
2016-05-03 16:50
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 to be p… Read More
2016-04-11 14:09
You may have read about metaprogramming before & maybe you have used it in some of your projects, but how are some of the most popular open-source projects making use of this feature? Fi… Read More
2016-04-04 16:51
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 create a program that can interact wi… Read More
2016-04-04 16:51
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 create a program that can interact wi… Read More
2016-03-07 17:15
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 map, select and inject. B… Read More
2016-02-16 21:39
If you have been using Ruby for a while you are probably curious about how some things work under the hood. One way to dig deep into Ruby internals is by reading the source code that makes i… Read More
2015-12-15 20:00
If you want to do anything related with time you probably want to use some sort of class that can store and work with this type of data. In this article you will learn what time-related clas… Read More
2015-12-01 18:47
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 to work with. In this… Read More
2015-10-19 16:33
Whenever you need to use some if / elsif statements you could consider using a Ruby case statement instead. In this post, you will learn a few different use cases and how it all really works… Read More

Share the post

Black Bytes

×

Subscribe to Black Bytes

Get updates delivered right to your inbox!

Thank you for your subscription

×