Subject: Developers of Sympa
List archive
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: [sympa-developpers] Merge is over, what now?
- Date: Thu, 19 Sep 2013 17:35:16 +0200
Hi guys, Technically speaking, the merge between 6.2 and sympa-cleanup branches is over. Technically. That means we are no longer doing anything with SVN, but still have to fix all the mess that is the by-product of such a complicated merge. We apologize for the regressions you will find in some parts of the code. Sometimes, we had to make clear decision regarding the code only, not indentation. In such occasions, it is possible that the new naming conventions were not respected - our mistake. Some modules are messed up, like List.pm in which the merge was desastrous. I'll review it thouroughly to fix it all. Anyway, now, anybody is free to work on whichever part of the code located in the sympa-cleanup branch. We all work on this branch now, until we find a satisfactory result. Now, I want to sum up our recent discussion and propose some final guidelines. First of all, I want to say that I'm currently - finally, should I say - reading the excellent "Perl best practices" by Damian Conway and I agreed with almost everything until now. I helps me understanding some of the decisions taken by Guillaume since the beginning of his refactoring - and some of Soji's, too. I think you both read this book, didn't you? I propose we stick to these recommendations, except if you want to make some exceptions. Please comment anything you don't agree, so that we can reach an agreement soon. We will then publish receommendations for developpers, being clear that these are only suggestions - we won't enforce our coding practices to them, only for the four of us. Logs
I am under the impression that all return undef could be replaced by croak calls, providing we intercept exceptions at the right place and we use the Carp option allowing to produce stak traces. But, we need to distinguish the very few circumstances in which sympa should stop running, so that the daemons will stop gracefully. Inspecting the code, it looks like all fatal_err calls were made in the main daemons, so I think it should be easy. Lock
Spools
Naming conventions
Code formatting
-bar # Opening brace always on right (* no) -bbt=1 # Medium block brace tightness -bt=1 # Medium brace tightness (* 1) -ce # Cuddled else (* no) -cti=0 # No extra indentation for closing brackets -et=4 # Entab leading 4 whitespace (* none) -i=4 # Indent level is 4 cols -ci=4 # Continuation indent is 8 cols -l=78 # Max line witdh is 78 cols -nolq # Don't outdent long quoted strings -nsbl # No opening sub brace on new line (* -sbl) -nsfs # No space before semicolons -pt=1 # Medium parenthesis tightness (* 1) -sbt=1 # Medium square bracket tightness (* 1) -se # Errors to STDERR #-st # Output to STDOUT -vt=2 # Maximal vertical tightness -wba="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x= || && . ? : and or xor" # Break after all operators (* not contains "||" and tokens appear after it) Documentation
=head2 foo($bar) =head3 parameters =over =item * $bar =back =head3 Return value Something =cut Using enumeration for function/method names would force us to use explicit depth level to each enumerations: =head1 FUNCTIONS =over =item * foo($bar) =over 2 =item + parameters =over 4 =item - $bar =back =item + return value =back Database access
I know that you got rid of the previous subs to remove a
dependency to send_notif_to_listmaster. However, I think it might
be possible without this dependency, by throwing exceptions
instead. Short term refactorings
Longer term refactoring objectives
Well, taht's it. I think I went through most of our recent discussion and proposed a consensus. Here's to you now! Cheers, David |
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
[sympa-developpers] Merge is over, what now?,
David Verdin, 09/19/2013
-
Re: [sympa-developpers] Merge is over, what now?,
IKEDA Soji, 09/19/2013
-
Re: [sympa-developpers] Merge is over, what now?,
IKEDA Soji, 09/24/2013
- Re: [sympa-developpers] Merge is over, what now?, David Verdin, 09/24/2013
-
Re: [sympa-developpers] Merge is over, what now?,
IKEDA Soji, 09/24/2013
-
Re: [sympa-developpers] Merge is over, what now?,
Guillaume Rousse, 09/19/2013
-
Re: [sympa-developpers] Merge is over, what now?,
David Verdin, 09/24/2013
-
Re: [sympa-developpers] Merge is over, what now?,
Guillaume Rousse, 09/30/2013
- Re: [sympa-developpers] Merge is over, what now?, Etienne MELEARD, 09/30/2013
-
Re: [sympa-developpers] Merge is over, what now?,
Guillaume Rousse, 09/30/2013
-
Re: [sympa-developpers] Merge is over, what now?,
David Verdin, 09/24/2013
-
Re: [sympa-developpers] Merge is over, what now?,
IKEDA Soji, 09/30/2013
- Re: [sympa-developpers] Merge is over, what now?, Guillaume Rousse, 09/30/2013
-
Re: [sympa-developpers] Merge is over, what now?,
IKEDA Soji, 09/19/2013
Archive powered by MHonArc 2.6.19+.