Talk:Kaprekar numbers: Difference between revisions

→‎Indentation...: Break out the D comment into a new section
(→‎Indentation...: Break out the D comment into a new section)
Line 64:
: I appreciate that it can be annoying when people touch ''your'' code, but it's a wiki. You're going to have to get used to it. My code is changed regularly. Sometimes for the better. Sometimes it's simply changed but not really improved, in my opinion. Unless you want to get involved in edit wars all the time, you're going to have to relax about it. In your case, I honestly thought that the huge indent was accidental. Otherwise I would have left it alone. [[User:Fwend|Fwend]] 21:23, 14 June 2011 (UTC)
:: K&R 8 space tab is typical BSD style, I'm not sure why you'd think it's accidental. And I didn't mind someone changine my <i>code</i>, but changing purely because of the <i>code indentation</i> is prone to start an edit war, please don't get too used to it (and I didn't revert your edit, did I?). --[[User:Ledrug|Ledrug]] 21:32, 14 June 2011 (UTC)
:: (Regarding the changes to the second D version, that Fwend has reverted: the current second D version returns 0/1 but the function has to return a bool, and D is not C. The C-style code was faster, and it was shorter too. Pre-conditions are a good habit in D, that makes the code safer and less wild-west-style as C code. This C-derived code is also able to accept a bigger range of input n values. And the code has a main too, so it's not just a nonworking fragment.)
 
::You might try leaving the original indentation if it is consistent and "reasonable"; and adjusting to the existing style when making small edits, (helps with the diffs). If you make a large change then probably relax the rules about changing styles? --[[User:Paddy3118|Paddy3118]] 04:21, 15 June 2011 (UTC)
 
Line 71 ⟶ 69:
: Oh dear, didn't expect this to get the attention of Larry. Let me clarify: it's not because someone changed <i>my</i> indentation; rather since people tend to have very strong opinions about what a tab size is, changing <i>anybody</i>'s code just to make the indenting fit one's own taste may start flame wars (well, sort of like what we have now), and people should refrain from doing that IMO. --[[User:Ledrug|Ledrug]] 07:07, 16 June 2011 (UTC)
:: This isn't really a flamewar, just a back-and-forth defense and clarification of different positions. It's actually pretty normal and healthy for RC. It's when the participants stop arguing in good faith (which I don't see anyone here having done) that it gets bad. --[[User:Short Circuit|Michael Mol]] 15:53, 16 June 2011 (UTC)
==Old D version==
:: (Regarding the changes to the second D version, that Fwend has reverted: the current second D version returns 0/1 but the function has to return a bool, and D is not C. The C-style code was faster, and it was shorter too. Pre-conditions are a good habit in D, that makes the code safer and less wild-west-style as C code. This C-derived code is also able to accept a bigger range of input n values. And the code has a main too, so it's not just a nonworking fragment.) --Unsigned, added by [[Special:Contributions/95.235.203.130|95.235.203.130]]
Anonymous user