Thomas Cothran (@thomas_cothran) header
Thomas Cothran (@thomas_cothran) profile picture

Clojure Engineer

Louisville, KY
Joined July 2016
Photo by Thomas Cothran (@thomas_cothran)
A #Clojure story about the REPL in production. We had the opportunity at work to support NFL broadcast. We take in game data, run millions of simulations, and project outcomes of plays/games. Timeline: 2 weeks. 😅 Margin for error: live broadcast, real-time, so very tight
1
17
53
Thomas Cothran retweeted
By the way, public service announcement: if you're one of the numerous people posting about Anthropic's dystopian ways and you're thinking about getting Claude to help you write that post... don't! Another one of their terms is that you may not use Claude to do anything that "exposes [Anthropic to] reputational harms" 👇 And, if you do, under the - extremely unusual - clause 13 of their terms (anthropic.com/legal/consumer…), you have PRE-AGREED, by using Anthropic (and accepted their terms), that the harm you've done is irreparable, that you won't oppose Anthropic injunction, and they don't need to prove actual damage. They can simply go to a judge in a friendly jurisdiction (and of course, their terms precise that any dispute "will be resolved exclusively in the state or federal courts located in San Francisco, California") and: a) file an injunction that shuts you down b) make you pay for everything since under section 11 of their terms you agree to indemnify Anthropic for "any and all liabilities, claims, damages, expenses (including reasonable attorneys' fees and costs), and other losses arising out of or related to your breach or alleged breach of these Terms." In other words, if you use Claude to help you talk shit about Anthropic publicly, their terms say you pay their lawyers to go after you and you've already pre-agreed you've lost the case. Oh, and cherry on the cake: in the odd case the judge were like "are you crazy, this is insanely abusive, you Anthropic are the ones at fault here," according to their terms Anthropic's maximum liability is... $100.
129
570
109
2,847
317,383
Thomas Cothran retweeted
clj-xref 0.1.0 — LLM-friendly cross-reference database for Clojure code github.com/danlentz/clj-xref Instead of feeding your entire source tree to an AI coding assistant, clj-xref lets it query the dependency neighborhood of the function it's working on — just the relevant code, in far fewer tokens. Built on clj-kondo static analysis, it generates a queryable xref database with **lein xref ** or clj -T:xref generate, then answers questions from the REPL: (xref/who-calls db 'myapp.orders/process-payment) (xref/calls-who db 'myapp.web/handler) (xref/who-implements db 'myapp.protocols/Billable) (xref/unused-vars db) (xref/call-graph db 'myapp.core/main {:depth 3}) Returns plain maps and vectors — compose with filter, map, group-by, or anything else. How much context does it save? Well, that is still an experiment, but Measured on clj-xref's own source: │ Target │ Whole-tree │ Xref-guided │ Reduction │ │ core/index │ 8 files, 32K chars │ 1 file, 6K chars │ 80% │ │ analyze/transform-analysis │ 8 files, 32K chars │ 1 file, 7K chars │ 78% │ │ leiningen.xref/xref │ 8 files, 32K chars │ 3 files, 11K chars │ 66% │ │ analyze/classify-kind │ 8 files, 32K chars │ 1 file, 7K chars │ 78% │ Also useful for: dead code detection, codebase visualization (DOT/Graphviz output), impact analysis in CI, and REPL-driven exploration of unfamiliar code. Query API: who-calls, calls-who, who-references, who-macroexpands, who-implements, who-dispatches, unused-vars, call-graph, apropos, ns-deps, ns-dependents. Inspired by SBCL's sb-introspect and Smalltalk's senders/implementors. Built entirely on clj-kondo — please consider sponsoring @borkdude: github.com/sponsors/borkdude
2
6
21
2,132
One of the most useful features of LLMs - producing minimal repro cases for tricky bugs. Takes something that could be an hour+ down to a few minutes
19
I'm releasing the alpha version for Pavlov - a behavioral programming library for #clojure github.com/thomascothran/pav… Features include first class model checking, point and click navigation for program states, and 0 dependencies.
1
40
Thomas Cothran retweeted
Some have disappointed, some had bad policy, some made big mistakes. But I’ve never in my life been ashamed of American leaders. Until today.
2,300
10,079
430
75,254
1,962,262
Thomas Cothran retweeted
Working on something truly new in trading automation. A system that combines 2D symbolic reasoning with market data and an agentic runtime—fully automating trading up to 100%, including risk management. Early version coming soon.
1
1
3
85
Thomas Cothran retweeted
web components > react, vue, and svelte
129
32
14
901
271,721
htmx isn't the only library out there rejuvenating hypermedia data-star.dev is a very interesting, SSE-oriented approach to building highly dynamic applications, you can see the implementation of many htmx examples here: data-star.dev/examples/click…
9
7
2
145
14,916
The #htmx essay htmx.org/essays/codin-dirty/ appeals to empirical research for function length, but omits the much more comprehensive research on testing practices entirely. dora.dev/capabilities/test-a…
1
2
357
Developers have opinions on TDD, continuous delivery, microservices vs monoliths, etc. Can we get beyond the subjectivity of personal experience to evidence-based software development? Or are we stuck with the HN comments? Thankfully, there's #DORA thomascothran.tech/2023/07/d…
1
59
Great deep dive by @GergelyOrosz on how projects are managed in different types of tech companies. Does a great job of not only highlighting what seems to work, but what commonly doesn't -- with data to back it up. substack.com/profile/3010702…
Thomas Cothran retweeted
We'll see what Bruce Arians is made of to start the season. This 4th and 5 would be a 3.0% error, if the #Buccaneers choose to punt. #DALvsTB #GoBucs #DallasCowboys #NFL
Thomas Cothran retweeted
I don’t wanna “build software” so much as build understanding and express it in software.
25
218
24
991
Thomas Cothran retweeted
I see two cultures around the concept of "prioritization." One uses it to mean "in a world of abundant opportunities we need to pick the best one to pursue next." The other means "in a world of scarce time we need to decide how to carefully allocate our overtaxed people."
14
70
7
411
Thomas Cothran retweeted
We're on the hunt for a proven strategist to oversee out company's revenue streams! For full position details, read the position listing in the link! https://teapawt.org/t.co/CNXP3pJUmr #sports #hiring #sportstech #sportsjobs
1
3