开发中mock什么意思

You don’t develop code. Code develops you.

您不开发代码。 代码可以帮助您发展。

During a recent lecture via Zoom in the Flatiron School software program, I attempted to crack-wise on the chat as my fellow students and I often do. I can’t exactly remember what prompted me, but I wrote:

在最近通过Flatiron School软件程序中的Zoom进行的一次演讲中,我试图像我的同学和我一样经常在聊天中进行细化。 我不记得是什么提示了我,但我写道:

“You don’t develop code. Code develops you.”

“您不开发代码。 代码可以培养您。”

Although I was trying to make a joke, this stuck with me. I believe it’s true, if you’re serious about learning how to code (well).

尽管我想开个玩笑,但这种想法一直困扰着我。 我相信这是真的,如果您认真学习如何编码(很好)。

What do I mean by “code develops you”? A few things come to mind, but the overarching truth about code development for me is:

“代码使您成长”是什么意思? 我想到了一些事情,但是对我来说,关于代码开发的首要真理是:

“A computer is literally as dumb as a rock. It literally needs to be told how to do EACH. AND. EVERY. LITTLE. THING.”

“一台计算机实际上就像一块石头一样愚蠢。 从字面上需要告诉每个人如何做。 和。 每个。 小。 事情。”

Because computers are dumb, it’s often necessary for you to break down a problem and its solution into smaller, simpler pieces to ensure your code will do what you want need. You also quickly learn how tedious, frustrating, aggravating, exasperating and humbling this process can be. Turns out, instructing a rock how to manipulate the DOM and persist changes in the back end can easily drive a person insane. I know. Trust.

由于计算机很笨,因此通常需要将问题及其解决方案分解为更小,更简单的部分,以确保您的代码能够满足您的需要。 您还可以快速了解该过程的繁琐,令人沮丧,加重,生气和挫败。 事实证明,指导某人如何操纵DOM并在后端保持持久的更改很容易使人发疯。 我知道。 相信。

In order to avoid going insane, I’ve had to develop myself in several key areas, many of which overlap and relate to each other:

为了避免发疯,我不得不在几个关键领域发展自己 ,其中许多领域相互重叠并相互联系:

Discipline (aka “Code like everyone one is watching?”)Unless you’re disciplined in structuring your application and writing your code, before you know it you’ll have thousands of lines in a jumble of files with comments few and far between. If you’re lucky enough to somehow get it working, fixing the inevitable bug will likely have you cursing yourself in the wee hours too many times. Let’s hope you’ll never need to add to or modify its functionality, or need to explain how it works to the poor soul tasked with maintaining it.

纪律处分(又名“每个人都在看代码吗?”)除非您受过结构化应用程序和编写代码的训练,否则在您不知不觉中,您会在成堆的文件中成千上万行,注释之间几乎没有距离。 如果您很幸运能够以某种方式使其正常工作,则修复不可避免的错误可能会使您在凌晨时分诅咒自己太多次。 我们希望您永远不需要添加或修改其功能,也不需要向负责维护它的可怜人解释它的工作原理。

Thoroughness (aka “Meet my nemesis: The Infamous Corner Case”)Just when you think the code demo is going flawlessly, in walks nobody’s friend, Corner Case (it’s telling that it’s also know as pathological case). Either due to your laziness, a bad assumption or an incomplete grasp of reality, one of these nasty buggers WILL decide to make its presence known, as it often does, AT THE WORST POSSIBLE TIME.

彻底性(又名“遇见我的敌人:臭名昭著的极端案例”)就在您认为代码演示正在顺利进行时,没有人知道它的朋友Corner Case (它也被称为病理案例 ) 。 由于您的懒惰,错误的假设或对现实的不完全掌握,这些令人讨厌的窃听者之一决定在最坏的可能时像通常那样使它的存在众所周知。

Clarity (aka The What, The How and sometimes, The Why)You need to be clear about the problem being solved and how to solve it (and sometimes, why to solve it), hopefully before you type your first line of code. If not, the risk is great that you’ll soon find yourself wondering: “What the f*ck is this function supposed to be doing? How the f*ck is it supposed to work? Why the f*ck am I up at 3AM?”

