<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by พ่อน้องมะนิว &amp; มะโน on Medium]]></title>
        <description><![CDATA[Stories by พ่อน้องมะนิว &amp; มะโน on Medium]]></description>
        <link>https://medium.com/@boysbee?source=rss-698837b4cc0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*srfactbObLL-NOFa.jpeg</url>
            <title>Stories by พ่อน้องมะนิว &amp;amp; มะโน on Medium</title>
            <link>https://medium.com/@boysbee?source=rss-698837b4cc0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 00:42:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@boysbee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to fix: Kotlin, Java 17, Jackson: Can not deserialize value class]]></title>
            <link>https://medium.com/@boysbee/how-to-fix-kotlin-java-17-jackson-can-not-deserialize-value-class-4fe36578560e?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fe36578560e</guid>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 08:33:36 GMT</pubDate>
            <atom:updated>2023-10-16T08:33:36.294Z</atom:updated>
            <content:encoded><![CDATA[<p>Kotlin: 1.8<br>jackson-module-kotlin: 2.15.2<br>Java version: 17</p><p>I have the following classes:</p><pre>@JvmInline<br>value class Code(val value: String)<br>@JvmInline<br>value class Message(val value: String)<br>data class Response(val code: Code, val message: Message)</pre><p>and I want to deserialize that response as follows</p><pre>val json = &quot;&quot;&quot;{&quot;code&quot;: &quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;&quot;&quot;<br>val responseObject = objectMapper.readValue(json, Response::class.java)</pre><p>Step to reproduce by unit test.</p><pre>@JvmInline<br>value class Code(val value: String)</pre><pre>@JvmInline<br>value class Message(val value: String)<br>data class Response(val code: Code, val message: Message)<br>class Test {<br>    private lateinit var objectMapper: ObjectMapper<br>    @BeforeEach<br>    fun setUp() {<br>        objectMapper = ObjectMapper().registerKotlinModule()<br>    }<br>    @Test<br>    fun `can deserialization value class`() {<br>        val response = &quot;&quot;&quot;{&quot;code&quot;: &quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;&quot;&quot;<br>        val actualResponse = objectMapper.readValue(response, Response::class.java)<br>        assertEquals(&quot;ok&quot;, actualResponse.code.value)<br>        assertEquals(&quot;success&quot;, actualResponse.message.value)<br>    }<br>    @Test<br>    fun `can serialize value class to json string`() {<br>        val responseObject = Response(Code(&quot;ok&quot;), Message(&quot;success&quot;))<br>        val actualResponse = objectMapper.writeValueAsString(responseObject)<br>        val expectedResponse = &quot;&quot;&quot;{&quot;code&quot;:&quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;&quot;&quot;<br>        assertEquals(expectedResponse, actualResponse)<br>    }<br>}</pre><p>will see error when run tests</p><pre>Cannot construct instance of `com.test.Response` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)<br> at [Source: (String)&quot;{&quot;code&quot;: &quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;; line: 1, column: 2]<br>com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.things.Response` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)<br> at [Source: (String)&quot;{&quot;code&quot;: &quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;; line: 1, column: 2]</pre><p>Now,First solution try to use @JsonProperty</p><pre>data class Response(@JsonProperty(&quot;code&quot;) val code: Code, @JsonProperty(&quot;message&quot;) val message: Message)</pre><p>But not work</p><pre>Cannot construct instance of `com.tests.Response` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)<br> at [Source: (String)&quot;{&quot;code&quot;: &quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;; line: 1, column: 2]<br>com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.things.Response` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)<br> at [Source: (String)&quot;{&quot;code&quot;: &quot;ok&quot;,&quot;message&quot;:&quot;success&quot;}&quot;; line: 1, column: 2]</pre><p>Another solution is to use @JsonCreator , @JvmStatic to fix it.</p><pre>data class Response(val code: Code, val message: Message) {<br>    companion object {<br>        @JsonCreator<br>        @JvmStatic<br>        fun create(code: String, message: String) = Response(Code(code), Message(message))<br>    }<br>}</pre><p>Run tests again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMgRpzl_OA_1DKcUwsCZzQ.png" /></figure><p>After checking this is a bug since a long time ago <a href="https://github.com/FasterXML/jackson-module-kotlin/issues/413">https://github.com/FasterXML/jackson-module-kotlin/issues/413</a>, This bug will be fixed soon and released at the next version of jackson: <a href="https://github.com/FasterXML/jackson-module-kotlin/issues/650">https://github.com/FasterXML/jackson-module-kotlin/issues/650</a> . Also maybe use <a href="https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/value-classes.md#serializable-value-classes">kotlin.serializable</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fe36578560e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Month: Low Heart Rate Training Plan ( Just for Me )]]></title>
            <link>https://medium.com/@boysbee/first-month-low-heart-rate-training-plan-just-for-me-17dc9cd85446?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/17dc9cd85446</guid>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 02:45:20 GMT</pubDate>
            <atom:updated>2023-01-06T02:45:20.451Z</atom:updated>
            <content:encoded><![CDATA[<p>First Month: Low Heart Rate Training Plan ( Just for Me )</p><p>My four-week training plan, is design to build up base endurance and, next week, increase by 5 km for each session, and the last week goes back to the first week&#39;s training plan.</p><p><strong>Week1:</strong></p><p>Monday:</p><p>Rest day/Strength training</p><p>Tuesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 30-minute easy run (aim for a heart rate that is no higher than your maximum aerobic heart rate, as determined by the formula 180 — your age = MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Wednesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 45-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Thursday:</p><p>Rest day/Strength training</p><p>Friday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 30-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Saturday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: Long run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Sunday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 30-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p><strong>Week2:</strong></p><p>Monday:</p><p>Rest day/Strength training</p><p>Tuesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 35-minute easy run (aim for a heart rate that is no higher than your maximum aerobic heart rate, as determined by the formula 180 — your age = MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Wednesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 50-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Thursday:</p><p>Rest day/Strength training</p><p>Friday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 35-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Saturday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: Long run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Sunday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 35-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p><strong>Week3:</strong></p><p>Monday:</p><p>Rest day/Strength training</p><p>Tuesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 40-minute easy run (aim for a heart rate that is no higher than your maximum aerobic heart rate, as determined by the formula 180 — your age = MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Wednesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 60-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Thursday:</p><p>Rest day/Strength training</p><p>Friday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 40-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Saturday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: Long run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Sunday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 40-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p><strong>Week4:</strong></p><p>Monday:</p><p>Rest day/Strength training</p><p>Tuesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 30-minute easy run (aim for a heart rate that is no higher than your maximum aerobic heart rate, as determined by the formula 180 — your age = MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Wednesday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 45-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Thursday:</p><p>Rest day/Strength training</p><p>Friday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 30-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Saturday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: Long run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><p>Sunday:</p><p>Warm up: 5–10 minutes of light stretching or mobility exercises</p><p>Training: 30-minute easy run (aim for a heart rate that is no higher than your MAHR)</p><p>Cool down: 5–10 minutes of light stretching or mobility exercises</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*_3CgdAXGWZ2Wq1RhAmT2Dg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17dc9cd85446" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider]]></title>
            <link>https://medium.com/@boysbee/unable-to-load-io-netty-resolver-dns-macos-macosdnsserveraddressstreamprovider-46d89bf74d42?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/46d89bf74d42</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Mon, 09 May 2022 08:19:16 GMT</pubDate>
            <atom:updated>2022-05-09T08:19:16.145Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Problem</strong></p><p>MacBook Pro (14-inch, 2021) Chip : Apple M1 Pro</p><p>Kotlin version : 1.6.20</p><p>Found issue when trying to run or use library `io.netty` will caught error</p><pre>SEVERE: Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.<br>java.lang.reflect.InvocationTargetException<br> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)<br> at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br> at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)<br> at io.netty.resolver.dns.DnsServerAddressStreamProviders.&lt;clinit&gt;(DnsServerAddressStreamProviders.java:64)<br> at io.netty.resolver.dns.DnsNameResolverBuilder.&lt;init&gt;(DnsNameResolverBuilder.java:60)<br> at reactor.netty.transport.NameResolverProvider.newNameResolverGroup(NameResolverProvider.java:432)<br> at reactor.netty.tcp.TcpResources.getOrCreateDefaultResolver(TcpResources.java:305)<br> at reactor.netty.http.HttpResources.getOrCreateDefaultResolver(HttpResources.java:139)<br> at reactor.netty.http.client.HttpClientConfig.defaultAddressResolverGroup(HttpClientConfig.java:382)<br> at reactor.netty.transport.ClientTransportConfig.resolverInternal(ClientTransportConfig.java:223)<br> at reactor.netty.http.client.HttpClientConfig.resolverInternal(HttpClientConfig.java:436)<br> at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.lambda$subscribe$0(HttpClientConnect.java:264)<br> at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:57)<br> at reactor.core.publisher.FluxRetryWhen.subscribe(FluxRetryWhen.java:77)<br> at reactor.core.publisher.MonoRetryWhen.subscribeOrReturn(MonoRetryWhen.java:46)<br> at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)<br> at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:271)<br> at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)<br> at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)<br> at reactor.core.publisher.Mono.subscribe(Mono.java:4361)<br> at kotlinx.coroutines.reactive.AwaitKt.awaitOne(Await.kt:190)<br> at kotlinx.coroutines.reactive.AwaitKt.awaitOne$default(Await.kt:183)<br> at kotlinx.coroutines.reactive.AwaitKt.awaitSingle(Await.kt:81)<br> at com.expediagroup.graphql.client.spring.GraphQLWebClient.execute$suspendImpl(GraphQLWebClient.kt:47)<br> at com.expediagroup.graphql.client.spring.GraphQLWebClient.execute(GraphQLWebClient.kt)<br> at com.expediagroup.graphql.client.GraphQLClient$DefaultImpls.execute$default(GraphQLClient.kt:30)<br> at com.me.graphql.MainKt$main$1.invokeSuspend(Main.kt:12)<br> at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)<br> at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)<br> at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)<br> at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)<br> at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)<br> at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)<br> at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)<br> at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)<br> at com.me.graphql.MainKt.main(Main.kt:10)<br> at com.me.graphql.MainKt.main(Main.kt)<br>Caused by: java.lang.UnsatisfiedLinkError: &#39;io.netty.resolver.dns.macos.DnsResolver[] io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider.resolvers()&#39;<br> at io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider.resolvers(Native Method)<br> at io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider.retrieveCurrentMappings(MacOSDnsServerAddressStreamProvider.java:127)<br> at io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider.&lt;init&gt;(MacOSDnsServerAddressStreamProvider.java:123)<br> ... 38 more</pre><p><strong>Solution</strong></p><p>Append this library</p><p>gradle build</p><pre>runtimeOnly(&quot;io.netty:netty-resolver-dns-native-macos:4.1.76.Final:osx-aarch_64&quot;)</pre><p>maven build</p><pre>&lt;dependency&gt;<br>                &lt;groupId&gt;io.netty&lt;/groupId&gt;<br>                &lt;artifactId&gt;netty-resolver-dns-native-macos&lt;/artifactId&gt;<br>                &lt;version&gt;4.1.76.Final&lt;/version&gt;<br>                &lt;classifier&gt;osx-aarch_64&lt;/classifier&gt;<br>&lt;/dependency&gt;</pre><p>reference : <a href="https://github.com/netty/netty/issues/11020">https://github.com/netty/netty/issues/11020</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46d89bf74d42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vavr ​Option กับ Java Optional]]></title>
            <link>https://medium.com/@boysbee/vavr-option-%E0%B8%81%E0%B8%B1%E0%B8%9A-java-optional-8a4d9ff3887b?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a4d9ff3887b</guid>
            <category><![CDATA[vavr]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[functionaljava]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Tue, 27 Feb 2018 07:35:23 GMT</pubDate>
            <atom:updated>2018-02-27T07:46:25.031Z</atom:updated>
            <content:encoded><![CDATA[<p>“Optional” เป็น standard api ของ java 8+ แต่ “Option” เป็น class ใน Vavr มีบางอย่างที่ Option มีคล้ายกับ Optional คือ api “of” แต่แตกต่างกัน</p><h3><strong>of vs of</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77a908f0a7b343e1cf9f603e6db270fc/href">https://medium.com/media/77a908f0a7b343e1cf9f603e6db270fc/href</a></iframe><p>Optional.of นั้นไม่สามารถใส่ค่า “null” ได้ โดยถ้าใส่ค่า null เข้าไป Optional จะ throw NullPointerException ตอน runtime แต่ Option.of นั้นจะใส่ “null” ได้โดยไม่ throw NullPointerException ออกมาแต่ Type จะเป็น ​”None” แทน กรณีของ ​​Optional นั้นถ้าเกิดต้องการหลีกเลี่ยงค่า null ให้ใช้ method “ofNullable” แทน “of”</p><pre>Optional&lt;String&gt; valOfOptinalOfNullableIsNull = Optional.<em>ofNullable</em>(null); // this not throw null pointer exception.</pre><h3><strong>ifPresent vs ifDefined</strong></h3><p>Optional มี “ifPresent” สำหรับเช็คค่า ใน Option มี “ifDefined” สำหรับเช็คค่าเช่นเดียวกัน เช่น</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db017d34c5636aa1ddbeee935b8feeb9/href">https://medium.com/media/db017d34c5636aa1ddbeee935b8feeb9/href</a></iframe><p>method “isDefined” สามารถใช้แทน “isPresent” ได้แต่ต้องระวังเรื่องการเช็คค่า “null” จะสังเกตได้ว่าถ้าเกิดเราใช้ Option.of(null) จะได้ค่า ​Option.None ซึ่งถ้าเช็คด้วย “isDefined” มาจะ return “<strong>true</strong>” เสมอดังนั้นถ้าเราจะเช็คว่าค่านั้น “<strong>null”</strong> รึไม่เราใช้ method “<strong>isEmpty</strong>” ในการเช็คค่าแทนหรือใช้ Match.Case เช็ค type ว่า Some หรือ None แทนอันนี้ต้องระวังในการใช้งานครับ</p><h3><strong>orElse vs orElse</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/653a25219d4cf10a7763e9aefed17bbb/href">https://medium.com/media/653a25219d4cf10a7763e9aefed17bbb/href</a></iframe><p>“orElse” method สำหรับ ​​Optional กับ Option ค่อนข้างแตกต่างกันเพราะ Option.orElse นั้นจะ return Option&lt;T&gt; กลับ แต่ Optional.orElse จะ return T กลับซึ่ง Option นั้นต้องการให้ orElse หุ้ม ​​​Option เพราะ type ของ Option มีได้สองค่าคือ Some กับ None</p><h3><strong>orElseThrow vs getOrElseThrow</strong></h3><p>กรณีที่เราต้องการให้ throw exception หากเรา get ค่าออกมาไม่ได้ใน Optional เราใช้ “orElseThrow” ส่วนใน Option นั้นเราใช้ “getOrElseThrow” ซึ่งความหมายของ method นั้นจะตรงตัวกว่า</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92a40fbae3ced1dfa60f86c6aac822cb/href">https://medium.com/media/92a40fbae3ced1dfa60f86c6aac822cb/href</a></iframe><p><strong>SystemOut or Logging</strong></p><p>หากเราต้องการให้แสดงข้อมูลออกใน Optional นั้นมี method “ifPresent()” อยู่มันจะใช้การเช็คค่าว่ามีอยู่รึไม่และไม่มีเป็น null ถึงจะเรียก consume function ให้ทำงาน แต่ใน Option ของ Vavr นั้นแตกต่างกว่าคือใช้ method “peek” แทน “ifPresent” แต่เราสามารถเรียกใช้ method อื่น ๆ ต่อจาก “peek” ได้เช่น map, get, getOrElse, getOrElseThrow ตามก็ได้ดังตัวอย่าง</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52af6c8f0b9922914f07d1e05de565e5/href">https://medium.com/media/52af6c8f0b9922914f07d1e05de565e5/href</a></iframe><p>แต่จากตัวอย่างถ้าทดสอบดูจะเห็นว่าถ้าเกิด Option.of(null) เวลาเรียก method “peek” จะไม่แสดงผลอะไรออกมาเลยเพราะว่า ​”peek” นั้นจะรับเฉพาะ Some[value] เท่านั้นหากต้องการให้เรียก function consume สำหรับค่า ​None เราจะใช้ method “onEmpty” แทน</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96c107dd031e672aae8a799cdf43b2e4/href">https://medium.com/media/96c107dd031e672aae8a799cdf43b2e4/href</a></iframe><h3><strong>Collection</strong></h3><p>นอกจากนี้ Option ใน Vavr ยังมีความสามารถมากกว่า ​Optional ใน java ในเรื่องการแปลงตัวเองเป็น collection ได้เช่นตัวอย่างนี้</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f072bc5eb5540d486c65e8b42717c691/href">https://medium.com/media/f072bc5eb5540d486c65e8b42717c691/href</a></iframe><p>ในตัวอย่าง Option ใช้ line น้อยกว่าเพราะมี api “toStream” อยู่ในตัวทำไม่ต้องเรียกใช้ class Stream ในการแปลงอีก</p><p>นี้เป็นตัวอย่างและความสามารถบางส่วนใน Option ซึ่งสะดวกกว่าการใช้ Optional ใน java พอสมควรแต่ก็ยังมีข้อพึงระวังในการเลือกใช้ check เงื่อนไขเล็กน้อยของ “isDefined” กับ “isEmpty” ถ้าหากต้องการเช็คแบบใดควรระวังและทำการทดสอบ ด้วย unit test ก่อนนำไปใช้นะครับ</p><p>reference: <a href="https://softwaremill.com/do-we-have-better-option-here/">Do we have a better Option here?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a4d9ff3887b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vavr กับ Java]]></title>
            <link>https://medium.com/@boysbee/vavr-%E0%B8%81%E0%B8%B1%E0%B8%9A-java-c936c369f775?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c936c369f775</guid>
            <category><![CDATA[vavr]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Thu, 22 Feb 2018 16:24:42 GMT</pubDate>
            <atom:updated>2018-02-22T17:03:42.883Z</atom:updated>
            <content:encoded><![CDATA[<p>บางท่านคงเคยได้เขียน functional ด้วย java 8 มาบ้างแล้ว บางท่านเคยเขียน Functional Programing ด้วยภาษาอื่นมาบ้าง หรือ เคยไปเขียนภาษาอื่น ๆ มาแล้วกลับมาเขียน java นั้นจะพบว่า บางส่วนที่เป็น functional ใน java นั้นมันไม่เอื้ออำนวยหรือไม่สะดวกต่อการทำงานเท่าไหร่ ดังนั้นผมขอเสนอ library ตัวนึงที่จะช่วยขยายความสามารถของ ​java ให้มากขึ้น นั้นคือ <a href="http://www.vavr.io/">Vavr</a> ซึ่งจะเข้าช่วยเสริมให้การเขียน functional ใน java สนุกยิ่งขึ้น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*5lMNuC9frMPTosrcyeCCog.png" /></figure><h3><strong>Vavr คืออะไร?</strong></h3><p>จาก Introduction ใน <a href="http://www.vavr.io/vavr-docs/">User Guide</a> จะเห็นว่า Vavr คือ java extension ที่ช่วยให้เราเขียน data type และ functional control structure ที่มีอยู่ใน functional programming ภาษาอื่นเช่น Try, Either , Valdation ได้นั้นเอง</p><blockquote>Vavr (formerly called Javaslang) is a functional library for Java 8+ that provides persistent data types and functional control structures.</blockquote><h3><strong>Install Vavr</strong></h3><p>version ปัจจุบันของ vavr อยู่ที่ 0.9.2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*6C7wSYCW6he6nHbHdMmbKA.png" /></figure><h3><strong>มีอะไรเด่น ๆ ใน Vavr</strong></h3><p>อย่างที่อธิบายไปด้านบนว่า Vavr นั้นเป็น library ที่จะเสริมในส่วนที่ java นั้นยังคงเขียน functional ได้ไม่สมบูรณ์เท่าไร Vavr จึงมาพร้อมบางส่วนที่ java ขาดเช่น</p><p><strong>Tuple</strong></p><p>tuple ใน vavr พิเศษกว่า array, list ใน java ยังไง? โดยพื้นฐานแล้ว tuple ใน vavr เป็น immutable ครับและสามารถรองรับ object ที่แตกต่าง type กันได้ด้วย แต่มีข้อจำกัดอยู่ที่รองรับได้แค่ 8 type เท่านั้นเองคือมี Tuple ได้ถึง Tuple0, Tuple1, Tuple2 ,… , Tuple8</p><p>ตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QnrpgL1HrQkc1kjnFPC7Q.png" /></figure><p><strong>Functions</strong></p><p>Function ใน java 8 นั้นสร้างมารองรับได้แค่ถึง BiFunction เท่านั้นซึ่งแปลว่าสามารถรับค่า parameter ได้เต็มที่แค่สองตัวแต่ Vavr นั้นสร้าง Function ซึ่งรองรับ parameters ได้ถึงแปดตัวโดยมี type คือ Function0, Function1, Function2, … , Function8</p><p>ตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HXmgOF9NrKc1HNyTq-JHPA.png" /></figure><p><strong>Try</strong></p><p>Try นั้นไม่มีใน java เป็น monadic container type สำหรับใช้แสดงผลของกระบวนการทำงานซึ่งจะมี result เป็น exception หรือ ค่า return ที่ได้จากกระบวนการทำงานนั้น ๆ</p><p>ตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bbkswLm3VHOEg-KFjyUoA.png" /></figure><p><strong>Either</strong></p><p>Either ไม่มีใน java , Either จะแสดงค่าเพียงแค่สอง types เท่านั้นคือ “Left” และ “Right” ซึ่ง “Left” จะแทนสิ่งที่เราหมายถึงค่าที่ผิดส่วน “Right” จะแทนค่าสิ่งที่สำเร็จหรือถูกนั้นเอง</p><p>ตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dWRTcFh7NLySukp5tp2YVQ.png" /></figure><p><strong>Pattern Matching</strong></p><p>pattern matching ของ Vavr นั้นคล้าย ๆ switch ใน java แต่ได้จะคล้าย pattern matching ใน scala มากกว่า</p><p>ตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uv41jdCuVdSsP_N02LmNwQ.png" /></figure><p>ส่วนตัวคิดว่า pattern matching ใน vavr ก็ทำมาได้ดีพอสมควรถึงแม้ feature จะยังไม่เท่า scala ก็ตามแต่ก็ลด if-else ไปได้เยอะพอควร หากสนใจความสามารถใน pattern matching ของ vavr ลองดูต่อได้ที่ <a href="http://www.vavr.io/vavr-docs/#_pattern_matching">vavr#pattern_matching</a></p><p>จริง ๆ แล้ว Vavr ยังมี feature อื่น ๆ ที่เด่น ๆ เช่น immutable data structure ต่าง ๆ ความสามารถของ Functions และ Collections อีกด้วย สนใจศึกษาเพิ่มเติมก็เชิญที่เว็บไซท์ของ <a href="http://www.vavr.io/">Vavr</a> ครับ</p><p>ในคราวหน้าจะมานำเสนอ feature อื่นที่ใช้งานจริง ๆ ใน production code และส่วนที่ vavr สามารถ integration กับ library อื่น ๆ ที่ support การเขียน functional ใน java เช่น cyclops, resilience4j ขอบคุณครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c936c369f775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Bug] PowerMock 1.6.6 “No methods matching the name(s) were found in the class java.lang.Object.]]></title>
            <link>https://medium.com/@boysbee/%E0%B8%81%E0%B8%B3%E0%B8%A5%E0%B8%B1%E0%B8%87%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99-unit-test-%E0%B8%AD%E0%B8%A2%E0%B8%B9%E0%B9%88%E0%B8%95%E0%B8%B2%E0%B8%A1%E0%B8%9B%E0%B8%81%E0%B8%95%E0%B8%B4%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89-powermock-%E0%B9%80%E0%B8%88%E0%B8%AD%E0%B8%B0%E0%B9%80%E0%B8%88%E0%B8%AD-error-%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B9%80%E0%B8%82%E0%B9%89%E0%B8%B2%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B8%9A%E0%B8%B1%E0%B8%87%E0%B9%80%E0%B8%AD%E0%B8%B4%E0%B8%8D-2ce727b27739?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ce727b27739</guid>
            <category><![CDATA[powermock]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[unittest]]></category>
            <category><![CDATA[powermockito]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Tue, 26 Dec 2017 07:11:10 GMT</pubDate>
            <atom:updated>2017-12-26T07:16:29.879Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Bug] PowerMock 1.6.6 &quot;No methods matching the name(s) {method name} were found in the class hierarchy of class java.lang.Object.</h3><p>กำลังเขียน Unit test อยู่ตามปกติโดยใช้ “PowerMock” เจอะเจอ error นี้เข้าโดยบังเอิญ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7EhsHCciJAj2GyEbwoipQ.png" /></figure><p>ลอง google หาก็เจอ stackoverflow “<a href="https://stackoverflow.com/questions/40984882/mockito-and-powermock-methodnotfoundexception-being-thrown">Mockito and PowerMock MethodNotFoundException being thrown</a>” เขาแนะนำให้ถอย version ลงไปที่ “1.6.5” หรือขยับขึ้นไป “1.7.x” แทนส่วนตัวผมนั้นใช้ “1.6.6”</p><p>แก้ไข “pom.xml” ซะให้เรียบร้อย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*RapKJrP_EF27sQQkm6KANA.png" /></figure><p>Run unit test อีกครั้ง ผ่านแล้วครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*LkOGHqPgKhaV9mBWFf_RdA.png" /></figure><p>Note ไว้เตือนความจำ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ce727b27739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mock private method ด้วย PowerMock]]></title>
            <link>https://medium.com/@boysbee/mock-private-method-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-powermock-787dadf9f421?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/787dadf9f421</guid>
            <category><![CDATA[mock]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[powermock]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Mon, 25 Dec 2017 04:49:00 GMT</pubDate>
            <atom:updated>2017-12-25T15:49:58.695Z</atom:updated>
            <content:encoded><![CDATA[<p>ช่วงนี้ได้มีโอกาสมาทำการเปลี่ยนแปลงระบบงานเก่ามากแล้วให้เปลี่ยนไปรองรับกับเทคโนโลยีใหม่ ๆ ซึ่งแน่นอนของเก่าไม่มีการเขียน unit test เลยซักนิดเดียว จึงต้องมานั่งแก้กรรมกันไป</p><p>วันนี้เจอ Class หนึ่งซึ่งเขียนโดนประกาศตัวเองเป็นส่วนหนึ่งใน attribute และเรียก private method ของตัวเองไว้ ทำให้เวลาเขียน unit test ค่อนข้างลำบาก แต่เราก็มีวิธีการแก้ปัญหานี้ด้วยการใช้ “Spy” ใน “PowerMock”</p><p>ตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*N4Sti2D6Qum7uQlppNEF-A.png" /></figure><p>เราจะใช้ “@PrepareForTest” สำหรับการเขียน unit test กับ private method</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*2Ek6KyMwJkhZXpVJy7DWLQ.png" /></figure><p>ส่วนขั้นตอนการเขียน setup unit test ก็จะหน้าตาประมาณนี้เราจะใช้ “Spy” สำหรับเพื่อให้จัดการกับ private method ข้างในตัว mock object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*EqsAMsmsCn4qKM_4VIFSIA.png" /></figure><p>ส่วนตัวมาใน test case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*bKD72-kv98X8wiIHokIF4Q.png" /></figure><p>เราสั่งให้ “Spy” ของเรานั้นตอบค่าที่เราต้องการทดสอบออกมาให้ที โดยรูปแบบวิธีการเรียกใช้ เราจะใช้ “doReturn( ค่าที่เราต้องการ )” แล้วตามด้วย “when( spy , “ชื่อของ private method” )” แต่ถ้าหากเรามี parameter เราก็สามารถใช้เป็น “varargs” ต่อท้ายเข้าไปได้เลยเช่น when( spy , “privateMethod”, a, b, c) ครับ ลองทดสอบดูผลที่ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*4tB6tiQI4q39980u-sGdNA.png" /></figure><p>ลองทดสอบอีกหนึ่ง case ให้ private ตอบค่าเป็น “false” แทน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*Emilhu05AMHCwiMQlMMwIw.png" /></figure><p>ผลที่ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*D0xUucfxTpsQAMI7mF8yCw.png" /></figure><p>PowerMock ยังมีลูกเล่นอีกเยอะไว้จะเก็บมาฝากคราวหลังนะครับ (─‿‿─)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=787dadf9f421" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[แรก GO]]></title>
            <link>https://medium.com/@boysbee/%E0%B9%81%E0%B8%A3%E0%B8%81-go-e7dcca49edaf?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7dcca49edaf</guid>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Sat, 31 Oct 2015 02:57:14 GMT</pubDate>
            <atom:updated>2015-10-31T03:00:03.046Z</atom:updated>
            <content:encoded><![CDATA[<p>แรก GO</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B7o2--BeBWuidh7ClZ_rvg.png" /></figure><p>Build ดิ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HTa8XABLH4MSvuAHYug0Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7dcca49edaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ร้านอาหารตามสั่งคือการจำลองระบบราชการไทยแบบหนึ่ง]]></title>
            <link>https://medium.com/@boysbee/%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%AD%E0%B8%B2%E0%B8%AB%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B2%E0%B8%A1%E0%B8%AA%E0%B8%B1%E0%B9%88%E0%B8%87%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%88%E0%B8%B3%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%B2%E0%B8%8A%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%84%E0%B8%97%E0%B8%A2%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%AB%E0%B8%99%E0%B8%B6%E0%B9%88%E0%B8%87-6e680da3255b?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e680da3255b</guid>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Wed, 28 Oct 2015 06:27:13 GMT</pubDate>
            <atom:updated>2015-10-28T06:27:13.072Z</atom:updated>
            <content:encoded><![CDATA[<p>ร้านอาหารตามสั่งคือการจำลองระบบราชการไทยแบบหนึ่ง</p><ul><li>รอคิว</li><li>แซงคิว</li><li>เด็กเส้น</li><li>ตกสำรวจ</li><li>มาก่อนได้ทีหลัง</li></ul><p>ความสะใจเล็ก ๆ คือ ข้าราชการไทย ๆ ก็มากินเหมือนกัน</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e680da3255b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[25 ตุลาคม 2558]]></title>
            <link>https://medium.com/@boysbee/25-%E0%B8%95%E0%B8%B8%E0%B8%A5%E0%B8%B2%E0%B8%84%E0%B8%A1-2558-efe8673909dc?source=rss-698837b4cc0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/efe8673909dc</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[daddy]]></category>
            <dc:creator><![CDATA[พ่อน้องมะนิว & มะโน]]></dc:creator>
            <pubDate>Sun, 25 Oct 2015 16:11:32 GMT</pubDate>
            <atom:updated>2015-10-25T16:15:33.640Z</atom:updated>
            <content:encoded><![CDATA[<p>07:30 มะโนะสะกิดให้ออกไปชงนม</p><p>07:45 มะโนกินนมเสร็จลุกออกไปหายาย</p><p>08:00 ภรรยาลุก</p><p>08:10 มะนิวคลานลงเตียงถีบหน้าแล้วออกไปนอกห้อง</p><p>08:30 ตื่นเตรียมตัวไปส่งภรรยาทำงาน</p><p>08:45 ขับรถไปส่งภรรยาทำงานและแวะซื้อชานม</p><p>09:00 ภรรยาถึงที่ทำงาน</p><p>09:15 พา มะนิว มะโน แวะวัดบางสองร้อยหยอดตู้จากนั้นกลับบ้าน</p><p>10:00 ซ่อมจักรยาน ล้างจักรยาน ชวนมะนิวล้างจักรยาน</p><p>11:30 พามะนิว มะโน ไปร้านกาแฟ เลี้ยงลิง มะนิวไม่ยอมกลับจะไปไหว้พระต่อ หลอกล่อจนกลับบ้านได้</p><p>13:30 ถีบจักรยานไปซื้อกับข้าว</p><p>14:20 กลับมาถึงบ้าน มะโนหลับ มะนิวยังไม่หลับ ทานข้าว</p><p>15:00 ล้างรถ</p><p>16:00 ล้างรถเสร็จเอาจักรยานไปถีบ 4 กิโล</p><p>16:40 กลับมารับ มะนิว มะโน ไปตลาดนัด มะนิวกอดรอบคอแล้วบอก “ป๊าอุ้ม” ( มันง่วงซินะ )</p><p>17:10 กลับจากตลาดนัด … มะนิวหลับคารถ</p><p>17:35 ออกไปรับภรรยา พา มะนิว ไปด้วย</p><p>18:10 รับภรรยากลับบ้าน</p><p>19:30 รอขึ้นรถกลับ กทม.</p><p>22:00 ถึง กทม. อย่างปลอดภัย</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efe8673909dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>