this post was submitted on 22 Aug 2024
850 points (96.3% liked)

Programmer Humor

19652 readers
1595 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 3 months ago (4 children)

"strawberry".split('').filter(c => c === 'r').length

[–] [email protected] 9 points 3 months ago (1 children)

len([c if c == 'r' for c in "strawberry"])

[–] [email protected] 6 points 3 months ago

'strawberry'.match(/r/ig).length

[–] pkill 2 points 3 months ago

(\r (frequencies "strawberry"))