HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tlbsofware

no profile record

comments

tlbsofware
·12 เดือนที่ผ่านมา·discuss
I haven’t ran any experiments about token usage with tasks, but if you ran them all together without tasks, then each files full operation _should_ be contributing as cached tokens for each subsequent request. But if you use a task then only the summary returned from that task would contribute to the cached tokens. From my understanding it actually might save you usage rates (depending on what else it’s doing within the task itself).

I usually use Tasks for running tests, code generation, summarizing code flows, and performing web searches on docs and summarizing the necessary parts I need for later operations.

Running them in parallel is nice if you want to document code flows and have each task focus on a higher level grouping, that way each task is hyper focused on its own domain and they all run together so you don’t have to wait as long, for example:

- “Feature A’s configuration” - “Feature A’s access control” - “Feature A’s invoicing”
tlbsofware
·12 เดือนที่ผ่านมา·discuss
You can tell it to review and edit each file within a Task/subagent and can even say to run them in parallel and it will use a separate context for each file without having to clear them manually
tlbsofware
·2 ปีที่แล้ว·discuss
Reminds me of the the wind based KitePower that was shared here a month or 2 ago

https://spectrum.ieee.org/micro-wind-power-kitepower
tlbsofware
·4 ปีที่แล้ว·discuss
So you are saying it’s better to alternate Wallet Saving Prices twice a year?
tlbsofware
·6 ปีที่แล้ว·discuss
A really effective way to handle nullable fields is an Optional<T> which forces the user to handle a null value for that field, this is very useful when working in a team and dealing with objects that someone else spent time creating, it won’t get rid of null but it definitely hints the user at “hey this field may be null so I should go ahead and handle this before I even get to testing my code”

Edit: You would want to implement these in your getters for fields that may return null

https://docs.oracle.com/javase/8/docs/api/java/util/Optional...