While browsing some of the projects I'm currently immersed into I came across an old job post (Nov. 2018) from one of the companies that I had my eyes on for a while.
While I am currently employed, I figured it can't help to send an email, right? The answer didn't fail to arrive, tho.
Therefore, after a quick chat with their representative, they asked me submit my CV, a cover letter (?!) and some code sample. Worth to mention that the job posting I initially found was long gone, however they said that they might find something for me. I assume they don't get many random job applications.
So far so good. My CV is up to date, I read a bunch of things about cover letters on dev.to, but I can't figure out a way to submit some code sample.
I have always worked "for someone". All the code I produced belongs to a company. At my current job I do work with the same technologies as the company I am applying to, yet I can't ask my boss to allow me to send some code to a company that might "steal" me.
I can take some classes, change a few variable names and submit that, but I have no idea what the reviewer might see in it.
Therefore, what options do I have? What would you guys recommend?
Recruiters should respect the fact that the code you write while working doesn't belong to you. I believe what they mean by code sample is any personal project you might have worked on.
If you really want the job, You can do a quick small project with their tech stack in your free time, push it to GitHub on a public repo and send it to them.
If you don't, you can just tell them that you don't currently have any personal projects so you can't send them anything. Some would understand.
Generally. I would recommend you try to have a couple or so personal projects on GitHub to increase your chances in the long run to land interviews and jobs.