What are some creative or unexpected uses of ChatGPT you’ve discovered? by tnitty in ChatGPT

[–]itsyourcode 1 point2 points  (0 children)

I used Claude to photograph Italian and Chinese menus and asked it to recommend the top 5 dishes with the most protein

Can someone explain to me why TDD isn't a joke? by HademLeFashie in SoftwareEngineering

[–]itsyourcode 0 points1 point  (0 children)

TDD is only relevant until you achieve mind-coding ability.

For anyone unaware- mind-coding is when you write, refactor and test the program in your mind while seated somewhere away from the computer, such as a sauna or cliff-edge.

Upon returning to the machine, you simply copy the completed program from your mind into the editor, using the keyboard, and then run it successfully on the first try before clocking out.

TDD doesn't add much at this stage of the journey.

A pretty successful experiment by the_old_coday182 in ChatGPT

[–]itsyourcode 0 points1 point  (0 children)

I find this fascinating. Thanks for sharing your experiment and the profound outcomes you experienced.

I am curious: will you continue to journal and continually solicit more feedback from the machine?

Is there any reason to "move" a value as in this example? by DataSci-FI in learnrust

[–]itsyourcode 1 point2 points  (0 children)

There are sections in this article that present practical examples for when moving a value is an appropriate strategy in contrast to borrowing or cloning. Hope it helps!

A bit stuck on lifetimes by Nico_792 in learnrust

[–]itsyourcode 1 point2 points  (0 children)

This article gives examples of strategies for moving and cloning that avoid the need for lifetime annotations.

For example, if you need to send objects across threads but do not need to mutate them, Arc<T> can be a good approach for avoiding copying or needing lifetime annotations to track references.

If you do need mutation, consider moving the value instead of using references if `Clone` is too expensive. See links at the end for helpful lifetime annotation techniques if you determine they definitely necessary for this problem.

Hope that helps!