coding

Reviews, tests, regexes and explanations for working developers.

5 public promptsSearch within #coding

Staff picks for #coding

Pinned first. Tested by the Save My Prompts team.

Prompts tagged #coding

Write test framework tests for the function below. Cover the happy path, the boundaries, invalid input, and one property that should always hold. Use test names that read as sentences. Don't mock what you don't own. If the function is hard to test, suggest the smallest refactor that would help. paste function
Arjun Mehta720 uses
Here's my git log since yesterday's standup: [paste git log --oneline --since=yesterday] Write my standup update in three lines: Done, Doing, Blocked. Group related commits, use plain words instead of commit jargon, and leave Blocked as "Nothing" if there's nothing in the log that suggests a blocker.
Asha Rao190 uses
Explain this language module to a new teammate who knows the language but not our codebase. Start with what it's for in one sentence, then the main flow, then the two things most likely to trip them up. Point to functions by name. Finish with a Mermaid sequence diagram of the call flow. paste code
Daniel Okafor510 uses
Write a regex in language that matches what it should match and does not match what it should not. Then give 8 test strings: 4 that should match and 4 that shouldn't, including edge cases like empty strings and Unicode. Explain each part of the pattern in a table. If a regex is the wrong tool here, say so and show the alternative.
Arjun Mehta990 uses

Trending counts likes, saves, uses and remixes from different people, and favours newer prompts.