在看完《Programming in Lua》之后

        大概是从四月中旬开始吧,突然间想学Lua了。当时考虑到的是现在很多公司对脚本语言开发人员需求比较高,朋友出去面试的时候也确实有很多公司是需要Lua开发人员。考虑的是Lua脚本开发快,更新方便。抱着提升自己的目的,便开始了Lua的学习,也就开始了看《Programming in Lua》,当时想搞程序开发最终都要看英文资料的,所以突发奇想的直接看英文版了。说实话,看英文版挺吃力的,主要是有一些术语不清楚,实在是不好怎么理解,有些地方就是硬着头皮去看的。

        也不知道是好习惯还是坏习惯,我看书喜欢写笔记,总感觉写下来才能记得住,所以是边看书便记,感觉看完了这本书都把这本书翻译下来了。虽说觉得是写下来能记得住,但是现在真的回过头去回想回想自己看过的,有些还是记得不太清楚,但不管怎样吧,这本书的第一遍是这样看完了。既然想学这门语言,那么之后再看这本书应该是不可避免的了。

        看书的过程中也在想,自己的心态还是有点急躁,总想什么都懂什么都会,看到别人的优秀经常会感到自卑:为什么我不懂的地方那么多呢?因为这种心态,也确实影响到了自己看书、学习、工作的过程,有的时候总想把什么都学会,当想学某种语言,想提升自己的时候总会花很多的时间去找各种资料,好像书堆得高了,电子书下得多了便能很快的学好某样东西,但事实上真的有这么多时间来消化这些嘛?从这次看这本Lua手册的过程中也体会到了这点,经常会或多或少的给自己安排阅读任务,一天要看完多少的内容,有的时候来不及看了那么会想着要赶进度而看的马虎。事后想想,虽然书的页码是翻过去了,但是书上的内容真的理解了么?等将来因为这个内容点的不熟悉而影响了工作或啥的,再花额外的时间来弥补是得不偿失,何不现在慢一点来,扎扎实实的走,打好了基础那么以后将会是轻松的。正是因为觉得这种心态的不合理,所以也就会以多花时间慢慢来来告诫自己。自己真是一个矛盾的人,有的时候明知道以某种方式对待生活是不好的,但还是会不知不觉的以这种不好的方式来生活,然后又在事后自己苦恼,感觉过得挺矛盾的。

       诶,也许习惯不是一时半会能改正的,用劝导自己的话来说:多花时间慢慢来。时时刻刻的劝导自己告诫自己,看书、学习、工作,都是不能因为急躁而马虎,当日后因为马虎而要做纠正的时候,花的时间只会是更多。也许我还年轻,今年22岁,说时间还有很多这是可以的,所以我学习工作都不能因为急躁而马虎;但说时间不够也是可能的,因为时间总是过得很快,当以时间还有很多为理由而懈怠了,那将会是很危险的。我总是一个矛盾的人,明知道有些事该做有些事不该做,但总是容易反着来,所以就需要时时刻刻来告诫自己,大笑

       当然我也很开心,我看完了一本书,花了时间学习了,我写了笔记,记录了点滴。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
When Waldemar, Luiz, and I started the development of Lua, back in 1993, we could hardly imagine that it would spread as it did. Started as an in-house language for two specific projects, currently Lua is widely used in all areas that can benefit from a simple, extensible, portable, and efficient scripting language, such as embedded systems, mobile devices, the Internet of Things, and, of course, games. We designed Lua, from the beginning, to be integrated with software written in C/C++ and other conventional languages. This integration brings many benefits. Lua is a small and simple language, partly because it does not try to do what C is already good for, such as sheer performance and interface with third-party software. Lua relies on C for these tasks. What Lua does offer is what C is not good for: a good distance from the hardware, dynamic structures, no redundancies, and ease of testing and debugging. For these goals, Lua has a safe environment, automatic memory management, and good facilities for handling strings and other kinds of data with dynamic size. Part of the power of Lua comes from its libraries. This is not by chance. After all, one of the main strengths of Lua is its extensibility. Many features contribute to this strength. Dynamic typing allows a great degree of polymorphism. Automatic memory management simplifies interfaces, because there is no need to decide who is responsible for allocating and deallocating memory or how to handle overflows. First-class functions allow a high degree of parameterization, making functions more versatile. More than an extensible language, Lua is also a glue language. Lua supports a component-based approach to software development, where we create an application by gluing together existing high-level components. These components are written in a compiled, statically-typed language, such as C or C++; Lua is the glue that we use to compose and connect these components. Usually, the components (or objects) represent mo
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值