Skip to content

Jessitron

Search
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter
  • Search
Search
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter
  • Search

fsharp

Strong Typing in Java: a religious argument

March 1, 2012

Strongly-typed, type-inferred languages like F#, Scala, and Haskell make Java feel like its static typing system is half-assed. This is not Java’s fault entirely; it’s the way we use it. Say we have a domain class like public class User { public User(String firstName, String lastName, String email, long balanceInDollars) {}… } I’m in agreement …

Read moreStrong Typing in Java: a religious argument

Tags fsharp, Java, religion

F# Snippet: sequence partitioning

February 20, 2012

This F# Snippet illustrates a way to divide a sequence into a sequence of shorter sequences of a fixed length. The snippet uses list comprehensions. I don’t like it, because it involves flipping through the original sequence over and over and over. With recursion, we can do all the construction in one pass through the …

Read moreF# Snippet: sequence partitioning

Tags fsharp, functional

A small correction: F# active patterns

September 4, 2011

In Professional F# 2.0, an example is given for using an active pattern to match against a struct. The example could be improved. The original: []type Point(x : int, y : int) = member pt.X = x member pt.Y = y override pt.ToString() = System.String.Format(“({0},{1})”, x, y)let newPoint = new Point(0,0)let (|Point|) (x : int, …

Read moreA small correction: F# active patterns

Tags fsharp

popular

  • PowerShell equivalent of find
    PowerShell equivalent of find
  • Run an OpenTelemetry Collector locally in Docker
    Run an OpenTelemetry Collector locally in Docker
  • PowerShell for `rm -rf`
    PowerShell for `rm -rf`
  • Spring Security for h2-console
    Spring Security for h2-console
  • Git Rebase inside IntelliJ IDEA
    Git Rebase inside IntelliJ IDEA

twitter

My Tweets

instagram

Look at these lovely bookends! I’d leave a review but Etsy thinks they’re still in transit. @youngoldthingsllc_
Where does understanding lie?

meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter

Tags

abstraction agile architecture automation change clojure complexity concurrency design DevOps Docker domain driven design Engineering functional functionalPrinciples Generativity git Java javascript learning observability philosophy process property-based testing reference ruby scala science Software Development symmathesy systems Systems Thinking teams testing thinkingFunctionally tistil typescript Web Development wit Yak Shaving

Archives

Search

© 2023 Jessitron, LLC
Scroll back to top