Welche Informationen am Anfang eine Quellcode Datei [was: [OT] Hat nicht direkt mit der Programmierung zu tun ]



  • Welche und in welcher Form schreibt ihr Informationen über euer Programm am Anfang jeder Datei in den Quellcode?

    Autor:
    Copyright:
    Beschreibung:

    ...

    Sonst noch was..

    Mich interessiert auch dei Form, bei mir "wirkt" das irgendwie nicht richtig.

    MfG
    mnhg

    [edit]bitte vernünftige Topics benutzen 😡[/edit]



  • Weiss, dass es OT ist, aber hauts trotzdem hier rein 👎

    Verschoben! ➡ ➡



  • Ich schreib da idr. mein Name,Email-Adresse,Was in der Datei steht,Wann die Datei erzeugt wurde und ne Fix-History und Lizenz informationen und eine Copyright notiz.



  • Sorry ich hatte es etwa eilig,und keine zeit zum suchen des OT bereichs, deshalb hab ich davo geschrieben...

    Danke



  • Hi,

    bei mir steht da meistens nur sowas:

    ///////////////////////////////////////
    ////          Programmname         ////
    //// (c) 2003 by Christian Mandery ////
    ///////////////////////////////////////
    

    ChrisM



  • {*******************************************************************************
     Project       : Project1
     Filename      : Unit1
     Date          : 2003-12-28
     Version       :
     Last modified :
     Author        : Michael Puff
     URL           : www.luckie-online.de
     Copyright     : Copyright (c) 2003 Michael Puff
     History       :
    
               When I die I want 'Hello, world' carved on my headstone.
    *******************************************************************************}
    
    {*******************************************************************************
    
     Copyright (c) 2001-2003, Michael Puff ["copyright holder(s)"]
     All rights reserved.
    
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
    
     1. Redistributions of source code must retain the above copyright notice, this
        list of conditions and the following disclaimer.
     2. Redistributions in binary form must reproduce the above copyright notice,
        this list of conditions and the following disclaimer in the documentation
        and/or other materials provided with the distribution.
     3. The name(s) of the copyright holder(s) may not be used to endorse or
        promote products derived from this software without specific prior written
        permission.
    
     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
     DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
     ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
    *******************************************************************************}
    


  • Wofür steht das Puff denn da?



  • Ist der Name...

    Danke, genau auf sowas hab ich gewartet;)



  • H*** schrieb:

    Wofür steht das Puff denn da?

    Bordell kann ich nicht schreiben. 🙄



  • /*****************************************************************************
     *
     *		sNS
     *		shittyNewsScript
     *
     *		a shitty newsscript, what else?
     *	
     *	(c) 2003 Thomas Unterthiner
     *
     *	project start:	21.12.2003
     *	last change:  	25.12.2003
     */
      	$sns_VERSION = '1.0';
    /*****************************************************************************
     *
     * 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 version 2 of the License, or (at your option)
     * any later version.
     *
     * This program is distributed in the hope that it will be useful, but WITHOUT 
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
     * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 
     * more details
     * 
     *****************************************************************************/
    

    Ist bei Projekten mit mehr als einer Datei (das da oben ist nur ein kleines PHP-Script) kommt noch 1 Zeile mit Dateinamen und einer mit der Kurzbeschreibung der Inhalte der Datei dazu


Anmelden zum Antworten