<?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 martinos</title><link>http://disqus.com/by/martinos/</link><description></description><atom:link href="http://disqus.com/martinos/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 08 Mar 2019 14:56:48 -0000</lastBuildDate><item><title>Re: Introducing DigitalOcean Marketplace: Our Platform for Preconfigured 1-Click Apps and Tools</title><link>https://blog.digitalocean.com/introducing-digitalocean-marketplace/#comment-4370063505</link><description>&lt;p&gt;The big issue that I see for the moment is there are no ssl certificate installed on the droplets. I think that It would be great to have at least a procedure to add them.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Fri, 08 Mar 2019 14:56:48 -0000</pubDate></item><item><title>Re: yield_stelf is more awesome than you could think</title><link>http://zverok.github.io/blog/2018-01-24-yield_self.html#comment-4260153606</link><description>&lt;p&gt;I think that ‘apply’ would have been clearer.&lt;/p&gt;&lt;p&gt;value.apply(&amp;amp;:computation)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Fri, 28 Dec 2018 15:46:55 -0000</pubDate></item><item><title>Re: ReasonML: functions</title><link>http://www.2ality.com/2017/12/functions-reasonml.html#comment-3794529771</link><description>&lt;p&gt;I am wondering why you say the |&amp;gt; is for function composition . I am not able to compose two function together with it. I cannot do let add3 = add1 |&amp;gt; add2.  In Elm the composition operator is &amp;gt;&amp;gt;, Is there such an operator in ReasonML?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Fri, 09 Mar 2018 06:10:37 -0000</pubDate></item><item><title>Re: Deploying an Elixir + Phoenix + Elm Application with Nanobox</title><link>https://content.nanobox.io/deploying-an-elixir-phoenix-elm-application-with-nanobox/#comment-3713107792</link><description>&lt;p&gt;There is also two typos in:&lt;br&gt;li/nanoapp_web/template/layout/app.html.eex&lt;/p&gt;&lt;p&gt;it should be:&lt;br&gt;lib/nanoapp_web/templates/layout/app.html.eex&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 17 Jan 2018 16:41:16 -0000</pubDate></item><item><title>Re: Deploying an Elixir + Phoenix + Elm Application with Nanobox</title><link>https://content.nanobox.io/deploying-an-elixir-phoenix-elm-application-with-nanobox/#comment-3713069963</link><description>&lt;p&gt;The boxfile example that you show contains invalid chars. All the "-" are replaced by another unicode char. If you copy paste your example it won't work. Just to let you know.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 17 Jan 2018 16:17:28 -0000</pubDate></item><item><title>Re: Simple Functional Strong Params In Ruby</title><link>https://martinos.github.com/blog/blog/simple-functional-strong-params-in-ruby/#comment-3408205102</link><description>&lt;p&gt;Here's a small benchmark:&lt;/p&gt;&lt;p&gt;&lt;a href="https://gist.github.com/martinos/e5d924ac602d5bc2a0d7d4371e2b2426" rel="nofollow noopener" target="_blank" title="https://gist.github.com/martinos/e5d924ac602d5bc2a0d7d4371e2b2426"&gt;https://gist.github.com/mar...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;10 micro second per call.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Sun, 09 Jul 2017 18:53:09 -0000</pubDate></item><item><title>Re: Simple Functional Strong Params In Ruby</title><link>https://martinos.github.com/blog/blog/simple-functional-strong-params-in-ruby/#comment-3408194241</link><description>&lt;p&gt;I wrote this post in order to explain partial application, I used strong parameters as an example to show how it can make code composable. I didn't want people to use this necessary, but I wanted to demonstrate that it can help solve problems in a different way. I agree that It's not very easy to understand at first, but once you got it it opens a new world.&lt;/p&gt;&lt;p&gt;I am wondering why you think that this solution is complicated? I would like to know maybe I could improve my post.&lt;/p&gt;&lt;p&gt;I agree that OO programmer are not used to think that a function can have each of its parameters applied in different context. In languages such Haskell, Elm and F# every function is curried, so it's very familiar to FP programmers. Not because we are not familiar with a concept that makes it complex. &lt;br&gt; This Rich Hickey presentation explains it well : &lt;a href="https://www.infoq.com/presentations/Simple-Made-Easy" rel="nofollow noopener" target="_blank" title="https://www.infoq.com/presentations/Simple-Made-Easy"&gt;https://www.infoq.com/prese...&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;If you're wondering about benchmarking, I think that this is really negligible. If it take 1 ms for processing a params hash, this will not affect the throughput in 99.9% of cases.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Sun, 09 Jul 2017 18:43:51 -0000</pubDate></item><item><title>Re: Simple Functional Strong Params In Ruby</title><link>https://martinos.github.com/blog/blog/simple-functional-strong-params-in-ruby/#comment-3405618200</link><description>&lt;p&gt;Thanks for the correction ! If you are interested in FP I think that Elm is a very nice language to start with and I think it teaches you better functional programming concept than Elixir. Elixir has its merit but it is not the best for that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Fri, 07 Jul 2017 22:32:23 -0000</pubDate></item><item><title>Re: Simple Functional Strong Params In Ruby</title><link>https://martinos.github.com/blog/blog/simple-functional-strong-params-in-ruby/#comment-3405173508</link><description>&lt;p&gt;Thanks, I didn't know about itself.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Fri, 07 Jul 2017 16:16:31 -0000</pubDate></item><item><title>Re: Simple Functional Strong Params In Ruby</title><link>https://martinos.github.com/blog/blog/simple-functional-strong-params-in-ruby/#comment-3404490077</link><description>&lt;p&gt;I will create one, but I don't know exactly when, I am pretty busy at the moment.  Thanks for your interest.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Fri, 07 Jul 2017 09:06:28 -0000</pubDate></item><item><title>Re: How Elm Slays a UI Antipattern - Kris Jenkins' Blog</title><link>http://blog.jenkster.com/2016/06/how-elm-slays-a-ui-antipattern.html#comment-3106124445</link><description>&lt;p&gt;Last week I did an small Elm app in about 1hr of work without any tests or even running the app.  The first time that I ran it, I got this:&lt;/p&gt;&lt;p&gt;&lt;a href="http://static-pagesmc.s3.amazonaws.com/index.html" rel="nofollow noopener" target="_blank" title="http://static-pagesmc.s3.amazonaws.com/index.html"&gt;http://static-pagesmc.s3.am...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I think that doing that doing a small program like that one is very hard to do in Javascript without running the actual code even with good test coverage.&lt;/p&gt;&lt;p&gt;For me this is a proof on how a great compiler can help you develop quickly and help you create rock solid code.&lt;/p&gt;&lt;p&gt;Note that all the error handling has been taken care with Kris library. In this case, Github is down the user will get a nice error message.&lt;/p&gt;&lt;p&gt;Don't get me wrong, I am a big fan of TDD but in Elm you need to do less tests.  Less tests == less code, which means that it makes code easier to refactor.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 18 Jan 2017 11:55:04 -0000</pubDate></item><item><title>Re: [Elm 011.5] Elm Weekly Drip #11 and Exercise: Support PresenceDiff Types</title><link>https://www.dailydrip.com/topics/elm/drips/elm-weekly-drip-11-and-exercise-support-presencediff-types#comment-3059158670</link><description>&lt;p&gt;Sorry, I didn't realize that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Mon, 19 Dec 2016 09:28:47 -0000</pubDate></item><item><title>Re: [Elm 011.5] Elm Weekly Drip #11 and Exercise: Support PresenceDiff Types</title><link>https://www.dailydrip.com/topics/elm/drips/elm-weekly-drip-11-and-exercise-support-presencediff-types#comment-3057856590</link><description>&lt;p&gt;Just to let you know, there are some episodes that are marked as "Free" but when I click on the Episode there is no video.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Sun, 18 Dec 2016 10:15:50 -0000</pubDate></item><item><title>Re: Episode 277: Metaprogramming Model Validation Tests</title><link>https://elixirsips.dpdcart.com/subscriber/post?id=1955#comment-3002135671</link><description>&lt;p&gt;I didn't even know that this was possible, maybe it works because the list comprehension is a macro itself. I find this very interesting but it is pretty hard to reason about, personally I would prefer something like:&lt;/p&gt;&lt;p&gt;test "validates required fields are present", %{fields: fields} do&lt;br&gt;  for {field, message} &amp;lt;- fields do&lt;br&gt;        changeset = build(:user) |&amp;gt; User.changeset(%{field =&amp;gt; nil})&lt;br&gt;        refute changeset.valid?&lt;br&gt;        assert changeset.errors == [{field, {message, []}}]&lt;br&gt;    end&lt;br&gt;end&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Mon, 14 Nov 2016 15:32:18 -0000</pubDate></item><item><title>Re: 249 - Webpack, Phoenix, and Elm | Elixir Sips</title><link>https://elixirsips.dpdcart.com/subscriber/post?id=1679#comment-2728738807</link><description>&lt;p&gt;Thanks, this is a pretty good reason. By the way, I enjoy your elm-phoenix series a lot. I really think that the elm-phoenix combination has a lot of potential.  Thanks again.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Mon, 13 Jun 2016 15:29:49 -0000</pubDate></item><item><title>Re: 249 - Webpack, Phoenix, and Elm | Elixir Sips</title><link>https://elixirsips.dpdcart.com/subscriber/post?id=1679#comment-2728715491</link><description>&lt;p&gt;I am wondering why do you prefer Webpack over brunch for Elm development ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Mon, 13 Jun 2016 15:17:44 -0000</pubDate></item><item><title>Re: Getting started with Guardian › Stuff 'n Things</title><link>http://hassox.github.io/elixir/guardian/2015/06/19/guardian-getting-started.html#comment-2638977624</link><description>&lt;p&gt;What is the suggested way to create the secret_key?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Sat, 23 Apr 2016 13:11:09 -0000</pubDate></item><item><title>Re: Rosemont met fin au stationnement à 5 mètres d’une intersection</title><link>http://journalmetro.com/local/rosemont-la-petite-patrie/actualites/845759/rosemont-met-fin-au-stationnement-a-5-metres-dune-intersection/#comment-2272043360</link><description>&lt;p&gt;Un compromis intéressant serait de ne pas permettre le stationnement au coin des  sorties de rues à sens uniques mais sur les rue transversales. En tant qu'automobiliste et cycliste. il me semble que c'est à la sortie des rues et non à l'entrée qu'il y a un problème. Mais bon, je n'ai pas toutes les données pour porter un jugement éclairé, si au moins ce genre de données étaient disponibles aux citoyens.&lt;/p&gt;&lt;p&gt;J'ai l'impression que Projet Montréal n'est pas le genre à accepter les compromis.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Thu, 24 Sep 2015 12:17:36 -0000</pubDate></item><item><title>Re: Rosemont met fin au stationnement à 5 mètres d’une intersection</title><link>http://journalmetro.com/local/rosemont-la-petite-patrie/actualites/845759/rosemont-met-fin-au-stationnement-a-5-metres-dune-intersection/#comment-2269733334</link><description>&lt;p&gt;Merci Yannick&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 23 Sep 2015 15:37:00 -0000</pubDate></item><item><title>Re: Rosemont met fin au stationnement à 5 mètres d’une intersection</title><link>http://journalmetro.com/local/rosemont-la-petite-patrie/actualites/845759/rosemont-met-fin-au-stationnement-a-5-metres-dune-intersection/#comment-2269720056</link><description>&lt;p&gt;Je réponds à ma propre question: article 386.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 23 Sep 2015 15:30:35 -0000</pubDate></item><item><title>Re: Rosemont met fin au stationnement à 5 mètres d’une intersection</title><link>http://journalmetro.com/local/rosemont-la-petite-patrie/actualites/845759/rosemont-met-fin-au-stationnement-a-5-metres-dune-intersection/#comment-2269639374</link><description>&lt;p&gt;Je n'ai jamais entendu parlé de cette loi. Quel article?&lt;br&gt;&lt;a href="http://www2.publicationsduquebec.gouv.qc.ca/dynamicSearch/telecharge.php?file=/C_24_2/C24_2.html&amp;amp;type=2" rel="nofollow noopener" target="_blank" title="http://www2.publicationsduquebec.gouv.qc.ca/dynamicSearch/telecharge.php?file=/C_24_2/C24_2.html&amp;amp;type=2"&gt;http://www2.publicationsduq...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 23 Sep 2015 14:55:35 -0000</pubDate></item><item><title>Re: 110 Catch and Throw | RubyTapas</title><link>https://rubytapas.dpdcart.com/subscriber/post?id=243#comment-942864253</link><description>&lt;p&gt;I think that catch and throw are a nice feature of Ruby, but since they are not very common it debugging I bit more tricky.   Last week, I tried to debug a controller action that was not doing what it was expected to.  I step into the code and I realized that the method was returning before the end.&lt;/p&gt;&lt;p&gt;I said to myself, it's probably an exception raised, so I added a rescue Exception and nothing got catch. I was really clueless for many minutes.&lt;/p&gt;&lt;p&gt;I knew that throw and catch existed, I wanted to know who threw the object, so I tried to find a catch all for the throw method and I have found nothing on the Web.&lt;/p&gt;&lt;p&gt;I think that without a catch all method that allows us to see the callstack, which helps us to find who has thrown the object, makes debugging very difficult.&lt;/p&gt;&lt;p&gt;Do you know how to do a catch all?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 26 Jun 2013 09:23:46 -0000</pubDate></item><item><title>Re: Simple way to test IO in Ruby</title><link>http://dalibornasevic.com/posts/39-simple-way-to-test-io-in-ruby#comment-781211185</link><description>&lt;p&gt;Another way to do the same thing:&lt;br&gt;&lt;a href="https://gist.github.com/4660071#file-local_io-rb" rel="nofollow noopener" target="_blank" title="https://gist.github.com/4660071#file-local_io-rb"&gt;https://gist.github.com/466...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;local_io("line1\nline2\nline3"){&lt;a href="http://CLI.run" rel="nofollow noopener" target="_blank" title="CLI.run"&gt;CLI.run&lt;/a&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Mon, 28 Jan 2013 18:00:48 -0000</pubDate></item><item><title>Re: DOCTYPE - Episode 2 - Charts, Graphs, and Diagrams!</title><link>http://doctype.tv/charts#comment-105566252</link><description>&lt;p&gt;You should look at the Google Visualization API.   &lt;a href="http://code.google.com/apis/visualization/documentation/gallery.html" rel="nofollow noopener" target="_blank" title="http://code.google.com/apis/visualization/documentation/gallery.html"&gt;http://code.google.com/apis...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Those graphs are greats because they are interactive since they are made of Javascript.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Wed, 01 Dec 2010 11:50:09 -0000</pubDate></item><item><title>Re: git ready &amp;raquo; interactive adding</title><link>http://gitready.com/intermediate/2009/01/14/interactive-adding.html#comment-102650817</link><description>&lt;p&gt;Aleks, &lt;br&gt;git diff --cached is the diff between the index and the HEAD, not the working dir and the index.&lt;/p&gt;&lt;p&gt;Also I don't want to leave the interactive console.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martinos</dc:creator><pubDate>Thu, 25 Nov 2010 10:02:19 -0000</pubDate></item></channel></rss>