MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w630ne/branchavoidant_programming/p7lpr9r/?context=3
r/programming • u/fagnerbrack • Sep 03 '26
92 comments sorted by
View all comments
Show parent comment
4
Usually that's not an option. If the problem itself involves unpredictable data - such as the partitioning of (random) data in quicksort - you can't simply make the branches predictable. You have to deal with the unpredictability.
1 u/meamZ Sep 03 '26 Sure but my point is that it's not mainly about minimizing branches, it's about minimizing unpredictable branches...
1
Sure but my point is that it's not mainly about minimizing branches, it's about minimizing unpredictable branches...
View all comments
Show parent comment
4
u/chkas Sep 03 '26 edited Sep 05 '26
Usually that's not an option. If the problem itself involves unpredictable data - such as the partitioning of (random) data in quicksort - you can't simply make the branches predictable. You have to deal with the unpredictability.