Shit will get optimized by the compiler anyway. Readable code is best.
2026-06-05 18:26:10
414
hersh :
the first loop was the only acceptable code
2026-06-06 21:37:07
1
Баребух_1337 :
c++ devs cooking up yet another method to make variable initialization more unreadable
2026-06-05 20:16:21
178
Nyx :
C++ LARPER
2026-06-05 18:51:37
294
ooodelicioso :
If you wrote anything other than the first one, you wrote buns code
2026-06-06 01:38:43
12
<3 :
What is this larp it does the same shit
2026-06-05 23:38:13
31
💀🤓 :
it's all O(n) no difference
2026-06-05 18:42:38
55
stoolsuckersteve :
Work at a tier 1 quant firm, first is fine. This is either satire or dudes tweaking
2026-06-06 00:06:47
3
sdddjshsheheh :
try to make it complicated as possible challenge
2026-06-06 22:07:44
0
Maciekkkk :
"An idiot admires complexity, a genius admires simplicity" ~ Terry A. Davis
2026-06-06 07:14:08
32
Snek :
is this what junior developers think what makes someone a good dev?
2026-06-06 02:25:30
7
huip :
Brother this is such a bad take.
2026-06-05 21:57:05
11
Javonquantavious Smith Jr :
It's O(n) regardless, readable code is better than some bs optimized one. Compiler will handle that better anyways
2026-06-06 06:14:33
8
lux :
Technically advanced hard syntax != good syntax
2026-06-05 17:46:55
84
Deveyes :
for(const auto& e : v)
2026-06-05 18:40:02
9
v.anastasov :
C++ devs try to make a readable codebase: difficulty impossible
2026-06-05 21:01:35
10
️ :
amazing! making code truly unreadable! ✌️😁
2026-06-05 23:41:35
10
N :
code is code... I suck at all anyways
2026-06-05 13:22:12
8
Look Up :
What about: for (auto i : std::views::iota(0uz, v.size()))
2026-06-05 15:34:27
14
flatcrab :
Last one is a kick out cause it’s inefficient
2026-06-06 00:40:51
2
MrPartz :
if I'm asked to write code in an interview with 30 years experience I'm ending the interview.
2026-06-06 21:15:46
2
Sighduck :
If an interviewer criticized my for-loop like this, it would actually have done me a favor by letting me know how bad it would be to work there. Dodged a bullet 😅
2026-06-06 10:38:53
3
DustyMacArt :
What is the O for these?
2026-06-05 18:23:32
0
dsag :
L take
2026-06-06 10:13:43
1
To see more videos from user @tomertzadok, please go to the Tikwm
homepage.