HackerTrans
TopNewTrendsCommentsPastAskShowJobs

marko-lev

no profile record

comments

marko-lev
·3 years ago·discuss
Good job proving me right.
marko-lev
·3 years ago·discuss
None of you know what you're talking about.
marko-lev
·3 years ago·discuss
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)
marko-lev
·3 years ago·discuss
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.