216
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 31 Aug 2025
216 points (100.0% liked)
Showerthoughts
37090 readers
1493 users here now
A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The most popular seem to be lighthearted clever little truths, hidden in daily life.
Here are some examples to inspire your own showerthoughts:
- Both “200” and “160” are 2 minutes in microwave math
- When you’re a kid, you don’t realize you’re also watching your mom and dad grow up.
- More dreams have been destroyed by alarm clocks than anything else
Rules
- All posts must be showerthoughts
- The entire showerthought must be in the title
- No politics
- If your topic is in a grey area, please phrase it to emphasize the fascinating aspects, not the dramatic aspects. You can do this by avoiding overly politicized terms such as "capitalism" and "communism". If you must make comparisons, you can say something is different without saying something is better/worse.
- A good place for politics is c/politicaldiscussion
- Posts must be original/unique
- Adhere to Lemmy's Code of Conduct and the TOS
If you made it this far, showerthoughts is accepting new mods. This community is generally tame so its not a lot of work, but having a few more mods would help reports get addressed a little sooner.
Whats it like to be a mod? Reports just show up as messages in your Lemmy inbox, and if a different mod has already addressed the report, the message goes away and you never worry about it.
founded 2 years ago
MODERATORS
I use it to generate unit tests, it'll get the bulk of the code writing done and does a pretty good job at coverage, usually hitting 100%. All I have to do for the most part is review the tests to make sure they're doing the right thing, and mock out some stuff that it missed.
You're right, unit tests are another area where they can be helpful, as long as you're very careful to check them over.
Legit. Do you need to feed it your code base at all? How does it know what needs to be tested otherwise?
yeah, it's the copilot plugin for intellij, basically right click and choose generate tests, it'll read the file and ... well..
Downside to that approach is that it doesn't know what some function calls do if they're not part of that file, so it tends to miss places that need to be mocked out.
Occasionally it writes a test that's "wrong", and I have to fix the test.. very rarely, the "wrong" test is actually "right" based on say a method signature or decision tree, and the method itself needs changing.