Skip to content

Jessitron

Search
  • Blog
  • Twitter
  • Patreon
  • Newsletter
  • Talks
  • Search
Search
  • Blog
  • Twitter
  • Patreon
  • Newsletter
  • Talks
  • 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

  • Who are we Now?
    Who are we Now?
  • PowerShell equivalent of find
    PowerShell equivalent of find
  • Dictionary Objects in JavaScript and TypeScript
    Dictionary Objects in JavaScript and TypeScript
  • Collective problem solving in music, art, science, and software
    Collective problem solving in music, art, science, and software
  • Developer aesthetic: a command line
    Developer aesthetic: a command line

meta

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

Tags

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

Archives

Search

© 2026 Jessitron, LLC
Scroll back to top