Skip to content
DevMeme
4541 of 7590
CodeQuality Post #4982 · source on Telegram

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

64
Anonymous ★ Top Pick A junior developer writes code that a computer can understand. A senior developer writes code that a junior developer can understand
  1. Anonymous ★ Top Pick

    A junior developer writes code that a computer can understand. A senior developer writes code that a junior developer can understand

  2. Anonymous

    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

  3. Anonymous

    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'

  4. Anonymous

    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

  5. Anonymous

    Normalize to BCNF in design reviews, denormalize to 0NF in prod for those sub-second queries

  6. Anonymous

    Normalize the relational DB; denormalize the reporting; slap “CQRS” on it so the architecture diagram looks intentional

  7. Anonymous

    Normalize the OLTP schema to 3NF; denormalize analytics - p95 latency doesn’t care about BCNF

  8. Deleted Account 3y

    Css styles without nomalize.css

    1. @RiedleroD 3y

      wth is normalize.css

      1. @niklas_0213 3y

        I assume it’s something similar to https://meyerweb.com/eric/tools/css/reset/ ?

        1. @RiedleroD 3y

          oh, that sounds useful.

        2. Deleted Account 3y

          Ye,looks very simmilar

      2. Deleted Account 3y

        This is file which purpose is set properties for elements to display them properly on all sizes of monitors

        1. @RiedleroD 3y

          oh, that sounds painful

          1. @RiedleroD 3y

            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?

            1. @ReWorst 3y

              Man why reinvent the wheel

            2. @Dark_Embrace 3y

              different browsers have different defaults. normalize override them

              1. @RiedleroD 3y

                yes, that's not what I was talking about.

              2. @RiedleroD 3y

                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)

  9. @Dark_Embrace 3y

    yeah. google is more random

    1. @RiedleroD 3y

      I have a whole list of chrome shitassery. I can translate & send it if you want.

      1. @Dark_Embrace 3y

        Absolutely)

        1. @RiedleroD 3y

          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

          1. @Dark_Embrace 3y

            vw is always a nightmare due to scroll appearing)

            1. @RiedleroD 3y

              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.

              1. @Dark_Embrace 3y

                yeah. i like fox solution

              2. @Dark_Embrace 3y

                I hecking love responsive design 👍

          2. @RiedleroD 3y

            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.

            1. @RiedleroD 3y

              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

          3. @pavloalpha 3y

            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

            1. @RiedleroD 3y

              yup… I only add html/css bugs I encountered personally to the list though.

              1. @pavloalpha 3y

                But still chrome browser engine is the best in perf

                1. @RiedleroD 3y

                  not since recently iirc. Firefox has been catching up while chrome is still figuring out how to correctly lay out flex/grid stuff

                  1. @RiedleroD 3y

                    well, v8 is still faster than spidermonkey, but that's just because of nodejs.

                  2. @pavloalpha 3y

                    Nah, run some opengl performance tests and you will see what I'm talking about

                    1. @RiedleroD 3y

                      ok I will

                      1. @pavloalpha 3y

                        https://webglsamples.org/aquarium/aquarium.html

                        1. @pavloalpha 3y

                          I used it

                    2. @RiedleroD 3y

                      is https://web.basemark.com/ good?

                      1. @RiedleroD 3y

                        952.58 for firefox 1380.48 for chrome I admit defeat

                        1. @pavloalpha 3y

                          In every day usage it doesn't seem to work shitty

                          1. @RiedleroD 3y

                            yeah, firefox definitely feels faster than chrome

                          2. @pavloalpha 3y

                            So who really cares, how many points did you get in benchmark, when the basic things work like a piece of shit?

                            1. @pavloalpha 3y

                              I mean scrolling, this is very important and you shouldn't underestimate it

                              1. @pavloalpha 3y

                                I have 144hz monitor and I notice every frame drop

  10. @Dark_Embrace 3y

    I'm rus

    1. @RiedleroD 3y

      I'm ger well, at

      1. @Dark_Embrace 3y

        then eng

        1. @RiedleroD 3y

          always english in this chat, it's in the rules

      2. @pavloalpha 3y

        Sondern du aus Österreich kommst

        1. @pavloalpha 3y

          But you are from Austria

          1. @RiedleroD 3y

            the german translation for this would be "Aber du bist aus Österreich"

            1. @pavloalpha 3y

              Then why do German people use sondern?

              1. @RiedleroD 3y

                sondern is for opposites within the same sentence. "I don't come from germany, but Austria" → "Ich komme nicht aus Deutschland, sondern Österreich"

                1. @pavloalpha 3y

                  Achso

        2. @RiedleroD 3y

          yes, I'm from austria. Your german grammar is… pretty bad.

          1. @pavloalpha 3y

            I know after sondern it should be normal word order, but I like variant "weil" better)))

    2. @pavloalpha 3y

      And?

      1. @RiedleroD 3y

        don't start a fight, please

        1. @pavloalpha 3y

          )) Won't start only if I don't hear prorussian trash

  11. @RichStallman 3y

    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.

    1. Deleted Account 3y

      I know you're not the _real_ RMS because your message is not PGP signed.

      1. @RichStallman 3y

        -----BEGIN PGP SIGNATURE----- T2YgY291cnNlIEknbSBub3QgZnVja2luZyBSaWNoYXJkIE1hdHRoZXcgU3RhbGxt YW4sIHdoeSB3b3VsZCBJIHVzZSBUZWxlZ3JhbSBsaWtlIGEgcGVhc2FudCBhbmQg bm90IGNvbW11bmljYXRlIHNvZWx5IHRocm91Z2ggd29yZCBvZiBtb3V0aCBhbmQg RS1NYWlsPyBBbnl3YXlzLCBJIGFtIFJpY2hhcmQgTWFydm9sbyBTdGFsbG1hbiwg c28gdGVjaG5pY2FsbHkgc3RpbGwgUk1TLCBidXQgd2l0aCBNYXJ2b2xvIGFzIGlu IFRvbSBNYXJ2b2xvIFJpZGRsZS4uLg== -----END PGP SIGNATURE-----

  12. @glatavento 3y

    ...and a set of orthogonal vectors

Use J and K for navigation