Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>规范</title> <script> var g_resRoot = '../../../__res/'; var g_json_outline = '{"children":[{"children":[],"level":1,"lvNumber":"1","text":"git 规范"},{"children":[],"level":1,"lvNumber":"2","text":"晨会"},{"children":[],"level":1,"lvNumber":"3","text":"禅道"},{"children":[],"level":1,"lvNumber":"4","text":"总结、按时完成"},{"children":[],"level":1,"lvNumber":"5","text":"反面案列"},{"children":[],"level":1,"lvNumber":"6","text":"其他"},{"children":[{"children":[],"level":2,"lvNumber":"7.1","text":"commit 规范"},{"children":[],"level":2,"lvNumber":"7.2","text":"其他规范"}],"level":1,"lvNumber":"7","text":"规范 2019-3-14"},{"children":[],"level":1,"lvNumber":"8","text":"base on 开源"},{"children":[],"level":1,"lvNumber":"9","text":"文档 日志"},{"children":[],"level":1,"lvNumber":"10","text":"编码"},{"children":[],"level":1,"lvNumber":"11","text":"api doc 规范"},{"children":[],"level":1,"lvNumber":"12","text":"other"}],"level":0,"lvNumber":"","text":"规范"}'; </script> <link rel='stylesheet' type='text/css' href='../../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} .s2{color:#000000;} .s3{color:#808080;} .s4{color:#808080;} .s5{color:#000080;} .s6{color:#000000;} .s7{color:#660000;} .s8{color:#0000ff;} .s9{color:#000000;} .s10{color:#000000;} </style> </head><body> <script src='../../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>规范</a></li> <li> <a href='#ol_1' >git 规范</a></li> <li> <a href='#ol_2' >晨会</a></li> <li> <a href='#ol_3' >禅道</a></li> <li> <a href='#ol_4' >总结、按时完成</a></li> <li> <a href='#ol_5' >反面案列</a></li> <li> <a href='#ol_6' >其他</a></li> <li> <a href='#ol_7' >规范 2019-3-14</a></li> <li> <a href='#ol_8' >commit 规范</a></li> <li> <a href='#ol_9' >其他规范</a></li> <li> <a href='#ol_10' >base on 开源</a></li> <li> <a href='#ol_11' >文档 日志</a></li> <li> <a href='#ol_12' >编码</a></li> <li> <a href='#ol_13' >api doc 规范</a></li> <li> <a href='#ol_14' >other</a></li> </div>

