return2ozma@lemmy.world to Technology@lemmy.worldEnglish · 20 hours agoDeparting Meta staffer posts biting anti-AI video internally amid mass layoffswww.motherjones.comexternal-linkmessage-square49linkfedilinkarrow-up1375arrow-down15
arrow-up1370arrow-down1external-linkDeparting Meta staffer posts biting anti-AI video internally amid mass layoffswww.motherjones.comreturn2ozma@lemmy.world to Technology@lemmy.worldEnglish · 20 hours agomessage-square49linkfedilink
minus-squaredreugeworst@lemmy.mllinkfedilinkEnglisharrow-up3·11 hours agoas someone who would also reach for a state machine when doing simple parsing… what’s the better alternative in python?
minus-squarelectricleopard@lemmy.worldlinkfedilinkEnglisharrow-up1·4 hours agoA loop and a data structure to hold the result of parsing. The data structure will have a state you can interrogate. No need to build a state machine to explicitly name each way the parsing can develop.
as someone who would also reach for a state machine when doing simple parsing… what’s the better alternative in python?
A loop and a data structure to hold the result of parsing. The data structure will have a state you can interrogate. No need to build a state machine to explicitly name each way the parsing can develop.