6 ms·
Oh god. That meme. I've seen it a day or two ago. Can't find the picture anywhere now (I've seen it in some group chat). Anyway, beyond the words quoted at the
by TeMPOraL 7y ago
Oh god. That meme.
I've seen it a day or two ago. Can't find the picture anywhere now (I've seen it in some group chat). Anyway, beyond the words quoted at the beginning of this article, the meme's "nested loops go brrr" had a picture of a triple-nested loop using Active Record to do some simple database operations.
To which the correct response is: "it's a 'senior developer' in an industry where you get called a 'senior' after a total of 3 years of experience doing programming; don't do stupid shit like this, just use SQL like it's meant to".
- tspop 7y agoHey, I made that meme. It was based on a similar story the one in OPs blogpost. At my first job I used to work with some really talented fresh grads that wanted to show off their algorithms skills and ended up over-engineering stuff. One of them implemented a trie and stored it in SQL lite to implement some string autocomplete where the number of strings was something like 100. The other implemented a 2D segment tree for doing some grid updates where the size of the grid was small. This inspired the first part of the meme. Segment trees and sqrt decomposition are topics that are popular at programming contests and nowhere else really. Regarding the triple nested loop, I just wrote the simplest pseudocode that represents nested loops, not necessarily something a "senior" developer would write.
- TeMPOraL 7y agoThanks for the context. The example you describe supports the meme better. Sorry for being harsh, I got triggered by that code inside the printer, because I've dealt with a lot of dumb "I don't know how SQL joins work, so I'll use my ORM to do it and filter the data in code" cases early in my career, and I have sort of an allergy to that now.
- karatestomp 7y agoI see this so much in Rails codebases that at this point the two are nearly synonymous in my mind. But maybe I’ve been cursed to work only on bad Rails projects or something and there’s a universe of them out there that aren’t full of that sort of thing.
- johncalvinyoung 7y agoThere are rails codebases written by people who love both ActiveRecord and SQL and try to optimize both performance AND developer productivity. ;)
- ADanFromCanada 7y agoBut this is war. Pick a side!
- ericlippert 7y agoWell thanks for inspiring the post! It triggered a pleasant trip back to a simpler time for me.
- lonelappde 7y agoNew hires showing up at work and doing the one thing they were tested on in the interview. How strange of them!
- Apocryphon 7y agoGoodhart’s Law-Driven Development
- DonHopkins 7y agoI like to ask interviewees to imitate the sound a computer would make over an AM radio while executing different algorithms. Nested for loops go brrrrrrrrrrrr, munching squares go bweep bweep bwweeeep bwweeeep bwweeeep bwweeeep bwwwweeeeeeep bwwwweeeeeeep bwwwweeeeeeep bwwwweeeeeeep bweep bweep bweep bweep... https://www.youtube.com/watch?v=V4oRHv-Svwc https://www.youtube.com/watch?v=V4oRHv-Svwc Life goes shlup shlup shlup shlup shlup... https://www.youtube.com/watch?v=hB78NXH77s4 https://www.youtube.com/watch?v=hB78NXH77s4 If they use any Don Martin sound effects, I hire them on the spot. https://www.madcoversite.com/dmd-alphabetical.html https://www.madcoversite.com/dmd-alphabetical.html >CHK CHK CHA-GONK BRBBRBBRING! -- Man's Eyes Being Poked Like A Cash Registers' Keys And Jaw Popping Open Like A Till Drawer -- Mad #61, Mar 1961, Page 18 -- Kitzel's Department Store
- est31 7y agoMany people can write brute force implementations. But while the meme is funny and great, it only shows a part of reality: sometimes you do have to optimize things. Just don't do it too early and only if there is a clear use case that requires the speed. Then you should be able to write fast code, or at least know which library to use that has a good implementation of the algorithm you need. Some companies like GAFAM probably put too large focus onto algorithmic questions, but they can afford to lose otherwise good engineers who are bad at algorithmic questions. They need something to filter the masses of applicants they receive.
- est31 7y agoWow it was based on a real world story. Makes the meme even better.
- on3 7y agoFound it: https://i.redd.it/lmrf72ko0ro41.png https://i.redd.it/lmrf72ko0ro41.png
- TeMPOraL 7y agoThat's it. Thanks!
- bambataa 7y agoIt's probably based on some other meme I'm not familiar with but I really love how this borders on the absurd.
- deleted 7y ago[deleted]
- omegaham 7y agoThe faces are just "Zoomer" and "Boomer," respectively. Depending on which group the creator is trying to make look ineffectual and clueless, one typically looks smug and amused while the other is losing his shit.
- spangry 7y agoThe original was about quantitative easing: https://i.kym-cdn.com/photos/images/original/001/781/373/b1e.png https://i.kym-cdn.com/photos/images/original/001/781/373/b1e...
- dm3 7y agoThere's even an interactive version... https://brrr.money/ https://brrr.money/