Questions tagged [code-snippets]

7 questions
6
votes
2 answers

How to efficiently store code snippets?

I've noticed that a lot of my work follows this pattern: Decide that I need to add a behavior (say, align table columns right) Recall that I did it few months ago on a different project, try to find it Google the question Check several…
sixtytrees
  • 469
  • 5
  • 10
5
votes
3 answers

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 becomes easy later on to change it. Also, there is…
alhoseany
  • 161
  • 1
  • 5
5
votes
3 answers

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 published by the Free Software Foundation, either…
Ruel
  • 191
  • 7
4
votes
5 answers

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 know. In this particular case, the web answers…
Shane
  • 157
  • 3
2
votes
3 answers

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

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 accomplish common tasks may be too unoriginal for…
dsimcha
  • 17,224
  • 9
  • 64
  • 81
1
vote
1 answer

Copyrights concerning code snippets and larger amounts of code

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 about this: Not getting sued/shut down - I feel…
JustcallmeDrago
  • 389
  • 1
  • 3
  • 5
0
votes
1 answer

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 (it has been published there first and its MIT)?…