Thursday, 30 March 2017

Free Speech Forum #2210

Free Speech ForumJoin our free speech forum! You can find such topics on Forum Oi:Chit-ChatTechnologyReligionsGamingLifeMystery...
Read More :- "Free Speech Forum #2210"

Free Speech Forum #785

Free Speech ForumJoin our free speech forum! You can find such topics on Forum Oi:Chit-ChatTechnologyReligionsGamingLifeMystery...
Read More :- "Free Speech Forum #785"

Free Speech Forum #250

Free Speech ForumJoin our free speech forum! You can find such topics on Forum Oi:Chit-ChatTechnologyReligionsGamingLifeMystery...
Read More :- "Free Speech Forum #250"

Tuesday, 28 March 2017

Frog Prince #1266

Listen Frog Prince online here!...
Read More :- "Frog Prince #1266"

[dcphp-dev] Re: Global Variables Question

I agree with Ray that dependency injection is a more elegant solution to the problem. It makes certain resources, for example, a database connection, available throughout an application or framework, while minimizing mutability and the problems & confusion that come with it. Here's another article that talks about it in the context of the broader concept of Inversion of Control: https://martinfowler.com/articles/injection.html.For...
Read More :- "[dcphp-dev] Re: Global Variables Question"

[dcphp-dev] Re: Global Variables Question

Hi, Whitney.  Here's my take on the issue. https://www.experts-exchange.com/articles/19999/PHP-Design-Avoiding-Globals-with-Dependency-Injection.htmlOn Monday, March 27, 2017 at 8:24:57 AM UTC-4, Whitney Yiu wrote:Hi all,I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:You can also use the global keyword...
Read More :- "[dcphp-dev] Re: Global Variables Question"

Monday, 27 March 2017

[Downtown Dharma Listserve] Fwd: You're invited: Saturday April 1 5-8 pm Mindful Engagement Potluck

Hello,This Saturday we will be gathering once again to share food and discuss mindful engagement.The event is from 5 pm to 8 pm, with potluck from 5 to 6 and discussion from 6 to 8. (Sorry for the typo in previous email)We will hear in particular about the sanctuary movement. Danya and Scott have been keeping up with developments with All Souls and the wider movement in the DC area.Please RSVP to Nancy at nphlox@gmail.com Hope...
Read More :- "[Downtown Dharma Listserve] Fwd: You're invited: Saturday April 1 5-8 pm Mindful Engagement Potluck"

Re: [dcphp-dev] Global Variables Question

Basically what Kevin said. I had to deal with this question in the past and rounded up two reasons why here: http://oscarm.org/2013/09/why-global-variables-bad/ On 03/27/2017 08:40 AM, kevin@brucecreative.com wrote: Hi Whitney, As a general rule, don't get in the habit of using global… ever. It blows through class and function...
Read More :- "Re: [dcphp-dev] Global Variables Question"

Re: [dcphp-dev] Global Variables Question

This use is mostly a hangover from when PHP development was more procedural than object-oriented.  I agree it is best avoided altogether, but it can be used when you need to access a global variable while inside a function.The discussion of static variables in the manual's entry on variable scope is fruitful reading: http://php.net/manual/en/language.variables.scope.php.--dan millsOn Sun, Mar 26, 2017 at 10:08 AM, Whitney...
Read More :- "Re: [dcphp-dev] Global Variables Question"

Re: [dcphp-dev] Global Variables Question

Whitney, This advice is likely because include/require can be placed inside of a function (as well as in the global scope). When placed in a function, the included file's code executes within the scope of the function, so the included file's "global scope" is not *actually* in the global scope. (Think of include and require as being replaced with the content of the script they include. They do not create a new scope, nor drop...
Read More :- "Re: [dcphp-dev] Global Variables Question"

Re: [dcphp-dev] Global Variables Question

Hi Whitney,As a general rule, don't get in the habit of using global… ever. It blows through class and function walls and can create security holes. That being said, sometimes you have to maintain old code that still has it. If you run across it, make it your goal to refactor those out over time by passing variables and objects correctly through class and function properties.As far as having at the head of a file vs inside a function...
Read More :- "Re: [dcphp-dev] Global Variables Question"

[Downtown Dharma Listserve] Upcoming Events: April 1 and April 27

Please join us and help spread the word.Awakening the Heart: A Day of Loving-Kindness Practice with Deborah Helzer In times of conflict or pain, a clear mind and an open heart can be our greatest allies. This day of practice offers the opportunity to sit and walk in silence, in a supportive community, and give full attention to our deeper feelings.Periods of silent, independent practice will be interspersed with guided...
Read More :- "[Downtown Dharma Listserve] Upcoming Events: April 1 and April 27"

Sunday, 26 March 2017

[dcphp-dev] Global Variables Question

Hi all,I am reading a book (PHP and MySQL Web Development - Thomson, Welling; 5th Ed.; Addison-Wesley) and am trying to understand the following passage regarding global variables:You can also use the global keyword at the top of a script when a variable is first used to declare that it should be in scope throughout the script. This is possibly a more common use of the global keyword.Can someone explain...
Read More :- "[dcphp-dev] Global Variables Question"

Thursday, 23 March 2017

[dcphp-dev] Signal boost beverage subgroup in DC next tuesday.

Hey everyone, I just wanted to remind everyone next Tuesday is our monthly get together. It's at Meridian Pint which is located at 3400 11th St NW, Washington, DC. If you're coming via metro, Columbia Heights is the nearest stop, from there it's a 5-10 minute walk, coming out of the metro go east on Irving St. and then hang a left onto 11th St., the Pint is located directly on the corner of 11th and Park. If you're driving you...
Read More :- "[dcphp-dev] Signal boost beverage subgroup in DC next tuesday."

Monday, 20 March 2017

[Downtown Dharma Listserve] Reminder: Upcoming events (Thursday! & April 1st)

Join us for the following upcoming events!Thursday, March 23 -- Your Mind: Friend or Foe, a guided meditation and dharma talk with Luisa MonteroThe Buddha said that the source of both our suffering and our happiness is the mind.  How can we rewire our thinking, through the practice of mindfulness, to calm ourselves and see more clearly in this frenetic and 'cloudy' world? The tool of mindfulness helps us see that the mind...
Read More :- "[Downtown Dharma Listserve] Reminder: Upcoming events (Thursday! & April 1st)"

Meet MOLC's New Executive Director

       Mission of  Love Charities, Inc., Names Paola Bueno as Executive Director The Board of Directors of the Mission of Love Charities, Inc. is pleased to announce the selection of Prince George’s County resident Paola Bueno as executive director, effective May 1, 2017.Paola is an accomplished nonprofit...
Read More :- "Meet MOLC's New Executive Director"

Friday, 17 March 2017

Re: [Downtown Dharma Listserve] Fwd: Off the Cushion, March 17, 2017

Thanks Scott! I am planning to be at the Tuesday event.I had a typo in the April 1 potluck schedule, which will run from 5 to 8.2017-03-17 13:21 GMT-04:00 scott Drewes <scott.drewes@gmail.com>:Good afternoon All,I wanted to let folks know about Off-the-Cushion. It's one of the newsletters put out by IMCW. You can subscribe to the newsletters...
Read More :- "Re: [Downtown Dharma Listserve] Fwd: Off the Cushion, March 17, 2017"