`
shaxquan
  • 浏览: 13744 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
最近访客 更多访客>>
社区版块
存档分类
最新评论

5 Ways You can Learn Programming Faster

阅读更多

1. 多看示例代码
阅读通常只是关于单词的,而学习编程则是关于代码的。当你第一次学习编程时,你应该确保多看,并试着理解每个例子。

2. 不要只是看,要动手运行
但是当你阅读编程手册时,你很容易在看到示例代码后对自己说:这个我会,就是这个意思。当然,你可能确实会,当时也有可能你没有完全理解。有个方法可以监测你是否真的会,那就是试着将这个例子重新做一遍,然后试着修改这个例子,你可以尝试修改,实验一些新的东西,看看会得出什么结果。

3.尽快编写自己的代码。
一旦你理解了编程语言的某个知识点,或者即使你仍旧对某个地方不是很理解,你也要开始编写自己的示例代码来使用这个知识点,刚开始你不用把你所知道的所有东西都加在里面。
你可以重新实现书中的示例代码,不要看书,自己把她写出来。

4.学会使用debugger
你越快学会debug, 你就会发现编程变得越容易。
一个dubugger允许你一行一行的执行你的代码,显示定义的变量的值,还会告诉你某个if语句是否执行了。
int main()
{
        int x;
        int y;
        if( x > 4 )  //x在这里的值是多少?
        {
                y = 5;   // 这条语句执行了吗?
        }
}

5.尽可能查找更多的资源
因特网上到处都有编程的教程,也有些非常好的教程。还有论坛,博客都是非常好的资源,好好利用这些资源,愿你的编程水平快速提高。

 

分享到:
评论

相关推荐

    《Hands-On GUI Programming with C++ and Qt5》---Author: Lee Zhi Eng .epub格式+code

    In the initial part of the book, you will learn what Qt 5 is and what you can do with it. You will explore the Qt Designer, discover the different types of widgets generally used in Qt 5, and then ...

    (珍贵资源)Object-Oriented Programming And The Objective-C Language

    object-oriented approach makes programs more intuitive to design, faster to develop, more amenable to modifications, and easier to understand. It leads not only to new ways of constructing programs,...

    Mastering The Faster Web with PHP, MySQL, and JavaScript 1st pdf

    After reading this book, you will know how to boost the performance of any Web application and make it part of what has come to be known as the Faster Web. What you will learn Install, confgure, and...

    Expert Angular

    You will learn how to work with asynchronous programming by using Observables. To easily build applications that look great, you will learn all about template syntax and how to beautify applications...

    High Performance JavaScript

    You’ll learn the best practices to build and deploy your files to a production environment, and tools that can help you find problems once your site goes live. Identify problem code and use faster ...

    JavaScript Cookbook

    Just copy and paste the code samples into your project — you’ll get the job done faster and learn more about JavaScript in the process. You’ll also learn how to take advantage of the latest ...

    BeagleBone.Black.Cookbook.1783982926

    Finally, the book finishes with a dramatic arc upward into outer space, when you explore ways to set up test recipes for building a project on board a small satellite's payload. Style and approach ...

    Metaprogramming Elixir(Pragmatic,2015)

    You'll extend Elixir with powerful features and write faster, more maintainable programs in ways unmatched by other languages. You'll start with the basics of Elixir's metaprogramming system and ...

    Effective Software Test Automation

    You can use this tool to generate test scripts for continuous unit testing, integration testing, and regression testing. Software defects are common and cause economic losses from time to time. ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    For example, if your header file uses the File class in ways that do not require access to the declaration of the File class, your header file can just forward declare class File; instead of having ...

Global site tag (gtag.js) - Google Analytics