開源日報 每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,堅持閱讀《開源日報》,保持每日學習的好習慣。
今日推薦開源項目:《箭頭來 cssarrowplease》
今日推薦英文原文:《Coding at Night》

今日推薦開源項目:《箭頭來 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/