TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What are the “best” logging practices to learn for a Junior Developer?

2 点作者 halvardssm超过 6 年前
A short while ago I read in the comment section of an article here on HN regarding things to ask before joining a startup as a developer. The article itself was fairly interesting, but the comment section was booming about logging practices. So my questions are, from a Junior Developers stand, what is considered good logging? How often should I commit? What do I commit in regards to big changes, and what do I commit if there is only a typo correction? What and where are good ways to learn about this if my current job does not practice this?

1 comment

paktek123超过 6 年前
Got a bit confused about terminology, I normally call putting a message in a log file &quot;logging&quot; but here you are referring to &quot;source control&quot; I believe.<p>I think it varies from company to company, some are more strict that others. Big changes you write a brief summary, leave a line and write a full on description. Small changes a small one line message is enough. Both can reference a ticket too. For pull requests, always squash your commits to one commit and make that as descriptive as possible (if required).
评论 #18540711 未加载