MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wt716t/bewareoflists/
r/ProgrammerHumor • u/aspiringtroublemaker • Sep 29 '26
49 comments sorted by
188
Don’t let them get you with O(n) find
64 u/MissinqLink Sep 29 '26 We’ll get it sorted 22 u/ImportantSignal2098 Sep 29 '26 Slowly 16 u/Dave3121 Sep 29 '26 Bubbly 9 u/Random_-account Sep 29 '26 Quickly 5 u/WernerderChamp Sep 29 '26 Bogusly 2 u/SetazeR Oct 03 '26 Stalin...ly? 17 u/Greyhaven7 Sep 29 '26 Thanks, I’m all Set. 0 u/Loading_M_ Sep 29 '26 Ironically, on modern processors, O(n) linear lookup is often faster than O(log n) lookup (e.g. binary search, heap, or tree).The point at which you can reliably say that another algorithm would be faster, you should probably be switching to a database, such as SQLite. 4 u/ada_weird Sep 29 '26 It's faster if you're using an array. If you're using a linked list you're still kinda screwed cause pointer chasing 3 u/Loading_M_ Sep 29 '26 If you're using a link list: Stop it. Get some help.(Low level concurrency and microcontrollers are the only places you might need linked lists. Otherwise, you don't need them)
64
We’ll get it sorted
22 u/ImportantSignal2098 Sep 29 '26 Slowly 16 u/Dave3121 Sep 29 '26 Bubbly 9 u/Random_-account Sep 29 '26 Quickly 5 u/WernerderChamp Sep 29 '26 Bogusly 2 u/SetazeR Oct 03 '26 Stalin...ly?
22
Slowly
16 u/Dave3121 Sep 29 '26 Bubbly 9 u/Random_-account Sep 29 '26 Quickly 5 u/WernerderChamp Sep 29 '26 Bogusly 2 u/SetazeR Oct 03 '26 Stalin...ly?
16
Bubbly
9 u/Random_-account Sep 29 '26 Quickly 5 u/WernerderChamp Sep 29 '26 Bogusly 2 u/SetazeR Oct 03 '26 Stalin...ly?
9
Quickly
5 u/WernerderChamp Sep 29 '26 Bogusly 2 u/SetazeR Oct 03 '26 Stalin...ly?
5
Bogusly
2 u/SetazeR Oct 03 '26 Stalin...ly?
2
Stalin...ly?
17
Thanks, I’m all Set.
0
Ironically, on modern processors, O(n) linear lookup is often faster than O(log n) lookup (e.g. binary search, heap, or tree).
The point at which you can reliably say that another algorithm would be faster, you should probably be switching to a database, such as SQLite.
4 u/ada_weird Sep 29 '26 It's faster if you're using an array. If you're using a linked list you're still kinda screwed cause pointer chasing 3 u/Loading_M_ Sep 29 '26 If you're using a link list: Stop it. Get some help.(Low level concurrency and microcontrollers are the only places you might need linked lists. Otherwise, you don't need them)
4
It's faster if you're using an array. If you're using a linked list you're still kinda screwed cause pointer chasing
3 u/Loading_M_ Sep 29 '26 If you're using a link list: Stop it. Get some help.(Low level concurrency and microcontrollers are the only places you might need linked lists. Otherwise, you don't need them)
3
If you're using a link list: Stop it. Get some help.
(Low level concurrency and microcontrollers are the only places you might need linked lists. Otherwise, you don't need them)
57
How every book on LISP should start
10 u/SirChasm Sep 29 '26 And Scheme! 9 u/Sure-Opportunity6247 Sep 29 '26 We don’t need no indirections,We don’t need no flow control,…
10
And Scheme!
We don’t need no indirections,We don’t need no flow control,…
31
Angry array did this.
24
" Follow me for other great pointers! "
15
The only logical pictogram for a warning against lists is a speeding unicycle.
6 u/Robot_Graffiti Sep 29 '26 His unicycle is listing (meaning it is tilting to one side) 1 u/Autoskp Sep 30 '26 Yeah, any unicycle leaning that far is not merely speeding (source: I am a unicyclist).
6
His unicycle is listing (meaning it is tilting to one side)
1 u/Autoskp Sep 30 '26 Yeah, any unicycle leaning that far is not merely speeding (source: I am a unicyclist).
1
Yeah, any unicycle leaning that far is not merely speeding (source: I am a unicyclist).
11
Linked lists finally got a warning label
Especially these Linked MFs
8
speedoflobsters irl
4 u/rosuav Sep 29 '26 Your flobsters wear speedos???
Your flobsters wear speedos???
Especially the circular linked ones
2 u/GfunkWarrior28 Sep 29 '26 AKA, a cycle
AKA, a cycle
you have to bring your own map
For whom the list serves
Warning, regex ahead!
For a moment I was like "How did 'unicyc' fit in that small space in the first place?". I need coffee.
AI obsessive list making
You shut your mouth good sir, I like to uses Lists (lol)
Should face outwards
Wait until you encounter a set! 🙃
1 u/overclockedslinky Oct 04 '26 is just list with extra steps
is just list with extra steps
No one told me there was gonna be vectors!
This is the [0] thing on my mind…
To all you younguns out there... good luck sharing this joke with your younger coworkers in a few years.
Especially double-linked ones
A rare photograph of an IndexOutOfBoundsException occurring in physical space.
IndexOutOfBoundsException
Lists won't hurt you, theyre nice fuzzy warm boxes of stuff. Iterators however...
We don’t do lists in this language, partner. This here is table country. (#Lua)
Off by one error on the cyclist wheel count, must've been 1 based index
Eager creatures.
I was warned by my predecessors about lists.
BEWARE OF
188
u/aspiringtroublemaker Sep 29 '26
Don’t let them get you with O(n) find
57
u/Sleppo04 Sep 29 '26
How every book on LISP should start
31
u/CHAiN76 Sep 29 '26
Angry array did this.
24
u/tekky101 Sep 29 '26
" Follow me for other great pointers! "
15
u/klaxxxon Sep 29 '26
The only logical pictogram for a warning against lists is a speeding unicycle.
11
u/suavebriisa Sep 29 '26
Linked lists finally got a warning label
9
u/Just_LeonS Sep 29 '26
Especially these Linked MFs
8
u/Victor_Mendax Sep 29 '26
speedoflobsters irl
5
u/StrengthTheory Sep 29 '26
Especially the circular linked ones
4
u/ReGrigio Sep 29 '26
you have to bring your own map
3
u/thisisredlitre Sep 29 '26
For whom the list serves
3
u/greedy_mf Sep 29 '26
Warning, regex ahead!
2
u/4675636b2e Sep 29 '26
For a moment I was like "How did 'unicyc' fit in that small space in the first place?". I need coffee.
1
u/MissinqLink Sep 29 '26
AI obsessive list making
1
u/Ange1ofD4rkness Sep 29 '26
You shut your mouth good sir, I like to uses Lists (lol)
1
u/ramriot Sep 29 '26
Should face outwards
1
u/mbcarbone Sep 29 '26
Wait until you encounter a set! 🙃
1
u/Random_-account Sep 29 '26
No one told me there was gonna be vectors!
1
u/nix206 Sep 29 '26
This is the [0] thing on my mind…
1
u/stupid_cat_face Sep 29 '26
To all you younguns out there... good luck sharing this joke with your younger coworkers in a few years.
1
u/actionerror Sep 29 '26
Especially double-linked ones
1
u/while_True_meme Sep 29 '26
A rare photograph of an
IndexOutOfBoundsExceptionoccurring in physical space.1
u/heyguysitsmedic Sep 29 '26
Lists won't hurt you, theyre nice fuzzy warm boxes of stuff. Iterators however...
1
u/Canon40 Sep 30 '26
We don’t do lists in this language, partner. This here is table country. (#Lua)
1
u/Holy_Chromoly Sep 30 '26
Off by one error on the cyclist wheel count, must've been 1 based index
1
u/HayStacky_337 Sep 30 '26
Eager creatures.
1
u/AshudzaUchiha Oct 01 '26
I was warned by my predecessors about lists.
0
u/Terewawa Sep 29 '26
BEWARE OF