<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	תגובות לפוסט: Monkey patching	</title>
	<atom:link href="https://internet-israel.com/%D7%A4%D7%99%D7%AA%D7%95%D7%97-%D7%90%D7%99%D7%A0%D7%98%D7%A8%D7%A0%D7%98/%D7%99%D7%A1%D7%95%D7%93%D7%95%D7%AA-%D7%91%D7%AA%D7%9B%D7%A0%D7%95%D7%AA/monkey-patching/feed/" rel="self" type="application/rss+xml" />
	<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/</link>
	<description>רן בר-זיק על פיתוח אינטרנט מתקדם</description>
	<lastBuildDate>Sat, 18 Jan 2020 23:48:08 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		מאת: עובד סוציאלי		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2929</link>

		<dc:creator><![CDATA[עובד סוציאלי]]></dc:creator>
		<pubDate>Sat, 18 Jan 2020 23:48:08 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2929</guid>

					<description><![CDATA[רן, תסתכל בבקשה במייל שלך המקושר לאתר. תודה.]]></description>
			<content:encoded><![CDATA[<p>רן, תסתכל בבקשה במייל שלך המקושר לאתר. תודה.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: חיים ארוכים		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2923</link>

		<dc:creator><![CDATA[חיים ארוכים]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 15:34:10 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2923</guid>

					<description><![CDATA[חסר הסבר למה לעזאזל זה נקרא monkey patching ולא cute cat patching.]]></description>
			<content:encoded><![CDATA[<p>חסר הסבר למה לעזאזל זה נקרא monkey patching ולא cute cat patching.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: יותם		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2922</link>

		<dc:creator><![CDATA[יותם]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 13:00:19 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2922</guid>

					<description><![CDATA[למה בדוגמת הקוד יש גם === וגם לאחר מכן ?true:flase? הערך שמחזיר === הוא בעצמו בוליאני]]></description>
			<content:encoded><![CDATA[<p>למה בדוגמת הקוד יש גם === וגם לאחר מכן ?true:flase? הערך שמחזיר === הוא בעצמו בוליאני</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: שחר		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2921</link>

		<dc:creator><![CDATA[שחר]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 09:21:11 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2921</guid>

					<description><![CDATA[בתגובה על &lt;a href=&quot;https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2917&quot;&gt;משתמש אנונימי (לא מזוהה)&lt;/a&gt;.

אפשר לבדוק כך:
if (arr.endsWith) {
    // it&#039;s true so do you stuff
}]]></description>
			<content:encoded><![CDATA[<p>בתגובה על <a href="https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2917">משתמש אנונימי (לא מזוהה)</a>.</p>
<p>אפשר לבדוק כך:<br />
if (arr.endsWith) {<br />
    // it's true so do you stuff<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: Royi Namir		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2920</link>

		<dc:creator><![CDATA[Royi Namir]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 07:23:42 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2920</guid>

					<description><![CDATA[בתגובה על &lt;a href=&quot;https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2917&quot;&gt;משתמש אנונימי (לא מזוהה)&lt;/a&gt;.

you don&#039;t]]></description>
			<content:encoded><![CDATA[<p>בתגובה על <a href="https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2917">משתמש אנונימי (לא מזוהה)</a>.</p>
<p>you don't</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: Royi Namir		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2919</link>

		<dc:creator><![CDATA[Royi Namir]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 07:22:58 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2919</guid>

					<description><![CDATA[Sorry this is the right jsbin

https://jsbin.com/sovusecixe/2/edit?html,js,console]]></description>
			<content:encoded><![CDATA[<p>Sorry this is the right jsbin</p>
<p><a href="https://jsbin.com/sovusecixe/2/edit?html,js,console" rel="nofollow ugc">https://jsbin.com/sovusecixe/2/edit?html,js,console</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: Royi Namir		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2918</link>

		<dc:creator><![CDATA[Royi Namir]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 07:21:36 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2918</guid>

					<description><![CDATA[That&#039;s why you shouldn&#039;t use monkey patcking and use the symbol which is exactly what it was  invented for .
This way , you don&#039;t touch any other proto methods.

see here : 

https://jsbin.com/sovusecixe/1/edit?html,js,console




const symbol = Symbol(&#039;endsWith&#039;);


Array.prototype[symbol] = function(arg) {
  return this[this.length - 1] === arg ? true : false;
}



const myArray = [&#039;avi&#039;, &#039;itzik&#039;, &#039;yaki&#039;];

console.log(myArray[symbol](&#039;yaki&#039;)); // true

console.log(myArray[symbol](&#039;sarah&#039;)); // false]]></description>
			<content:encoded><![CDATA[<p>That's why you shouldn't use monkey patcking and use the symbol which is exactly what it was  invented for .<br />
This way , you don't touch any other proto methods.</p>
<p>see here : </p>
<p><a href="https://jsbin.com/sovusecixe/1/edit?html,js,console" rel="nofollow ugc">https://jsbin.com/sovusecixe/1/edit?html,js,console</a></p>
<p>const symbol = Symbol('endsWith');</p>
<p>Array.prototype[symbol] = function(arg) {<br />
  return this[this.length &#8211; 1] === arg ? true : false;<br />
}</p>
<p>const myArray = ['avi', 'itzik', 'yaki'];</p>
<p>console.log(myArray[symbol]('yaki')); // true</p>
<p>console.log(myArray[symbol]('sarah')); // false</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		מאת: משתמש אנונימי (לא מזוהה)		</title>
		<link>https://internet-israel.com/%d7%a4%d7%99%d7%aa%d7%95%d7%97-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/%d7%99%d7%a1%d7%95%d7%93%d7%95%d7%aa-%d7%91%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/monkey-patching/comment-page-1/#comment-2917</link>

		<dc:creator><![CDATA[משתמש אנונימי (לא מזוהה)]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 07:06:15 +0000</pubDate>
		<guid isPermaLink="false">https://internet-israel.com/?p=8897#comment-2917</guid>

					<description><![CDATA[תודה. איך בודקים שהמתודה קיימת?]]></description>
			<content:encoded><![CDATA[<p>תודה. איך בודקים שהמתודה קיימת?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
