开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
今日推荐开源项目:《箭头来 cssarrowplease》
今日推荐英文原文:《Coding at Night》
开源日报第934期:《箭头来 cssarrowplease》
今日推荐开源项目:《箭头来 cssarrowplease》传送门:项目链接
推荐理由:但凡是学习网页制作的人,都遇到过这样的问题——给你的下拉菜单或者别的什么加上一个小三角。这问题有不少方式可以解决,这个项目则提供了一个通用的 CSS 代码生成器来生成这些边缘附带小三角图案的元素,如果需要大量使用小三角的话可以在使用它快速生成代码的同时统一相关的代码格式。自己造轮子的确可以学到很多,但是有时候也需要这种现成的轮子来快速使用。
今日推荐英文原文:《Coding at Night》作者:Ohagorom Onyinyechukwu J
原文链接:https://medium.com/better-programming/coding-at-night-276875b562d2
推荐理由:关于那些深夜奋战在代码前的人

Coding at Night

Coding at night has been very effective for me

As a programmer, I generally prefer to start coding after dinner and into the wee hours of the morning before heading to sleep at almost all weekends. While working in the salon, which made me so tired during the day, I would spend the late nights learning to program. If you ask a random programmer when they do their best work, there’s a high chance they will admit a lot of it’s done late at night. Some earlier, some later. Some people are naturally not morning people, so they sleep till noon and work afternoons and late nights, still maintaining a healthy amount of sleep.

I love coding at night due to no constant interference when there’s nothing to disturb your aloneness. Coding during the day means having to deal with interruptions in the form of people, calls, texts, and life in general. But in the wee hours of the night, there is no one to disturb me, no social notifications to bug me, and I can code just the projects I want to.

The tranquility of the night is when the background noise of endless activity around you, like cars passing by, people talking, and whatnot, becomes completely muted, so much so I can have a pin-drop silence. If that is not the perfect atmosphere to work or chill, I don’t know what is. You might say that we can have a similar atmosphere in the daytime by using noise-cancelling headphones and getting your groove on listening to your favorite music.

But constantly listening to music on headphones should be avoided to keep your hearing sense in good health. It is actually recommended not to use headphones continuously for more than an hour and to take breaks in between. The quiet atmosphere at night actually feels a lot better for mentally stimulating tasks like coding.

The brain works best when it’s late at night because it turns out that late at night/really early in the morning, the brain gets tired enough that it can only focus on one task, not on multiple tasks. There will be flexible and creative thinking.

Studies have proven beyond doubt that night owls/early birds tend to be more intelligent and creative than others.

When you code at night, interacting with humans is at a minimum. There’s nothing better you can do than become a programmer. Not only will you not have to see people during the night because everyone’s asleep, but you can also avoid them during the day because you are asleep!

Again, coding at night always puts me in the flow: I start working on the problem with full focus, leaving behind the world around. At such wee hours, I am much more likely to get in the flow of things, developing the project without thinking about things happening around.

No matter the time you prefer to work, always keep in mind that developers need an adequate amount of sleep just like everyone else. If I don’t sleep, I tend to screw up more, so I always make sure that I have sufficient hours of sleep and a proper sleep schedule to prevent feeling burnt out and weakened during the day.

The core reasons I work at night or very early in the morning have to do with deep thoughts, flow, focus on one’s work.

The main lifestyle factors that affect coding at night are:
  • Freelancer or employee
  • Scholar of some sort
  • Have projects
  • Spouse and/or kids
A popular trend is to get up at 4:00 a.m. and get some work done before the day’s craziness begins, just to avoid distractions. You might ask, “what’s so special about the night?”

I think it runs down to the maker’s timetable, the tired brain, and the luminance of computer screens.

You might ask, “why do we perform our most mental work when the brain wants to sleep, and we do simpler tasks when our brain is at its sharpest and brightest?” Because being tired makes us better coders simply because when your brain tired, it has to focus. There isn’t enough leftover brainpower to afford losing concentration. Being tired makes you pointless enough that the task at hand is enough.

You might ask, “if I keep staring at a bright source of light in the evening, what happens?” Your sleep cycle gets delayed.

Programmers work at night because it doesn’t impose a time limit on when you have to stop working, which gives you a more relaxed approach. Your brain doesn’t keep looking for distractions, and a bright screen keeps you awake.

Plan. Break down your tasks. Get a timetable of what to do each day and keep doing it.

There’s magic in the nighttime. The peace and quietness, the internal serenity. There’s just you, your work, and an infinite abundance of time. You are alone.

As a society, we know that smart, talented people work at night. Often in a lonely place, they solve problems mere mortals could only dream of.

I hope this article will disclose to many people that a late-night work schedule is the key to creativity and productivity for many open source programmers.
下载开源日报APP:https://openingsource.org/2579/
加入我们:https://openingsource.org/about/join/
关注我们:https://openingsource.org/about/love/