Add coding style document #2735

pull vinniefalco wants to merge 1 commits into bitcoin:master from vinniefalco:feature-coding-style changing 1 files +216 −0
  1. vinniefalco commented at 2:11 PM on June 4, 2013: contributor

    The document will need to be edited slightly for Bitcoin specifics, but its a starting point!

  2. Add coding style document 18e6e3ed07
  3. fanquake commented at 2:16 PM on June 4, 2013: member

    Does this include everything from doc/coding.md? Which I assume it's trying to replace.

  4. jgarzik commented at 2:18 PM on June 4, 2013: contributor

    Leaning towards general NAK. This is imposing one coder's view of how code should be written, when we already have another coding style doc that originated from coders with heavy bitcoin.git contributions.

  5. vinniefalco commented at 2:18 PM on June 4, 2013: contributor

    @fanquake This is not supposed to be a replacement for doc/coding.md

  6. jgarzik commented at 2:24 PM on June 4, 2013: contributor

    In general, don't overburden anywhere with rules. The main GUIDELINES (not rules) are: make new code look like existing code, and follow project developer consensus on any style changes.

  7. laanwj commented at 2:37 PM on June 4, 2013: member

    While rules/tips to avoid shooting yourself in the foot can be welcome and even necessary in language such as C++, I don't like how this starts off with a screenful of rules about formatting. Just use the same convention as the code you're editing. As for the rest, there would have to be developer consensus on a rule by rule basis. It looks like this came from some other project? (If so; which?)

  8. jgarzik commented at 2:48 PM on June 4, 2013: contributor

    I believe Gavin or Mike H or similar pointing to Google's C++ coding conventions as some good rules to follow. They seemed pretty sane, also.

  9. gavinandresen commented at 3:03 PM on June 4, 2013: contributor

    tl; dr

    closing

  10. gavinandresen closed this on Jun 4, 2013

  11. BitcoinPullTester commented at 3:11 PM on June 4, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/18e6e3ed07744e2fd0ac077e210068f5ee8a8f26 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  12. Bushstar referenced this in commit 64ae91268a on Apr 5, 2019
  13. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 03:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me