i can barely understand the cat
wow just noticed i got a 82% winrate out of 11 mafia games here
mafia games as mafia
and in 21 town games, my winrate is 38%
im going through a for loop. whats the most efficient way for me to do an operation one time only when i reach the Nth element? like if i just do an if check to see if im at that element i’d be making that if check every time i increment and that’s a micro optimization its not that big of a deal to fail an if check every increment but its bothering me. is there a way for me to do it one time only? @notblackorwhite @Zugzwang @Ash @Jane @May
the more i think about it this is pointless from a pragmatic sense for my needs but now im just curious. actually is this even possible?
oh sorry i forgot you’re a programmer too willow it was so new to me
ive been told before i obsess over optimizations too much and lose track of whats important. damn. but its bothering me so much. if its just a few nano seconds faster i want it to be faster. or else its irritating
I FORGOT DAERON IM SORRY DAERON IT DOESNT MEAN I HATE YOU I JUST. DIDNT THINK TOO MUCH. although if i ping everyone maybe thats annoying too. sorry im so awkward. sorry
you forgot the smartest person on this site
If it’s iteration there has to be some kind of branch in the code path by definition i.e. an if block so the code knows when to take the alternate path. If you know you only want to do it on the Nth element though, why are you iterating? Just jump to the Nth element, and perform the operation.
oh yeah. huh. my brain
i want to do one operation for the first X elements, then do a second operation for the second Y elements, and then do the first operation for the last Z elements. the fastest would be just to do 3 if loops if i hard code it. but im gonna keep it with an if check to do the different thing for scalability so i can easily change my code if im unhappy with these numbers. less numbers to edit if its just once instead of 3
(not a software advice this is for my personal needs)
UI/UX is serious shit. i underestimated it thinking its mumbo jumbo. this shit is so important
keeping track of the relevant indices for the middle set (which could then be used to infer the ranges for the first and last) would let you be slightly more efficient in terms of total operations, but yeah there’s likely no reason to take it that far.
Remind me to invest in snow pants because jeans and inners is not enough for two hours in 30-degree weather.
@Ash invest in snow pants because jeans and inners is not enough for two hours in 30-degree weather.
what about jeans and innards
You people better play mafia when im able to in a month or so or ur all fired
I have the ITCH