I haven’t done any side projects since 1994.
Hiring the trendiest is also a bit of an SV thing. I don't know if you're in SV or not but if your job searching doesn't involve any leetcode prep then I presume you're not in SV. (Less than 3 weeks on leetcode prep seems crazy to get a job in SV unless you practice regularly)
I will do “side projects” at work - low or no priority projects using new to me technology or voluntary to work on feature that would take me extra time because the underlying technology is new for me.
That has the advantage of getting feedback from coworkers, being able to work with a large infrastructure, and of course its “real world experience”.
I’m nowhere near SV, the last time I did anything approaching a LeetCode interview was my second job out of college and they really were doing some low level C coding so it was relevant for them.
Lastly, if I do jump through hoops, it won’t be for a job that just pays the median market salary that I could get anywhere. Now that I am moving toward working for consulting companies, yeah I will have to do the leetCode equivalent.
I found having some open source contributions was a positive for my resume. People knew I could ship something then. They could literally go online and check to see what I did.
I've done most of mine when I didn't have a job or knew I needed something to get the next job. So, it was not much different than investing time in interview prep.
Couldn't tell ya if I prefer leetcode or open source contributions. As for the last five years, I've mainly had to do leetcode every year cause no one gave much care to my contributions after a point. (leetcode is #1 in sv)