Serve a Directory with Ruby
Quickly serving a directory using PHP, Node.js, or Python allows for quick testing with as little hassle as possible. Imagine having to stand up apache or another server just to serve a directory -- gross! Since I had touched the three important languages, I looked to Ruby, a language I have very little experience with.
It turns out that serving a directory with Ruby is as easy as the other languages:
ruby -run -e httpd . -p 8080
-p argument obviously represents the port, so hitting
localhost:8080 will get you to the served directory!
This is the hardest thing I've ever had to write, much less admit to myself. I've written resignation letters from jobs I've loved, I've ended relationships, I've failed at a host of tasks, and let myself down in my life. All of those feelings were very...
As broadband speed continues to get faster, the web continues to be more media-centric. Sometimes that can be good (Netflix, other streaming services), sometimes that can be bad (wanting to read a news article but it has an accompanying useless video with it). And every social service does...