货物管理ssm_货物崇拜编程

2023-11-01 18:51
文章标签 ssm 管理 编程 货物 崇拜

本文主要是介绍货物管理ssm_货物崇拜编程,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

货物管理ssm

货物管理ssm

Some great reminders to folks about cargo-cult programming by Eric Lippert.  This concept was taught to me in college, I think in a CST115 class.   Boy is it the truth.   Sometimes programmers try to make excuses for not understanding the how - "I don't need to understand SOAP, I'm not a plumber."  Well, I'm not a professional plumber either, but I do own a copy of the Consumer Reports "How to fix anything in your house."  Does that make me a plumber?  Hardly.  Just a guy who knows that water flows through pipes.  If not, I'm just an amazed townie who thanks the magical water gods when I get hot and cold running water upstairs. 

埃里克·利珀特(Eric Lippert)提醒人们有关货物崇拜的编程。 我想这概念是在大学里教给我的,我认为是在CST115班上。 男孩,这是事实。 有时,程序员会为不了解操作方法找借口-我不需要了解SOAP,我不是水管工。 ”嗯,我也不是专业的水管工,但是我确实拥有“消费者”的副本。报告“如何修理房屋中的任何东西”。 这会让我成为水管工吗? 几乎不。 只有一个知道水流过管道的人。 如果不是,我只是一个惊讶的乡镇,当我在楼上得到冷热水时,他会感谢神奇的水神。

During the Second World War, the Americans set up airstrips on various tiny islands in the Pacific.  After the war was over and the Americans went home, the natives did a perfectly sensible thing -- they dressed themselves up as ground traffic controllers and waved those sticks around.  They mistook cause and effect -- they assumed that the guys waving the sticks were the ones making the planes full of supplies appear, and that if only they could get it right, they could pull the same trick.  From our perspective, we know that it's the other way around -- the guys with the sticks are there because the planes need them to land.  No planes, no guys. 

第二次世界大战期间,美国人在太平洋的各个小岛上建立了简易机场。 战争结束后,美国人回家了,当地人做了一件非常明智的事情-他们打扮成地面交通管制员,挥舞着那些棍子。 他们误导了因果关系-他们以为挥舞着棍子的家伙是那些使飞机装满了补给品的家伙出现的人,并且,如果他们能把事情弄对,他们可以拉同样的把戏。 从我们的角度来看,我们知道情况正好相反-手持棍棒的人在那里,因为飞机需要它们降落。 没有飞机,没有人。

The cargo cultists had the unimportant surface elements right, but did not see enough of the whole picture to succeed. They understood the form but not the content.  There are lots of cargo cult programmers -- programmers who understand what the code does, but not how it does it.  Therefore, they cannot make meaningful changes to the program.  They tend to proceed by making random changes, testing, and changing again until they manage to come up with something that works. 

货运人员拥有不重要的表面要素,但对整体情况看不够成功。 他们理解形式但不理解内容 有很多对货物狂热的程序员-懂代码但不懂代码的程序员 因此,他们不能对程序进行有意义的更改。 他们倾向于进行随机更改,测试并再次更改,直到他们设法提出可行的方案。

Read the three-part (and counting) series here: Part 1 Part 2 Part 3  [Brain.Save()]

在这里阅读由三部分组成(和计数)的系列文章:第1部分第2部分第3部分[ Brain.Save() ]

All this talk about cargo-cults and Mort/Elvis/Einstein reminds me of the Programming by Coincidence stories.

所有关于货运邪教和Mort / Elvis / Einstein的谈话都使我想起了“按巧合编程”的故事。

Do you ever watch old black-and-white war movies? The weary soldier advances cautiously out of the brush. There's a clearing ahead: are there any land mines, or is it safe to cross? There aren't any indications that it's a minefield---no signs, barbed wire, or craters. The soldier pokes the ground ahead of him with his bayonet and winces, expecting an explosion. There isn't one. So he proceeds painstakingly through the field for a while, prodding and poking as he goes. Eventually, convinced that the field is safe, he straightens up and marches proudly forward, only to be blown to pieces.

您是否曾经看过黑白战争电影? 疲倦的士兵谨慎地从灌木丛中驶出。 前面有一个清理工作:是否有地雷,或者可以安全穿越? 没有任何迹象表明它是雷场-没有迹象,铁丝网或陨石坑。 士兵用刺刀猛扑着自己的脚步,畏缩了一下,期待爆炸。 没有一个。 因此,他在田野上苦苦挣扎了一段时间,在前进的过程中刺探和戳戳。 最终,他确信场地是安全的,他站起身来,自豪地向前迈进,结果被炸成碎片。

The soldier's initial probes for mines revealed nothing, but this was merely lucky. He was led to a false conclusion---with disastrous results. [The Pragmatic Programmers]

士兵最初对地雷的探测没有发现任何东西,但这只是幸运。 他被误导了一个结论-结果不堪设想。 [务实的程序员]

Being a Mort or an Einstein isn't about VB.NET vs. C#.  It isn't even about VB6 programmers without CS degrees.  It's about caring how code works.  Not just for caring's sake (although it helps) but because it makes you a better, more well rounded, and ultimately effective programmer.  So, here's MY cargo-cult-programming-by-coincidence story:

成为Mort或Einstein与VB.NET与C#无关。 没有CS学位的VB6程序员甚至都没有。 关心代码的工作方式。 不仅出于关心的目的(尽管它会有所帮助),还因为它使您成为更好,更全面,最终有效的程序员。 因此,这是的巧合的“按货代崇拜”编程故事:

My sister in law immigrated here from Zimbabwe.  She's a teacher, in her thirties, but had never driven.  So, we took the Prius over to the parking lot and practiced for days.  We finally got to parallel parking, and she just wasn't getting it.  It just didn't make sense to her.  So I said, "imagine how the front tires turn left and right when you turn the steering wheel." 

我的sister子是从津巴布韦移民到这里的。 她是位三十多岁的老师,但从未开车。 因此,我们将Prius带到了停车场,并练习了几天。 我们终于可以并行停车了,而她却没有停车。 只是对她没有意义。 所以我说:“想象一下,当您转动方向盘时,前轮胎如何左右旋转。”

"The front?" she said.  "What difference does it make?"  Turns out she didn't realize that the front tires were the ones that turned.  She'd imagined ALL FOUR tires turning left and right when the car turns.  I insisted that, no, on cars, it's just the front wheels that turn.  She didn't believe me until she got OUT of the car, and watched me parallel park.  She was utterly amazed that the back tires stayed straight and followed the front ones. 

“前方?” 她说。 “这有什么区别?” 原来她没有意识到前轮胎是转过的轮胎。 她曾想像过汽车转弯时,所有四个轮胎都会左右旋转。 我坚持认为,不,在汽车上,只是前轮在转动。 直到她下了车,看着我平行停车,她才相信我。 她对后轮胎保持笔直并紧跟前轮胎感到惊讶。

"You didn't know this?" I asked.  She said "I never gave it any thought.  I assumed they all turned, and never asked the question again." 

“你不知道吗?” 我问。 她说:“我从未想过。我以为他们都转过身,再也没有问过这个问题。”

Certainly this assumption became a problem when trying to 'debug' the process of parallel parking. 

当试图“调试”并行停车的过程时,这个假设当然成为一个问题。

翻译自: https://www.hanselman.com/blog/cargocult-programming

货物管理ssm

这篇关于货物管理ssm_货物崇拜编程的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/325034

相关文章

综合安防管理平台LntonAIServer视频监控汇聚抖动检测算法优势

LntonAIServer视频质量诊断功能中的抖动检测是一个专门针对视频稳定性进行分析的功能。抖动通常是指视频帧之间的不必要运动,这种运动可能是由于摄像机的移动、传输中的错误或编解码问题导致的。抖动检测对于确保视频内容的平滑性和观看体验至关重要。 优势 1. 提高图像质量 - 清晰度提升:减少抖动,提高图像的清晰度和细节表现力,使得监控画面更加真实可信。 - 细节增强:在低光条件下,抖

Linux 网络编程 --- 应用层

