RSSAmplifier

Blog

Anandha Krishnan

Technical blogs about web development

anandhakris.comRSS feed ↗2 posts

Latest posts

Why Does the Kernel Hate Long Shebangs?

Here is a simple Hello world program written in Python. All good, given the sufficient permission, it should work fine as expected. hello_world.py #! /usr/bin/python3 print("Hello World!!!") foo@bar:~$ chmod +x hello_world.py foo@bar:~$ ./hello_world.py Hello World!!! And it does, what if I modify hello_world.py to #! /./././././././././././././././././././././././././././././././././....

Blocks, Procs, and & operator in Ruby

Blocks, procs, and & operator are something that’s used by Ruby developers daily. While used along with enumerators, we see cool statements like ["ant", "bat"].map(&:upcase). Let’s peek behind the abstractions and try to understand what happens behind. Block Block is a chunk of code enclosed in curly braces or do...end that you can pass to a method. def say_something yield if block...