MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1teza1n/bro_used_minimum_resources_and_wrote_an_optimized/
r/programminghumor • u/Hacktastic-10 • May 16 '26
43 comments sorted by
235
O(1) btw
31 u/Confident-Ad5665 May 16 '26 Needs internationalization 17 u/GhostVlvin May 17 '26 O(n) where n is amount of implemented cases 3 u/111v1111 May 17 '26 We could make it better by implementing an AVL tree with lexicographic order. By which we should be able to make it O(log n) (where n is the number of implemented cases) 2 u/itzNukeey May 17 '26 No its o(1) because he implemented three 4 u/justaJc May 17 '26 Not quick enough 1 u/Total_Cartoonist747 May 18 '26 O(n) where n is the number of files in system32
31
Needs internationalization
17
O(n) where n is amount of implemented cases
3 u/111v1111 May 17 '26 We could make it better by implementing an AVL tree with lexicographic order. By which we should be able to make it O(log n) (where n is the number of implemented cases) 2 u/itzNukeey May 17 '26 No its o(1) because he implemented three
3
We could make it better by implementing an AVL tree with lexicographic order. By which we should be able to make it O(log n) (where n is the number of implemented cases)
2
No its o(1) because he implemented three
4
Not quick enough
1
O(n) where n is the number of files in system32
68
Leave no evidence
34
Mind the capital letters
55
Else....else what bro..?
15
"OR ELSE" ass code
19
Sorry, that doesn’t fit the examples.
Bro is brutal
elif
6
I want to marry bro
Isn't that how TDD works ?
1 u/rndmcmder May 19 '26 Well TDD with the most lazy implementor, maybe. 0 u/Wtygrrr May 17 '26 No
Well TDD with the most lazy implementor, maybe.
0
No
Tried it with example one. It deleted my system
This is net negative resources, since disk space will be reduced with more usage
Thats why she uses Linux She had trust issues😊
So, uh, he technically failed the task.
It doesn't match case or have casting, and wouldn't give the desired output at the prompts.
It
This is the kind of task for which I think AI is well suited. Would still have to tell it to use case insensitive comparisons tho...
Looks good to me, boss.
Make it work on every os.
Luckily the os.remove function returns an IsADirectoryError when run on a directory so there's no danger.
You can write code in Instagram comments now?
That code doesn’t actually work…
Secure programming
r/foundSatan ?
bro is trying to destroy my wine installation
TrustedInstaller doesnt approve
Brother turned a string into a string
every single programming meme here is just deleting system32 does anyone else get bored of that being the entire joke every time
Wait wait wait. What the hell does window 32 have to do with number generation
minimum ressources
optimised code
> look inside
> python
PR: fine for me, accepted!
TDD
nigga thats an extreme else condition
30
[removed] — view removed comment
12 u/johnpeters42 May 17 '26 "Arch btw"
12
"Arch btw"
235
u/Simukas23 May 16 '26
O(1) btw
68
u/puppypower_nl May 16 '26
Leave no evidence
34
u/slowerdive May 16 '26
Mind the capital letters
55
u/Ok_Jello6474 May 16 '26
Else....else what bro..?
15
u/aqswdezxc May 16 '26
"OR ELSE" ass code
19
u/casualdata May 16 '26
Sorry, that doesn’t fit the examples.
15
u/Reasonable_Exit_8960 May 16 '26
Bro is brutal
15
u/ArduennSchwartzman May 16 '26
6
u/purpuric May 16 '26
I want to marry bro
4
u/Enji-Bkk May 16 '26
Isn't that how TDD works ?
2
u/KnGod May 16 '26
Tried it with example one. It deleted my system
2
u/lemming1607 May 17 '26
This is net negative resources, since disk space will be reduced with more usage
2
u/Past-Photograph-9739 May 17 '26
Thats why she uses Linux She had trust issues😊
2
u/FatiguedShrimp May 17 '26
So, uh, he technically failed the task.
It doesn't match case or have casting, and wouldn't give the desired output at the prompts.
It
1
u/Confident-Ad5665 May 16 '26
This is the kind of task for which I think AI is well suited. Would still have to tell it to use case insensitive comparisons tho...
1
u/Ambivalent-Mammal May 16 '26
Looks good to me, boss.
1
u/Later1842 May 17 '26
Make it work on every os.
1
u/maddeninglemon May 17 '26
Luckily the os.remove function returns an IsADirectoryError when run on a directory so there's no danger.
1
u/AveryGalaxy May 17 '26
You can write code in Instagram comments now?
1
u/Wtygrrr May 17 '26
That code doesn’t actually work…
1
u/Actual-Interaction45 May 17 '26
Secure programming
1
u/Henry___Connor May 17 '26
r/foundSatan ?
1
u/looming-frog May 17 '26
bro is trying to destroy my wine installation
1
u/MrFrog2222 May 17 '26
TrustedInstaller doesnt approve
1
u/Worth-Advance-1232 May 17 '26
Brother turned a string into a string
1
u/GNUGradyn May 17 '26
every single programming meme here is just deleting system32 does anyone else get bored of that being the entire joke every time
1
u/System_Spirit May 18 '26
Wait wait wait. What the hell does window 32 have to do with number generation
1
u/un_virus_SDF May 18 '26
> look inside
> python
1
u/who_you_are May 20 '26
PR: fine for me, accepted!
1
u/road_laya May 20 '26
TDD
1
u/BadAppleG552 May 20 '26
nigga thats an extreme else condition
30
u/[deleted] May 16 '26
[removed] — view removed comment