管理小结
- 研发与技术管理小结
方法论,流程,工具
知道行德
|
|
接口形式主要为 RESTful,但又不拘泥于 RESTful。
一个完整的 API 请求过程包括:
下面分述之。
HTTP Operation | Similar to SQL Stmt | Description |
---|---|---|
GET | SELECT | 获取,查找 |
POST | CREATE | 新增创建 |
PUT | UPDATE | 在服务器更新资源(客户端提供改变后的完整资源) |
PATCH | UPDATE | 在服务器部分更新资源(客户端提供改变的属性) |
DELETE | UPDATE | 删除 |
URI指向的是唯一的资源对象/资源集合列表。
统一所有的 endpoint 使用复数使得 URL 更加规整,让API使用者更加容易理解,对开发者来说也更容易实现。
一个完整的 URL Endpoint 依次是:
?offset=0&limit=10&sort=_created_at
;参数列表应该被 encode 过X-Result-Fields
示例:
GET https://api.example.com/v1/users/123456/profiles
说明:
api.example.com
-
代替下划线 _
?limit=10
:指定返回记录的数量?offset=10
:指定返回记录的开始位置。?page=2&per_page=100
:指定第几页,以及每页的记录数。?sortby=name&order=asc
:指定返回结果按照哪个属性排序,以及排序顺序。?user_type_id=1
:指定筛选条件分为对资源对象的CURD操作,服务型接口和系统设置三种。
GET https://~/$version/trades 获取trades列表
GET https://~/$version/trades/:id 根据id获取单个trade
POST https://~/$version/trades 创建trade
PUT https://~/$version/trades/:id 根据id更新trade
PATCH https://~/$version/trades/:id 根据id部分更新trade
DELETE https://~/$version/trades/:id 根据id删除trade
使用 services
标识:
https://~/services/$version/server-name
示例:
GET https://~/services/$version/search?q=filter?category=file 搜索
PUT https://~/services/$version/queued/jobs 往任务队列里面添加一个新的任务
DELETE https://~/services/$version/queued/jobs/:id 根据id删除任务
使用 settings
标识:
https://~/settings/$version/server-name
如:更改界面语言环境
PUT https://~/settings/$version/gui/lang
{
"lang": "zh-CN"
}
more >>
在创业公司负责了几年的技术研发和管理,有自己的一点小心得,会陆续放在博客上来。
在 Infosys 学到的要点: Methodologies, Process, Code Standard/Guideline/Best Practices, “Checklist”。
创业公司研发部较少有纯管理性的职位,一般要身兼核心模块框架开发和团队管理的职责。这就要求负责人有较深的技术背景,上马能写核心模块,下马能指导成员遇到的遇到难题,建立起技术上的威信;管理上刚柔并济,让人心服。
创业公司,最大的不变就是变化。公司到处都不完善,而不完善的地方即是机会。做好这个心理准备,将成长得更快。
先说说贯穿于整个工作中的“团队建设”、“开会”、“任务排期”、“文档协作”和“绩效考核”。
公司,尤其是创业公司,最重要的是人,包括市场部人员、研发部人员和后勤人员等。
要保持团队,尤其是核心成员的稳定性,不仅在待遇上处于业界中上水平,还须在团队氛围和技能提升上让成员觉得这是一个好的队伍,值得一起共事。
定位:服务于研发团队,给一线团队创造一个良好的工作环境。在内,创造令人愉快的环境和氛围;公司内,协调好与市场、后勤等其他部门的关系,包括为团队向公司争取应得的利益。
每次开会前需要会议 Owner 准备议题,并将相关文档发送给参会者熟悉;开会一定要形成决议,会后要有可执行的 Action 和任务分配到相关人员。
排期:预估开发周期,制定项目开发进度,分解任务,分配任务。
执行任务过程中,每天/两天应有进度跟踪。如果使用项目管理软件(如 Worktile 或 Kanboard),成员应及时更新状态。
Get the vagrant-based docker env from DockerRoot Vagrant Box, which is tiny (only 12 MB) and contains the lastest version of docker (Linux kernel v4.1.6 and GLIBC, Docker v1.8.1). The direct download address is https://atlas.hashicorp.com/ailispaw/boxes/docker-root/versions/1.0.0/providers/virtualbox.box).
P.S. Some mini linux disto: Tiny Core Linux(on which boot2docker is based), yoctoproject, BusyBox, Buildroot.
Tiny Docker Pieces, Loosely Joined:
more >>Since I’ve spelled it out in such exhaustive detail, this may all seem like much ado about nothing…but, now that I finally grok the idea, I can see how data-only containers are so useful.
- It’s the simplest way to share data among multiple containers.
- It makes it easy to upgrade the application (or process) that operates on the data. For example, say we wanted to generate PDF files in addition to HTML files. All we need to do to accomplish that is to create an updated pandoc-convert Docker image.
- Adding additional processes that operate on the data is equally easy. What if you wanted to push the HTML files to an Amazon S3, in addition to serving them locally? Just create a new s3sync Docker image.
Search the box in https://atlas.hashicorp.com/ for box name, version, then follow the format
https://atlas.hashicorp.com/puppetlabs/boxes/<boxName>/versions/<version>/providers/virtualbox.box
to construct the downloading url. e.g. https://atlas.hashicorp.com/puppetlabs/boxes/centos-7.0-64-puppet/versions/1.0.2/providers/virtualbox.box
Win+R
and type systempropertiesadvanced
to bring up the “System Properties” dialog, click “Environment Variables…” button, and in the “User vairalbes for $USER” section, add a variable named VAGRANT_HOME
, whose value is D:\your\vagrant\working\path
.Or use the command line:
SETX VAGRANT_HOME "D:\your\vagrant\working\path"
File > Preference> General: Default Machine Folder
: change to target location.一、5样工具
二、方法和步骤
Ref:
tag:
缺失模块。
1、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
2、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: true raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true