<?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 etorreborre</title><link>http://disqus.com/by/etorreborre/</link><description></description><atom:link href="http://disqus.com/etorreborre/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 13 Jul 2017 13:29:08 -0000</lastBuildDate><item><title>Re: Type-safe Strings with Scala Macros</title><link>https://xrrocha.net/post/typesafe-strings-scala-macros/#comment-3415032162</link><description>&lt;p&gt;Note: there is a nice library now for such use cases: &lt;a href="http://co.ntextu.al" rel="nofollow noopener" target="_blank" title="http://co.ntextu.al"&gt;http://co.ntextu.al&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Thu, 13 Jul 2017 13:29:08 -0000</pubDate></item><item><title>Re: Modern Functional Programming: Part 2</title><link>http://degoes.net/articles/modern-fp-part-2#comment-3005540623</link><description>&lt;p&gt;I think we agree. I just didn't want to give the impression that denotational semantics was just running natural transformations.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Wed, 16 Nov 2016 15:39:30 -0000</pubDate></item><item><title>Re: Modern Functional Programming: Part 2</title><link>http://degoes.net/articles/modern-fp-part-2#comment-3005515696</link><description>&lt;p&gt;John, I wonder if you are not too enthusiastic in your blog post. I re-read the part on denotational semantics: "Denotational semantics provide an unprecedented ability to reason about programs in a composable and modular fashion". My understanding is that this subject was historically not obvious at all! It was precisely because some programs could not be given some obvious modular denotational semantics that monads and monad transformers were invented. Just to quote an article (&lt;a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.36.7816&amp;amp;rep=rep1&amp;amp;type=pdf):" rel="nofollow noopener" target="_blank" title="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.36.7816&amp;amp;rep=rep1&amp;amp;type=pdf):"&gt;http://citeseerx.ist.psu.ed...&lt;/a&gt; "For example, it has long been recognized that traditional denotational semantics [24] is not suitable for compiler generation for a number of crucial reasons [16], among which is the lack of modularity and extensibility".&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Wed, 16 Nov 2016 15:24:34 -0000</pubDate></item><item><title>Re: Typelevel.scala | EDSLs as functions</title><link>https://typelevel.org/blog/2016/10/26/edsls-part-2.html#comment-2984287524</link><description>&lt;p&gt;Can't wait for part 2!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Fri, 04 Nov 2016 05:58:15 -0000</pubDate></item><item><title>Re: Modern Functional Programming: Part 2</title><link>http://degoes.net/articles/modern-fp-part-2#comment-2922507497</link><description>&lt;p&gt;Hi John, I'm still reading your article and noticed a typo in the `transfer` function. It should have `to: To[Account]` as a parameter.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Wed, 28 Sep 2016 01:59:47 -0000</pubDate></item><item><title>Re: Scalaz-Stream: Feed `Process` through the given effectful `Channel` concurrently</title><link>http://eugenezhulenev.com/blog/2014/04/01/scalaz-stream-concurrent-process/#comment-1325815698</link><description>&lt;p&gt;How would you go if you had some of your task having to wait on the result on previous tasks before running. That is, everything that is before Task 4 can run concurrently, then Task 4 must run, then, based on the result of Task 4, we decide if Tasks 5 to 10 need to run (and if they do, they run concurrently). At the moment, with my implementation I can do that because I just pipe a Process1[A, Task[A]] (let's call it execute1) onto my Process[Task, A] then call .sequence(n) on that. execute1 is a function using receive1 and calling itself recursively so it can take decisions based on the previous As. Of course, it is also side effecting in the sense that it starts the tasks right away. I'm not sure if 1. what I wrote is understandable, 2. if there's a better way of doing this using mergeN. I'm probably going to ask the question on the mailing list...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Wed, 09 Apr 2014 03:34:24 -0000</pubDate></item><item><title>Re: Scalaz-Stream: Feed `Process` through the given effectful `Channel` concurrently</title><link>http://eugenezhulenev.com/blog/2014/04/01/scalaz-stream-concurrent-process/#comment-1325314646</link><description>&lt;p&gt;Hi Eugene,  here is what I used to achieve concurrency: &lt;a href="https://gist.github.com/etorreborre/10219659" rel="nofollow noopener" target="_blank" title="https://gist.github.com/etorreborre/10219659"&gt;https://gist.github.com/eto...&lt;/a&gt;. It is slightly different from what you did. What do you think?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Tue, 08 Apr 2014 22:16:48 -0000</pubDate></item><item><title>Re: Entities and Values</title><link>http://eng.wealthfront.com/2010/05/entities-and-values.html#comment-48451027</link><description>&lt;p&gt;&amp;gt; It is also important that an entity can be constructed by passing nulls to facilitate partial domain model instantiations in unit tests.&lt;/p&gt;&lt;p&gt;I'm not sure about this recommendation. Most of time I pass mocks or real entities to construct aggregates. I found very valuable to have a flexible set of test fixtures providing entities/values for different contexts that you evolve with my production code. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Wed, 05 May 2010 00:27:33 -0000</pubDate></item><item><title>Re: Running Scala specs tests in Maven with JUnit 4</title><link>http://www.themcwongs.com/?p=66#comment-13366874</link><description>&lt;p&gt;Hi Mark,&lt;/p&gt;&lt;p&gt;Thanks for your post.&lt;/p&gt;&lt;p&gt;2 tips for making your specification even more concise (with specs.1.6.0-SNAPSHOT or 1.5.1 SNAPSHOT):&lt;/p&gt;&lt;p&gt;This will make your specification class a JUnit test:&lt;br&gt;class BasicCassandra extends SpecificationWithJUnit { ... }&lt;/p&gt;&lt;p&gt;It is still runnable in the console with:&lt;/p&gt;&lt;p&gt;scala -cp &amp;lt;...&amp;gt; run BasicCassandra&lt;/p&gt;&lt;p&gt;And you can write (if you like it):&lt;/p&gt;&lt;p&gt;cass.connect().before&lt;br&gt;cass.close().after&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Eric.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Sun, 26 Jul 2009 20:05:59 -0000</pubDate></item><item><title>Re: Scala and EasyMock</title><link>http://www.eishay.com/2009/07/scala-and-easymock.html#comment-12937720</link><description>&lt;p&gt;1. Right now I don't have the bandwidth to write a full Easymock trait, tough that would be a nice addition to have.&lt;/p&gt;&lt;p&gt;2. Yes, you can access the JMock functionalities without using specs:&lt;/p&gt;&lt;p&gt;&lt;a href="http://code.google.com/p/specs/wiki/UsingJMock#Use_JMock_without_a_Specification" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/specs/wiki/UsingJMock#Use_JMock_without_a_Specification"&gt;http://code.google.com/p/sp...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;There is also a trait for Mockito which is actually my favorite mock library (I didn't provide a reusable trait outside of specs yet but there's very little to do for that and I'll certainly do it)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Mon, 20 Jul 2009 00:05:39 -0000</pubDate></item><item><title>Re: Scala and EasyMock</title><link>http://www.eishay.com/2009/07/scala-and-easymock.html#comment-12935886</link><description>&lt;p&gt;Hi, you can get an even better syntax by using the "Manifest" undocumented feature of Scala.&lt;/p&gt;&lt;p&gt;useMock[ToMock] { mock =&amp;gt;&lt;br&gt;val toTest = new ToTest(mock)&lt;br&gt;toTest.doSomethingWithToMock()//should call method1() and method2() on mocked&lt;br&gt;}&lt;/p&gt;&lt;p&gt;See how this was done for specs and jmock for example: &lt;a href="http://code.google.com/p/specs/source/browse/trunk/src/main/scala/org/specs/mock/JMocker.scala" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/specs/source/browse/trunk/src/main/scala/org/specs/mock/JMocker.scala"&gt;http://code.google.com/p/sp...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Eric.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etorreborre</dc:creator><pubDate>Sun, 19 Jul 2009 22:45:17 -0000</pubDate></item></channel></rss>