TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Good Configuration Feedback Is Essential

34 点作者 brucehauman大约 9 年前

5 条评论

PaulHoule大约 9 年前
The Spring framework is a good (or bad) example of this tension at work in Javaland.<p>If you did not use Spring, you&#x27;d have to invent your own configuration file format for your application. You&#x27;d work hard at it, wind up with something crappy, and you&#x27;d have to mess around with configuration system code whenever you change the system.<p>On the other hand, Spring exposes a huge amount of complexity to the end users and the error messages can be hard to understand. My experience is that if you read the Spring manual from cover to cover a few hundred times it will make sense, but if you try to learn &quot;How to do X?&quot; from Stackoverflow and Google you&#x27;ll be driven crazy and if you have to deal with Spring files written by people who cut-and-pasted, you might be driven all the way to suicide.<p>Then there are all the apps like Jetty and Solr that have something similar built in but worse...
dankohn1大约 9 年前
Great piece. What this means for me is how important it is to have a low latency feedback cycle. Even a cryptic error message, if it&#x27;s immediate, will let me quickly try enough things to find the correct approach.<p>One of the most frustrating weeks I&#x27;ve spent was modifying bash scripts to work around wonky functionality on AWS Elastic Beanstalk. Every time I tried something, I had to wait 30 minutes for it to deploy and then examine the error message to see what was wrong.<p>Of course, in the meantime I would get distracted by something else, so the cycle time was even longer.
fowl2大约 9 年前
<i>insert saying about how configuration is just programming but worse in every way</i>
dickeytk大约 9 年前
In the example, I&#x27;m not sure npm can really do much to fix this. package.json entries can have any arbitrary content. &quot;dependncies&quot; might be valid as far as npm knows, and the dependencies section is optional.
评论 #11726941 未加载
评论 #11731379 未加载
ysleepy大约 9 年前
Oh, a programmer had a problem with configuration of software. All of a sudden it is important to have validation and good error messages.<p>Ask some operations people about this, they have been dealing with this avoidable laziness for some time.