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

Add content on when to (and when not to) use asserts? #625

Open
DamienIrving opened this issue Jul 29, 2021 · 0 comments
Open

Add content on when to (and when not to) use asserts? #625

DamienIrving opened this issue Jul 29, 2021 · 0 comments
Labels
discussion discussion before a proposal

Comments

@DamienIrving
Copy link
Contributor

I did a Data Carpentry workshop earlier in the year and some of the very knowledgeable instructors at the workshop suggested reconsidering the use of asserts in the defensive programming lesson I delivered (see carpentries-lab/python-aos-lesson#36 for details).

If we ever write an update of this book, I wonder if we need to add some words/advice about when and when not to use asserts. Perhaps a condensed version of the following two posts (which were mentioned in the issue I linked to above)?
https://dev.to/yloganathan/do-not-abuse-the-assert-1cfm
https://archive.is/5GfiG

@DamienIrving DamienIrving added the discussion discussion before a proposal label Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion discussion before a proposal
Projects
None yet
Development

No branches or pull requests

1 participant