清晰度(又名“什么,什么,如何以及有时,为什么” ),希望在键入第一行代码之前就要解决的问题以及如何解决(有时,为什么要解决)的问题保持清楚。 如果不是这样,则冒着很大的风险,您很快就会发现自己在想: “此功能应该执行的功能是什么? f * ck应该如何工作? 我为什么要在凌晨3点起床?”

Efficiency (aka “Nobody’s got time for that”)One of the main selling points of these dumb rocks is that they can do stuff quickly, the same way every time, for a bazillion times in a row. Therefore, if we can save one step each loop, we will have saved ourselves and the dumb rock a bazillion steps. “A bazillion here, a bazillion there, and pretty soon you’re talking about real gigaflops.”

效率(又称“没有人有时间”)这些笨蛋的主要卖点之一是它们可以连续以每次相同的方式快速完成工作,连续进行数十亿次。 因此,如果每个循环都可以节省一步,那么我们将节省自己和笨拙的岩石的步伐。 “这里有一个亿万富翁,那里有一个亿万富翁,不久之后,您将谈论真正的千兆级软硬件。”

Perspective (aka “There’s got to be a better way”)Unlike loading a dishwasher, there are often several “right” ways to perform a task. Developing the ability and discipline to examine a problem from several angles will often lead to a better solution. The key is to explore your options before you charge ahead down a dead end path. (Yeah, I know, I usually do charge ahead, get stuck, curse, try to untangle the mess, cry, eat ice cream, delete everything, repeat…)

透视图(又称“必须有更好的方法”)与装入洗碗机不同,执行任务通常有几种“正确”的方法。 发展从多个角度检查问题的能力和纪律通常会导致更好的解决方案。 关键是您走入死胡同之前,先探索您的选择。 (是的,我知道,我通常会提前充电,卡住,诅咒,解开混乱,哭泣,吃冰淇淋,删除所有内容,重复…)

Pattern-recognition (aka “Have we met before?”)People have been telling dumb rocks how to do things for millenia, so it’s rare that a solution to your problem hasn’t already been told to a million dumb rocks long ago. The only things that have changed is that our dumb rocks are typically smaller, faster, cheaper and are powered by electrons rather than steam or some animal. So the ability to recognize a problem and a tried-and-true solution is valuable in that you’re not reinventing an inferior, bug-filled wheel, and therefore can spend more time sleeping, eating right and taking the occasional shower.

模式识别(又称“我们以前见过吗?”)人们一直在告诉哑石千禧世代如何做事情,因此很早以前就没有告诉过您解决问题的方法。 唯一改变的是,我们的笨蛋通常更小,更快,更便宜,并且由电子而非蒸汽或某些动物提供动力。 因此,识别问题和经过实践检验的解决方案的能力非常有价值,因为您无需重新发明劣质的,装满虫子的轮子,因此可以花更多时间睡觉,正确饮食和偶尔洗个澡。

Analogies and MetaphorsRelated to perspective and pattern-recognition, analogies and metaphors help me to visualize a problem and possible solutions using familiar everyday objects and situations. A recent favorite analogy is how a callback function is like a self-addressed, stamped envelope. The recipient of the envelope can be as dumb as a rock and the sender of the envelope will likely have returned what it needs (assuming the USPS is still functioning).

类比和隐喻与透视和模式识别相关,类比和隐喻帮助我使用熟悉的日常对象和情况来可视化问题和可能的解决方案。 最近最喜欢的一个类比是回调函数如何像一个自寻址的,带有标记的信封。 信封的接收者可能像石头一样傻,信封的发送者很可能已经退回了所需的东西( 假设USPS仍在运行 )。

K.I.S.S. (Keep It Simple, Stupid)Computers are dumb as rocks. The more complex your code, the more likely it will be that errors will creep in as you try to explain a complex operation to a dumb rock. Did I mention that computers are literally as dumb as rocks?

KISS(保持简单,愚蠢)计算机愚蠢如磐石。 您的代码越复杂,当您尝试向笨拙的对象解释复杂的操作时,错误就越有可能蔓延。 我是否提到计算机字面上像石头一样愚蠢?

The Perfect vs. The Functional (aka “If it ain’t broke…”)I don’t know about you, but sometimes when I notice a small thing that’s just not right, I’d like to ignore it… BUT IT’S NOT PERFECT. Most times, making it “perfect” doesn’t come back to bite me in the ass, but when it does, it’s typically AT THE WORST POSSIBLE TIME.

