What Annoys Me About Coding Interviews
A quick comment on an issue I faced with Tailwind and how it relates to coding interviews for software developer roles.
Listen to Article
What Annoys Me About Coding Interviews
I just spent about 2 hours trying to figure out why this extra space was being added between the profile picture/username section and comment body on comments on articles in my Next.js blog.
There was no extra padding, margin or spacing being applied to those elements, or the parent components that they inherit styles from.
I was tearing my hair out over this tiny issue and was at a loss for why it was occurring.
Ultimately I discovered that the problem was that the tailwind prose class was being applied to the grandparent component (where the actual article text content is held) which was being inherited by each comment.
It was this that was applying the mysterious extra spacing between the username/profile picture section and the comment body.
The solution was to just mark the comment section as not-prose (though, a potential better solution would be to reorganise my code structure so that each section is distinct... This might be what I do next).
What does this have to do with coding interviews?
What I have gained from this little escapade is a much deeper understanding of how prose works than what would normally be gained through simply watching tutorials or completing basic coding problems.
I've had to struggle through a difficult problem, think outside the box and use the resources available to me to fix something on a real production app. At the same time, this type of thing isn't really being assessed in coding interviews that often seem to reel off technical questions about the particular technologies that are being interviewed for.
So somebody who has done route memorisation on a few technical terms may excel at the interview and be preferred for the role - even when they actually haven't had to struggle through the problems during real product development.
Stay Connected
Get notified whenever we publish new articles, insights, guides and product updates.