The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
174 views

How to efficiently store code snippets?

I've noticed that a lot of my work follows this pattern: (1) Decide that I need to add a behavior (say, align table columns right) (2) Recall that I did it few months ago on a different project, try ...
6
votes
3answers
687 views

GPL Notice on Snippets

Is it ok to put a GPL notice inside a small script or a snippet? This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
0
votes
1answer
49 views

Snippets (based on MIT licence) from snippets services

I have question about MIT licence code sources Can I publish code snippets [MIT licence] from site like bootsnipp to my blog? Do I have to include source link to site where I have found that snippet ...
5
votes
5answers
507 views

How do I let programmers know something useful?

Quite often I go through pain to discover how to do something useful, in this case how to get PHP running on Google App Engine without the 'resin.jar too big' problem, but I have nowhere to let people ...
0
votes
1answer
241 views

Where does the tradition of shell prompts in code snippets come from?

Most code samples I see that demonstrate shell code preface each command with $. Having a prefix makes sense, but I'm confused as to why $ is used in particular. Some other symbol, like !, that can be ...
2
votes
1answer
349 views

Copyrights concerning code snippets and larger amounts of code [closed]

I am designing a public code repository. Users will be allowed to post and edit whatever amount of code they want, from code snippets to entire multi-file projects. I have a few major legal concerns ...
5
votes
3answers
3k views

What is your suggestion to write clean and well organized php code?

I am a php beginner coder. I always find myself in a mess when I try to alter or add something to my scripts. Because they are not well organized. So, I want to learn how to organize my code, so it ...
2
votes
3answers
141 views

What are some precedents on how substantial a snippet must be to be copyrightable? [duplicate]

I occasionally worry that when I borrow snippets of code from websites, etc. there's at least the theoretical possibility that this will be copyright infringement. However, small pieces of code to ...