Explore tweets tagged as #docstrings
@omnigptco
OmniGPT
12 days
Tired of chasing documentation after code ships?. OmniGPT's Documentation Assistant connects to GitHub + Notion to:. • Auto-generate docstrings.• Update READMEs.• Create docs for /docs.• Sync with Notion specs. No context-switching. No stale docs.
0
0
0
@Nicole_Nobili
Nicole Nobili
19 days
Dreaming one day to only write code with as many docstrings as trl
Tweet media one
0
0
4
@intrstllrninja
interstellarninja
2 months
jules also loves updating docstrings
Tweet media one
@intrstllrninja
interstellarninja
2 months
jules is way behind what manus is capable of.
0
1
3
@bobzhang1988
Hongbo Zhang
27 days
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 : )
Tweet media one
1
8
40
@chriskim_dev
Chris Kim
9 months
Another nice feature of Lora's App Lab: . Python docstrings defined for contract methods show up on Lora.
Tweet media one
Tweet media two
1
9
42
@leanprover
Lean
2 months
Did you know: The new #LeanLang Language Reference provides hover tooltips for displaying docstrings in rendered code examples?. #LeanProver #Documentation #Programming
Tweet media one
2
6
48
@bbelderbos
Bob Belderbos
2 months
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)
Tweet media one
2
4
14
@IndraVahan
Indra
4 months
> raise PR.> forget to add docstrings (me dumb).> literally ask coderabbit to take care of docs.> it raises a copy PR with all docstrings taken care of. god i love this tool
Tweet media one
1
0
29
@thesongmartins
Code Hashira🦅🪖
4 months
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
Tweet media one
Tweet media two
1
1
6
@verrsane
verrsane
2 months
just got onboarded to a client project where the docstrings are in mandarin
Tweet media one
3
0
17
@fffiloni
Sylvain Filoni
2 months
MCP docstrings is the new SEO, change my mind
0
0
3
@MichLieben
Mich 🧠 💭
5 days
The code comparison was even more revealing:. o4-mini: SQLite database with basic structure.GPT-4o: Simple CSV with timestamps (~23 lines).GPT-4.1: Full Flask web app with routes (~35 lines).o3: SQLite with type hints, error handling, docstrings. For 5 newsletter signups, THREE
2
0
4
@avinierx
Avinier
2 months
I lowkey hate docstrings.
0
0
0
@4ster_light
✰λster✰
5 months
Reminder that Lua docstrings are probably the best in existence, definitely better than JSDoc and it's LSP type warnings are great
Tweet media one
3
0
18
@coolindiehacker
Lavanya Mishra (Indie Hacker | Freelancer)
1 month
I never thought that docstrings are a great place to organise my thoughts related to what I need to code. Earlier, I used to write down my raw workflow of a module in Obsidian or Github issues first and then I used to implement the code for it. This workflow will save a lot
Tweet media one
0
1
2
@stevhliu
Steven Liu
1 month
ꃋᴖꃋ . 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
Tweet media one
1
1
6
@DmitriyLeybel
dmitriy
6 months
"You deleted half of my code and docstrings."
Tweet media one
@bilawalsidhu
Bilawal Sidhu
6 months
Typical Cursor user: . “No, I said add it to the existing drop down menu, not a new one”
Tweet media one
0
0
1
@BowtiedHawfinch
BTHawfinch🐦👨‍💻
10 months
I was looking into class docstring examples and look what I've found. Should I use smth like this in my docstrings:. Representation: (days, seconds, microseconds). Why? Because I. felt like it.
Tweet media one
0
0
0
@xah_lee
Xah Lee
5 months
For coders, emacs. Alan Mackenzie created a major multiplication of toothpick syndrom in emacs function docstrings, in 2015. Now, every time you want to type a APOSTROPHE, you must precede it by 2 backslashes followed by a equal sign. Over 2 thousand elisp files in emacs are
Tweet media one
0
0
7
@lawofcons
(infinite-jes)
3 months
Do you end docstrings with a period (.)? e.g., which is better?
Tweet media one
Tweet media two
0
0
0