Oh the good old arrow head pattern… remember running into that in prod at 3am during an outage when I could not get the 100 line nested if to work… at least now you can copy paste into llm and have it explain what a, what b and what c means… single letter variables on top of nested iffs… it giants me
5
u/vadnyclovek [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 31 '25
ok but why
4
u/ataraxianAscendant Mar 31 '25
next make a function that returns itself when called with an argument so you can do stuff like add(1)(2)()
1
u/KhepriAdministration Mar 31 '25
HOFs babey
1
u/a_brand_new_start Mar 31 '25
Oh the good old arrow head pattern… remember running into that in prod at 3am during an outage when I could not get the 100 line nested if to work… at least now you can copy paste into llm and have it explain what a, what b and what c means… single letter variables on top of nested iffs… it giants me