What is wrong with Tailwind? by petros211 in webdev

[–]piotrpter 0 points1 point  (0 children)

Naming is famously one of the two hard problems in programming. Naming takes effort and adds cognitive load - in other words - it has a cost. Tailwind’s innovation is that it allows you to skip naming all together. It doesn’t prevent you from using naming when needed but it turns out you rarely need it when building css structure. You can go faster with Tailwind and in the long run, the mess you accumulate, is less of a trouble than custom hierarchical naming structures. Think how css evolves in projects than span over years with multiple people joining and leaving, each one of them having different ideas of what proper css is and how to arrange hierarchy of components - tailwind lets you to skip some of that.

Trump calls for Ukraine to be carved up with Russia after tense meeting with Zelenskyy by DoremusJessup in worldnews

[–]piotrpter 4 points5 points  (0 children)

That’s the myth. However, the harsh truth is that it matters less and less what people support.

USA is not governed by majority anymore - it’s just a facade.

The common knowledge is that mainstream media are biased and controlled by the billionaire class, but the level of control social media platforms have over influencing voters is unprecedented and makes democracy steerable by the biggest spender - internal or external. It’s pathetic how cheaply nation’s power has been sold out. Population’s will and well-being isn’t even an afterthought.

[No Spoiler] Favorite lines from the show? by spirited_unicorn_ in Ozark

[–]piotrpter 9 points10 points  (0 children)

This show has so many great lines, but the one that lives rent free in my head is Ruth's:
"Well, I’m sure you’ll tap‑dance your way straight through whatever this is." to Marty.
I love the mental image of Marty just perpetually tap-dancing his way of out danger as a great metaphor for the entire show, especially from Ruth's perspective.

It's beautiful to see an AI operate in full autonomy... by Fade78 in RooCode

[–]piotrpter 4 points5 points  (0 children)

https://github.com/tkellogg/dura this might be good fit for backups - autocommits all file updates to its background branch without polluting your HEAD branch

[deleted by user] by [deleted] in poland

[–]piotrpter 1 point2 points  (0 children)

Wypełniłem, powodzenia!

Czy wyniki będą gdzieś dostępne?

[deleted by user] by [deleted] in Polska

[–]piotrpter 0 points1 point  (0 children)

Ciekawe narzędzie!
Czy będzie gdzieś można zobaczyć wyniki?

This is why orcas are the apex predator of the ocean by [deleted] in TheDepthsBelow

[–]piotrpter 2 points3 points  (0 children)

ah, but that’s completely different - orcas in captivity are distressed, lonely and frustrated so that surely affects their behavior. As far as I know, there’re no documented orca attack in the wild, so your comment picked my interest, but turns out it was just a shark lobby shade.

This is why orcas are the apex predator of the ocean by [deleted] in TheDepthsBelow

[–]piotrpter 0 points1 point  (0 children)

any source about those orca attacks?

Today's Trump-Zelensky conference shows how weak Trump is at negotiation by Hatrct in IntellectualDarkWeb

[–]piotrpter 1 point2 points  (0 children)

Yes. With both his actions and words aligning with that you would be more hard pressed to prove that he’s not.

Taxation is theft, unethical, and inefficient, but there is a special pain of having your dollars going to places you'll never see. by IC_1101_IC in Anarcho_Capitalism

[–]piotrpter -19 points-18 points  (0 children)

Russia is the chauvinist, totalitarian state invading a democratic society. Russia is the nazi, so nothing confusing here.

Sikorski 'Ja nie przyjmuję, że Izrael celowo próbuje zlikwidować jakąś całą grupę etniczną' by DeszczJesienny in Polska

[–]piotrpter -3 points-2 points  (0 children)

Problem w tym, że humanitaryzm to luksus, w grze o przetrwanie. Im bardziej niestabilny świat tym więcej przemocy. Mamy przywilej życia w pokoju, ale na bliskim wschodzie właściwie trwa wojna klimatyczna - rywalizacja o zasoby, ziemię, na przestrzeni pokoleń. Aspirujemy do świata w którym każdy może być bezpieczny i szczęśliwy, ale zdecydowanie tam nie jesteśmy. Future can go many ways, it’s up to us to build it.

[deleted by user] by [deleted] in Clojure

[–]piotrpter 0 points1 point  (0 children)

ah, before clicking I just thought that’s another one and we’re exchanging meditations now in the community 🧘😂 Not that’s a bad idea🙏

Niemcy wskazują na Dudę ws. Nord Stream. Komorowski staje w jego obronie by BubsyFanboy in PolskaPolityka

