编程
Vim实用技巧(第2版) 豆瓣 Goodreads
Practical Vim
9.8 (5 个评分) 作者: [英] Drew Neil 译者: 杨源 / 车文隆 人民邮电出版社 2016 - 11
Vim是一款功能丰富而强大的文本编辑器,其代码补全、编译及错误跳转等方便编程的功能特别丰富,在程序员中得到非常广泛的使用。Vim能够大大提高程序员的工作效率。对于Vim高手来说,Vim能以与思考同步的速度编辑文本。同时,学习和熟练使用Vim又有一定的难度。
本书为那些想要提升自己的程序员编写,阅读本书是熟练掌握高超的Vim技巧的必由之路。全书共21章,包括123个技巧。每一章都是关于某一相关主题的技巧集合。每一个技巧都有针对性地解决一个或一类问题,帮助读者提升Vim的使用技能。本书示例丰富,讲解清晰,采用一种简单的标记方法,表示交互式的编辑效果,可以帮助读者快速掌握和精通Vim。
本书适合想要学习和掌握Vim工具的读者阅读,有一定Vim使用经验的程序员,也可以参考查阅以解决特定的问题。
2023年7月26日 已读
哪怕我已经用 Vim 十年了,依然能在这书中学到很多,不过当然也有一些过时了,我在长评里维护下建议。
2023年7月26日 评论 现在是二〇二三年了,与时俱进地建议 - 现在,已经是 Neovim 的新时代了!直接用 Neovim 吧。留意下 http://neovim.io/doc/user/vim_diff.html 即可。如果已经会用 Vim,但又不知如何配置或是用什么插件比较好,盲荐尝试 LazyVim/LunarVim/AstroVim 这种懒人包。我自己一个一个插件地尝试安装,花了太多时间,有点后悔。或许直接上 LazyVim 这种大而全的「IDE」,以后再慢慢精简比较好。我自己不喜欢装太多插件,一来维护辛苦,二来 YAGNI,真正解决痛点的插件没那么多。让 Neovim good enough 即可,don't tinker it again and again。此外可以尽可能在 shell 或 Ex mode 把一些工作外包给外部命令,而不是装插件把它变成 Neovim 的一部分。比如我会用 :!black % 来格式化文件,而不是去装 black.nvim 插件。Neovim 的 Ex mode 也很强大的。 在这书学到的新快捷键或小 tip,可以用 Anki 记录。没必尝试一下记住全部,不重要的可以不学,主要是为了打破 unknown unknown 困境。以后有需要时可以快速 Google X 问题。 书里面介绍的插件基本有对应的 Lua 插件可以代替,特别是用 nvim-tree 代替 netrw,后者我亲自试了下,结论是真难用。 十二章里只有 \v 和 \V 有用,其他我都跳过不读,正则表达式则直接让 ChatGPT 代劳。 telescope.nvim 功能非常强大,可以代替传统的 buffers,files 跳转;据说也可以用 quickfix 汇总 grep 输出。 :shell 已经被 :terminal 代替了。 我的 dotfiles 可以参见 https://github.com/otakutyrant/dotfiles 里面的 Neovim;此外也可以加入 Telegram 上的 https://t.me/nvim_zh 中文群。
编程
程序设计实践 豆瓣
The practice of programming
作者: Brian W. Kernighan / Rob Pike 人民邮电出版社 2016 - 1
本书是计算机科学方面的经典名著,由计算机界极具影响力的两位专家Brian W. Kernighan和Rob Pike合著。书的内容围绕程序设计实践中的一系列问题展开,讲述对于程序员有共性的知识,以帮助各程序员写出更高效的程序。本书从排错、测试、性能、可移植性、设计、界面、风格和记法等方面,讨论了程序设计中既具有实际意义又具有广泛意义的思想、技术和方法。
本书值得每位梦想并努力成为程序员的人参考,值得每位计算机专业的学生和计算机工作者阅读,也适合作为程序设计高级课程的教材或参考书。
2021年6月18日 想读 据说对业务有帮助,比代码大全短小精简。
编程
Effective Python: 2nd Edition 豆瓣
作者: Brett Slatkin Addison-Wesley Professional 2019
Updated and Expanded for Python 3
It’s easy to start developing programs with Python, which is why the language is so popular. However, Python’s unique strengths, charms, and expressiveness can be hard to grasp, and there are hidden pitfalls that can easily trip you up.
This second edition of Effective Python will help you master a truly “Pythonic” approach to programming, harnessing Python’s full power to write exceptionally robust and well-performing code. Using the concise, scenario-driven style pioneered in Scott Meyers’ best-selling Effective C++, Brett Slatkin brings together 90 Python best practices, tips, and shortcuts, and explains them with realistic code examples so that you can embrace Python with confidence.
Drawing on years of experience building Python infrastructure at Google, Slatkin uncovers little-known quirks and idioms that powerfully impact code behavior and performance. You’ll understand the best way to accomplish key tasks so you can write code that’s easier to understand, maintain, and improve. In addition to even more advice, this new edition substantially revises all items from the first edition to reflect how best practices have evolved.
Key features include
30 new actionable guidelines for all major areas of Python
Detailed explanations and examples of statements, expressions, and built-in types
Best practices for writing functions that clarify intention, promote reuse, and avoid bugs
Better techniques and idioms for using comprehensions and generator functions
Coverage of how to accurately express behaviors with classes and interfaces
Guidance on how to avoid pitfalls with metaclasses and dynamic attributes
More efficient and clear approaches to concurrency and parallelism
Solutions for optimizing and hardening to maximize performance and quality
Techniques and built-in modules that aid in debugging and testing
Tools and best practices for collaborative development
Effective Python will prepare growing programmers to make a big impact using Python.
Head First HTML with CSS & XHTML 豆瓣
作者: Eric T Freeman / Elisabeth Freeman O'Reilly Media 2005
Tired of reading HTML books that only make sense after you're an expert? Then it's about time you picked up "Head First HTML with CSS & XHTML" and really learned HTML. You want to learn HTML so you can finally create those Web pages you've always wanted, so you can communicate more effectively with friends, family, fans and fanatic customers. You also want to do it right so you can actually maintain and expand your Web pages over time, and so your Web pages work in all the browsers and mobile devices out there. Oh, and if you've never heard of CSS, that's okay - we won't tell anyone you're still partying like it's 1999 - but if you're going to create Web pages in the 21st century then you'll want to know and understand CSS. Learn the real secrets of creating Web pages, and why everything your boss told you about HTML tables is probably wrong (and what to do instead). Most importantly, hold your own with your co-worker (and impress cocktail party guests) when he casually mentions how his HTML is now strict, and his CSS is in an external style sheet. With "Head First HTML with CSS & XHTML", you'll avoid the embarrassment of thinking Web-safe colors still matter, and the foolishness of slipping a font tag into your pages. Best of all, you'll learn HTML and CSS in a way that won't put you to sleep. If you've read a "Head First" book, you know what to expect: a visually-rich format designed for the way your brain works. Using the latest research in neurobiology, cognitive science, and learning theory, this book will load HTML, CSS, and XHTML into your brain in a way that sticks. So what are you waiting for? Leave those other dusty books behind and come join us in Webville. Your tour is about to begin.