News for hackers. Stuff that matters.

marko-lev

Good job proving me right.
None of you know what you're talking about.
Re:What Learning APL Taught Me About Python on Thursday August 17, 2023 @04:23AM (#37158714)
I like to leverage some FP to bring readability to python

  from toolz import curried, pipe

  pipe(ages,
       curried.filter(lambda age: age > 17),
       list,
       len)
This way you can follow - vertically - what happens, where, and why.

You can make your own pipe function to avoid 3rd party dependencies

  import functools
  pipe = lambda *args: functools.reduce(lambda acc, el: el(acc), args)
Re:HTMx on Friday May 26, 2023 @01:29AM (#36080346)
HTMX is just HTML.

HTMX substitutes a DOM element with the HTML response you get from an on-click HTTP request instead of redirecting to a new page.

Claims of HTMX being yet another complexity or yet another JavaScript framework fail to acknowledge this.