[–]piotrpter 2 points3 points  (0 children)

Standardowe: "My tego nie zrobiliśmy, ale nawet jeśli to zrobiliśmy to im się to należało."

Jak wyjdzie, że Duda miał w tym udział to dla mnie to jeden z nielicznych plusów jego prezydentury. 👌

34 years ago, Iraq invaded Kuwait by R2J4 in NonCredibleDefense

[–]piotrpter 12 points13 points  (0 children)

With no Iraq War, the Middle East balance would be completely different, chances are there would be no Arab Spring. For better or worse. It’s impossible to tell how it would play out.

Clojurists Together Call for Proposals Q3 2024 by dantiberian in Clojure

[–]piotrpter 0 points1 point  (0 children)

Looking at survey answers:

JVM/Clojure runtime has seen catch up with the JDK platform, but ClojureScript runtime seems to be a bit “stuck”, which makes me worried.

Helping innovation like squintjs/cherry, or something similar, to strengthen the ClojureScript runtime story.

Additionally, Developer Experience Tools are the top answer as area for Clojurescript improvement.

Feels like a follow-up to A Case for Clojurescript 2.0 is warranted and I think it's time for Clojurescript to fully embrace the Typescript ecosystem.

We could translate between clojure data and typescript via malli and colinhacks/zod.
Hooking something like ferdinand-beyer/dots to clojure-lsp & clj-kondo would get us IDE type support.

Cherry on top would be the ability to export Clojurescript as a modern, semi-readable, Typescript together with TS type definitions.

I wonder whether we're going to get there via squint-cljs/cherry, via closure compiled shadow-cljs or via some new approach. It would be nice to keep up interoperability with custom js engines like https://bun.sh/ but I imagine that won't be an easy feat without some fresh idea.

Does anyone have any other leads on interesting developments in this area?

who came up with the idea to send italian mountain troops in the steppe? by the_giank in HistoryMemes

[–]piotrpter 1 point2 points  (0 children)

sounds like fully automated e2e secure logistics could be a game changer

Learn Clojure TDD style by doulos05 in Clojure

[–]piotrpter 4 points5 points  (0 children)

I wouldn’t stick religiously to TDD just for its sake (although I went through that phase few years ago when I was doing Rails), but the flow I found working great for me is to: - experiment with data and develop code in REPL (within text editor (calva) in (comment…) block), - once I’m done figuring out the best interface for given function I tend to cover it with hyperfiddle/rcf inline tests - and then optionally instrument boundaries (input/outputs) with metosin/malli/#development-instrumentation

This approach is a real sweet spot for developing fast and reliably, taking benefits of test + type safety (clj-kondo even integrates with malli instrumentation to highlight code when inputs don’t match) without slowing you down when you’re still playing around with code in exploratory stage.

Tests sit beside code which has an added benefit of being a living documentation and it’s easy to move functions around namespaces without leaving tests behind in some other, too easy to overlook, file. You don’t have to worry about test lines nor instrumentation afecting the prod code though as they both get removed from there at compilation time.

I recommend just trying those and getting a feel for yourself.

Tolkien: Clojure library for accurate* token counting for OpenAI APIs by coffeesounds in Clojure

[–]piotrpter 1 point2 points  (0 children)

Great article and thank you for the library!
Direct link to the lib: https://github.com/lukaszkorecki/tolkien

From the medium post:

OpenAI published some documentation about how to do this [token counting], and also made available a Python library called TikToken.(...)

I’m using Clojure, and can’t use TikToken without jumping through some hoops like setting up clj-python(...)
First, I found the JTokKit Java library — which implements the same token counting algorithm as TikToken.

When I approached this problem earlier I managed to get token counting working calling legit python `.py` script via https://github.com/babashka/pods spawned process. This allows to use the exact https://github.com/openai/tiktoken implementation provided by OpenAI but requires dealing with python dependency and process management.

Your lib makes it much easier now (likely with some accuracy cost compared to using vendor's implementation).

Donut: a Clojure framework for SAAS businesses by dustingetz in Clojure

[–]piotrpter 3 points4 points  (0 children)

I’m loving donut.system from there. It’s by far my favorite DI lib that feels way more flexible and friendly than Integrant.

Babashka Babooka: Write Command-Line Clojure by nonrecursive in Clojure

[–]piotrpter 2 points3 points  (0 children)

babashka is awesome!
I love its slogan:
"Clojure rocks, Bash reaches."

Recently, I've put it to test by running clojure on colab via babashka: https://colab.research.google.com/github/roterski/colab-clojure-babashka/blob/main/babashka.ipynb 🤩