Karl Heplerkarlhepler.com·21 hours agoFeaturedA Functional Programming LanguageFor some inexplicable reason, I suddenly became interested -- and for a short time, engrossed -- in creating my own programming language. And of course, like many things, my interest waned. However! Before that happened, I was able to settle on some ...Discuss·25 likes·64 readsFunctional Programming
Ikechukwu Ezeblog.ikeze.dev·Mar 17, 2024Extending Kotlin's Null-Safety with Monad ComprehensionKotlin has a very decent null-safety baked in; and even better, it is a part of its type system. private fun easy1(str: String?): String { return str?.let { return "$str is so easy" } ?: "Not so easy after all" } // We can easily ca...Discuss·2 likes·820 readsKotlin
Gus Vieweggusvieweg.hashnode.dev·Mar 13, 2024How to Make Tons of Friends and Thousands of Dollars while Having Oodles of Fun: A 5-Step GuideI cracked the Millennial Dilemma of "how to make friends as an adult" and I got paid $200 a month to solve it. For context: I grew an improv Meetup from 0 to 350+ members in under a year. Here's how I did it. And you can too in 5 steps. Make a Meetu...Discuss·1 likeGeneral Programming
Shai AlmogforJava, Debugging, DevOps & Open Sourcedebugagent.com·Mar 12, 2024Debugging Streams with PeekI blogged about Java Stream debugging in the past but I skipped an important method that's worthy of a post of its own: peek. This blog post delves into the practicalities of using peek() to debug Java streams, complete with code samples and common p...Discuss·10 likes·76 readsPractical Debugging at ScaleJava
Naman Hayarannamanhayaran.hashnode.dev·Mar 10, 2024Understanding Closures in JavaScript: A Beginner's GuideIn the world of JavaScript, closures are like magic tricks that can make your code do wonderful things. But don't worry, you don't need a magician's hat to understand them. Let's break it down into something as simple as sharing a secret message, so ...DiscussCode Tutorials
Sandip Samagmindmap.hashnode.dev·Mar 10, 2024Java8 Stream API Coding Interview Questions (Part-I)Find out all even and odd numbers from a given list of integers using streams. package com.java.streams; import java.util.Arrays; import java.util.List; public class EvenOddExample { private static void findEvenNumbers(List<Integer> integ...Discuss·40 readsJava 8java8-stream-api
Tural Suleymanidecodebytes.hashnode.dev·Mar 9, 2024Mastering Result Pattern in C#: Avoid Common PitfallsThe Result pattern in C# is an alternative to exception-based error handling. It avoids throwing exceptions and instead returns a special result object. This object indicates success or failure and can hold additional error information. This leads to...DiscussC#
Debajyati Deydebajyatidey.hashnode.dev·Mar 6, 2024Functions & Solving Problems in OCamlIn one of the previous articles, we've seen how to define a basic function with if-else expressions. In this article, we are going to get through the detailed overview of defining efficient functions and developing intuition to solve problems in the ...Discuss·23 likes·81 readsConcepts in OCamlFunctional Programming
Stephan Yustephanyu.hashnode.dev·Mar 6, 2024#22: Recursion with Pattern MatchingRecursion in Elixir is a programming technique where a function calls itself either directly or indirectly to solve a problem. Elixir is well-suited for recursion due to its tail-call optimization (more about this below), which prevents stack overflo...Discuss·1 likeElixir
Stephan Yustephanyu.hashnode.dev·Mar 6, 2024#21: Function Overloading with Pattern MatchingIn Elixir, function overloading can be achieved through both pattern matching and defining functions with different numbers of arguments (arities). In this post, we are going to take a closer look at the function overloading via pattern matching. Ple...DiscussElixir