In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article to share with you is about the big data to solve the bug 40 to improve programming skills small coup is what, Xiaobian think quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.
Here are 40 tips you can use to improve your programming skills.
Break large blocks of code into functions.
There are still problems left unsolved when you get off work. Please turn off your computer and look at it tomorrow.
YAGNI Principle (You Won't Need It): Write only about features that others ask you to write about. Don't predict the future, just complete development as quickly as possible. Code only the parts necessary to solve the problem at hand.
You don't need to know everything, and you don't need to know every framework. The best thing is to lay a good foundation. Before you start using a framework, learn more about the language, learn the basics (such as SOLID principles), or how to write clean code.
KISS Principle: The KISS principle states that most systems work well by keeping them simple rather than complex. While this is logical, it is sometimes difficult to do.
Don't think too much.
If you struggle with a problem or bug for too long, leave for a while and come back later. Often, the solution comes to mind on the way out of the office to the bathroom. When you are angry with a client or colleague, it is also recommended that you take a walk for a while, if you want to keep your job.
Learn to write useful tests and learn to use TDD (Test-Driven Development). TDD is a software development process that repeats the following short development cycles: write tests; run all tests; see if new tests run; write code; run tests; refactor code; repeat.
Solve the problem first, then write the code. Don't start programming when you're at a loss.
Don't memorize code, understand logic.
If you copy and paste a solution from Stack Overflow, make sure you understand it first. Learn how to use Stack Overflow properly.
If you want to learn, practice. Create examples and make them run, because learning by reading alone is not enough.
Study other people's code, and occasionally let others study yours. Pair programming and code review is a good idea.
Do not repeat the wheel.
Code is the best documentation.
Learn how to search. You need to have experience, read a lot, know what to look for.
The code you write will be maintained later by yourself or someone else, so write with your readers in mind and don't think of yourself as the smartest person. Write code like a story.
The best way to fix errors with Google is to copy and paste.
Don't give up, problems can always be solved. Bad times always pass.
Get some rest. The best way to solve problems is to give your brain a rest.
Learn to use software design patterns. Design patterns are solutions to common problems in software design. Each pattern is like a blueprint that you can customize to solve common design problems in your own code (remember, don't duplicate the wheel).
Use integrated tools and automation wherever possible.
Practice code kata: A code kata is a programming exercise that helps programmers improve their skills through repetition. For example, see codingdojo.org/kata/
Programming and reaching the interface level, not the implementation level. Dependency injection is necessary, see SOLID principles.
Refactoring--testing--refactoring. Refactoring is to rebuild and change existing code to improve its internal structure without changing its internal behavior.
Ask for help when necessary, don't waste time.
Practice makes perfect.
Although comments can sometimes help you, don't pay too much attention to them. Comments may be outdated.
Understand your own development environment and build a strong enough development environment, such as IntelliJ.
Reuse components.
When developing web apps, think about mobile and its associated power and bandwidth limitations.
Do not optimize or refactor code prematurely. It is important to make the minimum viable product as soon as possible.
Don't take inefficient shortcuts to save minutes. Every time you write code, you do your best.
Follow documentation standards.
Users are not technical people. Keep this in mind when developing the UI.
Frequent use of source code control systems such as GitHub or bitbucket, and frequent small commit updates.
Log is better than debug. Record all the key parts.
Maintain consistency when writing code. If you use a style, stick to it. If you are working with multiple people, use the same style as the entire team.
Don't stop learning, not just new languages or frameworks, but software development basics.
Finally, be patient and keep loving.
The above are the 40 small tricks to improve programming skills in solving bugs in big data. Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 268
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.