Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
- Best practices
/* | |
* Copyright (c) 2010 Tobias Schneider | |
* This script is freely distributable under the terms of the MIT license. | |
*/ | |
(function(){ | |
var UPC_SET = { | |
"3211": '0', | |
"2221": '1', | |
"2122": '2', |
Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
These rules are adopted from the AngularJS commit conventions.
#ifndef __LOGGING_HPP__ | |
#define __LOGGING_HPP__ | |
/* | |
Test this with something like: | |
g++ -std=c++11 -x c++ -pthread -DLOGGING_LEVEL_ALL -DTEST_LOGGING logging.hpp -o logging_test | |
./logging_test | |
*/ | |
#include <string> |
#EXTM3U | |
#EXTINF:-1,group-title="Movies on demand" | |
http://kewltv.net/ | |
#EXTINF:-1,xmen1 | |
http://www.deadlyblogger.com/NewRelease/xmen1.mp4 | |
#EXTINF:-1,xmen2 | |
http://www.deadlyblogger.com/NewRelease/xmen2.mp4 | |
#EXTINF:-1,xmen3 | |
http://www.deadlyblogger.com/NewRelease/xmen3.mp4 | |
#EXTINF:-1,xmen origin |
#EXTINF:-1,[COLOR green]» » GRUPO FILMES « «[/COLOR] | |
http://0.0.0.0:1234 | |
#EXTINF:-1 group-title="FILMES",101 DALMATIONS | |
http://www.deadlyblogger.com/NewRelease/dal1.mp4 | |
#EXTINF:-1 group-title="FILMES",A CHRISTMAS CAROL | |
http://www.deadlyblogger.com/NewRelease/acc2009.mp4 | |
#EXTINF:-1 group-title="FILMES",A DISNEY CHRISTMAS GIFT | |
http://www.deadlyblogger.com/NewRelease/disneyc1.mp4 |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages