Commit-and- Run Is a Crime

本文探讨了在软件开发过程中,如何通过优化架构、实践敏捷开发和设置CI服务器来减少commit-and-run行为的影响,提高团队整体效率。通过快速运行测试和本地化测试环境,确保代码质量,防止团队流程被破坏。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Commit-and- Run Is a Crime

Niclas Nilsson

iT’S lATE in THE AFTERnoon. The team is churning out the last pieces of the new feature set for the iteration, and you can almost feel the rhythm in the room. John is in a bit of a hurry though. He’s late for a date, but he manages to finish up his code, compile, and check in, and off he goes. A few minutes later, the red light turns on. The build is broken. John didn’t have time to run the automated tests, so he made a commit-and-run and thereby left everybody else hanging. The situation is now changed and the rhythm is lost. Everyone now knows that if they do an update against the version control system, they will get the broken code onto their local machine as well, and since the team has a lot to integrate this afternoon to prepare for the upcoming demo, this is quite a disruption. John effectively put the team flow to a halt because now no integration can be done before someone takes the time to revert his changes.
This scenario is way too common. Commit-and-run is a crime because it kills flow. It’s one of the most common ways for a developer to try to save time for himself, and it ends up wasting other people’s time and is downright disrespect- ful. Still, it happens everywhere. Why? Usually because it takes too long to build the system properly or to run the tests.
This is where you, the architect, come into play. If you’ve put a lot of effort into creating a flexible architecture where people can perform, taught the develop- ers agile practices like test-driven development, and set up a continuous inte- gration server, then you also want to nurture a culture where it’s not all right to
30 97 Things Every Software Architect Should Know

waste anybody else’s time and flow in any way. To be able to get that, you need to make sure the system, among other things, has a sound architecture for automated testing, since it will change the behavior of the developers. If tests run fast, developers will run them more often, which itself is a good thing, but it also means that they won’t leave their colleagues with broken code. If the tests are dependent on external systems or if they need to hit the database, re-engineer them so they can be run locally with mocks or stubs, or at the very least with an in-memory database, and let the build server run them in the slow way. People should not have to wait for computers, because if they have to, they will take shortcuts, which often causes problems for others instead.
Invest time in making the system fast to work with. It increases flow, lessens the reasons for working in silos, and in the end makes it possible to develop faster. Mock things, create simulators, lessen dependencies, divide the system in smaller modules, or do whatever you have to. Just make sure there’s no rea- son to even think about doing a commit-and-run.
Niclas Nilsson is a software development coach, consultant, educator, and writer with a deep passion for the software development craft, and he loves good design and architecture. He is a cofounder of factor10 and the lead editor of the architec- ture community at InfoQ.

