Better HN
topnewbestaskshowjobs
Log inSign up

marko-lev

6 karma · joined May 11, 2023 (3y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

Good job proving me right.

comment 3y ago · link · parent

None of you know what you're talking about.

comment 3y ago · link · parent

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)

comment 3y ago · link · parent

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.