▲ | RodgerTheGreat 8 days ago | |
I wrote a blog post some time ago which contrasts the "Schwartzian transform" with the slightly clearer alternative used by most APL-family languages and (in my opinion) an even cleaner approach which is possible in languages with a first-class table type: https://beyondloom.com/blog/rankingoffruits.html | ||
▲ | inopinatus 8 days ago | parent | next [-] | |
That was a lovely vignette, thanks. Much earlier in my career I had exactly the sense suggested that “something’s off” about the Schwartzian, even though it became a useful and idiomatic tool at the time. I only really understood the disquiet much later, when working with columnar data, and realising the positive qualities of declaring structs-of-arrays rather than arrays-of-structs, with subsequently excellent mechanical sympathy, and so on from there. | ||
▲ | throwanem 7 days ago | parent | prev [-] | |
Unfortunately, the only such language to which most workaday devs have access is some dialect of SQL. Fortunately, at least there's that. |