分享

有哪些事情是程序员都知道,但大多数人不知道的?

 天然书库 2015-03-23

What are some things that programmers know, but most people don't?

问:有哪些事情是程序员都知道,但大多数人不知道的?




Try telling this to a normal person: 'A parent may kill its children if the task assigned to them is no longer needed.'

试着把这句话告诉一个正常人:“分配给孩子的任务已不再需要时,父母会杀了他们的孩子。”(北理时间:分配给子进程的任务已不再需要时,父进程会终止其子进程。)


'Programming' is thinking, not typing. Most of programming is spent sleeping, walking around, staring out the window, or doing anything else that helps you relax and think.

“编程”在于思考,而不是敲键盘,编程过程中的大部分时间会用于睡觉,散步,凝望窗外,或者任何有助于放松和思考的事情上。


Most of the hacking scenes in movies are complete bullshit.

电影中大部分的黑客场景完全就是胡扯。


That about 25% of the hours spent writing an application are spent figuring out ways the end user will do something wrong.

编写应用程序时,大概有四分之一的时间会用于思考最终用户会怎么瞎搞。


Counting starts from zero, not one.

计数从0开始,而不是1。


Under the hood, most critical software you use every day (like Mac OS X, or Facebook) contains a terrifying number of hacks and shortcuts that happen to barely fit together into a working whole. It would be like taking apart a brand-new 747 and discovering that the fuel line is held in place by a coat-hanger and the landing gear is attached with duct tape.

大部分你每天接触的重要软件,比如苹果操作系统(Mac OS X)或者Facebook,内部代码都包含超多不规范的奇技淫巧,整个系统拼在一起还恰好能用。这就像是拆开一架崭新的747客机,然后发现燃料管线是由衣架固定住的,而起落架是用布基胶带加固的一样。


That Windows desktop's 'Refresh' button is not some magical tool which keeps your computer healthy.

Windows桌面的“刷新”按钮,不是什么能让你电脑保持良好运行状态的神奇工具。


What does a desktop refresh actually do? Refreshing the desktop simply redraws the icons on the desktop. That's it! It doesn't refresh the RAM. It doesn't clean your PC. It doesn't refresh your computer the way it refreshes you when you wake up from a nap. Refreshing the desktop has absolutely no effect on the performance of the computer.

那么,刷新桌面到底是干什么的呢?刷新桌面就是刷新一下桌面上的图标。然后就没有然后了!它不会刷新RAM,不会清理你的电脑,也不会像小睡令你神清气爽一样,让你的电脑焕然一新。刷新桌面对电脑性能一点影响都没有。


Computers can't actually generate a truly random number.

电脑其实无法生成一个真正的随机数。(北理时间:^_^)


When you empty the trashcan, the files are not deleted.

When you format your hard drive, the files are not deleted.

Murphy was right.

清空回收站并不会删除文件。

格式化硬盘也不会删除文件。

墨菲是对的。(北理时间:墨菲定律——如果一件糟糕的事情有可能发生,就一定会发生。)


Your desktop computer can run advanced programs for free that used to be available only to big companies for $100,000. Like Unix, virtual machines and SQL servers.

The Cloud simply means someone else's computer.

That Office documents are actually ZIP files.

以前大公司花上十万美元才能使用的高级程序,比如Unix操作系统,虚拟机和 SQL服务器,你的台式机现在都可以免费运行。

简单来说,云端就是别人的电脑。

Office文档实际上都是ZIP文件。


Programmer is not a PC Repair Man.

Programmer is one who deals with algorithms and design principles, not the one who repairs computer.

程序员不是电脑修理工。

程序员是处理算法、设计原理的,不是修电脑的。









    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多