Блог*
#prog #article Ответная статья PAGNIs: Probably Are Gonna Need Its
#prog #article
Preemptive Pluralization is (Probably) Not Evil
Before you write any code — ask if you could ever possibly want multiple kinds of the thing you are coding. If yes, just do it. Now, not later.
<...>It is a LOT easier to scale code from a cardinality of 2 to 3 than it is to refactor from a cardinality of 1 to 2. This is a fundamentally under-appreciated nonlinearity. In other words, Preemptive Pluralization can make the difference between “sure, I’ll add that today” and “this is going to take us 2 months and we’ll introduce merge conflicts with every other in-progress feature.”
Preemptive Pluralization is (Probably) Not Evil
Before you write any code — ask if you could ever possibly want multiple kinds of the thing you are coding. If yes, just do it. Now, not later.
<...>It is a LOT easier to scale code from a cardinality of 2 to 3 than it is to refactor from a cardinality of 1 to 2. This is a fundamentally under-appreciated nonlinearity. In other words, Preemptive Pluralization can make the difference between “sure, I’ll add that today” and “this is going to take us 2 months and we’ll introduce merge conflicts with every other in-progress feature.”
www.swyx.io
Preemptive Pluralization is (Probably) Not Evil
What if we just assumed we might have two of everything?
👍10💯3🤔2
#prog #typescript #article
How types make hard problems easy (перевод)
Статья ценна тем, что демонстрирует выгоды на Typescript и относительно реалистичных примерах. Отправьте знакомому фронтендеру, может, научиться программировать наконец
How types make hard problems easy (перевод)
Статья ценна тем, что демонстрирует выгоды на Typescript и относительно реалистичных примерах. Отправьте знакомому фронтендеру
🤔6😁1
Forwarded from 💞Gay Mems🔥 | Гей мемы 💪
Please open Telegram to view this post
VIEW IN TELEGRAM
😁23💯11❤1
Forwarded from Programming sucks
I apologize for marginalizing the 0.00000013% of readers who live in space, who do actually use UTC as their home time zone. You matter too. I’m sorry. Please don’t drop anything on me
(c) https://errorprone.info/docs/time
(c) https://errorprone.info/docs/time
😁11👍3
Programming sucks
I apologize for marginalizing the 0.00000013% of readers who live in space, who do actually use UTC as their home time zone. You matter too. I’m sorry. Please don’t drop anything on me (c) https://errorprone.info/docs/time
Forwarded from Технологический Болт Генона
This media is not supported in your browser
VIEW IN TELEGRAM
Это мы любим
Шахматный движок на 84688 регулярных выражениях
https://habr.com/ru/articles/872186/
Я записал демку на два хода, оцените как оно работает "под капотом"
Оригинал
A 2-ply minimax chess engine in 84,688 regular expressions
https://nicholas.carlini.com/writing/2025/regex-chess.html
+
GitHub (даже тесты есть 🌝)
https://github.com/carlini/regex-chess
+
Demo
https://nicholas.carlini.com/writing/2025/regex-chess.html
В праздничные выходные мне пришло в голову, что я давно не занимался чем-то бессмысленным. Представляю вашем вниманию... Regex Chess: набор из 84688 регулярных выражений, которые при выполнении по порядку генерируют ход (валидный, то есть не совсем ужасный) для переданного в качестве входных данных состояния шахматной доски.
Шахматный движок на 84688 регулярных выражениях
https://habr.com/ru/articles/872186/
Я записал демку на два хода, оцените как оно работает "под капотом"
Оригинал
A 2-ply minimax chess engine in 84,688 regular expressions
https://nicholas.carlini.com/writing/2025/regex-chess.html
+
GitHub (даже тесты есть 🌝)
https://github.com/carlini/regex-chess
+
Demo
https://nicholas.carlini.com/writing/2025/regex-chess.html
🍌6😐4🔥3👍2🥴1
Почему авторы ООП-языков предпочитают пилить костыли для частных plain data классов (dataclass/NamedTuple в Python, data class в Kotlin, record в Java и C#, case class в Scala, Data в Ruby) вместо того, чтобы сделать общий механизм для реализации протоколов/интерфейсов вроде deriving в Haskell?
🤔15🤡6💯4👍3
Forwarded from Programming sucks
The goal isn't to write more code faster. It's to build better software.
(с) https://addyo.substack.com/p/the-70-problem-hard-truths-about
(с) https://addyo.substack.com/p/the-70-problem-hard-truths-about
Substack
The 70% problem: Hard truths about AI-assisted coding
A field guide and why we need to rethink our expectations
💯6👍3🤔1