Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [code-sample]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
20 votes
6 answers
5k views

What are better ways of indicating "insert actual value in place of the placeholder value" in documentation?

We develop an online booking system and it may be embedded in customer websites in an iframe. It is very simple to use, you just include a JavaScript file on the page and call the initialisation ...
1 vote
1 answer
89 views

Should usage examples in XML documentation be explicitly tested?

If usage examples are provided in XML documentation, should those examples be explicitly tested? /// <summary> /// Gets a collection of Foo objects. /// </summary> /// <param name="...
3 votes
3 answers
2k views

What to send when a client wants a sample of my code to test my qualities?

We've all faced this. You apply to a cool project and they ask you to send them a piece of your code. On the surface, this look OK and I am fine with it. But what shall I send them? My cool utility? ...
18 votes
5 answers
19k views

When applying for an entry level programming position, how do I include my coding examples? [closed]

I will soon begin the process of applying for entry level programming positions. As of now I have no professional coding experience, so all I have to show is some personal projects and code samples to ...
1 vote
3 answers
8k views

Has anyone used "Design Pattern Framework (TM)"? [closed]

Has anyone purchased Design Pattern FrameworkTM? Are these samples worth investment? Are they practical? What are the pro and cons of the guidelines? Anyone used this in the real-world development?
16 votes
4 answers
4k views

What if you don't have code samples to give a prospective employer? [duplicate]

What do you do when you don't have any good code samples available when asked by a prospective employer? I like to consider myself a fairly capable developer but I can't share any of the software I've ...
69 votes
8 answers
5k views

Asking for a code sample of the company at an interview [closed]

Asking a job seeker to show some code is a fairly common practice for a software company. However, would it be acceptable for the candidate to ask the interviewer to show him a small piece of code ...
2 votes
3 answers
553 views

A place for putting code samples in projects

Every now and then I get or write some minimal code samples to achieve tasks. What's the usual practice for storing these samples (which could prove useful later on) ? Have a separate source folder or ...