Can an employment NDA legally prohibit me from showing code samples in a job interview?
Can an employment NDA stop you from showing code samples? Generally, yes. Learn how to navigate IP restrictions and protect your career with TermScore.
Can an employment NDA legally prohibit me from showing code samples in a job interview?
Yes. Most employment NDAs classify proprietary source code as 'Confidential Information.' Sharing this code with a third party—even during a job interview—is a breach of contract that can lead to immediate termination, litigation, and significant financial liability. You do not own the code you wrote for your employer; they do.
Understanding the Scope of Your NDA
When you signed your employment agreement, you likely signed a Proprietary Information and Inventions Agreement (PIIA). These documents are designed to protect the company's 'trade secrets.' In the eyes of the law, source code is the quintessential trade secret.
What Constitutes 'Confidential Information'?
- Source Code: The actual files, repositories, and build scripts.
- Architectural Diagrams: High-level design documents that reveal how systems interact.
- Internal Documentation: Wikis, Confluence pages, or Slack threads detailing technical challenges.
- Client Data: Any data sets or schemas used in production environments.
Key takeaway: If you can't find the code on a public GitHub repository, assume it is confidential. Showing it to a prospective employer is a direct violation of your duty of loyalty and your contractual obligations.
Action Item: Locate your original employment contract and search for the definition of 'Confidential Information.' If it explicitly mentions 'source code' or 'technical data,' you are legally bound to keep it private.
The Legal Consequences of Disclosure
Breaching an NDA is not merely a 'fireable offense'; it is a legal liability. Companies invest millions in R&D, and they have a legal right to protect that investment through litigation.
| Risk Factor | Potential Consequence |
|---|---|
| Breach of Contract | Lawsuit for damages and legal fees. |
| Injunctive Relief | Court order preventing you from working for a competitor. |
| Professional Reputation | Blacklisting within your industry. |
| Termination | Immediate firing for cause, potentially voiding severance. |
The 'Inevitable Disclosure' Doctrine
In certain jurisdictions, such as California or New York, courts may apply the 'inevitable disclosure' doctrine. This suggests that if you move to a competitor, you will inevitably use the trade secrets you learned at your previous job. By showing code samples, you provide the 'smoking gun' evidence that makes an injunction against your new employment much more likely.
Action Item: If you are concerned about a specific contract, use TermScore to identify if your NDA contains 'non-solicitation' or 'non-compete' clauses that could be triggered by a breach of confidentiality.
How to Demonstrate Skills Legally
You can prove your technical proficiency without exposing your current employer's intellectual property. Follow these steps to build a compliant portfolio:
- Build Personal Projects: Create a repository on GitHub that showcases your coding style, testing habits, and architectural patterns.
- Contribute to Open Source: Contributing to public projects is the gold standard for proving your skills. It is verifiable, public, and legally safe.
- Use Pseudocode: If you must discuss a complex problem you solved, describe the logic using generic pseudocode. Do not copy-paste actual production code.
- Sanitize Your Portfolio: If you have a personal portfolio, ensure it contains zero snippets from your professional work.
Key takeaway: Never bring a laptop containing company-owned code to an interview. If a recruiter asks to see your 'best work,' explain that your work is protected by a strict NDA and offer to solve a whiteboard challenge instead.
Action Item: Audit your personal GitHub or portfolio site today. Remove any commits or files that were created on company time or using company resources.
Navigating the Interview Process
If an interviewer pushes you to show proprietary code, it is a red flag. A reputable company will respect your commitment to your current employer's confidentiality. If they insist on seeing your previous work, they are essentially asking you to commit a breach of contract, which suggests they may ask you to do the same to them in the future.
Action Item: Prepare a standard script: 'My current employment agreement contains strict confidentiality provisions regarding source code. I am happy to discuss the architectural challenges I solved or provide a demonstration of my coding ability through a technical assessment or personal project.'
Conclusion
Protecting your career means protecting your integrity. Never prioritize a job interview over your legal obligations. TermScore can automatically analyze your employment contracts to highlight restrictive covenants and confidentiality clauses, giving you the clarity you need to navigate your career moves with confidence and legal safety.
TermScore Research
Our legal AI analyzes thousands of contracts to surface market standards, common pitfalls, and actionable insights for anyone who signs agreements.
Get the contract red-flag checklist
Join landlords and freelancers getting clause breakdowns and benchmark data. No spam.
Keep reading
Employment & NDA
Can an employment NDA legally prohibit disclosing job responsibilities on a resume?
Employment & NDA
Does an employment NDA prohibit sharing technical work samples during job interviews?
Employment & NDA
Can an employment NDA legally prohibit me from coding personal projects on weekends?
Employment & NDA
what are the risks of signing an employment nda retroactively after starting the job
Employment & NDA
Can an employment NDA legally restrict me from disclosing salary and working conditions?
Employment & NDA
How to legally challenge overbroad definitions of confidential information in an employment NDA