Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PK
anti-idpol action @programming.dev

I am working on fedi software that is hoping to allow Kodi, Plex and Popcorn Time get rid of IMDb/TMDB dependency. Dm me if you're skilled in SvelteKit and/or Go, especially the Fiber framework, or machine learning with Rust and willing to contribute.

Posts 6
Comments 376
Languages
  • The party was meant to just be the organizer of the workers, not the ruler. The degeneration took off only after Lenin's death and the 4th Congress of the Comintern, which was dominated by Troika. that's why Mayakovsky was a devout Bolshevik until Stalinzation advanced and started scrapping several progressive conquests of October, leading to his suicide at the refusal to prop up the Stalinist degeneracy.

    Also Lenin was, for instance, not a big fan of the many experimental artistic movements that flourished after the Revolution, but did not suppress them, unlike Stalin.

    He also regretted banning other parties (but which was necessitated by every single one of them taking up arms against Sovnarkom) and before his death wanted to offer Trotsky a post of Commisar of Internal Affairs in a desperate bid to curtail the bureaucracy, but Trotsky, unfortunately, refused.

  • SQL Has Problems. We Can Fix Them: Pipe Syntax In SQL
  • 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})
    
  • What watches can run Rust?
  • Anything that can run C++ should be able to run Rust if you use the LLVM backend, perhaps except when a watch uses musl libc and you rely on some glibc-only call in your program. afaik the only physical devices shipping with musl are car infotainment systems based on l4 kernels and networking hardware (OpenWRT).

  • Whatever 'Clean Code' you write now, it'll be shit eventually and in need of a complete rewrite
  • death by specificity is a thing...
    HTTPServletRequest has a fuckton of methods but 90% of them could be eliminated if one treated the data as a simple fucking map instead of creating 4 methods for each key in every record of your schemas.

  • low effort maymay

    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!"

    56

    Not really sure whether S-expressions or Python indentation-based scoping get more hate...

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

    74

    Clojure "advertisement"

    yewtu.be Piped

    An alternative privacy-friendly YouTube frontend which is efficient by design.

    Piped

    Alternative links: YT Tubo Invidious Piped 0 Piped 1

    0

    HOI4 mod concept: The Dragon Awakens

    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).

    0

    Referentially transparent and declarative framework?

    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.

    0