<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 13:52:45 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Optional function arguments/parameters by using associative array - coprolit</title>
      <link>https://snipplr.com/view/62307/optional-function-argumentsparameters-by-using-associative-array</link>
      <description>&lt;p&gt;By not being limited to provide certain arguments/parameters in right order when calling a function, makes the function more versatile and easier to extend without breaking old code (e.g. calls to the function). &#13;
One solution is to pass an associative array holding the parameters. &#13;
Advantage: argument order is unnecessary, each argument have a label - easier to remember.&lt;/p&gt;</description>
      <pubDate>Thu, 05 Jan 2012 00:13:08 UTC</pubDate>
      <guid>https://snipplr.com/view/62307/optional-function-argumentsparameters-by-using-associative-array</guid>
    </item>
    <item>
      <title>(JavaScript) using unobtrusive namespace - coprolit</title>
      <link>https://snipplr.com/view/50920/using-unobtrusive-namespace</link>
      <description>&lt;p&gt;Unobtrusive JavaScript should add as little as possible to the global object or global namespace of the environment in which it runs.&#13;
With following solution each module-writer's code is contained in private or in a unique namespace and cannot interfere with or intrude upon any other code at any time.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Mar 2011 23:57:37 UTC</pubDate>
      <guid>https://snipplr.com/view/50920/using-unobtrusive-namespace</guid>
    </item>
    <item>
      <title>(JavaScript) unobtrusive multiple event handlers on single element using jQuery - coprolit</title>
      <link>https://snipplr.com/view/50919/unobtrusive-multiple-event-handlers-on-single-element-using-jquery</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 21 Mar 2011 23:30:03 UTC</pubDate>
      <guid>https://snipplr.com/view/50919/unobtrusive-multiple-event-handlers-on-single-element-using-jquery</guid>
    </item>
    <item>
      <title>(JavaScript) Using params with setTimeOut - coprolit</title>
      <link>https://snipplr.com/view/50827/using-params-with-settimeout</link>
      <description>&lt;p&gt;With setTimeOut a reference to a function object cannot provide parameters for the scheduled execution of that function.&#13;
We can instead use a closure to provide parameters for the execution of a function prior to the execution of that function.&lt;/p&gt;</description>
      <pubDate>Sat, 19 Mar 2011 01:38:02 UTC</pubDate>
      <guid>https://snipplr.com/view/50827/using-params-with-settimeout</guid>
    </item>
    <item>
      <title>(JavaScript) Javascript revealing module pattern template - coprolit</title>
      <link>https://snipplr.com/view/50765/javascript-revealing-module-pattern-template</link>
      <description>&lt;p&gt;"Javascript module pattern emulates the concept of classes in such a way that we're able to include both public/private methods and variables inside a single object, thus shielding/namespacing particular parts from the global scope."&#13;
When inheritance is not needed and a only few instances is needed (Keep in mind that each instance places a new copy of each function in memory!)&lt;/p&gt;</description>
      <pubDate>Thu, 17 Mar 2011 08:40:45 UTC</pubDate>
      <guid>https://snipplr.com/view/50765/javascript-revealing-module-pattern-template</guid>
    </item>
    <item>
      <title>(JavaScript) flexible feed dialog function for Facebook  JavaScript SDK FB.ui - coprolit</title>
      <link>https://snipplr.com/view/40141/flexible-feed-dialog-function-for-facebook--javascript-sdk-fbui</link>
      <description>&lt;p&gt;A more flexible version of the 'official' Facebook feed dialog example.&#13;
&#13;
"The Feed Dialog prompts the user to publish an individual story to a profile's feed. This does not require any extended permissions."&#13;
&#13;
"The following simple JavaScript example demonstrates using the FB.ui method in the JavaScript SDK to use the Feed Dialog:"&lt;/p&gt;</description>
      <pubDate>Wed, 08 Sep 2010 23:07:57 UTC</pubDate>
      <guid>https://snipplr.com/view/40141/flexible-feed-dialog-function-for-facebook--javascript-sdk-fbui</guid>
    </item>
    <item>
      <title>(JavaScript) self-contained flash object embedding - coprolit</title>
      <link>https://snipplr.com/view/39558/selfcontained-flash-object-embedding</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 26 Aug 2010 21:50:14 UTC</pubDate>
      <guid>https://snipplr.com/view/39558/selfcontained-flash-object-embedding</guid>
    </item>
  </channel>
</rss>
