Quantcast
Channel: Benjamin Tan Wei Hao – SitePoint
Browsing all 17 articles
Browse latest View live

Elixir – The Love Child of Ruby and Erlang

Elixir is a functional, meta-programmable language that is built on top of the Erlang VM. Created by Jose Valim in 2011, it has recently gained a lot of interest, especially amongst Ruby and Erlang...

View Article



Rubyists, It’s Time to PRY Yourself Off IRB!

Every Rubyist knows about irb. The Interactive Ruby Shell is essentially a REPL (read-eval-print loop). Type in some expression, and the result gets returned immediately. So how does Pry fit in? Pry...

View Article

A Look at Ruby 2.1

In this article, we take a look at the spanking new features of Ruby 2.1. It was first announced by Matz at the Barcelona Ruby Conference (BaRuCo) 2013. We’ll be focusing on Ruby 2.1.0, which was...

View Article

Pry (and Friends) with Rails

In my previous article, we looked at Pry, an extremely powerful alternative to the standard IRB shell that Ruby gives us. For those who work with Rails, you will be happy to know that Pry has got your...

View Article

Opal: Ruby in Your Browser, the Basics

I love Ruby, and it is my go-to language for building web applications. Unfortunately, when dealing with the browser, Javascript is a necessary evil. As you can see, I am not a huge fan. So when...

View Article


Opal: Ruby in the Browser and the Game of Life

In the previous installment, I introduced Opal and showed how to get it set up on your system. We created the first half of Conway’s Game of Life in Opal. In this article, we will complete our...

View Article

ZeroMQ with Ruby

ZeroMQ is a network messaging library that provides the building blocks to create complex communication systems with minimal fuss via its simple API. In this article, we set up ZeroMQ on our system and...

View Article

Testing Page Objects with SitePrism

In this article, I am going to talk about SitePrism, a testing tool that I have recently learned about and been enjoying. Here is a description of SitePrism from its' creators: SitePrism gives you a...

View Article


Image may be NSFW.
Clik here to view.

Free Static Sites with Middleman and GitHub

I am going to teach you how to build a website using a new workflow that I have been using to build my own personal landing page, product page, and blog. Not only can you customise your site to fit...

View Article


Image may be NSFW.
Clik here to view.

Ru: Ruby in Your Shell

The venerable sed and awk are extremely powerful text-processing tools. In the hands of a master, these power tools can bend text into almost any shape and form. Unfortunately, I'm no master. More...

View Article

Image may be NSFW.
Clik here to view.

10 Killer Tmux Tips

In this article, I bring you ten of my favorite tmux tips. For those unfamiliar with tmux, SitePoint Ruby Editor Glenn Goodrich has written an excellent overview of the basics. Today, I am going to...

View Article

Image may be NSFW.
Clik here to view.

Implementing Lazy Enumerables in Ruby

I've always been fascinated by Ruby's lazy enumeration, a feature that was introduced in Ruby 2.0. In this article, we take a deep dive into lazy enumeration, learning how Ruby implements this...

View Article

Image may be NSFW.
Clik here to view.

Learn Concurrency by Implementing Futures in Ruby

Futures are a concurrency abstraction that represents the result of an asynchronous computation. This means that when you give a future some computation to process, this is done in a separate thread....

View Article


Image may be NSFW.
Clik here to view.

The How and Why of Property-Based Testing in Ruby

Think about the last time you wrote unit tests (which hopefully is pretty recent). You had to come up with the happy-path, the tragic-path, and those hard-to-find edge cases. Since we are not...

View Article

Comparing Rails: Exploring WebSockets in Phoenix

One of the biggest features in Rails 5 is WebSockets. Seems like this feature has been inspired in part by Phoenix, the Elixir web framework. In this article, we take a look at creating a real-time...

View Article


Learn Concurrency by Making a Countdown Latch in Ruby

A Countdown Latch is a concurrency abstraction that allows one or more threads to wait until all other threads are done with what they are doing. Therefore, a countdown latch is often referred to as a...

View Article

Image may be NSFW.
Clik here to view.

A Quick Dive into the Crystal Programming Language

You might have heard mentions of the Crystal programming language of late. It is a language that looks very similar to Ruby. In fact, many Ruby programs are also valid Crystal programs. However, it...

View Article

Browsing all 17 articles
Browse latest View live




Latest Images