语法糖(Syntactic Sugar),也叫糖衣语法,是英国计算机科学家彼得·约翰·兰达(Peter J. Landin)发明的一个术语。指的是,在计算机语言中添加某种语法,这种语法能使程序员更方便的使用语言开发程序,同时增强程序代码的可读性,避免出错的机会;但是这种语法对语言的功能并没有影响。
The one skill that separates bad programmers from good programmers is attention to detail. In fact, it’s what separates the good from the bad in any profession.
An experienced programmer can take two pieces of code that are slightly different and immediately start pointing out the differences.
As you study this book, and continue with programming, remember that anything worth doing is difficult at first.
At first, you will not understand anything. It’ll be weird, just like with learning any human language. You will struggle with words, and not know what symbols are what, and it’ll all be very confusing. Then one day BANG your brain will snap and you will suddenly “get it.” If you keep doing the exercises and keep trying to understand them, you will get it.
本文介绍了计算机语言中的语法糖概念,即那些使编程更加便捷、提高代码可读性的语法特性。文章强调了关注编程细节的重要性,并指出这是区分优秀程序员与普通程序员的关键。通过学习和实践,读者将逐渐理解这些细节并掌握它们。
841

被折叠的 条评论
为什么被折叠?



