|
|
|
|
|
by dnautics
1980 days ago
|
|
The pipe operator seems silly until you learn to pipe into IO.inspect. for vscoders I use this snippet (https://slickb.it/bits/70) which also labels with the line numbers, meaning you can multiline select a bunch of lines in your pipeline and when you're done ninja them out with another multiline select (usually line numbers have the same number of characters around each other). In combination with triggering single tests, it's invaluable for isolating errors in code. In action: https://youtu.be/WMYc3VzOSpg&t=23m20s I suppose the problem with this snippet is that it keeps you from using more powerful tools like tracer and recon. |
|
Their power, as you point it, is in the ability to jump into any statement and add another action with minimal syntax. It's extremely useful while iterating on development because you can quickly check that something works (or check on what is happening).