第1章 封装信息到名字 (Packing information into names) 4 附加额外信息 1) encode value type 对于某些变量,附加额外的信息可以让人更好的理解,比如,一个16进制的变量,显然 hex_id 要比 id 更为贴切 string id; // Example: "af84ef845cd8" string hex_id; 2) encode value units 下面的 JavaScript 代码,乍看没有任何问题,但实际上…
Mac OS Visual Studio Code的扩展工具菜单中有Install command line的快捷安装 运行 VS code并打开命令面板( ⇧⌘P ),然后输入 shell command 找到: Install ‘code' command in PATH ,点击安装就行了. code命令还支持其他参数,具体看这里. 然后在终端中输入命令 code . 即可在 vs code 中打开当前文件夹. Windows 直接在命令行中输入 code .…