Hacker Newsnew | past | comments | ask | show | jobs | submit | eval's commentslogin


This is indeed the lein-try for tools-deps. Published libraries can be loaded but also github/gitlab/sourcehut-projects (as long as $project_root/deps.edn exists).

Rebel-readline (vendored and extended in this project) is essentially a tiny IDE as it provides syntax highlighting, formatting, code completion, docs, show source, show examples etc.


Is ~/.babashka/bbin/bin on PATH? Does installing any of the other libs from https://github.com/babashka/bbin#usage work?


Gah, I missed step 2 on bbin installation instructions: echo 'export PATH="$PATH:$HOME/.babashka/bbin/bin"' >> ~/.$(basename $SHELL)rc && exec $SHELL

Working now, thanks. I love these kinds of sandbox development tools so this is very much appreciated.


As an exercise you could do on a REPL what a macro would do. Say you have a file containing “(1 + 1)”. Reading this (using slurp and read-str) would yield a list, eval-ing this list would however fail as it’s not valid Clojure. To make it eval-able you transform the list (all the operations of the language are at your disposal as you’re just handling data) to (+ 1 1). It’s this operating on data between read and eval that macros do.


This is definitely a first step. The thing is that with 'attr_accessible' a lot of interaction with your models gets harder (think testing or working from the console).

I tried fixing this with introducing roles that have access to all attributes. Source at https://github.com/eval/sudo_attr_accessibility


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: