Aijan@programming.dev to Programming@programming.dev · 3 days agoLetting AI Debug Productionplus-squarelackofimagination.orgexternal-linkmessage-square7fedilinkarrow-up15arrow-down116
arrow-up1-11arrow-down1external-linkLetting AI Debug Productionplus-squarelackofimagination.orgAijan@programming.dev to Programming@programming.dev · 3 days agomessage-square7fedilink
minus-squareAijan@programming.devOPtoProgramming@programming.dev•Mocks are the Little-Death: Escaping the Mirage of Green Testslinkfedilinkarrow-up2·3 months agoYou can handle complex branching using standard JavaScript. Since every pipeline is just a function returning data, you can use if/else or map to return different sub-pipelines and commands from within your logic functions. Here’s an example: const processUsersFlow = () => effectPipe( fetchAllUsers, (users) => { const tasks = users.map(user => { if (user.isAdmin) return syncAdminPermissions(user); // Sub-pipeline if (user.isGuest) return cleanupGuestAccount(user); // Sub-pipeline return notifyUser(user); // Simple Command }); return Parallel(tasks); } )(); linkfedilink
Aijan@programming.dev to Programming@programming.dev · edit-23 months agoMocks are the Little-Death: Escaping the Mirage of Green Testsplus-squarelackofimagination.orgexternal-linkmessage-square7fedilinkarrow-up125arrow-down10
arrow-up125arrow-down1external-linkMocks are the Little-Death: Escaping the Mirage of Green Testsplus-squarelackofimagination.orgAijan@programming.dev to Programming@programming.dev · edit-23 months agomessage-square7fedilink
You can handle complex branching using standard JavaScript. Since every pipeline is just a function returning data, you can use if/else or map to return different sub-pipelines and commands from within your logic functions. Here’s an example: