19:35:05 #startmeeting 19:35:05 Meeting started Wed Mar 4 19:35:05 2015 UTC. The chair is TheSnide. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:35:05 Useful Commands: #action #agreed #help #info #idea #link #topic. 19:35:17 hi all 19:35:37 ello 19:37:15 about 2.1 there is nothing mucn to say for me. anyone ? 19:37:43 (codestyle will its ow, topic) 19:37:48 own 19:38:04 * ssm has been doing bug and pull request triage to get back into perl coding shape again 19:38:28 yeah, saw that. impressive & thx 19:38:43 Lots of good contributions from the community. :D 19:39:50 yep, too bad is i don't have much online time. i'm mostly offline these days… 19:40:45 #topic coding style 19:41:10 i made some edits some time ago 19:41:55 but i'd advocate a pre-commit hook, which would do the work for us 19:41:56 perl code edits, or coding style edits, or edits to the documented coding style? 19:42:17 documenting 19:42:28 (the style= 19:43:15 * ssm uses perltidy a lot, I'd like to have, or make, a perltidyrc to reflect the project coding style 19:43:42 i'm then wondering about how to auto test the PR, to have them normalized 19:44:07 whatever you decide, please do not change TABs (the character) to be anything but 8 characters wide 19:44:09 ssm: i made an rc file, but it suits my style 19:44:11 that's not a simple solution 19:44:47 There is a .dir-locals file in the project setting TAB to 4 characters. I tend to ignore it. I like to indent with 4 spaces, and keep tabs away 19:45:05 TheSnide: rc, as in .vimrc? 19:45:11 or at 8 spaces wide 19:45:59 perltidyrc 19:46:19 goodie :) 19:46:26 ah. is there a converter from perltidyrc to .emacs or .vimrc? :) 19:46:44 rm any tab setting 19:47:00 i despise them 19:47:19 (didn't know it eisted) 19:47:27 kjetilho: Not that I know of 19:47:31 TheSnide: consider it done :D 19:47:51 #action ssm will delete TAB settings 19:48:15 even the "magic markers" should be hunted down 19:48:47 in-file tab/space/indent markers, and -*- cperl -*- 19:48:50 yeah, I don't see why we should "force" cperl-mode on Emacs users 19:49:02 that's an ancient sin. 19:49:18 wedon't have those infamous .in files, so let each "ide" sort its way out 19:49:30 It was probably necessary for the .in files, to say "this is perl", and you should use "cperl-mode". 19:50:00 yup, but it can be "killed at sight" 19:50:29 #action ssm will delete in-file editor-specific mode/indent/tab markers 19:50:52 for the "tab is 8, 4 or 32 spaces" i don't care either 19:51:23 let each user set his own pref 19:51:38 and indent the code with 4 spaces for each level? 19:52:18 I think "no tabs at all in the code" is the best way to avoid weirdness going forward 19:52:27 yes 19:52:33 no space in code ;) 19:52:48 Jimmy probably disagrees, though :) 19:52:49 and 3-space tabs, as a compromise :P 19:52:53 each ident is 1 tab 19:53:06 no vertical align 19:53:17 that's the original sin 19:54:22 well, that's the problem .. handling continuations 19:55:11 on the other hand, when there is a perltidy regime in place, it doesn't matter much. run your own rc while editing, change it back before commiting :-p 19:55:45 and make perltidy, emacs and vim agree. You can probably do a perltidy-on-save in addition to on-commit. 19:59:05 i managed to evangelise tab on all my other projects ;) 19:59:43 rationale is : ident is 1 tab. always. 20:00:22 TheSnide: and continuations? 20:00:28 indent is mandatory, no vertical "let's love this here to make it beautiful" 20:01:00 for continuations, youhave 2 options 20:01:26 1 arg per line 20:01:51 1 tab idented, obviously 20:02:20 do not have too much args on a SLOC 20:02:51 subgrouping being option #2 20:03:14 http://pastie.org/10000280 20:03:32 (oh no, I missed out on being pastie #10M!) 20:04:18 hehe 20:04:57 use temp var for ternary 20:05:24 useonly 1 statement per LOC 20:05:49 (that's personal fav) 20:06:37 I agree itis slower in perl, but i do not care much 20:11:57 TheSnide: better example: http://pastie.org/10000301 20:12:21 the issue here is that many people will want the $argument3 to line up under check_something( 20:12:47 and if TAB can be anything, that can't really be done 20:13:08 at least I've never seen an editor which supports using a mix of TAB and Space to accomplish it 20:14:08 https://gist.github.com/anonymous/827ef6e1755f91b3b113 20:15:01 i used sp̂ace because of web browser 20:15:06 3! 20:15:50 yup, _on purpose_ 20:17:28 for the temp arg use a temp var 20:18:32 if you use shortcut eval, and line is too long, don't 20:21:28 but what to do about the parameter list to the function? 20:24:03 1arg per line 20:24:21 result in temp var 20:24:32 reusing temp var in if() 20:24:49 do *not* minify code 20:25:03 you'll be glad in 6 months ;) 20:25:41 as the temp var will have a meaningful name, that helps 20:26:09 helps making wrong code look wrong 20:26:55 ok. no nested parenthesis, ever 20:27:02 ... catchd many bugs related to unit being mismatched 20:27:12 if you need parenthesis, use a temporary variable. 20:27:14 basically, yes 20:27:42 as usual, it is a guideline. brain usage is still mandatory ;) 20:28:06 no!!! can't allow others to think. it will be chaos! :) 20:28:47 well, you got the point ;-)) 20:28:50 :) 20:29:05 have you commited your rc? 20:29:29 no, still have ro retrive it (on far laptop) 20:29:38 the bad thing about such changes is the jumbo patch it causes 20:30:04 which makes backporting really hard 20:30:55 second rule is "only change code area/function you are changing" 20:31:15 can you make perltidy only affect a single function? 20:31:21 and, whitespace commit should be discrete 20:31:31 not that i know of. 20:31:42 but i use git add -p 20:31:45 ok, so do the perltidy thing manualy 20:32:36 aha, nice tip 20:33:04 but I think perltidy in practice will cause the patch to be one big hunk 20:33:30 using "s" for splitting, and e xor.edit 20:33:33 for 20:35:48 #action TheSnide will commit an updated perltidyrc 20:36:11 ... i also thinks that this rules cannot be expressed in the rc 20:36:38 it needs to be stated in CONTRIBUTING.md 20:37:05 i usually tend to make the patch, and the follow it by a whitespace commit 20:37:34 ... so one can merge the fix in a backport 20:38:05 ok, my bad. I hadn't read HACKING.pod 20:38:34 another option would be a gigantic whitzspace patch on every "live" branch 20:39:15 that would ease backporting as the whitespace would arleady be applied. 20:39:44 right. 20:39:45 #info strategy to white apmly is to be decided next meeting 20:41:01 ok, have to go. will close the meeting, or still thing to say ? 20:41:37 yes, I wanted to point to the homepage: 20:42:08 http://munin-monitoring.org/ -- the repository is nowhere to be found 20:42:19 lots and lots of references to tar-balls on Sourceforge 20:42:34 no mention on the Development page either 20:43:19 so: I suggest that someone with wiki-access adds a link to the Github page to the Download section 20:43:44 and at the top of the Development page 20:44:14 and if I'm blind, I still think the link needs to be more obvious 20:46:29 kjetilho: could make a list and submit it offmeetint ? 20:47:10 #info our homepage has irrelevant data 20:48:11 :-D 21:07:25 #endmeeting