Explore tweets tagged as #docstrings
MoonBit might be the first language to type check your docstrings and full IDE service, it is hard to write outdated docs for @moonbitlang , available in the next release : )
1
8
40
Did you know: The new #LeanLang Language Reference provides hover tooltips for displaying docstrings in rendered code examples?. #LeanProver #Documentation #Programming
2
6
48
5 tips to write better #Python 🐍 functions:. • Name clearly (filter_users, not foo). • Keep it short (≤15 LOC, single purpose). • Validate inputs early (guard clauses > nesting). • Use type hints + docstrings. • Return consistent types (e.g. [], not None if sequence)
2
4
14
Code commenting 101!. Helps with: complex logic, maintenance, collaboration & learning.Best practices: concise, explain why, clear language & update comments.Types: inline, block & docstrings. What's your fave commenting method? #CodeCommenting #CodingBestPractices
1
1
6
ꃋᴖꃋ . used to be that you had to copy/paste a ton of arguments for docstrings in a modeling file causing a lot of unnecessary bloat. now you can just replace it all with the @auto_docstring decorator
1
1
6