What’s Happening in My Ruby Application?

If you’re wondering what’s going on with your Ruby application… There are no fancy GUI tools… But we have the ObjectSpace module! ObjectSpace gives you information about the current state of your application. Let’s discover how it works. Counting Objects Using ObjectSpace you can know what objects are currently ‘alive’ in your program. What does … Read more

Build Your Own Web Server With Ruby

Have you ever built your own web server with Ruby? We already have many servers, like: Puma Thin Unicorn But I think this is a great learning exercise if you want to know how a simple web server works. In this article, you will learn how to do this. Step-by-step! Step 1: Listening For Connections … Read more

Writing a Shell in 25 Lines of Ruby Code

If you use Linux or Mac, every time you open a terminal you are using a shell application. A shell is an interface that helps you execute commands in your system. The shell hosts environment variables & has useful features like a command history and auto-completion. If you are the kind of person that likes … Read more