mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#higherorderfunctions

0 posts0 participants0 posts today
Colin Macleod<p><span class="h-card" translate="no"><a href="https://mastodon.social/@chopsueey" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>chopsueey</span></a></span> Tcl gets a lot of hate for its loosely-typed "Everything Is A String" approach, but one of the consequences of this is that Higher-Order Functions become very natural, and are widely used. 😉 <br><a href="https://mastodon.scot/tags/tcl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tcl</span></a> <a href="https://mastodon.scot/tags/tcltk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tcltk</span></a> <a href="https://mastodon.scot/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.scot/tags/higherorderfunctions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>higherorderfunctions</span></a></p>
CuriousCoder<p>Higher-order functions (HOF) explained! 💡 </p><p>HOFs take one or more functions as arguments or<br>return a function as a result.</p><p>HOFs leverage the concept of functions as first-class citizens. This allows for more abstract, modular, and reusable code.</p><p><a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://mastodon.social/tags/higherorderfunctions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>higherorderfunctions</span></a></p>
nosh :fosstodon: (ʘ‿ʘ)<p>:javascript: <br>Decorators:<br>Why is there so much fuss about <a href="https://fosstodon.org/tags/decorators" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>decorators</span></a> when <a href="https://fosstodon.org/tags/HigherOrderFunctions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HigherOrderFunctions</span></a> can do the same thing &amp; have been available in <a href="https://fosstodon.org/tags/javaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javaScript</span></a> forever.</p><p>Being a functional or object based language the natural fit is HOF not Decorators.</p><p>If you want to simulate OOP in <a href="https://fosstodon.org/tags/js" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>js</span></a> &amp; use the elusion that inheritance is good for js code base then be my guest &amp; use decorators. 😀</p>