完美与功能性(又名“如果还没有破裂……”)我不了解您,但是有时当我发现一件不对劲的小事时我想忽略它…… 但并非如此完善。 在大多数情况下,使它“完美”并不会使我陷入困境,但是当它恢复正常时,通常是在最糟糕的时候。

Reduce, Reuse, Recycle (aka “Laziness is a virtue”)Related to pattern-recognition, it’s best not to attempt to create a “better” mousetrap. The mousetrap has been around so long that the design has been optimized, debugged and improved by legions of better and more experienced mousetrap developers and “tested” on untold numbers and species of mice. It’s unlikely that you’ll be able to create a better one. My ego has tempted me to “roll my own” many times, but I don’t believe I’ve ever recreated a better version of anything. Best to spend your time on the bits and pieces that you can’t get off the shelf, as well as showering and sleeping, eating right and exploring the world.

减少,重复使用,回收(又称“懒惰是一种美德”)模式识别相关,最好不要尝试创建“更好的”捕鼠器。 捕鼠器已经存在了很长时间,以至于许多更好和更有经验的捕鼠器开发人员对设计进行了优化,调试和改进,并对无数数量和种类的小鼠进行了“测试”。 您不太可能创造出更好的产品。 我的自我吸引了我很多次“自己动手” ,但我不相信我曾经重新创造过任何更好的版本。 最好将时间花在无法下架的零碎物品上,并为淋浴和睡眠,正确饮食和探索世界打下基础。

And, lastly: “You’re always in development, if you’re doing it right.”

最后,“如果您做对了,那么您就一直在开发中。”

翻译自: https://medium.com/swlh/in-development-6c6727d9f4be

开发中mock什么意思


http://www.taodudu.cc/news/show-4027075.html

相关文章:

  • python中oserror是什么意思,python – OSError:[错误1]不允许操作
  • java 公共方法是什么意思_在java中公共/私有/其他方法的含义是什么意...
  • unix/Linux系统下的nobody用户与nologin详细介绍
  • java 公共方法是什么意思,在java中公共/私有/其他方法的含义是什么意思?
  • sm缩写代表什么意思_在嘉庚,这些缩写都是SM意思???
  • gz是什么意思饭圈_网上看不懂的字母缩写!知道Xs是什么意思吗?不是尺寸!...
  • php中句柄是什么意思,“句柄”到底是什么意思啊
  • VMC(VMware on AWS)分析
  • 计算机网络实验(Wireshark 抓包工具使用、WinPcap 编程、协议分析流量统计程序的编写)
  • 关于数据埋点的认识以及在流量分析系统中的实际使用
  • CTF 内存取证 USB流量分析
  • wireshark蓝牙数据包分析_Wireshark数据包分析
  • 基于流量的协议分析
  • 恶意流量分析训练八
  • 恶意流量分析训练九
  • 数字取证wireshark流量分析
  • AWD流量分析
  • RK987蓝牙键盘使用说明书分享
  • 腾讯会议如何使用讲演者模式进行汇报(nian gao)
  • 百度网盘分享文件已经被取消的解决办法
  • 分享的好处
  • IEEE Access投稿流程经验分享
  • 腾讯会议分享屏幕,隐藏演讲者模式
  • C语言初学者必学必会的C语言必背100代码
  • 微信分享统计
  • TikTok干货分享:创作者基金申请流程及常见问题解答
  • 关于百度云订阅无法正常查看订阅者分享的解决办法
  • 微信小程序实现带参数的分享功能
  • 微信内网页分享,分享者能看到分享的图片(描述),但被分享者无法看到
  • 微信小程序-分享页面到微信群或者好友携带分享者身份信息

