Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover Debug.Trace? #270

Open
razcore-rad opened this issue Dec 27, 2020 · 3 comments
Open

Cover Debug.Trace? #270

razcore-rad opened this issue Dec 27, 2020 · 3 comments

Comments

@razcore-rad
Copy link

I'm not sure if the book is the place for this, perhaps this is so basic that it should be in the docs. I saw in the PureScript wiki, long ago, the 0.7 migration guide said something about purescript-console as a replacement for Debug.Trace, but that can't be right, cause Debug.Trace is used everywhere, while purescript-console can only be used in the Effect monad.

In any case, the idea is that this is such a good tool for interrogations during development that beginners don't really know about cause it isn't covered anywhere.

@milesfrain
Copy link
Member

Yeah. That would be good to point out.
We could introduce some tracing examples with an instrumented fact and fib after this section in Ch4.
I'd like to keep as much explanation as possible in the debug docs (rather than in the book), so we may want to polish that library a bit as well.

@razcore-rad
Copy link
Author

I was just chatting with Thomas on Slack and we discussed Debug.Trace and typed holes - #233 - briefly. I think there's an argument to be made that they should be presented together as in a practical short example of how they're used in practice. Like how to solve figuring out a function implementation.

So maybe we could introduce Debug.Trace in Ch4 where you mention, then later once the student gets to know type classes and types in general we could have a short guided function implementation using both Debug.Trace and typed holes?

@milesfrain
Copy link
Member

That plan sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants