Junior vs. Senior Developer: The Solution
Description
This meme uses a two-panel comparison format. The top panel, labeled 'Junior dev's solution,' shows a massive, convoluted block of code - a tangled mess of nested loops, redundant variables, and inefficient logic. The bottom panel, labeled 'Senior dev's solution,' displays a single, elegant line of code that accomplishes the exact same task. The humor lies in the stark contrast between the brute-force complexity of an inexperienced approach and the clean, concise, and often profoundly simple solution that comes with experience. It's a visual representation of the 'work smarter, not harder' principle, and it resonates deeply with senior engineers who have spent years learning to identify the most direct path to a solution
Comments
64Comment deleted
A junior developer writes code that a computer can understand. A senior developer writes code that a junior developer can understand
Normalize the schema to 3NF all you want - one “we’ll just drop it in a JSONB column for flexibility” request and the entire data model goes back to the primordial spreadsheet soup it crawled out of
The real question is whether this joke is in 3NF or if we need to decompose it further to eliminate the transitive dependency between 'humor' and 'upvotes' through the determinant 'database knowledge'
The beauty of this joke is that it works on multiple levels - just like a properly normalized database. While society debates what behaviors to normalize, database architects have been normalizing relations since Codd's 1970 paper. Though let's be honest, by the time you reach BCNF, you're probably denormalizing for performance anyway. The real question is: should we normalize the debate about normalization? That's a recursive relationship I'm not sure even a well-designed schema could handle
Normalize to BCNF in design reviews, denormalize to 0NF in prod for those sub-second queries
Normalize the relational DB; denormalize the reporting; slap “CQRS” on it so the architecture diagram looks intentional
Normalize the OLTP schema to 3NF; denormalize analytics - p95 latency doesn’t care about BCNF
Css styles without nomalize.css Comment deleted
wth is normalize.css Comment deleted
I assume it’s something similar to https://meyerweb.com/eric/tools/css/reset/ ? Comment deleted
oh, that sounds useful. Comment deleted
Ye,looks very simmilar Comment deleted
This is file which purpose is set properties for elements to display them properly on all sizes of monitors Comment deleted
oh, that sounds painful Comment deleted
isn't good practice just writing your CSS to be easily resizable in the first place and then adding different layouts for specific elements that don't work on one or the other device? Comment deleted
Man why reinvent the wheel Comment deleted
different browsers have different defaults. normalize override them Comment deleted
yes, that's not what I was talking about. Comment deleted
In any case, developing for firefox and adding fixes for chrome has worked for me so far. (there's a lot of comments in my CSS files about how shitty chrome is because of that lol) Comment deleted
yeah. google is more random Comment deleted
I have a whole list of chrome shitassery. I can translate & send it if you want. Comment deleted
Absolutely) Comment deleted
chrome problems: - mask-image is only usable via prefix & there's no mask-mode - aspect-ratio und overfull grid lead to runaway layouting bug: source - transition in <details> doesn't work & js weird too regarding that - the scrollbar isn't inside the viewbox but counts towards vw anyway causing fixed elements with width:100vw to overflow (infuriating) - the problem with <object> tags Comment deleted
vw is always a nightmare due to scroll appearing) Comment deleted
it works as expected in firefox from my experience. But mobile browsers are even worse with this stuff, so I can't use it anyway. Comment deleted
yeah. i like fox solution Comment deleted
I hecking love responsive design 👍 Comment deleted
I also have a list for firefox, but it's just three items, and two of the three is just overly pedantic adherence to the standards. Comment deleted
If you ever need to check if an SVG is valid according to the standards, don't bother with validity checkers, just open it it firefox lol Comment deleted
Also chrome doesn't support av1 for Linux using nvidia-va-api custom(check GitHub). But could be used in Firefox to display 4k in minimal CPU performance losses. So I just play game for example and watch YouTube. If we speak exactly about browsers, chrome scrolling lags like a shit. And the biggest problem for mobile, if you select height as 100vh, that means that chrome won't count that big top bar, which you can see everywhere in android browser Comment deleted
yup… I only add html/css bugs I encountered personally to the list though. Comment deleted
But still chrome browser engine is the best in perf Comment deleted
not since recently iirc. Firefox has been catching up while chrome is still figuring out how to correctly lay out flex/grid stuff Comment deleted
well, v8 is still faster than spidermonkey, but that's just because of nodejs. Comment deleted
Nah, run some opengl performance tests and you will see what I'm talking about Comment deleted
ok I will Comment deleted
https://webglsamples.org/aquarium/aquarium.html Comment deleted
I used it Comment deleted
is https://web.basemark.com/ good? Comment deleted
952.58 for firefox 1380.48 for chrome I admit defeat Comment deleted
In every day usage it doesn't seem to work shitty Comment deleted
yeah, firefox definitely feels faster than chrome Comment deleted
So who really cares, how many points did you get in benchmark, when the basic things work like a piece of shit? Comment deleted
I mean scrolling, this is very important and you shouldn't underestimate it Comment deleted
I have 144hz monitor and I notice every frame drop Comment deleted
I'm rus Comment deleted
I'm ger well, at Comment deleted
then eng Comment deleted
always english in this chat, it's in the rules Comment deleted
Sondern du aus Österreich kommst Comment deleted
But you are from Austria Comment deleted
the german translation for this would be "Aber du bist aus Österreich" Comment deleted
Then why do German people use sondern? Comment deleted
sondern is for opposites within the same sentence. "I don't come from germany, but Austria" → "Ich komme nicht aus Deutschland, sondern Österreich" Comment deleted
Achso Comment deleted
yes, I'm from austria. Your german grammar is… pretty bad. Comment deleted
I know after sondern it should be normal word order, but I like variant "weil" better))) Comment deleted
And? Comment deleted
don't start a fight, please Comment deleted
)) Won't start only if I don't hear prorussian trash Comment deleted
For personal reasons, I do not browse the web from my computer. (I also have not net connection much of the time.) To look at page I send mail to a demon which runs wget and mails the page back to me. It is very efficient use of my time, but it is slow in real time. Comment deleted
I know you're not the _real_ RMS because your message is not PGP signed. Comment deleted
-----BEGIN PGP SIGNATURE----- T2YgY291cnNlIEknbSBub3QgZnVja2luZyBSaWNoYXJkIE1hdHRoZXcgU3RhbGxt YW4sIHdoeSB3b3VsZCBJIHVzZSBUZWxlZ3JhbSBsaWtlIGEgcGVhc2FudCBhbmQg bm90IGNvbW11bmljYXRlIHNvZWx5IHRocm91Z2ggd29yZCBvZiBtb3V0aCBhbmQg RS1NYWlsPyBBbnl3YXlzLCBJIGFtIFJpY2hhcmQgTWFydm9sbyBTdGFsbG1hbiwg c28gdGVjaG5pY2FsbHkgc3RpbGwgUk1TLCBidXQgd2l0aCBNYXJ2b2xvIGFzIGlu IFRvbSBNYXJ2b2xvIFJpZGRsZS4uLg== -----END PGP SIGNATURE----- Comment deleted
...and a set of orthogonal vectors Comment deleted