Ask HN: Examples of Unusual Code Formatting Styles?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • boot

    Build tooling for Clojure.

    The recent discussion [1] on the Black formatter for Python had me thinking about whether there is any innovation still happening in the realm of code formatting. Most of the possible ways to format code in each language must have been tried by now, and I would expect we've converged on a narrow range of permutations purely for practical reasons. But recently I did see an interesting example [2] of Java formatting from the Boot library for Clojure, with a style that I had never seen before in that language.

    Are there other major variants of code formatting style still being developed out there?

    [1] https://news.ycombinator.com/item?id=30130315

    [2] https://github.com/boot-clj/boot/blob/master/boot/base/src/main/java/boot/App.java

  • teco

    TECO - Text Editor and COrrector, an old classic, reimplmented in Pascal

    Code formatting is all about matching the impedance of the source code to that of the human author/readers of the code. The development of literature suggest that innovation in this area will continue for a very long time.

    I myself am a huge fan of Pascal, and limiting code to one function per line. I find that clever/terse code is unmaintainable code.

    Here's some code I wrote back in 1991 for a TECO clone that reflects that style. Looking back, I think some things could have a few more comments, but it seems fairly easy to read the intent of the code.

    https://github.com/mikewarot/teco

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • ZLib

    A massively spiffy yet delicately unobtrusive compression library.

  • jsource

    J engine source mirror

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts