Hackers & Painters by Paul Graham

Computer programs are all just text. And the language you choose determines what you can say. Programming languages are what programmers think in.


Good hackers develop a habit of questioning everything.


The computer world is like an intellectual Wild West, where you can think anything you want, if you're willing to risk the consequences.


Alberti, arguably the archetype of the Renaissance Man, writes that "no art, however minor, demands less than total dedication if you want to excel in it."


If I could go back and give my thirteen year old self some advice, the main thing I'd tell him would be to stick his head up and look around.

 

Kids are sent off to spend six years memorizing meaningless facts in a world ruled by a caste of giants who run after an oblong brown ball, as if this were the most natural thing in the world. And if they balk at this surreal cocktail, they're called misfits.


We're up against a hard one here. The cause of this problem is the same as the cause of so many present ills: specialization. As jobs become more specialized, we have to train longer for them. Kids in pre-industrial times started working at about 14 at the latest; kids on farms, where most people lived, began far earlier. Now kids who go to college don't start working full-time till 21 or 22. With some degrees, like MDs and PhDs, you may not finish your training till 30.


I was taught in college that one ought to figure out a program completely on paper before even going near a computer. I found that I did not program this way. I found that I liked to program sitting in front of a computer, not a piece of paper. Worse still, instead of patiently writing out a complete program and assuring myself it was correct, I tended to just spew out code that was hopelessly broken, and gradually beat it into shape. Debugging, I was taught, was a kind of final pass where you caught typos and oversights. The way I worked, it seemed like programming consisted of debugging.

For a long time I felt bad about this, just as I once felt bad that I didn't hold my pencil the way they taught me to in elementary school. If I had only looked over at the other makers, the painters or the architects, I would have realized that there was a name for what I was doing: sketching. As far as I can tell, the way they taught me to program in college was all wrong. You should figure out programs as you're writing them, just as writers and painters and architects do.

Realizing this has real implications for software design. It means that a programming language should, above all, be malleable. A programming language is for thinking of programs, not for expressing programs you've already thought of. It should be a pencil, not a pen. Static typing would be a fine idea if people actually did write programs the way they taught me to in college. But that's not how any of the hackers I know write programs. We need a language that lets us scribble and smudge and smear, not a language where you have to sit with a teacup of types balanced on your knee and make polite conversation with a strict old aunt of a compiler.


You learn to paint mostly by doing it. Ditto for hacking.


Programs should be written for people to read, and only incidentally for machines to execute.


Plans are just another word for ideas on the shelf. When we thought of good ideas, we implemented them.


Someone graduating from college thinks, and is told, that he needs to get a job, as if the important thing were becoming a member of an institution. A more direct way to put it would be: you need to start doing something people want. You don't need to join a company to do that. All a company is is a group of people working together to do something people want. It's doing something people want that matters, not joining the group.


If you're in a job that feels safe, you are not going to get rich, because if there is no danger there is almost certainly no leverage.


Wealth is what people want. If you plan to get rich by creating wealth, you have to know what people want.


You get paid by doing or making something people want, and those who make more money are often simply better at doing what people want.


Programming languages are just tools, after all.


When you're writing software that only has to run on your own servers, you can use any language you want. When you're writing desktop software, there's a strong bias toward writing applications in the same language as the operating system.


There is even a saying among painters: "A painting is never finished. You just stop working on it." This idea will be familiar to anyone who has worked on software.

