+ 3
Missing Important SL lesson
A recent post about copying of codes reminded me that I rarely see a header in the Code Playground programs. Due to how the SL platform is working, it's easy for a user tweaking your code, to save it in his list of codes. Having a header in your code, would ensure that attribution to your work is always shipped with the program itself, making it also easier to see if a user intentionally deletes/modifies it. The header example below comes from: https://www.cs.siue.edu/programming-style-guide
1 Answer
+ 3
// File: prog1.cpp
// Name: Martha Reeves
// Date: 8/13/99
// Course: CS 150 - Introduction to Computing
// Desc: Program calculates mean, standard
//deviations, and variance for a set of
//numbers.
// Usage: The program reads from a text file
//containing one number per line.
//The program prompts for and reads
//the name of the file.
You can edit/add any info you deem necessary to the a.m. header example, including the type of licence you want to release the program under.
A header example in the Code Playground:
https://code.sololearn.com/cV80fsZpPi1s/?ref=app
I think this should be the first SL lesson and, if it was already implemented from the time I did the tutorials, a reminder is necessary.
If you don't believe me, have a look at the social mob here:https://www.sololearn.com/discuss/313531/?ref=app