Hacking Ruby

It’s limited in it’s simplicity by the inherent complexity of it’s aim.

If you really want to come to new knowledge, you need to solve a problem engaging all your capacities.

Capital “Ruby” refers to the language specification, and ruby to the ruby command as an implementation.

It is developed by Yukihiro Matsumoto. There is no standard. The specification is merely shown as an implementation.

  • Ruby is an object oriented language.
  • It is a scripting language (what does this even mean? it means it’s easy to quickly type out a script for any task?)
  • ruby is an interpreter.
  • automatic memory control –> memory is allocated and deallocated automatically by the system.
  • variables in Ruby don’t have types –> dynamic typing.
  • Everything is an expression. You can write something like this:
    result = if condition then something else otherthing end
    # If condition is true, the result = something
    # if condition is false, then result is otherthing
    

    Many people feel Ruby is similar to Lisp.

Reading source code

An important key to reading the source code is to set a concrete goal.

2023

Hacking Ruby

It’s limited in it’s simplicity by the inherent complexity of it’s aim.

Linux tricks

Deleting all files with a certain pattern in the filename rm *.c # This deletes all the .c files

Cpython notes

Cpython is the official implementation of Python. It is written in C (hence the name).

Better hacker

The goal is to gain a better understanding of computer systems and become a better hacker.

Welcome to Jekyll!

Getting started with Jekyll First install bundler and jekyll. gem install jekyll bundler

Lisp notes

Lisp is the greatest single programming language ever designed - Alan Kay

Notes on The Internet

You go onto your computer, open a browser and type www.google.com and hit enter. What happens?

Interesting links

This is a collection of links to some of the interesting articles I found on the internet

Back to Top ↑