scope-capture
hashp
scope-capture | hashp | |
---|---|---|
9 | 3 | |
557 | 431 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 10 months ago | |
Clojure | Clojure | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scope-capture
-
What I Have Changed My Mind About in Software Development
Awesome tools.
Personally I can't imagine coding in clojure without scope capture
https://github.com/vvvvalvalval/scope-capture
- Automatic function argument / return value collection
- Using def within the threading macro. Is there a better way of doing this?
-
Python dataclass equivalent
I haven't tried it myself. I generally just use truss for runtime constraint checking. I use a modified version that integrates scope-capture. And malli validation for more complex cases, but I try to limit that. For me it is better to validate individual attributes as needed, vs validating an entire "type"/collection of attributes. So each function only cares about the attributes that it needs, and validates only as needed.
-
Love Clojure, challenged by discoverability
Use scope-capture to observe the actual data flowing through the system
-
Clojure unique way of debugging
Scope capture library https://github.com/vvvvalvalval/scope-capture automates this approach.
- The Clojure debbugging way with scope capture
-
Let, try and other code blocks in the REPL
Is anyone aware of any prior art along the lines of this? I've seen scope-capture but it's more about instrumenting existing programs than writing new ones interactively.
-
Data-Oriented programming and LISP
I am not advocating against the use of a compiler. I am going to illustrate how to reproduce the scope of a program and replay it in the REPL as it is done for instance in Clojure with scope-capture. In some use cases, I find this approach is simpler than using a debugger. This approach is possible only because the data is immutable.
hashp
- Print and return for debugging
-
FlowStorm 2.2 new features demo
I honestly did not know there were any ClojureScript debuggers out there. I normally use hashp for debugging, but I do occasionally find myself needing a debugger, so I will definitely check this out!
-
Debugging in Clojure · Dave Martin's Blog
Though very similar to #spy/p / #spy/d, I really like https://github.com/weavejester/hashp. It colors the syntax, shows the expression and the source code location.
What are some alternatives?
clojure - The Clojure programming language
flow-storm-debugger - A debugger for Clojure and ClojureScript with some unique features.
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
truss - Assertions micro-library for Clojure/Script
reveal - Read Eval Visualize Loop for Clojure
rebel-readline - Terminal readline library for Clojure dialects
Light Table - The Light Table IDE ⛺
spec-tools - Clojure(Script) tools for clojure.spec
ghostwheel - Hassle-free inline clojure.spec with semi-automatic generative testing and side effect detection
debug-repl - A Clojure debug repl as nrepl middleware
debux - A trace-based debugging library for Clojure and ClojureScript.