一、自定义协议和序列化反序列化 代码: 序列化反序列化实现网络版本计算器 二、HTTP协议 1、谈两个简单的预备知识 https://www.baidu.com/ --- 域名 --- 域名解析 --- IP地址 http的端口号为80端口,https的端口号为443 url为统一资源定位符。CSDNhttps://mp.csdn.net/mp_blog/creation/editor

【Python编程】Linux创建虚拟环境并配置与notebook相连接

1.创建 使用 venv 创建虚拟环境。例如,在当前目录下创建一个名为 myenv 的虚拟环境: python3 -m venv myenv 2.激活 激活虚拟环境使其成为当前终端会话的活动环境。运行: source myenv/bin/activate 3.与notebook连接 在虚拟环境中,使用 pip 安装 Jupyter 和 ipykernel: pip instal

软考系统规划与管理师考试证书含金量高吗?

2024年软考系统规划与管理师考试报名时间节点: 报名时间:2024年上半年软考将于3月中旬陆续开始报名 考试时间:上半年5月25日到28日,下半年11月9日到12日 分数线:所有科目成绩均须达到45分以上(包括45分)方可通过考试 成绩查询:可在“中国计算机技术职业资格网”上查询软考成绩 出成绩时间:预计在11月左右 证书领取时间:一般在考试成绩公布后3~4个月,各地领取时间有所不同

安全管理体系化的智慧油站开源了。

AI视频监控平台简介 AI视频监控平台是一款功能强大且简单易用的实时算法视频监控系统。它的愿景是最底层打通各大芯片厂商相互间的壁垒,省去繁琐重复的适配流程,实现芯片、算法、应用的全流程组合,从而大大减少企业级应用约95%的开发成本。用户只需在界面上进行简单的操作,就可以实现全视频的接入及布控。摄像头管理模块用于多种终端设备、智能设备的接入及管理。平台支持包括摄像头等终端感知设备接入,为整个平台提

【编程底层思考】垃圾收集机制,GC算法,垃圾收集器类型概述

Java的垃圾收集(Garbage Collection,GC)机制是Java语言的一大特色,它负责自动管理内存的回收,释放不再使用的对象所占用的内存。以下是对Java垃圾收集机制的详细介绍: 一、垃圾收集机制概述: 对象存活判断:垃圾收集器定期检查堆内存中的对象,判断哪些对象是“垃圾”,即不再被任何引用链直接或间接引用的对象。内存回收:将判断为垃圾的对象占用的内存进行回收,以便重新使用。

Go Playground 在线编程环境

For all examples in this and the next chapter, we will use Go Playground. Go Playground represents a web service that can run programs written in Go. It can be opened in a web browser using the follow

深入理解RxJava:响应式编程的现代方式

在当今的软件开发世界中,异步编程和事件驱动的架构变得越来越重要。RxJava,作为响应式编程(Reactive Programming)的一个流行库,为Java和Android开发者提供了一种强大的方式来处理异步任务和事件流。本文将深入探讨RxJava的核心概念、优势以及如何在实际项目中应用它。 文章目录 💯 什么是RxJava?💯 响应式编程的优势💯 RxJava的核心概念

从状态管理到性能优化:全面解析 Android Compose

文章目录 引言一、Android Compose基本概念1.1 什么是Android Compose?1.2 Compose的优势1.3 如何在项目中使用Compose 二、Compose中的状态管理2.1 状态管理的重要性2.2 Compose中的状态和数据流2.3 使用State和MutableState处理状态2.4 通过ViewModel进行状态管理 三、Compose中的列表和滚动

函数式编程思想

我们经常会用到各种各样的编程思想,例如面向过程、面向对象。不过笔者在该博客简单介绍一下函数式编程思想. 如果对函数式编程思想进行概括,就是f(x) = na(x) , y=uf(x)…至于其他的编程思想,可能是y=a(x)+b(x)+c(x)…,也有可能是y=f(x)=f(x)/a + f(x)/b+f(x)/c… 面向过程的指令式编程 面向过程,简单理解就是y=a(x)+b(x)+c(x)