[-] pkill@programming.dev 2 points 2 weeks ago

Somewhat useful with (neo)vim, where it's (however tiny af) context window spans every open buffer

[-] pkill@programming.dev 1 points 2 weeks ago

Akkoma's bubble feature should be ported to other software

[-] pkill@programming.dev 2 points 2 weeks ago

Notesnook ftw

[-] pkill@programming.dev 1 points 2 weeks ago

https://altcha.org is nice plus a crowdsec bouncer

[-] pkill@programming.dev 10 points 3 weeks ago

Meta or microshit would fill the market gap then...

[-] pkill@programming.dev 2 points 3 weeks ago* (last edited 3 weeks ago)

In Clojure, -> is used for inserting the piped argument at the head position in the arguments of whatever it is passed to, while ->> is used for inserting it at the tail. This approach is great for working with immutable data in a series of approachable transformations, which I believe is one reason why so many Domain-Specific Languages for generative programming are written in that language, aside from its interactive REPL. Additionally, there is no need to worry about excessive copying, as this is generally well optimized.

This can be particularly useful with HoneySQL, which is more of a DSL for SQL rather than a typical ORM tool. For example:

(defn apply-filters [query filters]
"applies WHERE clauses to a query"
  (reduce (fn [q [column value]]
            (helpers/where q [:= column value]))
          query
          filters))

(defn build-dynamic-query [{:keys [table columns filters sort-by limit]}]
  (-> {}
      (helpers/select columns)
      (helpers/from table)
      (apply-filters filters)
      (helpers/order-by sort-by)
      (helpers/limit limit)
      sql/format))

;; Result - a super readable function call that resembles a natural language 
(build-dynamic-query 
  {:table :products 
   :columns [:id :name :price] 
   :filters {:category "electronics" :in-stock true}
   :sort-by [:price :desc]
   :limit 20})
[-] pkill@programming.dev 1 points 3 weeks ago

Lenin was 47 in 1917

[-] pkill@programming.dev 2 points 3 weeks ago

(\r (frequencies "strawberry"))

[-] pkill@programming.dev 4 points 3 weeks ago

the 'I' in LLM stands for intelligence

[-] pkill@programming.dev 2 points 1 month ago

lots of onions cut in rings as they resemble parentheses the most

515
low effort maymay (programming.dev)

Alt text: O'RLY? generated book cover with a donkey, navy blue accent, header: "It's only free if you don't value your time", title: "Handling Arch Linux Failures", subtitle: "Mom, please cancel my today's agenda!"

265
submitted 3 months ago* (last edited 3 months ago) by pkill@programming.dev to c/programmer_humor@programming.dev

...from people who seem to refuse to install paredit or coloring plugins for either? ps lisp syntax ftw, it's a feature!

46
submitted 5 months ago* (last edited 5 months ago) by pkill@programming.dev to c/programmer_humor@programming.dev

Alternative links: YT Tubo Invidious Piped 0 Piped 1

7
submitted 6 months ago* (last edited 6 months ago) by pkill@programming.dev to c/paradoxgames@lemmy.world

Would anyone here be perhaps interested in developing an alternative history mod for HOI4 where the Chinese revolution of 1925 resulted in early unification of China under communist rule, leaving it in much better position to defend itself against Japan? Might also make USA even more reluctant to join the war as Japan could be much more easily left in no position to wage the Pacific War.

Might even take a spin off the Soviet opposition paths, especially focuses like "The Committee in Exile" if China decides to split from the Soviets via it's focus tree and serve as a base for launching a coup in the USSR (think Polish or Lithuanian monarchist path mechanics).

47

As in title. Do you know any good alternative i2p trackers?

5
submitted 8 months ago* (last edited 8 months ago) by pkill@programming.dev to c/javascript@programming.dev

I currently use Svelte in my main personal project but while enjoying it's relatively concise, declarative syntax, I don't really like how it's not always easy or even possible to do stuff without relying on shared state and I think that's bad. So I started looking into Elm, but it seems to require a significant portion of boilerplate and somewhat more procedural code, which surprised me, considering how Haskell is often notably more concise than C. Is there anything that is somewhat like Elm, i.e. functional, but without being overly verbose?

Edit: I'd also prefer bundle sizes no larger or marginally larger than with Svelte and decent noscript support, at least on par with Vue or HTMX.

view more: next ›

pkill

joined 1 year ago