设计的英语名言
时间:2022-04-13 05:57 | 分类: 句子大全 | 作者:Thoughtworks | 评论: 次 | 点击: 次
设计的英语名言
1.关于创意的英文名言
Behind every successful man, there is a woman. And behind every unsuccessful man, there are two.
每个成功男人的背后,都有一个女人;每个不成功男人的背后,都有两个。
Success is a relative term. It brings so many relatives.
成功是一个相关名词,他会给你带来很多不相关的亲戚(联系)。
All for one, one for all.
人人为我,我为人人。
Children in backseats cause accidents. Accidents in backseats cause children.
后排座位上的小孩会生出意外, 后排座位上的意外会生出小孩。
″ Your future depends on your dreams.″ So go to sleep.
“现在的梦想决定着你的将来,”所以还是再睡一会吧。
.“Work fascinates me.“ I can look at it for hours!
工作好有意思耶!尤其是看着别人工作
″Hard work never killed anybody."?But why take the risk?
“努力工作不会导致死亡!”不过我不会用自己去证明。
The more you learn,the more you know, The more you know, the more you forget. The more you forget, the less you know. So why bother to learn?
学的越多,知道的越多;知道的越多,忘记的越多;忘记的越多,知道的越少,为什么学来着?
There should be a better way to start a day than waking up every morning. 应该有更好的方式开始新一天,而不是千篇一律的在每个上午都醒来。
2.英文个性格言
1. I love you not because of who you are,but because of who I am when I am with you.
我爱你,不是因为你是一个怎样的人,而是因为我喜欢与你在一起时的感觉。
2. No man or woman is worth your tears,and the one who is ,won't make you cry.
没有人值得你流泪,值得让你这么做的人不会让你哭泣。
3.The worst way to miss someone is to be sitting right beside them knowing you can't have them.
失去某人,最糟糕的莫过于,他近在身旁,却犹如远在天边。
4.Never frown,even when you are sad,because you never know who is falling in love with your smile.
纵然伤心,也不要悉眉不展,因为你不知是谁会爱上你的笑容。
5.To the world you may be one person,but to one person you may be the world.
对于世界而言,你是一个人;但是对于某人,你是他的整个世界。
6.Don't waste your time on a man/woman,who isn't willing to waste their time on you.
不要为那些不愿在你身上花费时间的人而浪费你的时间。
7. Just because someone doesn't love you the way you want them to,doesn't mean they don't love you with all they have.
爱你的人如果没有按你所希望的方式爱你,那并不代表他们没有全心全意地爱你。
8. Don't try to hard,the best things come when you least expect them to.
不要着急,最好的总会在最不经意的时候出现。
9.Maybe God wants us to meet a few wrong people before meeting the right one,so that when we finally meet the person,we will know how to be grateful.
在遇到梦中人之前,上天也许会安排我们先遇到别人;在我们终于遇见心仪的人时,便应当心存感激。
10. Don't cry because it is over,smile because it happened.
不要因为结束而哭泣,微笑吧,为你的曾经拥有
3.
Conceive:
"Whatever the mind of man can conceive and believe, it can achieve.” -W. Clement Stone
Design:
"Design is where science and art break even." - Robin Matthew
"Bad design is smoke, while good design is a mirror." — Juan-Carlos Fernàndez
Implement:
“The desire to implement the thoughts into actions is natural.” - Yajur Veda
"Plow, an implement that cries aloud for hands accustomed to the pen.” - Ambrose Bierce
Operate:
“We operate with nothing but things which do not exist, with lines, planes, bodies, atoms, divisible time, divisible space -- how should explanation even be possible when we first make everything into an image, into our own image!” - 尼采 Friedrich Nietzsche
4.有谁知道一些关于个性的英语名言
Do not, for one repulse, forgo the purpose that you resolved to effort. ( Shakespeare )不要只因一次挫败,就放弃你原来决心想达到的目的。
(莎士比亚) The man who has made up his mind to win will never say " Impossible".( Napoleon )凡是决心取得胜利的人是从来不说“不可能”的。(拿破仑) Miracles sometimes occur, but one has to work terribly for them. ( C. Weizmann )奇迹有时候是会发生的,但是你得为之拼命蒂努力。
(魏茨曼) There is no such thing as darkness; only a failure to see. ( Muggeridge )没有黑暗这种东西,只有看不见而已。(马格里奇) Time is a bird for ever on the wing. ( T. W. Robertson )时间是一只永远在飞翔的鸟。
(罗伯逊) If you do not learn to think when you are young, you may never learn. ( Edison )如果你年轻时不学会思考,那就永远不会。(爱迪生) A day is a miniature of eternity. ( Emerson )一天是永恒的缩影。
(爱默生) Morality may consist solely in the courage of making a choice. ( L. Blum )品德可能仅仅在于有勇气作出抉择。(布鲁斯) If there were less sympathy in the world, there would be less trouble in the world. ( O. Wilde )如果世界上少恍┩椋澜缟弦簿突嵘僖恍┞榉场?王尔德) Don't waste life in doubts and fears. ( Emerson )不要把生命浪费于怀疑与恐惧中。
(爱默生) The worst tragedy for a poet is to be admired through being misunderstood. ( J. Cocteau )对于诗人来说,最大的悲剧莫过于由于误解而受到钦佩。(科克托) Education is a progressive discovery of our own ignorance. ( W. Durant ) 教育是一个逐步发现自己无知的过程。
(杜兰特) In education we are striving not to teach youth to make a living, but to make a life.( W. A. White )教育不是为了教会青年人谋生,而是教会他们创造生活。(怀特) It is impossible to defeat an ignorant man in argument. ( W. G. McAdoo )在争论中是无法击败无知者的。
(麦卡杜) A long dispute means that both parties are wrong. ( Voltaire )持久的争论意味着双方都是错的。(伏尔泰) People generally quarrel because they cannot argue. ( Chesterton )通常人们是因为不会辩理才吵架的。
(切斯特顿) The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. ( Bernard Shaw )明白事理的人使自己适应世界;不明事理的人想使世界适应自己。(萧伯钠) As long as the world shall last there will be wrongs, and if no man rebelled, those wrongs would last forever. ( C. Darrow )只要世界还存在,就会有错误,如果没有人反叛,这些错误将永远存在下去。
(达罗)。
5.英语名人名言
·All things in their being are good for something. · 天生我才必有用。
· Difficult circumstances serve as a textbook of life for people. · 困难坎坷是人们的生活教科书。 · Failure is the mother of success. - Thomas Paine · 失败乃成功之母。
· For man is man and master of his fate. · 人就是人,是自己命运的主人。 · The unexamined life is not worth living. -- Socrates · 混混噩噩的生活不值得过。
-- 苏格拉底 · None is of freedom or of life deserving unless he daily conquers it anew. -Erasmus · 只有每天再度战胜生活并夺取自由的人,才配享受生活的自由。 · Our destiny offers not the cup of despair, but the chalice of opportunity. So let us seize it, not in fear, but in gladness. -- R.M. Nixon · 命运给予我们的不是失望之酒,而是机会之杯。
因此,让我们毫无畏惧,满心愉悦地把握命运 - 尼克松 · Living without an aim is like sailing without a compass. -- John Ruskin · 生活没有目标,犹如航海没有罗盘。-- 罗斯金 · What makes life dreary is the want of motive. -- George Eliot · 没有了目的,生活便郁闷无光。
-- 乔治 · 埃略特 · Towering genius disdains a beaten path. It seeks regions hitherto unexplored.-- Lincoln · 卓越的天才不屑走旁人走过的路。他寻找迄今未开拓的地区。
· There is no such thing as a great talent without great will - power. -- Balzac · 没有伟大的意志力,便没有雄才大略。 -- 巴尔扎克 · The good seaman is known in bad weather. · 惊涛骇浪,方显英雄本色。
· Fear not that the life shall come to an end, but rather fear that it shall never have a beginning. --J.H. Newman · 不要害怕你的生活将要结束,应该担心你的生活永远不会真正开始。 -- 纽曼 · Gods determine what you're going to be. -- Julius Erving · 人生的奋斗目标决定你将成为怎样的人。
-- 欧文 · An aim in life is the only fortune worth finding. -- Robert Louis Stevenson · 生活的目标,是唯一值得寻找的财富。-- 史蒂文森 · While there is life there is hope. · 一息若存,希望不灭。
-- 英国谚语 · Try not to become a man of success but rather try to become a man of value. -- A. Einstein · 不要为成功而努力,要为做一个有价值的人而努力。 -- 爱因斯坦 · You have to believe in yourself. That's the secret of success. -- Charles Chaplin · 人必须有自信,这是成功的秘密。
-- 卓别林 · Pursue your object, be it what it will, steadily and indefatigably. · 不管追求什么目标,都应坚持不懈。 · We must accept finite disappointment, but we must never lose infinite hope. -- Mattin Luther King · 我们必须接受失望,因为它是有限的,但千万不可失去希望,因为它是无穷的。
-- 马丁 · 路德 · 金 · Energy and persistence conquer all things. -- Benjamin Franklin · 能量加毅力可以征服一切。 -- 富兰克林 · Nothing seek, nothing find. · 无所求则无所获。
· Cease to struggle and you cease to live. -- Thomas Carlyle · 生命不止,奋斗不息。 -- 卡莱尔 · A thousand-li journey is started by taking the first step. · 千里之行,始于足下。
· Strength alone knows conflict, weakness is below even defeat, and is born vanquished. -- Swetchine · 只有强者才懂得斗争;弱者甚至失败都不够资格,而是生来就是被征服的。 -- 斯威特切尼 · The people who get on in this world are the people who get up and look for circumstances they want, and if they cannot find them, make them. -- Bernara Shaw · 在这个世界上取得成就的人,都努力去寻找他们想要的机会,如果找不到机会,他们便自己创造机会。
-- 萧伯纳 · A strong man will struggle with the storms of fate. -- Thomas Addison · 强者能同命运的风暴抗争。 -- 爱迪生 · He who seize the right moment, is the right man. -- Goethe · 谁把握机遇,谁就心想事成。
-- 歌德 · Victory won't come to me unless I go to it. -- M.Moore · 胜利是不会向我们走来的,我必须自己走向胜利。 -- 穆尔 · Man struggles upwards; water flows downwards. · 人往高处走,水往低处流。
· Man errs as long as he strives. -- Goethe · 失误是进取的代价。 -- 歌德 · The failures and reverses which await men - and one after another sadden the brow of youth - add a dignity to the prospect of human life, which no Arcadian success would do. -- Henry David Thoreau · 尽管失败和挫折等待着人们,一次次地夺走青春的容颜,但却给人生的前景增添了一份尊严,这是任何顺利的成功都不能做到的。
-- 梭罗 · A man can fail many times, but he isn't a failure until he begins to blame somebody else. -- J. Burroughs · 一个人可以失败很多次,但是只要他没有开始责怪旁人,他还不是一个失败者。 -- 巴勒斯。
6.给我提供一些英文版的名言警句
这是我给你找的关于爱情的名言警句,好好谢谢我把,呵呵,看不懂就别怪我了啊 Absence to love is what wind is to fire. It extinguishes the small; it inflames the great. (Roger de Bussy-Rabutin, French writer) \:v| j4s&Yj E 离别之于爱情好比风之于火,它能将小火熄灭,使大火熊熊燃烧。
(法国作家比西-拉比旦.R.) Every man is a poet when he is in love. (Plato ancient Creek philosopher) 服装设计,2007服装流行趋势,服装搭配,服装批发,外贸服装5Qp)pS*s V 每个恋爱中的人都是诗人。(古希腊哲学家 柏拉图) 国内最具影响力的专业服装论坛!提供专业服装品牌,服装批发,外贸服装、服装加盟,韩国服装,服装搭配等资讯,2007服装流行趋势,服装流行色,服装设计OZ3Y/S D,E$S+m First love is only a little foolishness and a lot of curiosity. (George Bernard Shaw) 初恋就是一点点笨拙外加许许多多好奇。
(英国剧作家 肖伯纳.G) 服装设计论坛|服装设计|服装图片|服装搭配|服装批发|服装品牌|外贸服装Y GMD)O%X$e Friendship is like earthenware: once broken, it can be mended; love is like a mirror: once broken, that ends it. (Josh Billings. American humorist) 友谊就像陶器,破了可以修补;爱情好比镜子,一旦打破就难重圆。(美国幽默作家比林斯 .J.) 服装设计论坛|服装设计|服装图片|服装搭配|服装批发|服装品牌|外贸服装4bCVe8mB%^4w 穿针引线服装论坛是国内最具影响力的专业服装论坛!提供专业服装品牌,服装批发,外贸服装、服装加盟,韩国服装,服装搭配等资讯,2007服装流行趋势,服装流行色,服装设计:pi ~(K1X(UDZ Friendship is love without his wings. (George Gordon Byron, Bdritish poet) 友谊是没有羽翼的爱。
(英国诗人 拜伦.G,G) o.S:}6U2@,U Gravitation is not responsible for people falling in love. (Albert Einstein, American scientist) )QJNPik4kx 并非地球引力使人坠入爱河。(美国科学家) The greater the power, the more dangerous the abuse. (Burke Edmund, British statesman) m5e@O w{-|权力越大,滥用职权的危险就越大。
(英国政治家 埃德蒙.B.) 服装设计论坛|服装设计|服装图片|服装搭配|服装批发|服装品牌|外贸服装%S;lDV+g)`-X 8}(?"F]x G+w!|"Yv The greatest of evils and the worst of crims is poverty. (George Bernard Shaw, British dramatist) 最大的恶和最凶的罪是贫穷。(英国剧作家 肖伯纳.G.) I love you not because of who you are, but because of who I am when I am with you. 我爱你,不是因为你是一个怎样的人,而是因为我喜欢与你在一起时的感觉。
No man or woman is worth your tears, and the one who is, won't make you cry. 没有人值得你流泪,值得让你这么做的人不会让你哭泣。 The worst way to miss someone is to be sitting right beside them knowing you can't have them. 失去某人,最糟糕的莫过于,他近在身旁,却犹如远在天边。
Never frown, even when you are sad, because you never know who is falling in love with your smile. 纵然伤心,也不要愁眉不展,因为你不知是谁会爱上你的笑容。 To the world you may be one person, but to one person you may be the world. 对于世界而言,你是一个人;但是对于某个人,你是他的整个世界。
Don't waste your time on a man/woman, who isn't willing to waste their time on you. 不要为那些不愿在你身上花费时间的人而浪费你的时间。 Just because someone doesn't love you the way you want them to, doesn't mean they don't love you with all they have. 爱你的人如果没有按你所希望的方式来爱你,那并不代表他们没有全心全意地爱你。
《风格的要素》中的编程格言
写在前面:
之所以翻译这篇文章,因为它与我之前关于如何/为什么要写出更易懂的代码的思考有很多关联,但更进一步的是,这篇文章直接指出了写作与编程在原则上的相似性,本质上他们都是一种面向人类的表达。
其次,本文的英文原文博客虽然已经关闭了,但在英文语境下的人们依然对这篇“著名”文章议论纷纷(Reddit, Medium, Ycombinator),一部分原因是本文中提到的 The Elements of Style / 《风格的要素》这本书在英语世界里举足轻重,加之绝大多数编程语言都是以英语为基础,人们对于这种表达的相似性理解起来会更加自然;相对在中文语境下,鲜有人从英文写作这样的角度出发解释这种清晰表达是一种基础能力的重要性。
最后,《风格的要素》也是非常值得一读的书,对如何写出更好的文章有所帮助。
The Programming Aphorisms of Strunk & White
《风格的要素》中的编程格言
It’s been the bane of English students and the bible of creative writing teachers since the second World War. It’s older than you are, meaner than you are, and presumably, built from sterner stuff than you are. This book has survived air raids and artillery shellings. Its simple lessons of thrift and economy have denuded the world of more bad writing, over the last 70 years, than the shutdown of Google Reader and Geocities combined. That is why The Elements of Style, by William Strunk and E.B. White, is a classic, and that’s why you’ll find a copy of this book (no thicker than the width of your finger) ensconced firmly in the “software” section of our bookshelf.
自二战以来,它就是英文学生的祸根和创造性写作教师的圣经。它比你更老,比你更刻薄,而且很可能比你更坚韧。这本书从空袭和炮火连天中生存下来。在这七十多年中,它关于精简节约的训导清理了这世界上太多的烂文章,甚至比关闭 Google Reader 和 Geocities 加起来还要多。这就是为什么这本由 William Strunk 和 E.B. White 所著的《风格的要素》如此经典,甚至你会发现,这就是为什么这本比你手指还要细的书的一份副本竟被我们摆放在书架关于“软件”的区域。
Of course, “Strunk and White”, as the book is usually called, has nothing to do with software (it was originally written in 1920) and everything to do with writing: grammar, composition, and style for users of the English language. But in its 100 pages this book has more to say about thecraftof software than many books you’ll find in the “Software” section of your local bookstore.
当然,这本经常被称为 “Strunk and White” 的书,确实跟软件没什么关系(它最早写于1920年),它所有内容都是关于写作的:语法、行文、和英文使用者的风格等。但在这100页中,这本书其实讲了很多关于软件技艺的道理,比你从你那的书店里“软件”区域中找到的许多书还要多。
2.12. Choose a suitable design and hold to it.
A basic structural design underlies every kind of writing programming. Writers Programmers will in part follow this design, in part deviate from it, according to their skills, their needs, and the unexpected events that accompany the act of composition. writing Programming, to be effective, must follow closely the thoughts of the writer programmer, but not necessarily in the order in which those thoughts occur. This calls for a scheme of procedure….in most cases, planning must be a deliberate prelude to writing programming. The first principle of composition software development, therefore, is to foresee or determine the shape of what is to come and pursue that shape
2.12 选一个适当的设计并保持下去
每一种 写作 程序都有一个基本的结构设计。 作家们 程序员们一方面力图遵循这种结构设计,一方面又会偏离它,这完全取决于他们的技巧、需要以及创作过程中出现的各种意外事件。 写作 程序要写得好,必须紧紧地顺着 作者 程序员的思路,但并不一定完全按照这些思路出现的先后顺序。这就需要一个规划……在大多数情况下, 创作 编程之前必须要有一个认真考虑过的计划。因此, 写作 软件开发的第一原则就是要预先考虑或确定将要写成的模样,并尽力为之。
A casual search-and-replace for “writing” with “programming” consistently yields paragraphs that might have been plagiarized, whole cloth, from Code Complete. Paragraphs like this one, which cautions the would-be writer programmer to design appropriately for the scale and complexity of the thing being built.
只消把“writing“全都替换为”programming“,这些段落就变成好像是从《代码大全》中抄袭改编的一样。像这样的段落,它提醒那些想成为作家的程序员适当地设计正在构建的东西的规模和复杂性。
5.3. Work from a suitable design.
Before beginning to compose develop something, gauge the nature and extent of the enterprise and work from a suitable design. Design informs even the simplest structure, whether of brick and steel or of prose. You raise a pup tent from one sort of vision, a cathedral from another. This does not mean that you must sit with a blueprint always in front of you, merely that you had best anticipate what you are getting into. To compose a laundry list, you can work directly from the pile of soiled garments, ticking them off one by one. But to write a biography, you will need at least a rough scheme; you cannot plunge in blindly and start ticking off after the fact about your subject, less you miss the forest for the trees and there be no end to your labors.
5.3. 从一个适当的设计着手
在开始 创作 开发某些东西之前,先衡量整件事的性质和范围并从一个适当的设计着手。设计是赋予哪怕最简单的结构以意义的,不论砖或钢或散文。你可以由某种想象搭建起小帐篷,也可以由另一种愿景建造一个大教堂。但这并不意味着你必须时刻坐在图纸前,它只是意味着你有了一个对于你着手要做的事情的最好预测。要撰写一个洗衣清单,你直接从一堆脏衣服开始,一件一件地勾掉即可。但要撰写一篇人物传记,你不能盲目莽撞地一开始也把要写的人物事迹一件一件地勾掉;你至少得有一个粗略的计划,以免见树不见林,最终劳而无功。
Or this, about the dangers of pet languages, non-standard libraries, young people, and drums. Chase it with a shot of Sailing to Byzantium for good measure.
还有这个,关于不成熟的语言、非标准库、年轻人和鼓噪声的危险。追求这些东西配点烈酒效果更佳。[译者注:Sailing to Byzantium可能指一种爱尔兰威士忌,作者这里的意思是不要被这些东西冲昏了头脑]
5.21. Prefer the standard to the offbeat
Young writers Inexperienced programmers will be drawn at every turn toward eccentricities in language. They will hear the beat of new vocabularies abstractions, the exciting rhythms of special segments of their society industry, each speaking a language of its own. All of us come under the spell of these unsettling drums; the problem for beginners is to listen to them, learn the words, feel the vibrations, and not be carried away.
5.21. 宁可标准不要另类
年轻的作家们 没经验的程序员们每一次都会被语言中的怪癖所吸引。他们听说了新奇的 词汇 抽象,像鼓点一样, 社会 行业中特定领域令人亢奋的节奏,每个人各说各话。我们所有人都忍受这些令人不安的鼓声的咒语。对于初学者来说,问题是要倾听、吸收那些词语,感受其脉搏,不要被带跑。
Sometimes the software interpretation rings even truer than the original meaning of the phrase:
有时候这种软件解释甚至比文本的原意更真实:
2.17. Omit needless words code
Vigorous writing programming is concise. A paragraph function should contain no unnecessary sentences statements, a sentence statement no unnecessary words expressions, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts. This requires not that the writer programmer make all paragraphs functions short, or avoid all detail and treat subjects only in outline, but that every word line of code tell.
2.17. 去除不必要的 词汇 代码
生动有力的 写作 程序需要简洁明了。 一幅画上不应该有多余的线条,一台机器不应该有多余的零件。同样的道理,一个 段落 函数不应含有不必要的 句子 语句,一个 句子 语句不应含有不必要的 单词 表达式。这并不是要求 写作者 程序员要把所有的 段落 函数写得很短,或者避免所有的细节只把主题当作主线;而是说,每 个字 行代码都表达了本意。
2.19. Write Express coordinate ideas in similar form
This principle, that of parallel construction, requires that expressions similar in content and function be outwardly similar. The likeness of form enables the reader to recognize more readily the likeness of content and function.
2.19. 用相似的形式 写出 表达对等的意思
平行结构这个原则要求内容及功能上相似的表述要表现地相似。这种形式上的相似性使读者能够更容易识别出功能和内容本身的相似性。
Sometimes the attempt to replace writing with programming yields new insights.
有时候把写作替换成编程还会产生新的见解。
5.9. Do not affect a breezy manner
The volume of writing source code is enormous, these days, and much of it has a sort of windiness about it, almost as though the author programmer were in a state of euphoria. “Spontaneous me,” sang Whitman, and, in his innocence, let loose the hordes of uninspired scribblers script kiddies who would one day confuse spontaneity with genius.
5.9. 不要肆意妄为
如今的 文章 源代码篇幅都很长,而且其中不少是夸夸其谈的,仿佛 作者 编程的人得了欣快症似的。Whitman赞颂“不由自主的自我”,却无意地怂恿了一批 平凡拙劣的作家 毫无创意的脚本小子,总会把自然的冲动当成天赋的才华。
What does it mean to have a “breezy” style as a programmer? A plausible definition might be coding things in the order they occur to you, or to the degree they interest you. It’s a great recipe for spaghetti or, for the true code gourmand, mud. But without being “breezy” it’s also important to:
一个程序员“肆意妄为”是什么意思?一个可能的定义是,想到什么就写什么,或者取决于对它们感兴趣的程度。这其实就是产生意大利面条式代码的原因[译者注:意大利面条指一种很难维护的代码风格],而对于真正的代码美食家来说,那就是一滩浆糊[译者注:很容易让人联想到大泥球]。同时,尽管不能肆意妄为,仍需注意的是:
5.2. Write Program in a way that comes naturally
Write Program in a way that comes easily and naturally to you, using words and phrases APIs and statements that come readily to hand. But do not assume that because you have acted naturally your product is without flaw.
5.2. 文章 程序要写得自然
文章 程序要写得自然流畅,要使用顺手易用的 单词和句子 APIs和语句。但不要以为只要顺畅自然就可以写出毫无瑕疵的作品。
The act of writing code is a simultaneous conversation with two different audiences: the compiler/interpreter, and the other programmers on your team, including the future version of yourself. Good conversationalists—good coders—know how to speak to both audiences naturally and without affect. They know how to achieve clarity…
编写代码这件事其实是在同时与两个截然不同的听众对话:一个是编译器/解释器,另一个是你团队中其他的程序员,包括未来的你自己。会聊天的人——优秀的编码者——懂得如何同时与这两个听众顺畅自然地对话而不被影响。他们懂得如何做到清楚明了…
5.16. Be clear.
Clarity is not the prize in writing programming, nor is it always the principle mark of good style. There are occasions when obscurity serves a literary programmer yearning, if not a purpose, and there are writers programmers whose mien is more overcast than clear. But since writing programming is communication, clarity can only be a virtue.
5.16. 要写得清楚明了
清楚明了并不是 写作 编程的目标,也不总是良好风格的原则。有时候晦涩朦胧可以满足程序员自己的某种情结,即使那并不是最终目的,并且有的 作家 程序员的风格更是风云变幻而非清晰明朗。不过既然 写作 编程是一种交流,那么清楚明了便是美德。
…without being verbose:
……不要太啰嗦:
5.11. Do not explain too much.
It is seldom advisable to tell all. Be sparing, for instance, in the use of adverbs code comments…Let the conversation code itself disclose the speaker’s manner or condition coder’s intention.
5.11. 不要解释过多
把话说尽是不可取的。比如尽量少用 副词 代码注释……让 对话 代码本身来显现 说话者的态度和状态 编码者的意图。
When we put on our “Bad Programmer” hats, on the other hand, we may not even be aware that the second audience, the human audience, exists. If we are aware it exists, we consider it secondary. In this state of temporary insanity, we might forget that, while part of our job is to talk to the compiler, the interpreter, and the toolchain, the bigger part of our job is to talk, through code, to our team members, maintainers, and stakeholders. Humans are the ultimate and primary audience for code. In that light, Strunk & White takes on new meaning and new relevance not just for coders, but for builders and creators of any stripe.
另一方面,当我们戴上“坏程序员”帽子时,我们甚至可能都不会意识到第二听众,即人类听众的存在。即使意识到了,我们也只是认为它是次要的。在这种短暂的失智中,我们也许忘了:尽管我们一部分工作是在与编译器、解释器和工具链交谈,但更多部分的是,通过代码,与我们团队成员、维护者和利益相关者们交谈。人类才是代码的终极听众。从这个角度来看,《风格的要素》不仅对写代码的人而且对各行各业的建造者和创造者都具有新的意义和联系。
文/ThoughtWorks 董强
翻译参考:
斯特伦克, 怀特, & 陈一鸣. (1992). 英文写作指南. 上海: 上海译文出版社.The Programming Aphorisms of Strunk & White | Coding the Wheel. (2015, February 23). Retrieved June 13, 2019, from https://web.archive.org/web/20150223232119/http://www.codingthewheel.com/archives/programming-aphorisms-of-strunk-and-white扩展阅读:
Coding: It’s Just Writing. (n.d.). Retrieved July 1, 2019, from https://blog.codinghorror.com/coding-its-just-writing/更多精彩洞见,请关注微信公众号:ThoughtWorks洞见