Settings

Theme

Fir: A Friendly, Interactive Ruby REPL

nasseri.io

96 points by nasseri 8 years ago · 12 comments

Reader

gkya 8 years ago

The best interactive environment I've ever used (and still use) is an Emacs buffer with an associated inferior process. The default keybindings for Ruby mode interaction with inferior-ruby are a bit lacking, I have made a couple customisations for myself that can be helpful: https://www.gkayaalp.com/gk.html#orgf0bce87 .

  • pvg 8 years ago

    Very neat. Do your maintain this by hand or generate it with something? (Unrelated but computer program is 'program' even in British spelling).

    • stevekemp 8 years ago

      If you enjoy this style of literate documentation, then you might enjoy my personal Emacs configuration too (it is smaller). The following should be placed in ~/.emacs/init.el:

      https://github.com/skx/dotfiles/blob/master/.emacs.d/init.el

      That reads and parses the following Markdown file, which contains documentation for humans and indented code-blocks which are executed by Emacs:

      https://github.com/skx/dotfiles/blob/master/.emacs.d/init.md

      • pvg 8 years ago

        Thanks! I'm probably more interested in just reading the documented .emacs-en of people who've had the good sense to write down what they were doing. Sadly, no amount of clever automation is going to travel back in time and document and explain the half-zillion lines of inscrutable poop I have put in my c-mode config over the years.

    • gkya 8 years ago

      Thanks! I use org-mode and org-babel to generate this, and hook it up into org-publish which I use to publish all of my website. Org-babel is a literate programming extension to org mode that allows you to embed code in any language in your org mode document and execute them or export to many formats.

  • weaksauce 8 years ago

    Wow! that's some serious customization to your emacs config and well documented too. impressive.

hartator 8 years ago

Really cool, you don't really need to list all the emacs commands in the Readme. Even if is where most of the work went.

I would love to help. I can try to implement some of the pry features into Fir or work on a Rails integration ala pry-rails.

adrianlmm 8 years ago

I tried to use it in Windows and looked like this:

https://imgur.com/a/ete0V

  • baldfat 8 years ago

    Try this: https://www.microsoft.com/en-us/store/p/opensuse-leap-42/9nj...

    Its for OpenSUSE instead of Ubuntu because I like OpenSUSE more especially comparing apt-get syntax to zypper.

    zypper refresh actually refreshes the repos and not apt-get update that doesn't update anything

    zypper update actually updates the packages and not apt-get upgrade

    zypper dist-upgrade moves from one release to the next as opposed to apt full-upgrade because apt-get dist-upgrade doesn't remove programs with a conflict. UGH!!!!!

    zypper search actually searches for packages as opposed to apt-cache search

    /rant over

    WHY did chocolatey go with the debian apt-get syntax :(

  • hartator 8 years ago

    You probably better using Bash for Win 10. It's native now.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection