dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Indent tabs or spaces?


From: Doursenaud , Raphaël
Subject: Re: [Dolibarr-dev] Indent tabs or spaces?
Date: Mon, 12 Jan 2015 14:21:46 +0100

Again you fail at seeing the point of using a community maintained, well defined standard and prefer rolling your own.

Fine, but we'll see what we see now, slow adoption, unclear rules, missing efficient rules, lenient enforcement, etc.

The whole point of using a standard is not having to think about it, even if some rules sound stupid to you. If everyone applies the same ruleset, everybody's happy because we're working on the same page.
Also, when the rules are maintained by the community, verification tools becomes a commodity and presets are available in most editors to allow for inline verification while coding without a heavy, disrupting, fucking annoying, checkstyle pass.

This is not the '80s anymore. We have community driven, readily available tooling that we should embrace and leverage to their full potential so we can focus on our main goal : writing and maintaining one of the best open source ERPs available rather than tediously nitpicking every friggin' styling rules. PSR is one of them, alternatives are on the market (PEAR, Zend…), let's just pick one and stick to it !

I still think the best way would be to reach out to our community (a very simple poll) and ask them what they would prefer but looks like it's not your style.

Sorry for being passionate enough to still care. I said i'd give up.

My 2 cents,

2015-01-11 20:30 GMT+01:00 Laurent Destailleur (aka Eldy) <address@hidden>:
Currently using PSR2 was not acted.
I prefer to apply styles rules, one rule after one rule, and with each rules EXPLICITELY defined.
Reason is that a lot of rules are just stupid. So we may apply some of them, more and more rule from PSR2 but probably not 100% of them. We are just moving step by step, rule after rule.

So for present, rules to be applied are rules that are controled into the checkstyle.xml file.

If report is ok (for travis), then we match rules (even if there is one rule not yet checked that is not ok).

Note: Sometimes a PR is also accepted even if a rule is not ok, just because the PR is strategically important and merging it later, once style is fixed may consume more time than merging now and fixing style immediatly after.




2015-01-06 2:12 GMT+01:00 Marcos García <address@hidden>:
So, are we following PSR-2 or not?

I am seeing Pull Request accepted that are not following it and I'm quite surprised right now.

Regards,
 
Marcos García
address@hidden

2012-08-04 17:39 GMT+02:00 Laurent Destailleur (eldy) <address@hidden>:
Well, there is so many way of working, so this is what i suggest :

* We user PSR2 : https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md

* Except for indentation that must be set to:  Tabs = 4 spaces and we don't replace tabs with spaces but we keep the tab (PSR2 says we mut replace space by tabs). Reason is:
This is the default option for Eclipse (Eclipse does not replace with space by default), so most developer will work like this. And above all, if you replace tabs with spaces, there is no way to use ALT-TAB to reduce nb of tabs: when we want to reduce a part of indented code of one level, we must remove manually spaces on each lines. Very boring.

So I update the wiki to add this on page to explain all options to match this rules :
http://wiki.dolibarr.org/index.php/Environment_and_development_tools#Install_Eclipse



Le 03/08/2012 18:27, Régis Houssin a écrit :
c'est dans PSR-2
http://www.geek-directeur-technique.com/2012/06/19/normes-php-psr-2-aie-rate/

Le 03/08/12 18:17, Doursenaud, Raphaël a écrit :
Wow !

What about the PSR-1 standard you prompted to use some time ago ?
It actully says on line 2 « code MUST use 4 spaces for indenting, not tabs »

Laurent's reply in the thread was also very wise as this doesn't matter as long as everyone uses 4 as their tab setting in their favorite editor.

I prefer spaces thou, because it doesn't  look ugly whatever the settings are.

Cheers,


2012/8/3 Régis Houssin <address@hidden>
Hi,

tabs
in eclipse, a tab corresponding to 4 spaces by default


Le 03/08/12 14:35, Marcos García a écrit :
Hi,

One question, what do you officially use to indent in Dolibarr, tabs or spaces?

Regards,
 
Marcos García
address@hidden



_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Cordialement,
-- 
Régis Houssin
---------------------------------------------------------
Cap-Networks
Cidex 1130
34, route de Gigny
71240 MARNAY
FRANCE
VoIP: +33 1 83 62 40 03
GSM: +33 6 33 02 07 97
Web: http://www.cap-networks.com/
Email: address@hidden

Dolibarr developer: address@hidden
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------

_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev




--
Raphaël Doursenaud


Technopole Hélioparc
2 avenue du Président Pierre Angot
64053 PAU CEDEX 9
SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921


_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Cordialement,
-- 
Régis Houssin
---------------------------------------------------------
Cap-Networks
Cidex 1130
34, route de Gigny
71240 MARNAY
FRANCE
VoIP: +33 1 83 62 40 03
GSM: +33 6 33 02 07 97
Web: http://www.cap-networks.com/
Email: address@hidden

Dolibarr developer: address@hidden
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------


_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


-- 
Eldy (Laurent Destailleur).
---------------------------------------------------------------
EMail: address@hidden
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev



_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev



_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev




--
Raphaël Doursenaud
Directeur technique (CTO)
Expert certifié en déploiement Google Apps
+33 (0)5 35 53 97 13 - +33 (0)6 68 48 20 10

http://gpcsolutions.fr
Technopole Hélioparc
2 avenue du Président Pierre Angot
64053 PAU CEDEX 9
SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921

reply via email to

[Prev in Thread] Current Thread [Next in Thread]