From: gilberto d. s. a. <gs...@gm...> - 2016-07-25 16:34:31
|
+1 from me. you get the point. 2016-07-25 12:49 GMT-03:00 Rafael Chacón <raf...@gm...>: > Hi, > > In PHP, developers had decided to do PHP friendly to people who come from > different language backgrounds (C++, Pearl, Python, etc.). This is the > reason that we have many ways to do the same thing. E.g. redundant > functions like die() and exit(). See: > http://stackoverflow.com/questions/1795025/what-are-the-differences-in-die-and-exit-in-php, > http://www.beastwithin.org/users/wwwwolf/code/phprant.html. > > In the case of comma and dot inside a echo, there is a difference more > than execution time: > > The use of dot is like to: > // Create a concatenated variable: > $to_output = $a + $b + ... +$z; > // Then, output that variable: > echo $to_output; > > The use of comma is like to: > // Output a list of variables: > echo($a, $b, ..., $z); > > See: http://php.net/manual/en/function.echo.php > > To create that concatenated variable before output is the reason that > "echo $a . $b . ... . $z;" outlast "echo $a, $b, ..., $z;" in execution > time. In other programming languages, concatenate variables has others > implications: all variables must be the same type. In PHP, in general, we > do not have such problem (mixture of variables types); some exceptions: &, > {}, [], non ISO-8859-1, non UTF-8_lower_part. Except in "class.pdf.php" > script, I do not expect more issues with mixture of variables types. > > About use: I use and I recommend to use a list of variables instead of > concatenate them before output. I found it "more clear" for beginner > programmers. > > About changes: we can do them in on step, but i prefer to do one-by-one > and test script; tracking bugs between minor changes (not related with bug) > is very difficult. > > Keeping customised versions: I can not too much help. I use LibreOffice to > compare changes before merge them. > > Best regards, Rafael. > > > > 2016-07-21 7:19 GMT-06:00 gilberto dos santos alves <gs...@gm...>: > >> Hi. IMO there are historical reason and meaning to use dot for concat. >> Many languages ISO conform use comma for decimal point for numbers. By the >> way file t format csv use other char for represent field delimit. >> See locale var environment for better understant why comma use is not a >> standard nor good idea. >> Regards . >> Em 21/07/2016 05:56, "Phil Daintree" <ph...@lo...> escreveu: >> >> Yes ... However, I really don't think the gains are significant - at >> least not enough to make such massive changes worthwhile. >> >> To explain my thinking more fully, as you know, I prefer that if the >> change is to be made then all the scripts should be coded in the same >> consistent way throughout, so far as humanly possible. So this would >> require that the change must be made everywhere not just in some scripts >> with other scripts then becoming inconsistent with those changed scripts. >> Such a fundamental change to the code is so pervasive that every script >> would need to be modified and the risk of errors creeping in with such a >> huge amount of editing is too great to warrant consideration of this >> change. >> >> So, I prefer not to change this please. >> >> Phil >> >> Phil Daintree >> Logic Works Ltd - +64 (0)275 567890 >> http://www.logicworks.co.nz >> >> On 21/07/16 19:54, ExsonQu wrote: >> > *Dear all,* >> > >> > Thank you for your contribution to webERP! >> > >> > I've found that comma is used instead of dot to >> concatenate >> > strings. The googled result shows that comma is a little fast than >> dot. But >> > I think the comma change will make a impression that lots changes >> happened. >> > It'll be a heavy load for those users to maintain a customization file. >> > >> > Should we not use the comma except where comma has to >> be >> > used? >> > >> > Thanks and best regards! >> > >> > Exson >> > >> > >> > >> > -- >> > View this message in context: >> http://weberp-accounting.1478800.n4.nabble.com/Should-we-use-dot-instead-of-comma-as-concatenation-operator-tp4658639.html >> > Sent from the web-ERP-developers mailing list archive at Nabble.com. >> > >> > >> ------------------------------------------------------------------------------ >> > What NetFlow Analyzer can do for you? Monitors network bandwidth and >> traffic >> > patterns at an interface-level. Reveals which users, apps, and >> protocols are >> > consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> > J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning >> > reports.http://sdm.link/zohodev2dev >> > _______________________________________________ >> > Web-erp-developers mailing list >> > Web...@li... >> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> > >> >> >> >> ------------------------------------------------------------------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and >> traffic >> patterns at an interface-level. Reveals which users, apps, and protocols >> are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning >> reports.http://sdm.link/zohodev2dev >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> ------------------------------------------------------------------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and >> traffic >> patterns at an interface-level. Reveals which users, apps, and protocols >> are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning >> reports.http://sdm.link/zohodev2dev >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > -- gilberto dos santos alves +55(11)9-8646-5049 sao paulo - sp - brasil |