<pre id='ol_0' class='title'>规范</pre> <pre><d class='s0'><a href='....\pjk/pjk_index.html#be56020c-a8a7-4da5-af14-92bd54124ba2'>pjk index </a></d></pre> <pre><d class='s1'></d></pre> <t id='0304d579-c3c4-4e14-8b20-8ad6e5b91037'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_1'>git 规范</h1> <pre><d class='s1'>所有的代码发布,通过git,配置也保存在git中,不同环境的不同配置通过分支来提现。有敏感信息不能进git的,另行处理</d></pre> <pre><d class='s0'><a href='../config_my.html#568deb9a-5ee4-401a-b324-6d9f5d0fcacf'>custom config;user/my config </a></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>git的一个commit只做一件事情,即使这件事情只改了一行代码、配置</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>代码重构要单独提交到一个commit,如果一个改动需要重构,重构和功能修改分两次commit</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s2'>自己检查自己的工作!git提交确保完整、可用。</d></pre> <pre><d class='s2'>每一行修改都要检查一遍</d></pre> </t> <pre><d class='s2'></d></pre> <h1 id='ol_2'>晨会</h1> <pre><d class='s2'>每天晨会,汇报自己昨天的工作;也便于组内成员间相互了解别人的工作。</d></pre> <pre><d class='s2'><a href='http://dev.rongyipiao.com:84/tools/database_op.html'>http://dev.rongyipiao.com:84/tools/database_op.html</a></d></pre> <pre><d class='s2'></d></pre> <h1 id='ol_3'>禅道</h1> <pre><d class='s2'>- 自己的事情,记下来,分解成禅道任务 <a href='http://dev.rongyipiao.com/docs/1068799191/pub/todo_index.html'>http://dev.rongyipiao.com/docs/1068799191/pub/todo_index.html</a></d></pre> <pre><d class='s2'>口头交代的任务,自己记录下来。不要石沉大海!</d></pre> <pre><d class='s2'>- 工作量超过1小时的,单独建立任务;小于1小时的,可以建立一个杂项任务写在一起</d></pre> <pre><d class='s2'>- 完成任务:统一为在记录工时时剩余填0。</d></pre> <pre><d class='s2'>- 每个任务,写明关联的git仓库、分支或其他信息,保证看的人能掌握全部信息。</d></pre> <pre><d class='s2'>- 如果是bug,不要写成任务</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_4'>总结、按时完成</h1> <pre><d class='s1'>后面除了小叫车的,mynote和询五的事情也要有个汇总,连带基础测试。如果很忙,你自己加下班,如果加班都不能完成的,你要主动说一声,养成习惯</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_5'>反面案列</h1> <pre><d class='s0'>废话(实为检查文件是否存在)</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s3'>/**</d></pre> <pre><d class='s4'> * 检查文件</d><d class='s3'></d></pre> <pre><d class='s3'> *</d></pre> <pre><d class='s3'> * @param array $paths</d></pre> <pre><d class='s3'> * @return array</d></pre> <pre><d class='s3'> */</d></pre> <pre><d class='s5'>public function </d><d class='s6'>checkout_paths(</d><d class='s7'>$paths</d><d class='s6'>)</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_6'>其他</h1> <pre><d class='s2'>注重文档</d></pre> <pre><d class='s2'>demo先行</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>文件名不要用中文,避免编码问题</d></pre> <pre><d class='s0'></d></pre> <t id='858933d9-d51e-49ff-9807-f0413a20a340'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_7'>规范 2019-3-14</h1> <pre><d class='s8'><a href='http://uninote.com.cn/book/1082456099#1126'>http://uninote.com.cn/book/1082456099#1126</a></d></pre> <pre><d class='s8'><img src='....\pic\f44096353a5379effabc5ac5bc671183.jpg' /></d><d class='s0'></d></pre> <pre><d class='s9'></d></pre> <h2 id='ol_8'>commit 规范</h2> <pre><d class='s9'><a href='https://blog.csdn.net/zhongwcool/article/details/44673263?utm_source=blogxgwz6'>https://blog.csdn.net/zhongwcool/article/details/44673263?utm_source=blogxgwz6</a></d></pre> <pre><d class='s9'></d></pre> <h2 id='ol_9'>其他规范</h2> <pre><d class='s9'>重构时,必须保证100%的功能,即逻辑不能变,只能变代码结构。</d></pre> <pre><d class='s9'>工具稳定,由开发来测试</d></pre> <pre><d class='s9'></d></pre> </t> <pre><d class='s0'></d></pre> <t id='50fadd8e-c6a5-40bd-ac01-15125beb8151'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_10'>base on 开源</h1> <pre><d class='s10'>记录start commit</d></pre> <pre><d class='s10'>选取stable commit</d><d class='s1'></d></pre> </t> <pre><d class='s0'></d></pre> <h1 id='ol_11'>文档 日志</h1> <pre><d class='s2'></d></pre> <pre><d class='s2'>必须的文档说明:日志在什么地方,sample logs</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>公用的配置、数据要放git管理。sql除了初始化结构,还需要有必要的初始化数据。</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_12'>编码</h1> <pre><d class='s1'>如果确实需要复制代码,一定要在文档 中说明</d></pre> <pre><d class='s0'></d></pre> <t id='5c860781-85c8-4c03-aab6-7fa005068b82'> <pre class='tnd_head'>lv1= lv2= type=todo</pre> <h1 id='ol_13'>api doc 规范</h1> <pre><d class='s10'>所有的api,写一个简单的页面版的调用demo,覆盖全部的业务逻辑(接口调用),从日志输出中copy参数,可以直接修改,测试接口。</d><d class='s8'></d></pre> </t> <pre><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_14'>other</h1> <pre><d class='s1'></d></pre> <pre><d class='s1'>不要格式化代码:blame on you !</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>前置逗号是不好的JavaScript代码书写习惯吗?</d></pre> <pre><d class='s1'><a href='http://ourjs.com/detail/53f7ffabc1afbc6e3000000a'>http://ourjs.com/detail/53f7ffabc1afbc6e3000000a</a></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>如何 求助 协作</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>缩进统一</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>-end</d></pre> <pre><d class='s0'></d></pre> </body></html>

禅道

teamviewer

点赞(0) 阅读(78) 举报
目录
标题