开发中mock什么意思_开发中相关推荐

  1. vc6开发一个抓包软件_开发一个软件多少钱?3种软件开发公司报价

    开发一个软件多少钱?现在随着智能手机的发展,各种各样的app大受市场欢迎,同时也方便了大家日常生活,开发一个自己的app软件成为不少传统企业及创业者的首选.但是如何选择靠谱的开发公司呢?同样的app开 ...

  2. 机器学习中常见的损失函数_机器学习中最常见的损失函数

    机器学习中常见的损失函数 现实世界中的DS (DS IN THE REAL WORLD) In mathematical optimization and decision theory, a los ...

  3. vs 服务容器中已存在服务_容器中某Go服务GC停顿经常超过100ms排查

    GC停顿经常超过100ms 现象有同事反馈说,最近开始试用公司的Kubernetes,部署在Docker里的Go进程有问题,接口耗时很长,而且还有超时.逻辑很简单,只是调用了KV存储,KV存储一般响应 ...

  4. python中深拷贝和浅拷贝_**Python中的深拷贝和浅拷贝详解

    甚至连type其本身都是对象,type对象 Python中变量与C/C++/Java中不同,它是指对象的引用,Python是动态类型,程序运行时候,会根据对象的类型 来确认变量到底是什么类型. 单独赋 ...

  5. pcl中ransac提取直线_多目标跟踪中的相机运动模型

    前言 之前的博客中我介绍了Kalman滤波器,这个算法被广泛用于多目标跟踪任务中的行人运动模型.然而实际场景中存在有很多相机运动,仅仅依赖行人运动模型是不够的.这次我主要介绍下相机运动模型,以对极几何 ...

  6. MySQL中什么是码_数据库中的码是什么含义?

    展开全部 1.超码e68a843231313335323631343130323136353331333365656662: 超码是一个或多个属性的集合,这些属性可以让我们在一个实体集(所谓的实体集就 ...

  7. 定理在数学中的简写形式_数学中的s代表着什么? s符号在数学中表示什么

    在几何计算中S是:面积 在代数中S是:路程 在统计方面S是:标准差 在行程问题中S是:距离 在时间问题中S是:秒 三角形全等中S是:边 扩展资料: 化学元素 硫(sulfur)是一种非金属元素,化学符 ...

  8. matalb中的wden函数_小波分析中MATLAB阈值获取函数及其应用附程序代码

    小波分析中MATLAB阈值获取函数及其应用附程序代码 1.小波分析中MATLAB阈值获取函数 MATLAB中实现阈值获取的函数有ddencmp.thselect.wbmpen和wwdcbm,下面对它们 ...

  9. Java中的变量分类_开发简单的Java应用

    第一章 开发简单的Java应用 1.Java语言的技术分类 (1)JavaSE:标准版,开发桌面应用 (2)JavaEE:企业版,Web应用 (3)JavaME:小型版,嵌入式 2.如何开发和运行Ja ...

  10. ui设计中的版式设计_设计中的版式-第3部分

    ui设计中的版式设计 and how not to suck at it 以及如何不吸吮它 This is the 3rd and last part of the series. Here we t ...

最新文章

  1. 听说今天你要答辩了?哈哈哈哈哈哈哈哈哈
  2. 主宰全球的10大算法
  3. 理解图像的傅里叶变换(细心分析)
  4. 字符串过长截断 html,(SqlServe)关于字符串长度被截断的问题
  5. linux技术笔记(常用命令)持续更新中。。。
  6. php报表数据打印机,通过打印机打印带打印功能的php表
  7. 银行大数据风控平台的建设要点与应用
  8. Android 关于解决MediaButton学习到的media控制流程
  9. 使用go来做系统,如何比java node php 更 简单
  10. srsLTE源码学习:RLC,无线链路控制子层抓包rlc_pcap.h,rlc_pcap.cc
  11. How to pronounce symbols on keyboard
  12. Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value:
  13. VS code报错:Launch options string provided by the project system id invalid.
  14. string entitlement = Application.dataPath+ “/Editor/Entitle Unity工程到处iOS工程,用脚本把Push Notifications打开
  15. IT人士如何提高软件下载的速度
  16. 面试常考题——LRU缓存题解
  17. 谷歌浏览器离线安装crx插件方法
  18. 我们为什么需要 DAO 操作系统?
  19. Office 文档在线预览解决方案
  20. 互联网赚钱发展趋势,网赚案例精准分析

热门文章

  1. DLL劫持技术解析(DLL Hijack)
  2. java 引入微信sdk_手把手教您开发JAVA微信SDK-新手接入
  3. git commit 提交信息写错,怎么更改?
  4. 强化学习——策略学习
  5. 2021-10-07 浊音,清音,爆破音频谱分析
  6. 支配树学习思路/模板
  7. 股票证券交易系统架构分析与设计
  8. win7怎样设置计算机休眠时间,win7休眠时间怎么设置
  9. iOS播放器横竖屏切换
  10. LeetCode题解(1682):最长回文子序列II(Python)