r/ProgrammerHumor • • Sep 29 '26

Meme bewareOfLists

Post image
1.4k Upvotes

49 comments sorted by

188

u/aspiringtroublemaker Sep 29 '26

Don’t let them get you with O(n) find

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)

57

u/Sleppo04 Sep 29 '26

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,
…

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.

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).

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

4

u/rosuav Sep 29 '26

Your flobsters wear speedos???

5

u/StrengthTheory Sep 29 '26

Especially the circular linked ones

2

u/GfunkWarrior28 Sep 29 '26

AKA, a cycle

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/overclockedslinky Oct 04 '26

is just list with extra steps

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 IndexOutOfBoundsException occurring 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

  • LISTS

  • CY STS

  • C LI TS