[2025-05-26] Differences between working in companies and working for myself, Node.js tips / 在公司工作和为自己工作的差别,Node.js的一些小记录

Work Attitude

After decades of working in companies, it is a little to switch mode to working for myself.
I have to define the scope of work. I have to list my works clearly, and set proper priorities. Nobody would do such things for me as in companies.
I have to make the whole plan by myself, and try to stick to it. While in companies, there would always be deadlines. That was hard sometimes, but having a clear date sometimes was kind of relaxed.
What matters most is the efficiency. While working in companies, I would try to relax during works, while waiting for codes being compiled, going to bathroom, waiting for others for conference, etc. But working for myself is completely different. I would feel guilty if I wasted some time. While, I think both are not quite good.

Node.js

Use polling to get database updates. Use Redis as a message queue for multiple threads — well, I think that should be multiple processes.
JavaScript truly is more interesting than C++.

Related Platforms

(Github Issues) / (Notion) / (Blog)

Advertisement

(A website to optimize your resume and to boost your career: Nonpareil.me)


工作态度

在公司里做了好多年,现在转为自己工作,还有些不太适应。
我需要自己定义工作范围,列出工作内容,并且排好优先级。在公司里往往有其它人先把这些事情做好了。
我需要自己排定工作计划,并且严格执行。在公司里时会有deadline,虽然有时候很辛苦,但是其实有明确的时间和日期限制会轻松很多。
最大的差别在于效率。在公司工作时,我会在一些空闲时间放松和休息,比如代码编译的时候,去洗手间,会议开始前的等待,等等。但是为自己工作时,浪费一点时间就会觉得很有罪恶感。可能两种做法都有点极端。

Node.js

用轮询查询数据库更新内容。用Redis作为消息队列,来实现多线程——实际上我觉得就是多进程。
JavaScript确实比C++有趣得多。

相关平台

(Github Issues) / (Notion) / (Blog)

推广

(优化简历,助力职场:Nonpareil.me)

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部