- cross-posted to:
- programminghumor@lemmy.world
- programmer_humor@programming.dev
- cross-posted to:
- programminghumor@lemmy.world
- programmer_humor@programming.dev
Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?
If it’s a quick dirty script like doing a one time update to multiple records then I’ll just write it under the if name == main.
If it’s a one time script you don’t even need the if…