源码直接下载地址: https://pan.quark.cn/s/a4b39357ea24 泛微OA e-cology 8 版本的最新webservice接口文档概述 泛微OA e-cology 8 版本的最新webservice接口文档中包含了一系列webservice接口,这些接口可用于对系统内的文档执行多种操作,例如文档的建立、移除、变更以及检索等。通过webservice进行调用,这些接口能够支持对文档进行有效的管理和操作。 文档webservice接口的配置 安装并应用文档webservice接口前,必须先将其配置到服务器环境中。配置阶段需要在services.xml文档内嵌入相应的配置代码,涵盖服务标识、命名空间、服务类别、实现类别等关键信息。配置完成后,应重新启动相关服务,确保新设置得以生效。用户可通过浏览器输入webservice接口的路径地址,验证部署操作是否顺利完成。 文档webservice接口的功能集 文档webservice接口提供了多种功能方法,旨在实现对文档的多样化操作。这些方法具体包括: * login:执行用户登录验证,并输出登录会话代码 * createDoc:依据提供的文档数据结构创建新文档 * updateDoc:依据文档数据结构对现有文档进行修改 * deleteDoc:根据文档的唯一标识符删除特定文档 * getDoc:检索文档数据结构,依据文档的唯一标识符获取文档信息 * getDocCount:统计并返回用户具备访问权限的文档总数 * getList:检索并返回用户具备访问权限的文档数据结构集合 文档对象 文档对象构成了文档webservice接口的核心部分,其中封装了文档的全部相关数据。文档对象的属性集包含: * 文...
内容概要:本文详细介绍了基于物理信息神经网络(PINNs)求解欧拉-伯努利(Euler-Bernoulli)双梁正问题的PyTorch实战方法,通过Python代码实现,将结构力学中的偏微分方程作为物理约束嵌入深度学习模型,利用神经网络自动满足控制方程与边界条件,从而实现对双梁系统变形行为的高精度建模与求解。该方法摆脱了传统数值方法对网格划分的依赖,具备强泛化能力与求解灵活性,尤其适用于复杂边界条件和连续介质力学问题的智能仿真。文中重点解析了损失函数的设计原理,涵盖方程残差、初始条件与边界条件的加权融合,并提供了可复现的代码架构,便于进一步拓展至其他多物理场耦合问题。; 适合人群:具备一定深度学习基础、熟悉PyTorch框架,并掌握结构力学或偏微分方程基本概念的研究生、科研人员及从事智能计算与工程仿真的技术人员。; 使用场景及目标:①应用于土木、机械等领域中梁结构的静动力响应分析;②推动数据驱动与物理模型融合的科学机器学习(SciML)技术发展;③为复杂工程系统的无网格化、智能化仿真提供新范式。; 阅读建议:建议读者结合提供的代码逐模块调试,深入理解物理约束项在损失函数中的数学表达与实现逻辑,并尝试更换材料参数、边界条件或扩展至非线性梁模型以增强实际应用能力。
已经博主授权,源码转载自 https://pan.quark.cn/s/a4b39357ea24 “黑马程序员测试题部分答案”包含了在学习编程期间可能遭遇的各类测试题目及其解析,这些内容主要源自于“黑马程序员”这一享有声誉的IT教育机构所提供的教程资源。这些测试题目的解析,其目的在于协助学习者评估自身的学习成效,强化编程基础,并攻克他们在学习阶段所面临的挑战。 “或许能对您带来益处,系个人创作。”此话语暗示了这份资料是由个人或集体在借鉴黑马程序员教学内容的基础上进行汇编的,其中可能融入了个人化的见解和归纳。它并非正式的教材,但作为辅助学习的材料,或许能提供一种不同于官方的解题视角或更贴近实际操作的应用方法,对于独立学习者而言具有特别的参考价值。 “答案”与“黑马”这两个标签,分别指向了这份资料的核心要素和出处。"答案"表明这是针对某些特定问题或测试的回应,能够帮助学习者验证其认知程度,迅速定位错误,从而节省自行摸索的时间。“黑马”则指明这份资料与“黑马程序员”这一教育品牌存在关联,意味着其内容或许涉及该机构课程中的核心知识点,具备一定的权威性和系统性。 【压缩包子文件的文件名称清单】:“itheima”或许是一个文件夹的名称,通常在压缩文件中代表一个包含多个关联文件的集合。在解压之后,里面可能存放着多种文件格式,例如PDF、TXT、DOCX等,这些文件可能涵盖了编程语言的练习题、代码范例、解题过程以及相关概念的解释。例如,里面可能有针对C++、Java、Python等编程语言的题目剖析,数据库查询的解答,还可能涉及数据结构、算法、操作系统、网络等计算机科学的基础理论。 借助这份资料,学习者能够有针对性地查询自己在学习过程中遇到的疑惑,例如,倘若在理解面向对象编程时遇到阻碍...
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值