开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
今日推荐开源项目:《竖起flag flag-icon-css》
今日推荐英文原文:《How to Boost Your Coding and Typing Speed》
开源日报第841期:《竖起flag flag-icon-css》
今日推荐开源项目:《竖起flag flag-icon-css》传送门:项目链接
推荐理由:这个项目存储了来自全世界各个国家旗帜的 svg 图标(如果你试图挑战项目提供的小游戏,你会发现它们的数量多得吓人),还为它们各自设置了 css 类以便于通过类名直接使用,这些类会将元素的背景设置为国旗图标,当然项目也提供了 less 和 sass 版本。
开源日报第841期:《竖起flag flag-icon-css》
今日推荐英文原文:《How to Boost Your Coding and Typing Speed》作者:Melih Yumak
原文链接:https://medium.com/better-programming/how-to-boost-up-your-coding-typing-speed-e5c035a6eb3d
推荐理由:最起码,快捷键玩溜了肯定能写的更快

How to Boost Your Coding and Typing Speed

Increase Your Coding Speed

There might be a very good project you want to build, and if you want to finish it faster than usual, you might want to increase your coding speed.

Think before you write code

Thinking beforehand about what you want to solve or accomplish might be the most important thing you can do before starting to write code. Take your time and try to understand what you need to build and what the key points you want to achieve in your code are.

Thinking before writing any code will let you make fewer mistakes. When you understand what the problem is exactly, you can spend less time thinking about the next steps while you code.

There is a very famous quote from Albert Einstein:
“If I had an hour to solve a problem I’d spend 55 minutes thinking about the problem and five minutes thinking about solutions.”

Increase Your Typing Speed

Increasing your typing speed has a great impact on increasing your coding speed. If you get used to your computer’s keyboard, you can use it faster. Practicing is very important to get used to your keyboard.

There are some practicing applications you can use to try to improve your keyboard skills, for instance, keybr.com. There are some practices you can apply through that website. Finish them and see the progress of your typing speed.

There are some charts that help you use all your fingers for certain areas. That might be hard to apply at the beginning, but sooner or later you will start writing much faster than you used to.

Get used to your IDE

Try to understand the shortcuts of your favourite IDE. That will boost your typing speed a lot.

Below are some popular IDE shortcut lists. Try to use them often to increase your typing speed.
  • VSCode shortcuts(https://code.visualstudio.com/docs/getstarted/keybindings)
  • Vim shortcuts(https://vim.rtorr.com/)
  • Webstorm shortcuts(https://www.jetbrains.com/help/webstorm/mastering-keyboard-shortcuts.html)
  • Sublime shortcuts(https://www.shortcutfoo.com/app/dojos/sublime-text-3-win/cheatsheet)
  • Atom shortcuts(https://atom.io/packages/atom-shortcuts)
  • Brackets shortcuts(https://github.com/adobe/brackets/wiki/Brackets-Shortcuts)
If you feel you need to change the default shortcuts you’re used to, you can look at your IDE settings and change them as you want. Don’t be afraid of changing them as the key bindings are only there to help you.

Code as a hobby

Definitely one of the most important things you can do to increase your coding speed is practicing more and more.

There is something you can do that will definitely increase your typing and coding speed in a fun and good way: Find side projects you want to build and try to make them yourself. Search for what you want and build your application while you’re practicing.

Coding as a hobby also improves your knowledge of the code. If you have more experience in what you want to write, these practices will help you with your thinking about problems.

Practicing in your free time also enables you to see possible bugs and ways to solve your problem before they even exist.

Solve coding challenges

Solving coding challenges might help you with faster programming. Some of these challenges require a specific amount of time for the execution of your program.

Don’t forget: If your code works faster, you can test it faster, and that helps you build more robust applications.

Coding challenges also teach new algorithms and how to use them in your application. When you expand your knowledge about algorithms, you will definitely decrease your time thinking about what or how you need to build code.

You can find some of the online coding challenges below.
  • TopCoder(https://www.topcoder.com/challenges/?pageIndex=1)
  • Coderbyte(https://www.coderbyte.com/)
  • Project Euler(https://projecteuler.net/)
  • HackerRank(https://www.hackerrank.com/domains)
  • CodeChef(https://www.codechef.com/)
  • Exercism.io(https://exercism.io/)
  • Codewars(https://www.codewars.com/)
  • LeetCode(https://leetcode.com/)
  • SPOJ(http://www.spoj.com/)
  • CodinGame(https://www.codingame.com/)

Read open source project codes

Reading open source projects will definitely help you understand what’s behind those libraries and will enable you to use the same approaches as the project maintainers.

Attempt to understand what they have tried to achieve with their programming and try to use that in your daily programming skills.

You can start by searching the libraries you have used before or want to use in your next projects. Find the project source codes and try to understand how they work under the hood.

You can check GitHub trending projects and start looking around. If you want to improve on one of them, you might want to create a pull request for this library. Believe me, many developers like that other people see their code and improve it.
  • Github Trending Projects

Monitor your progress

You can monitor your progress by tracking your time. There are some great applications you can use, or you can write your own.

There is a popular coding process tracking application called Wakatime,

Tracking your progress will help you to understand your most efficient working style. You can keep track very easily by dividing your process by time periods and setting some goals for these projects. This will definitely give you more confidence in your coding habits.
下载开源日报APP:https://openingsource.org/2579/
加入我们:https://openingsource.org/about/join/
关注我们:https://openingsource.org/about/love/