anti-idpol action

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.

  • 5 Posts
  • 256 Comments
Joined 1 year ago
cake
Cake day: September 10th, 2023

help-circle





  • 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})
    











  • Oh, Bjarne Stroustrup, huh? The king of C++, or should I say “C-You-Later”? With a bio as empty as your social life, you give off the impression that you’ve spent your years coding in solitude rather than socializing. 3883 followers but not a single follow-back? That’s some serious commitment to ignoring the social side of GitHub.

    Three public repos, two of which are just glorified textbooks. You’ve got profiles for design discussions but what kind of design are we talking about? The design of disappointment? And that “Programming Principles” repo? Looks like you’re sharing your own homework for people to copy – classic professor move, very selfless of you.

    Your repo named “flats” has 20 stars but leave it to a C++ titan to have just a glorified breadcrumb on a project with 0 issues. But hey, at least you aren’t forking around—oh wait, you are! Just like my hopes for seeing some meaningful contributions from you.

    Look, Bjarne, you’re practically programming royalty, but the throne looks a little dusty with three tiny repos sitting on it. Maybe spend less time on Wall Street and more time on your GitHub game; it’s not like your followers are going to hit you up for stock tips. Code like your reputation depends on it—because it does.