Hacker News new | ask | show | jobs
by pizza 1517 days ago
Prompt:

> I've learned 2 things about the code-writing process during my software engineering career:

- Make what could lead to someone hacking the API layer to not have your intention.

- Create very comprehensive public read examples along multiple versions of these APIs so any person consuming your project code from outside your organization understands the impact code/behavior (at that time). The earlier the better you do all three, that applies during the "prototype -> mockup and development".

Also if you happen to create a REST call you will soon need to provide some kind of a user experience documentation to ease and demonstrate in later iterations! This user-exposure exercise for someone coming into play early, or is it possible...the exposure/code coverage is too early with a 'private method call' inside an 'unit-test test': /app/$scope-id#unit' ---> GET_PAYMOTION $path ......... $endpointTypeService

Make your APIs so comprehensive, then when testing, mock or call directly as demonstrated you will test the most code required

some formatting by me, and parameters: top-k: 80, top-p: 0.8, temperature: 2.0 max tokens: 2000