• 欢迎访问BruceOu的博客,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏本章吧


杂记 BruceOu 2年前 (2020-04-21) 320次浏览 0个评论


10 ways to improve your programming skills

1. Learn a new programming language学习一门新的编程语言

Learning new programming languages will expose you to new ways of thinking; especially if the new language uses a paradigm which you aren’t yet familiar with. Many of the ways of thinking that you will learn can be applied to languages that you already know, and you might even want to start using the new language for serious projects as well.

Good languages providing a great educational experience (but not necessarily limited to that) include any Lisp (Scheme is good), Forth,PostScript or Factor (stack-oriented programming languages), J (wonderful array programming language), Haskell (strongly typed purely functional programming language), Prolog (logic programming) and Erlang (concurrent programminggoodness).
良好的语言提供了良好的教育体验(但不一定仅限于此)包括任何Lisp(Scheme是想到那个出色)、Forth、PostScript或Factor (基于堆栈的编程语言)、J(出色的数组编程语言)、Haskell(强类型的函数式编程语言)、Prolog (逻辑编程)和Erlang (并行编程)。

2. Read a good, challenging programming book阅读一本优秀的、具有挑战性的编程书籍

A lot can be learnt from books. While practice is important, reading one of the really good andchallenging programming books can be a great way to challenge your thinking and even move it up by a level. Such challenging books would include The Art of Computer Programming (if you want areal challenge), Structure and Interpretation of Computer Programs (SICP), A Discipline of Programming or the famous dragon book.

You can go with less challenging books as well, but avoid books that are “for Dummies” and will teach you something “in 24 hours” or “in 21 days”; you will get very little out of such books in terms of improving programming skills.

3. Join an open source project加入一个开源项目

What are the advantages of joining an open source project? You will work with others (good thing in case you have only worked on personal projects before), and you will have to dig into, and learn to understand, an unfamiliar code base (which can be challenging).

You can find different projects on sites such as GitHub, Sourceforge, gitorious,BitBucket orOhloh.
你可以在网站上找到不同的项目,比如GitHub, Sourceforge, gitorious, BitBucket orOhloh。

4. Solve programming puzzles解决编程难题

You can always solve programming puzzles, and many such exist. Math oriented problems can be found at Project Euler, which is, probably, the most popular site for coding puzzles.
你总是可以解决编程难题,有很多这样的问题。在Project Euler中可以找到数学问题,它可能是最流行的编码谜题。

You should also try out code golf; a programming puzzle where programmers attempt to solve a given programming problem with the least amount of keystrokes. It can teach you many of the more esoteric and special features of the language, and you will have to think creatively about coding (and it is fun!).
你也应该试试去code golf;程序员试图用最少的步骤来解决一个给定的编程问题的编程难题。它可以教会你许多更深奥和特别的语言特性,你将不得不创造性地思考编码(这是很有趣的!)

Programming puzzles, mainly code golf, is found at codegolf.stackexchange.com.
代码编程难题,主要是code golf,在codegolf.stackexchange.com上找到。

5. Program编程

Start writing a program, from scratch. Design all of the architecture and implement it. Repeat.

Coding is best learned by coding. You will learn from your own mistakes, and finishing a project is motivating and much more fun than reading a book is.

6. Read and study code阅读并学习代码

Study famous software programs, such as the Linux kernel (be warned, it is huge). A good operating system for educational purposes is MINIX3. You can learn many new language idioms, and a thing or two about software architecture. Reading unfamiliar source code is daunting at first, but rewarding.

You can also increase your understanding of some API you use, or a programming language, by reading its implementation.

7. Hang out at programming sites and read blogs在编程网站上闲逛,阅读博客

Hanging out at different programming sites (such as forums and StackOverflow) will expose you to other programmers and at the same time, their knowledge.

Also, read blogs, maybe this (if you want) and preferably more. Good blogs are Joel on Software(although he doesn’t blog any more, jewels exist in the archives), Coding Horror and Lambda the Ultimate.
另外,阅读博客 (如果你想的话)或者是其他更多的东西。好的博客是在Joel软件(尽管现在不写博客,在历史记录中是能发现好的博文),Coding Horror和Lambda。

You should also follow news.ycombinator.com.

8. Write about coding写代码

Start writing about coding on a blog, even if it is just for yourself. You can also write answers on different Q&A sites, forums or you can write tutorials at some sites (e.g. DreamInCode). When you write about coding, you want to make sure that use the correct terminology and know the why in order to explain problems and techniques. It also lets you reflect on your own programming knowledge and improve your English language skills, which is important in programming.

9. Learn low-level programming学习基础的编程语言

Learning low-level programming and such languages is also useful for achieving a better understanding of the underlying machine. Check out C, and maybe even learn some processor’sAssembly language.

Learn how a computer executes a program and how an operating system works (at a high-level, at least). If you really want to go serious about low-level programming, you can read books on computer organization, operating systems, embedded systems, operating system driver development and so on (I’m reading such books at the moment).

10. Don’t rush to StackOverflow. Think! 不要急于去StackOverflow。要思考!

So you have a problem with your code and you have been trying to solve it for half a minute. What do you (hopefully not) do? Run over to StackOveflow. Don’t. Spend a good deal of time trying to solve the problem on your own, instead. Take a paper and a pencil, start sketching a solution. If that doesn’t work, take a short break to keep your mind fresh and then try again.

If after spending an hour (or some other considerable amount of time, depending on the size of the problem) of trying to solve the problem, then you might go over to StackOverflow, but think on your own first.

BrueceOu , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
喜欢 (1)
分享 (0)

表情 贴图 加粗 删除线 居中 斜体 签到


  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址