Peterlog

  1. Clojure: Functional

    By peter

    It's been awhile, but finally I've found some time to play with Clojure again.

    Now on for some more functional programming techniques: partials, closures, higher order functions, and so on.

    Recap: composite types as functions

    Composite types can be used as functions of their elements, I wrote about this previously …

  2. Clojure: Set for a Lazy Life

    By peter

    I'm now reaching Pt. III of "The Joy of Clojure". The first part is about immutability and lazy evaluation.

    Recap: Benefits of Immutability

    Values are set in constructors and don't change thereafter. Makes it easier to debug and reason about programs. Implementing invariants is easier: invariants only need to be …

  3. Clojure: Collecting things

    By peter

    Last time I've explored scalar data types. There are a lot of details to discover there, but on the whole that was dry stuff.

    Now for something a bit more complex: collection data types (putting the List in Lisp).

    Persistence and Terminology

    Immutable sequences are called persistent in The Book …

  4. Logstash

    By peter

    When I was a System Integrator in Zug, I really learned to love log files. Indispensable for troubleshooting; and over time you learned to visualize the internal state of the trading programs just by looking at the traces.

    However, most of those logs were local. The most critical log messages …

  5. Clojure: Scale those scalars

    By peter

    Now for some more details on fundamental data types. The fourth chapter of "The Joy of Clojure" 2nd ed. deals with some scalar data type topics. I'll cover integer overflow, keywords, symbols, metadata, regular expressions, and others.

    Overflow and Promotion

    By default, we get Longs:

    user> (def regular 23)
    #'user …
  6. This Clojure Firehose

    By peter

    Previously, I've been starting my foray into Clojure-land with some pretty basic stuff, an intro to some datastructures. Now I'm going into more interesting territory: functions, namespaces, blocks & scope.

    Functions make the Lisp go round

    Functions Anonymous

    Defining anonymous functions is done with this 'special form' ie. builtin primitive:

    user …
  7. This Clojure Thing

    By peter

    I like languages. I don't have much of an ear for natural languages, but after some decades of playing around with computers I do know a little bit about programming languages. Once in a while I set out to learn a new one.

    So why learn Clojure? First, the learning …

  8. Btw., Todoist

    By peter

    I'm now happily using Todoist. The free version is somewhat limited (no task notes, no reminders), and paid is a bit pricey (US$ 29,- / year). But on the other hand, I've come to really appreciate some of its features, such as breaking up tasks into subtasks, further grouping in projects …

  9. Tasks, lists, eye candy

    By peter

    I'm a bit embarrased. This is the first time I'll abandon a piece of software I've been a long-time user of, mostly on usability and design reasons -- so shallow.

    I love lists, and I'm pretty forgetful. At times I'm so immersed in a job that its virtually impossible for me …

« Page 4 / 10 »