minus-squareramius345@sh.itjust.workstoProgrammer Humor@programming.dev•POV: Working at Googlelinkfedilinkarrow-up20arrow-down1·4 months agoDon’t need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag. linkfedilink
minus-squareramius345@sh.itjust.workstoProgrammer Humor@programming.dev•Yup sums up all my projectlinkfedilinkarrow-up4·4 months agoI am the queen of France! linkfedilink
minus-squareramius345@sh.itjust.workstoProgrammer Humor@programming.dev•Zero to Hero in 1 hourlinkfedilinkarrow-up1·10 months agohttps://github.com/kelseyhightower/kubernetes-the-hard-way linkfedilink
Don’t need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag.