
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
   <title>Home on Jentsch Berlin</title>
   <link>https://jentsch.berlin/</link>
   <description>Recent content in Home on Jentsch Berlin</description>
   <generator>Hugo -- gohugo.io</generator>
   <language>en-us</language>
   <managingEditor>d@jentsch.berlin (Jentsch)</managingEditor>
   <webMaster>d@jentsch.berlin (Jentsch)</webMaster>
   <lastBuildDate>Tue, 24 Sep 2019 00:00:00 +0000</lastBuildDate>
   
       <atom:link href="https://jentsch.berlin/index.xml" rel="self" type="application/rss+xml" />
   
   
     <item>
       <title>Scala Kata Session</title>
       <link>https://jentsch.berlin/post/kata-session/</link>
       <pubDate>Tue, 24 Sep 2019 00:00:00 +0000</pubDate>
       <author>d@jentsch.berlin (Jentsch)</author>
       <guid>https://jentsch.berlin/post/kata-session/</guid>
       <description>&lt;p&gt;This time we at &lt;a href=&#34;https://www.meetup.com/de-DE/Scala-Berlin-Brandenburg/events/264775766/&#34;&gt;Scala Usergroup Berlin&lt;/a&gt; toke a more practical approach than just talking.
Together we tackled the kata &lt;a href=&#34;http://codingdojo.org/kata/FooBarQix/&#34;&gt;FooBarQix&lt;/a&gt; from &lt;a href=&#34;http://codingdojo.org/&#34;&gt;CodingDojo.org&lt;/a&gt;.
FooBarQix is an extension of the classical BizzBuzz. It&amp;rsquo;s a simulates how code evolves when more and more features are added.&lt;/p&gt;
&lt;p&gt;During the introduction I proposed a simple &lt;a href=&#34;https://en.wikipedia.org/wiki/Test-driven_development&#34;&gt;TDD&lt;/a&gt; cycle for this session:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;write a useful test, that tests only one feature and fails for the right reasons&lt;/li&gt;
&lt;li&gt;implement only as much is needed to make the test green&lt;/li&gt;
&lt;li&gt;optional, if and only if a pattern repeats &lt;em&gt;three&lt;/em&gt; times: refactor your code.&lt;/li&gt;
&lt;li&gt;go back to step 1&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&#34;https://scala.epfl.ch/&#34;&gt;The Scala Center&lt;/a&gt; provides simple templates to start new projects. With a simple &lt;a href=&#34;https://github.com/scala/scalatest-example.g8&#34;&gt;&lt;code&gt;sbt new scala/scalatest-example.g8&lt;/code&gt;&lt;/a&gt; everybody was able to start quickly.&lt;/p&gt;
&lt;p&gt;It was fun to see how the group applied different approaches to solve the Kata.
This was the first time I saw &lt;a href=&#34;https://en.wikipedia.org/wiki/QuickCheck&#34;&gt;property based testing&lt;/a&gt; used in this Kata.&lt;/p&gt;
&lt;p&gt;That in turn started a discussion what to do if your code you want to test and the tests them self become nearly identical.&lt;/p&gt;
</description>
     </item>
   
     <item>
       <title>How to start with zio</title>
       <link>https://jentsch.berlin/post/zio-start/</link>
       <pubDate>Fri, 19 Jul 2019 00:00:00 +0000</pubDate>
       <author>d@jentsch.berlin (Jentsch)</author>
       <guid>https://jentsch.berlin/post/zio-start/</guid>
       <description>&lt;p&gt;I gave talk on the &lt;a href=&#34;https://www.meetup.com/de-DE/Scala-Berlin-Brandenburg/events/261669878/&#34;&gt;Scala-Meetup Berlin&lt;/a&gt; about how to start using &lt;a href=&#34;https://zio.dev&#34;&gt;ZIO&lt;/a&gt; in a &lt;a href=&#34;https://www.playframework.com/&#34;&gt;Play!-Application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It was more of a mob-programming session, than a talk. So no slides. We covered following topics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Integrate ZIO and Futures&lt;/li&gt;
&lt;li&gt;Use the environment to pass dependencies&lt;/li&gt;
&lt;li&gt;How to handle various kinds of errors&lt;/li&gt;
&lt;li&gt;ZIO avoids some of the more advanced Scala techniques like implicits&lt;/li&gt;
&lt;/ul&gt;
</description>
     </item>
   
     <item>
       <title>The Expression problem</title>
       <link>https://jentsch.berlin/post/expression-problem/</link>
       <pubDate>Tue, 13 Nov 2018 00:00:00 +0000</pubDate>
       <author>d@jentsch.berlin (Jentsch)</author>
       <guid>https://jentsch.berlin/post/expression-problem/</guid>
       <description>&lt;p&gt;In this &lt;a href=&#34;https://www.meetup.com/de-DE/Scala-Berlin-Brandenburg/events/255864781/&#34;&gt;talk&lt;/a&gt; it tried to shed light on a problem that everyone of us has encountered in some form: the expression problem.&lt;/p&gt;
&lt;p&gt;The expression problem deals with the question of how data types and their associated operation can be kept open for later extension in the context of statically typed languages.
Many different strategies have been described to solve or circumvent this issue both on an architectural and language level.
&lt;a href=&#34;https://link.springer.com/chapter/10.1007/978-3-540-76637-7_15&#34;&gt;Finally-Tagless&lt;/a&gt; and object algebras are the first complete solutions which do not require any advanced language features in order solve this problem.
In this talk I introduced the expression problem itself and showed that it can be observed nearly everywhere in programming.
Finally, we will discussed the advantages and disadvantages of using Finally-Tagless and object algebras and how to deal with their shortcomings.&lt;/p&gt;
&lt;p&gt;Interesting observation: In Scala Finally-Tagless and object algebras are surprisingly similar.
Also I use &lt;a href=&#34;http://dotty.epfl.ch/&#34;&gt;Dotty&lt;/a&gt; in this presentation.
My initial intend was to use its better type-system, but it was that useful, everything type related can be translated to Scala 2.
Surprisingly the &lt;a href=&#34;https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html&#34;&gt;new extension methods&lt;/a&gt; made the code much more readable and shorted.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Addendum:&lt;/em&gt; I learned later on, that the Scala community at large uses Finally-Tagless differently than the original authors intended.&lt;/p&gt;
</description>
     </item>
   
     <item>
       <title>When all abstraction is lost</title>
       <link>https://jentsch.berlin/post/when-all-abstraction-is-lost/</link>
       <pubDate>Sun, 02 Jul 2017 00:00:00 +0000</pubDate>
       <author>d@jentsch.berlin (Jentsch)</author>
       <guid>https://jentsch.berlin/post/when-all-abstraction-is-lost/</guid>
       <description>&lt;p&gt;Scala Days Copenhagen 2017&lt;/p&gt;
&lt;p&gt;Did you ever implement an asynchronous/distributed algorithm or data structure and wondered whether your implementation is correct? Did you ever try to solve this problem by testing thoroughly and a little bit of reasoning with the result being “the system will probably work correctly”? If you answered to any of these question with yes then this talk is definitely for you.&lt;/p&gt;
&lt;p&gt;In this Talk we will look at a novel approach to easily prove the correctness of concurrent/distributed systems with the help of an extension for ScalaTest. The extension offers a DSL for describing behaviors of these systems and employs explicit state model checking for the purpose of proofing those behaviors. Since, model checking isn&amp;rsquo;t widely used in the Scala world we will (briefly) discuss this concept before looking at the DSL and extension itself. In the demo we will see that the extension can be used for proofing the correctness of a real-world system written in Scala.&lt;/p&gt;
&lt;p&gt;Monads will not be mentioned during this Talk. However, the audience may be exposed to a non-painful amount of temporal logic.&lt;/p&gt;
&lt;p&gt;Recording of the talk: &lt;a href=&#34;https://www.youtube.com/watch?v=2E8d8hjph0U&#34;&gt;https://www.youtube.com/watch?v=2E8d8hjph0U&lt;/a&gt;&lt;/p&gt;
</description>
     </item>
   
     <item>
       <title>AutoLifts</title>
       <link>https://jentsch.berlin/post/autolifts/</link>
       <pubDate>Wed, 17 Feb 2016 00:00:00 +0000</pubDate>
       <author>d@jentsch.berlin (Jentsch)</author>
       <guid>https://jentsch.berlin/post/autolifts/</guid>
       <description>&lt;p&gt;Talk about &lt;a href=&#34;https://github.com/wheaties/AutoLifts&#34;&gt;AutoLifts&lt;/a&gt;.
This talk was part of the Scala-Meetup in Berlin.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://jentsch.berlin/slides/AutoLifts.pdf&#34;&gt;Slides&lt;/a&gt;&lt;/p&gt;
</description>
     </item>
   
 </channel>
</rss>
