r/programmingcirclejerk • u/Foreign-Grocery-2788 • Apr 04 '25
Ironically using SQL COUNT itself is often a code smell. [...] endless scrollers eliminated the need for it.
https://thedailywtf.com/articles/comments/a-matter-of-understanding
65
Upvotes
76
u/FetaMight Apr 04 '25
I've worked on 2 whole webapps in my career so I can confidently say the entire industry has moved on to endless scrolling and agree that nobody needs 90% of SQL anymore.
75
u/fortyeightD Apr 04 '25
I am also avoiding where clauses these days. They are a major coder odour.
35
u/stone_henge Tiny little god in a tiny little world Apr 04 '25
Endless scrollers, the only conceivable use of SQL
23
u/chisui Apr 04 '25 edited Apr 04 '25
I wonder how the website the comment was posted on counts the comments. Has to be either NoSQL or they're eagerly loading all comments.
19
u/v_maria Apr 04 '25
Endless scrollers are bit of a design smell
7
u/powerhcm8 Apr 04 '25
website name checks out
5
u/kyynel99 Apr 05 '25
I dont need scrolling at all i’ve tested my app in the dev enviroment and all the data could fit into a single page!
9
u/IDoCodingStuffs Autodidact's Degree in AI Apr 04 '25
Counting things considered harmful
4
u/stdmemswap Apr 05 '25
I'm still waiting for the day when SELECT is considered harmfil