<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for frosas</title><link>http://disqus.com/by/frosas/</link><description></description><atom:link href="http://disqus.com/frosas/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 11 Aug 2017 03:01:04 -0000</lastBuildDate><item><title>Re: Using requestAnimationFrame with React - It Works On My Machine</title><link>http://blog.hersen.name/blog/2014/03/12/using-requestanimationframe-with-react/#comment-3462391731</link><description>&lt;blockquote&gt;Constantly re-rendering with props/state is slow&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Any source for this affirmation?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Fri, 11 Aug 2017 03:01:04 -0000</pubDate></item><item><title>Re: Save Money on Flights: How We Found $400+ in Savings on Plane Tickets</title><link>https://www.safervpn.com/blog/save-money-on-flight-tickets-vpn/#comment-3251866740</link><description>&lt;p&gt;I just tried it but had no success. Did it work for any of you?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Tue, 11 Apr 2017 21:00:10 -0000</pubDate></item><item><title>Re: How To Create a Ruby API with Sinatra</title><link>https://x-team.com/blog/how-to-create-a-ruby-api-with-sinatra/#comment-3099281663</link><description>&lt;p&gt;Try running this as a quick fix:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;document.querySelectorAll('code.hljs').forEach(el =&amp;gt; el.innerHTML = el.textContent);&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;It doesn't fix the spacing but at least it makes it readable.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 14 Jan 2017 13:22:51 -0000</pubDate></item><item><title>Re: Streams are arriving on the web, and it&amp;#39;s exciting</title><link>http://jakearchibald.com/2016/streams-ftw#comment-2482718478</link><description>&lt;p&gt;Very interesting!&lt;/p&gt;&lt;p&gt;The whole standard seems to be applicable to any type of value (instead of only binary data) so I guess it allows one to write in a reactive style (&lt;a href="https://en.wikipedia.org/wiki/Reactive_programming" rel="nofollow noopener" target="_blank" title="https://en.wikipedia.org/wiki/Reactive_programming"&gt;https://en.wikipedia.org/wi...&lt;/a&gt; )?&lt;/p&gt;&lt;p&gt;How the proposed Observable (&lt;a href="https://github.com/zenparsing/es-observable" rel="nofollow noopener" target="_blank" title="https://github.com/zenparsing/es-observable"&gt;https://github.com/zenparsi...&lt;/a&gt; ) compares to this standard? It looks like a superset of it to me.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Thu, 28 Jan 2016 06:24:21 -0000</pubDate></item><item><title>Re: Using ServiceWorker in Chrome today</title><link>http://jakearchibald.com/2014/using-serviceworker-today#comment-2391299632</link><description>&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting" rel="nofollow noopener" target="_blank" title="https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting"&gt;https://developer.mozilla.o...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It works like a charm!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Thu, 03 Dec 2015 14:16:27 -0000</pubDate></item><item><title>Re: Perception creix: ampliem la nostra oficina! - Perception - diseño web Granollers</title><link>http://www.perception.cat/noticies/2015/03/19/perception-creix-ampliem-la-nostra-oficina#comment-1961671004</link><description>&lt;p&gt;Amb tot aquest plàstic sembla que aneu a esquarterar algú. Dec haver vist massa Dexter ;)&lt;/p&gt;&lt;p&gt;Quin és l'ETA de les obres? M'encantaria veure com ha quedat!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sun, 12 Apr 2015 12:23:25 -0000</pubDate></item><item><title>Re: No app specified: telling Heroku gem what its default --app should be</title><link>http://code.dblock.org/no-app-specified-telling-heroku-gem-what-its-default-app-should-be/#comment-1815183304</link><description>&lt;p&gt;It seems there's an idiomatic (and shorter) way to do this. From &lt;a href="http://stackoverflow.com/questions/12479668/heroku-open-no-app-specified:" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/12479668/heroku-open-no-app-specified:"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;$ heroku git:remote -a your-app-name&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 24 Jan 2015 15:52:10 -0000</pubDate></item><item><title>Re: Persistence hunting &amp;#8211; humans running antelope to death</title><link>https://alistairpott.com/blog/2009/04/15/persistence-hunting-humans-running-antelope-to-death/#comment-1490606248</link><description>&lt;p&gt;The linked video is not available anymore, try this instead: &lt;a href="https://www.youtube.com/watch?v=826HMLoiE_o" rel="nofollow noopener" target="_blank" title="https://www.youtube.com/watch?v=826HMLoiE_o"&gt;https://www.youtube.com/wat...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Thu, 17 Jul 2014 19:53:58 -0000</pubDate></item><item><title>Re: Promise Anti-patterns</title><link>http://taoofcode.net/promise-anti-patterns/#comment-1256435916</link><description>&lt;p&gt;You're definitely right. I just wanted to point this approach has its own downsides too :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 22 Feb 2014 14:13:28 -0000</pubDate></item><item><title>Re: Promise Anti-patterns</title><link>http://taoofcode.net/promise-anti-patterns/#comment-1256125082</link><description>&lt;p&gt;I always end up writing ghost promises like this:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;Q().then(function() { return asyncCallNeeded ? doSomethingAsync() : 42 })&lt;br&gt;    .then(function() { doSomethingCool() })&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Because you run all your code as thenables, any exception being thrown (by doSomethingAsync(), in the example) will be captured and transformed to a rejected promise.&lt;/p&gt;&lt;p&gt;EDIT: Well, in this case the benefit is not so clear as one can expect for doSomethingAsync() to never throw an exception.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 22 Feb 2014 08:44:38 -0000</pubDate></item><item><title>Re: Promise Anti-patterns</title><link>http://taoofcode.net/promise-anti-patterns/#comment-1256112239</link><description>&lt;p&gt;Because this way you are in control of how the arguments are being passed.&lt;/p&gt;&lt;p&gt;For example, in the examples of this article there are only 5 cases where you can safely pass the function straightaway (6, if you use bind()).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 22 Feb 2014 08:26:51 -0000</pubDate></item><item><title>Re: Should You Run Your Startup Like GitHub?</title><link>http://www.fastcolabs.com/3020181/open-company/should-you-run-your-startup-like-github#comment-1092726455</link><description>&lt;p&gt;Don't you think that getting better at their uptime is precisely one of the main priorities among many githubbers right now?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Tue, 22 Oct 2013 17:12:44 -0000</pubDate></item><item><title>Re: Use the Strategy to avoid the Switch-Case antipattern</title><link>http://odino.org/use-the-strategy-to-avoid-the-switch-case-antipattern/#comment-989577125</link><description>&lt;p&gt;Lucky you if you have a great code coverage!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Mon, 05 Aug 2013 16:50:28 -0000</pubDate></item><item><title>Re: Use the Strategy to avoid the Switch-Case antipattern</title><link>http://odino.org/use-the-strategy-to-avoid-the-switch-case-antipattern/#comment-987583002</link><description>&lt;p&gt;Good luck trying to find where logNoticeMessage is being used with a simple grep };-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 03 Aug 2013 20:20:30 -0000</pubDate></item><item><title>Re: AngularJS</title><link>http://docs.angularjs.org/api/ng.$parse#comment-867494711</link><description>&lt;p&gt;Note promises are resolved when accessed:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;var context = {promise: $q.when('promise')};&lt;br&gt;console.log($parse('promise')(context)); // undefined&lt;br&gt;setTimeout(function() {&lt;br&gt;    console.log($parse('promise')(context)); // 'promise'&lt;br&gt;}, 0);&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Thu, 18 Apr 2013 19:09:15 -0000</pubDate></item><item><title>Re: AngularJS</title><link>http://docs.angularjs.org/api/ng.$q#comment-854479884</link><description>&lt;p&gt;If you pretend to use the resulting promise of then() be sure to return (or throw) something in the callbacks unless you want them to resolve with an undefined value. E.g.:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;promise.then(&lt;br&gt;    function(value) { console.log("Ok"); return value },&lt;br&gt;    function(reason) { console.log("Error"); throw reason }&lt;br&gt;).then(...)&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Sat, 06 Apr 2013 13:21:59 -0000</pubDate></item><item><title>Re: APIs are Dead, Long Live APIs</title><link>http://thenextweb.com/dd/2013/03/12/apis-are-dead-long-live-apis/#comment-827124982</link><description>&lt;p&gt;Two things to consider: YAGNI and site terms of use.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Tue, 12 Mar 2013 16:26:53 -0000</pubDate></item><item><title>Re: git ready » ignoring files</title><link>http://gitready.com/beginner/2009/01/19/ignoring-files.html#comment-780585412</link><description>&lt;p&gt;"lib" ignores both, "/lib" only the first one and "/something/lib" the other one&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Mon, 28 Jan 2013 07:34:28 -0000</pubDate></item><item><title>Re: Some Advice for all the JavaScript Semicolon Haters</title><link>http://benalman.com/news/2013/01/advice-javascript-semicolon-haters/#comment-777915923</link><description>&lt;p&gt;My mind coding with semicolons: a semicolon finishes a statement, don't insert new lines between &lt;code&gt;return&lt;/code&gt; and its returned expression, run JSHint to find missing semicolons.&lt;/p&gt;&lt;p&gt;My mind coding without semicolons: a new line finishes a statement, prefix statements starting with &lt;code&gt;(&lt;/code&gt; or &lt;code&gt;[&lt;/code&gt; with a semicolon.&lt;/p&gt;&lt;p&gt;Having used C, Perl, Java and PHP, semicolons feel natural to me. Having used Ruby and Python, no semicolons also feel natural.&lt;/p&gt;&lt;p&gt;Personally I prefer no semicolons. Less visual clutter, less typing, a similar intellectual cost, not having to rely on other tools and bugs are not that hard to trace.&lt;/p&gt;&lt;p&gt;But in the end consistency along the project matters more than what syntax is better, so I just mimic the styling I see.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Fri, 25 Jan 2013 11:12:55 -0000</pubDate></item><item><title>Re: Some Advice for all the JavaScript Semicolon Haters</title><link>http://benalman.com/news/2013/01/advice-javascript-semicolon-haters/#comment-777842166</link><description>&lt;p&gt;Optional semicolons are there since the beginning of Javascript, what makes you think not using them turns Javascript into something else?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Fri, 25 Jan 2013 10:04:25 -0000</pubDate></item><item><title>Re: Work with bootstrap, assetic and less</title><link>http://www.screenfony.com/symfony/howto-symfony-bootstrap-assetic-less/#comment-1346457274</link><description>&lt;p&gt;I've found a pair of inconveniences:&lt;/p&gt;&lt;p&gt;If you want to use one of the Bootstrap variables (like @baseFontSize) in another file you can't do this:&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br&gt;{% stylesheets ‘bootstrap.less’ 'main.less' %}&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;The solution I came up is to import them from a same file:&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br&gt;/* imports.less */&lt;br&gt;@import "bootstrap.less";&lt;br&gt;@import "main.less";&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;and load this file then:&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br&gt;{% stylesheets 'imports.less' %}&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;It is worst if you want to change these Bootstrap variables. As they are defined in the variables.less referenced from bootstrap.less, one have to either use a custom bootstrap.less or modify the original bootstrap.less like this:&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br&gt;@import "variables.less"; // Modify this for custom colors, font-sizes, etc&lt;br&gt;@import "../../../css/bootstrap-variables.less";&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;but then you can't use Composer to install Bootstrap for you.&lt;/p&gt;&lt;p&gt;Not sure which is the less ugly solution.&lt;/p&gt;&lt;p&gt;PD: Allowing the use of pre tag in the comments would be great :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Fri, 18 Jan 2013 10:07:33 -0000</pubDate></item><item><title>Re: Work with bootstrap, assetic and less</title><link>http://www.screenfony.com/symfony/howto-symfony-bootstrap-assetic-less/#comment-1346457271</link><description>&lt;p&gt;Bootstrap is now in Packagist so we can simply do:&lt;/p&gt;&lt;p&gt;"leafo/lessphp": "~0.3",&lt;br&gt;"twitter/bootstrap": "~2.2"&lt;/p&gt;&lt;p&gt;in composer.json. Also, specificying the lessphp file is not (longer?) required:&lt;/p&gt;&lt;p&gt;filters:&lt;br&gt;        lessphp:&lt;br&gt;            apply_to: "\.less$"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Thu, 17 Jan 2013 23:14:11 -0000</pubDate></item><item><title>Re: Why Marissa Mayer Should Acquire IFTTT And Go All In On Yahoo! Pipes</title><link>http://jfornear.co/why-marissa-mayer-should-acquire-ifttt-and-go-all-in-on-yahoo-pipes/#comment-683820050</link><description>&lt;p&gt;"No such pipe, or this pipe has been deleted"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Tue, 16 Oct 2012 02:38:44 -0000</pubDate></item><item><title>Re: Why Marissa Mayer Should Acquire IFTTT And Go All In On Yahoo! Pipes</title><link>http://jfornear.co/why-marissa-mayer-should-acquire-ifttt-and-go-all-in-on-yahoo-pipes/#comment-683319559</link><description>&lt;p&gt;I can't see the point on buying a company relying on such a fragile features &lt;a href="https://dev.twitter.com/docs/api/1.1/overview#JSON_support_only" rel="nofollow noopener" target="_blank" title="https://dev.twitter.com/docs/api/1.1/overview#JSON_support_only"&gt;https://dev.twitter.com/doc...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Mon, 15 Oct 2012 20:05:23 -0000</pubDate></item><item><title>Re: HTML5 Rocks - The Basics of Web Workers</title><link>http://www.html5rocks.com/en/tutorials/workers/basics/#comment-679283710</link><description>&lt;p&gt;Nice post. BTW, there are some references to webkiURL that should be webkitURL.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francesc Rosas</dc:creator><pubDate>Thu, 11 Oct 2012 16:36:30 -0000</pubDate></item></channel></rss>