yuyang041060120

yuyang041060120

V2EX member #113454, joined on 2015-04-26 03:18:57 +08:00
Per yuyang041060120's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
yuyang041060120's recent replies
分享下我的开发流程

1. 早上来后,git pull 更新下代码
2. coding
3. 完成一个功能 git status -s 看下大致文件变动;偶尔会 git diff 瞅下内容变动,确保提交无误; 然后 git commit -am "add some component..."
4. 重复步骤 3. 漏提交或临时修改的会 git commit --amend
5. 下班前 git push
Aug 9, 2016
Replied to a topic by ericls JavaScript 我为什么赞成前后端以及 UI 分离
撇开业务谈技术架构都是耍流氓
抛开业务场景谈技术都是耍流氓
Jul 26, 2016
Replied to a topic by z42514 Android 请教一个 retorfit 与 json 解析的问题
Jul 26, 2016
Replied to a topic by z42514 Android 请教一个 retorfit 与 json 解析的问题
public class Backend<T> {
private int code;
private List<T> data;
private String msg;

public int getCode() {
return code;
}

public void setCode(int code) {
this.code = code;
}

public List<T> getData() {
return data;
}

public void setData(List<T> data) {
this.data = data;
}

public String getMsg() {
return msg;
}

public void setMsg(String msg) {
this.msg = msg;
}
}

public interface HttpService {
@GET("companies")
Call<Backend<Company>> getCompanies();

@GET("schedules")
Call<Backend<Schedule>> getSchedules();
}

public class HttpClient {
private static HttpService httpService = new Retrofit.Builder()
.baseUrl("http://192.168.1.24:8088/api/")
.addConverterFactory(GsonConverterFactory.create())
.build()
.create(HttpService.class);


public static List<Company> getCompanies() {
try {
return httpService.getCompanies().execute().body().getData();
} catch (IOException e) {
e.printStackTrace();
return null;
}
}

public static List<Schedule> getSchedules() {
try {
return httpService.getSchedules().execute().body().getData();
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
}
Jul 12, 2016
Replied to a topic by yatessss 程序员 基于 Vue 的知乎日报移动 web 版
给你点个赞
我感觉我目前的公司真是良心企业,每个月底发当月工资。整个氛围还比较轻松,不靠加班拼产量,大部分员工来自趋势,文化真的不错。
angular1.x 已死
还在鼓吹的我就呵呵了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4156 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 04:16 · PVG 12:16 · LAX 21:16 · JFK 00:16
♥ Do have faith in what you're doing.