Generally yes. I do this 10-12 hours per day, and I'm tired at night. Also, somebody once asked me to write a video game in 2-3 hours on a laptop that I'd never used. I did it, but they didn't really have a position. Was a huge waste of time-unless they've invested in the relationship, it feels exploitative
No, I lean in the opposite direction - I would be more inclined towards employment opportunities which have a reasonable coding challenge as part of the hiring process. In my experience, there is a strong correlation between how technically challenging the hiring process is and how good a place is to work as an engineer. A reasonable coding challenge is a signal that there are competent engineers within the organization (in order to be able to come up with and mark such challenges), and that the organization values engineering capability to some degree.<p>Of course, there are exceptions to this. I'm also explicitly excluding here employers who outsource the technical challenge to a third party like leetcode.
Algorithms challenge? Yes. As long the interviewer is ok with explanations as I don't bother retaining syntax most of the time, if it's not the language I'm using for day to day work. I can come up with a solution in C or even Assembly, but only in rough terms.<p>I'm also ok with a take home challenge if the scope is small, the intent to hire me is clear, and it will take only a few hours to complete.
My advice is to be fine with coding challenges, just don't do non compensated take homes. Take homes trend toward being non-paid work; I've seen plenty that are asking for a frontend and a server and a DB, and it's just something I would charge for.
If it's something reasonable, I don't mind it at all. My GitHub profile is pretty sparse as everything I write is for work.<p>A 30-60 minute skills check is nbd, especially if it's used to understand how I approach problems.
I figure as long as it's an hour or less it's fair? I once had one that was an hour and a half, but they actually compensated me for the time (sorta feels like zirp in hindsight tbh)