内容概要:《中文大模型基准测评2025年上半年报告》由SuperCLUE团队发布,详细评估了2025年上半年中文大模型的发展状况。报告涵盖了大模型的关键进展、国内外大模型全景图及差距、专项测评基准介绍等。通过SuperCLUE基准,对45个国内外代表性大模型进行了六大任务(数学推理、科学推理、代码生成、智能体Agent、精确指令遵循、幻觉控制)的综合测评。结果显示,海外模型如o3、o4-mini(high)在推理任务上表现突出,而国内模型如Doubao-Seed-1.6-thinking-250715在智能体Agent和幻觉控制任务上表现出色。此外,报告还分析了模型性价比、效能区间分布,并对代表性模型如Doubao-Seed-1.6-thinking-250715、DeepSeek-R1-0528、GLM-4.5等进行了详细介绍。整体来看,国内大模型在特定任务上已接近国际顶尖水平,但在综合推理能力上仍有提升空间。 适用人群:对大模型技术感兴趣的科研人员、工程师、产品经理及投资者。 使用场景及目标:①了解2025年上半年中文大模型的发展现状与趋势;②评估国内外大模型在不同任务上的表现差异;③为技术选型和性能优化提供参考依据。 其他说明:报告提供了详细的测评方法、评分标准及结果分析,确保评估的科学性和公正性。此外,SuperCLUE团队还发布了多个专项测评基准,涵盖多模态、文本、推理等多个领域,为业界提供全面的测评服务。
资源下载链接为: https://pan.quark.cn/s/f989b9092fc5 单点定位是卫星导航技术的核心方法,通过接收卫星信号来确定接收器在地球上的位置。它主要涉及分析卫星发射的时间戳、伪距以及卫星轨道信息。MATLAB凭借其强大的数值计算和数据处理能力,可以用来编写程序实现单点定位。RINEX(Receiver Independent Exchange Format)观测文件是一种通用格式,用于存储各种接收机产生的观测数据,如伪距、载波相位和多普勒频移等,便于不同软件进行数据交换和处理。 在MATLAB中实现单点定位的程序通常包括以下步骤:首先,读取RINEX观测文件,解析卫星信号数据,包括处理文件头信息、识别有效观测时段以及提取卫星ID、伪距和时间戳等关键信息。其次,利用星历数据计算卫星在特定时间的位置。星历数据由卫星导航系统地面站提供,包含卫星的精确轨道参数。接下来,对原始伪距进行改正,考虑大气延迟、卫星钟偏和接收机钟偏等因素,这需要对大气折射率进行建模以及估计卫星和接收机的时钟误差。然后,基于改正后的伪距,利用三角定位原理计算接收机的位置,通常采用最小二乘法或其他优化算法来获得最佳解。最后,将计算出的接收机位置与已知点坐标进行比较,评估定位精度,并以经纬度、海拔高度等形式输出结果。 在MATLAB程序single_point_position.m中,可以看到上述步骤的具体实现。代码可能包含RINEX文件解析函数、卫星轨道计算模块、伪距改正函数以及定位计算和输出部分。通过学习和理解该源码,不仅可以深入掌握单点定位原理,还能提升MATLAB编程和处理导航数据的能力。单点定位在实际应用中常用于初步定位或作为更复杂定位方法的基础,如差分定位和动态定位。它在科学研究、导航设备测试和大地测量等领域具有重要价值。通过不断优化这些程序,可以提高定位精度,满足实际需求。
资源下载链接为: https://pan.quark.cn/s/67c535f75d4c Verilog-A是一种高级硬件描述语言,广泛应用于模拟和混合信号电路设计。它具备强大的数学运算能力,能够精确地描述电路的行为和特性。在“用Verilog-A编写的电路模块示例”压缩包中,包含了多种重要的电子电路元件模型,例如PLL(锁相环)、resistor(电阻)、bjt(双极型晶体管)、opamp(运算放大器)、psfet(P沟道金属氧化物半导体场效应晶体管)、deadband(死区)以及sinewave(正弦波)生成器。以下是对这些模块的详细说明。 PLL(锁相环):PLL是数字通信系统中的关键部件,主要用于使接收端的时钟频率与发送端的信号频率同步。通过Verilog-A,可以精确描述PLL的各个组成部分,如压控振荡器(VCO)、分频器、鉴相器和低通滤波器。设计者能够利用Verilog-A精确控制PLL的动态特性,例如环路带宽和锁定时间等。 Resistor(电阻):在Verilog-A中,电阻模型定义了电流与电压之间的关系,遵循欧姆定律。设计者可以指定电阻的温度系数和其他非线性特性,从而更真实地模拟实际电路中的电阻行为。 BJT(双极型晶体管):BJT是模拟电路中的基础元件,具有电流控制电流的特性。在Verilog-A中,BJT模型需要描述基极、发射极和集电极之间的电流关系,以及BJT的放大系数和非线性特性。 Opamp(运算放大器):运算放大器是模拟电路设计的核心元件,常用于信号放大或构建反馈电路。在Verilog-A中,opamp模型包括输入失调电压、增益、共模抑制比等关键参数,以及理想化特性,如无限输入阻抗和零输出阻抗。 Psfet(P沟道金属氧化物半导体场效应晶体管):P沟道MOSFET是数字和模拟电路中的常见开关元件。Verilog-A模型需要描述其阈值电压、亚阈值
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值