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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

My tone doesn't make me wrong, or how I convinced the Ruby project to fix a bug

12 点作者 felipec将近 3 年前

10 条评论

kstenerud将近 3 年前
Your tone doesn&#x27;t make you wrong, but it doesn&#x27;t make you an ambassador either. You could have chosen much less combative words, which would have avoided pushing him into a defensive posture, and avoided most of the discussion. It&#x27;s pretty obvious looking at the exchange that he was confused about what you were talking about, why it was a problem, and why it should be fixed.<p>A diatribe about the Japanese language and culture reflects poorly upon you. Every culture has their way of writing and expression and norms, and we give leeway to people speaking a foreign language for that reason.<p>Like it or not, we&#x27;re all human, and one of the greatest skills one can learn is the skill of de-escalation.
评论 #32539105 未加载
groffee将近 3 年前
No but it does make you an asshole, and you drove an open source maintainer to quit.<p>Software is like 10% code, and 90% soft skills. You need to work on that.
评论 #32538424 未加载
57FkMytWjyFu将近 3 年前
Anything like this ever happen to you before?<p><a href="https:&#x2F;&#x2F;felipec.wordpress.com&#x2F;2011&#x2F;09&#x2F;23&#x2F;no-gnome-doesnt-want-user-feedback-how-i-argued-in-favor-of-voting-in-bugzilla-and-got-banned-as-a-result&#x2F;" rel="nofollow">https:&#x2F;&#x2F;felipec.wordpress.com&#x2F;2011&#x2F;09&#x2F;23&#x2F;no-gnome-doesnt-wan...</a>
评论 #32545044 未加载
pheasantquiff将近 3 年前
While I understand the point about displaying a time in a given timezone (output&#x2F;strftime)<p>I don&#x27;t see how specifying a timezone on a epoch count makes any sense (input&#x2F;strptime).<p>A &#x27;number of seconds since epoch&#x27; (%s) is a _duration_, not a time. It makes no sense to attach a time zone to it. (This seems to have been the initial response from the project maintainer).<p>From the original article the reported &quot;bug&quot; is about _parsing_ an epoch duration, not about displaying a time.<p>DateTime.strptime(&#x27;0 +0100&#x27;, &#x27;%s %z&#x27;)<p>Probably I am missing something but I&#x27;ve re-read the original article and I cannot see this point addressed directly (examples are given but they have to do with displaying&#x2F;output, not parsing).
评论 #32544268 未加载
skellyclock将近 3 年前
Was your goal to be right or to get the patch pushed? Now you&#x27;re opening up old wounds because.... ?????<p>Like damn dude, you catch more flies with honey than vinegar. Don&#x27;t they have a saying like that in Spain?
评论 #32540410 未加载
lttlrck将近 3 年前
This seemed to go beyond being blunt to get your point across.<p>It seems there were numerous possible better outcomes and I would have liked to see some acknowledgment of that in the conclusion, lessons learnt, instead of leaning on Linus and &quot;I was right&quot;. Especially after 10 years reflection.
rawling将近 3 年前
&gt; Not only that, but if you asked ruby to represent the epoch in Berlin with “%s %z“, it did it correctly:<p>&gt; DateTime.parse(&#x27;1970-01-01T01:00:00 +0100&#x27;).strftime(&#x27;%s %z&#x27;) =&gt; &quot;0 +0100&quot;<p>Does that mean that &quot;0 +0000&quot; is the same as &quot;0 +0100&quot;, &quot;0 +0200&quot;, &quot;0 +0300&quot; etc.?
评论 #32539131 未加载
danieltanfh95将近 3 年前
It does not look well for an outsider looking into Ruby maintenance to see a technical discussion devolve into a discussion about politeness and race. Luckily matz made the right call.<p>Felipe is right that: 1. `%s %z` is inconsistent in ruby. 2. He has consensus everywhere else. 3. Nobody has provided any good technical arguments against his.<p>Whether he is polite enough or not, code talks, bullshit walks.
sharedptr将近 3 年前
The translations that were purposely cut from the post:<p>Chunk 1<p>Unlike the day of the week and the date, %s and %z are independent, so I don&#x27;t see the problem. &gt; Here, independent means orthogonal, so changing one doesn&#x27;t change the other.<p>It doesn&#x27;t mean there is a problem, it just means they are different. For example, it is possible to write a date in UTC and then change it to local time. But this time it&#x27;s only %s.<p>Suppose I am in Japan and dealing with UTC time. Let&#x27;s say I&#x27;m in Japan and I&#x27;m dealing with UTC time. The given time is in UTC, but I&#x27;ll refer to it as +09:00.<p>2001-02-03T04:05:06 UTC (+0900)<p>Since this is not common DateTime.parse(&#x27;2001-02-03T04:05:06&#x27;).new_offset(&#x27;+0900&#x27;) This is not common, so the description would be something like<p>Now, this kind of description is not currently in ruby, but I feel that what is required for the &#x27;%s %z&#x27; thing is something different from what we have been dealing with, which from my point of view includes this kind of thing.<p>Chunk 2<p>Perhaps if you could elaborate a bit more on what a date is or something like that, it might make it more understandable.<p>When I say date, I am including such time. I think of this date as a kind of name assigned on a time axis based on certain rules. In space, it is like a milestone. There are actually more imperfect dates, which are also dates. Sometimes they can be identified by context and other information, and sometimes they can&#x27;t.<p>Chunk 3<p>If you think the time difference has special significance, you can describe it in local time. &gt; &gt; The question is which local time, not the local time set by the OS, but an artificial local time with a &gt; fixed difference from UTC. &gt; &gt; I understand that you are talking about being able to record the given time difference as is. &gt; I understand that you are saying that the given time difference can be recorded as it is.<p>I&#x27;m not sure what you mean.<p>Since %s seems incomplete to begin with, I don&#x27;t know why you are so hung up on it.<p>If we replace %s with space, we can&#x27;t place milestones with it, it just shows the distance, and we can&#x27;t define the distance, can we?<p>Also, just for the record, I would like to confirm that what Mr. Tanaka is referring to as fixed time difference is not universal.<p>The given self-evident local time is also useful, and the time zone = time zone information, not time difference. It contains more information than just time difference.<p>Isn&#x27;t it important to have the actual time system and format we are referring to, such as daylight saving time? In that sense as well, I feel uncomfortable with the trend of %s bias.
评论 #32544548 未加载
felipec将近 3 年前
Back in 2012 I encountered a bug that took me through many hoops to get fixed, all because of a single developer, which compelled me to start an infamous email thread.