=== Please refer to existing code and try to keep the same coding style as the one currently used.
For any questions use the issues tracker
#####Remember: A function should do one thing, and it should do it well.
You can (must) see norme 42.
####LIB42 Rules:
- count += 1 /* WRONG */
- ++count /* WRONG */
- count++ /* WRONG */
- count = count + 1 /* RIGHT */
- if (test()) /* WRONG */
- if (!test()) /* WRONG */
- if (test() == false) /* RIGHT */
- uf_function /* undefined function it does not belong to the library */
- tf_function /* function for the unit test */
- f_struct_function /* function that is part of the library *
===
#####A few things:
*If you're intent to implement a new feature, it is better to talk about it, to the tracker before.
- Usually you're not 100% sure if what you're doing should be in the project or not, then just ask!
- Please never commit code that cannot compile, even if this commit is in the middle of your branch and no one will ever notice it. Please.
- A commit has to do only one thing, and has to do it well
- A branch name has to state clearly what it does
#####42Student
######Github name
FistnameLastname
Why ? ... Because we are not 10 years old.
#####Others
You are welcome :)
======= A successful Git branching model
####Branch: Master - Releases
Develop - New features
Bugfix - Bug fix #issues
Norme - Fix norme
English - Fix mistakes
#####By following these simple steps:
- Fork 42-toolkit's repository
- Create your branch (
git checkout -b my-branch-where-I-did-smth
) - Code and commit your changes.
- Push to your branch (
git push origin my-branch-where-I-did-smth
). - Create your new Pull Request on Develop, Bugfix, English or Norme branch.
- NEVER BRANCH MASTER NEVER
You've shared your work, thank you!