Better HN
topnewbestaskshowjobs
Log inSign up

eval

7 karma · joined Apr 11, 2011 (15y ago) · 6 submissions

Submissions

comment 3y ago · link · parent

See https://news.ycombinator.com/item?id=35466144

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 8y ago · link · parent

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.

5.

ENVied, or how I stopped worrying about Ruby's ENV(gertgoet.com ↗)

2 points · by eval · 12y ago · discuss

comment 14y ago · link · parent

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