1 |
Dnia 2015-08-11, o godz. 09:56:55 |
2 |
Dmitry Yu Okunev <dyokunev@××××××××.ru> napisał(a): |
3 |
|
4 |
> Hello. |
5 |
> |
6 |
> I'm not a gentoo-dev, so sorry if I shouldn't express my thoughts with |
7 |
> my lame English here. Please tell me if it's so. |
8 |
> |
9 |
> On 08/11/2015 12:06 AM, Michał Górny wrote: |
10 |
> >>>>>> 3. Too many text, hard to read. Some bugs may refer to a dozen of |
11 |
> >>>>>> URLs. |
12 |
> >>>>> |
13 |
> >>>>> And how is a dozen numbers better? |
14 |
> >>>> |
15 |
> >>>> Less text, more readable. |
16 |
> >>> |
17 |
> >>> How is: |
18 |
> >>> |
19 |
> >>> Bug: 123451, 453445, 344334, 343444 |
20 |
> >>> |
21 |
> >>> more readable than: |
22 |
> >>> |
23 |
> >>> Bug: https://bugs.gentoo.org/123451 |
24 |
> >>> Bug: https://bugs.gentoo.org/453445 |
25 |
> >>> Bug: https://bugs.gentoo.org/344334 |
26 |
> >>> Bug: https://bugs.gentoo.org/343444 |
27 |
> >>> |
28 |
> >>> Readability is a matter of formatting, not contents. |
29 |
> >> |
30 |
> >> 1. One line and 35 chars are certainly more readable than four lines |
31 |
> >> and 140 chars. |
32 |
> > |
33 |
> > Character counts are completely irrelevant to readability. Visual space |
34 |
> > is. And in this case, exhibit A (also known as wall of digits) is more |
35 |
> > likely to get people confused. |
36 |
> |
37 |
> I think it's just individual preference. No sense to argue this. Just |
38 |
> everybody should consider that there exists another position on this |
39 |
> question. |
40 |
> |
41 |
> However I want to add an other argument: |
42 |
> |
43 |
> 1a. It's easier to parse the "Bug:" header is there only bug IDs |
44 |
> (without URLs). |
45 |
|
46 |
What if there are different bug trackers involved? We sometimes note |
47 |
upstream bugs, other distro bugs, pull requests... |
48 |
|
49 |
> And is there any guarantee that URL format won't be changed in future |
50 |
> (that everybody won't be have to rewrite their parsers). I mean not |
51 |
> "near future", but "any long future". |
52 |
|
53 |
I doubt it can change *without* changing the bug tracker software. |
54 |
And then, old IDs will no longer be relevant. In fact, since the URLs |
55 |
are Bugzilla-specific it will allow us to ensure better compatibility |
56 |
if we start numbering bugs from 1 again. |
57 |
|
58 |
There's URL and there's URI. Even if URL is no longer valid, it will |
59 |
still be a valid URI. It will still allow us to uniquely identify |
60 |
the bug report. |
61 |
|
62 |
> >> 2. Strings are read from left to right (at least in English), thus |
63 |
> >> having most important information last on the line is not |
64 |
> >> convenient. |
65 |
> > |
66 |
> > This is not literature. Keys usually precede values, and namespaces |
67 |
> > precede namespaced identifiers. |
68 |
> |
69 |
> A commit-comment is not a source code. It's an ordinary text (like |
70 |
> "literature"). |
71 |
|
72 |
Literature is a long continuous text which you read left-to-right, |
73 |
and usually without going back. This is short text which you read |
74 |
randomly, possibly going back and forth, and scanning for specific |
75 |
details. |
76 |
|
77 |
> >>> As far as I'm aware, URLs are supported much more widely than |
78 |
> >>> Gentoo-specific bug numbers. They are uniform and unique by definition. |
79 |
> >>> The tools using bug numbers can be easily expanded to extract them from |
80 |
> >>> URLs. I don't really see forking cgit to support Gentoo bug numbers, or |
81 |
> >>> asking github to provide special rules for our commits. |
82 |
> >> |
83 |
> >> We should not adjust our ecosystem for closed and proprietary |
84 |
> >> solutions like github. |
85 |
> > |
86 |
> > URLs are not github invention. Localized bug numbers are local Gentoo |
87 |
> > non-sense. So should we adjust it to ignore the rest of the world and |
88 |
> > expect everyone to create custom hackery just to be able to see a bug |
89 |
> > report? |
90 |
> |
91 |
> You can use header "Gentoo-Bug:" (instead of "Bug:") and explain in |
92 |
> documentation ways to parse that. |
93 |
|
94 |
So you're suggesting it's better to invent a custom format and tell |
95 |
people how to handle it, rather than use a commonly-supported format? |
96 |
|
97 |
-- |
98 |
Best regards, |
99 |
Michał Górny |
100 |
<http://dev.gentoo.org/~mgorny/> |