
अंतः अस्ति प्रारंभः | I code my thoughts 💥 Mentor @RealDevSquad
NDAwMDAgZnQgZnJvbSBzZWEgbGV2ZW
Joined January 2020
- Tweets2.4K
- Following430
- Followers2.2K
- Likes2.4K
Pinned Tweet
I am who solves a problem, you didn’t know you had, in a way that you didn’t understand.
When an AWS region goes dark, traffic shifts, caches go cold, and the mechanism meant to recover your system becomes another source of failure. Netflix's answer isn't keeping every component alive. During one outage, it let optional prefetch traffic drop to about 20% availability
1
2
298
Tejas retweeted
💜 In .NET 11 a validation attribute can be asynchronous.
Until now ValidationAttribute only had a synchronous IsValid. Checking whether an email is already in the database ended up in the endpoint or blocked a thread.
Now you derive from AsyncValidationAttribute and override IsValidAsync, which gets a CancellationToken. You take the service from ValidationContext. With AddValidation(), Minimal APIs await the result before calling the endpoint, so a taken email ends with a 400 and an error on the Email field.
One catch: the synchronous IsValid is abstract too. If the rule only makes sense asynchronously, throw from it so the synchronous APIs don't skip it silently.
For rules that span the whole object, implement IAsyncValidatableObject. Blazor EditForm awaits async rules as well.
#dotnet #csharp
![Code graphic ".NET 11: Async model validation". builder.Services.AddValidation(); record SignUp([UniqueEmail] string Email); class UniqueEmailAttribute : AsyncValidationAttribute { protected override async Task<ValidationResult?> IsValidAsync(object? value, ValidationContext ctx, CancellationToken ct) { var users = ctx.GetRequiredService<IUserService>(); return value is string email && await users.EmailExistsAsync(email, ct) ? new("That email is already registered.") : ValidationResult.Success; } } Takeaway: AsyncValidationAttribute checks a rule asynchronously, for example in a database, and Minimal APIs await it before the endpoint runs.](https://pbs.twimg.com/media/HX4PPa1WoAAYcOP.jpg?name=small&format=webp)
ALT Code graphic ".NET 11: Async model validation". builder.Services.AddValidation(); record SignUp([UniqueEmail] string Email); class UniqueEmailAttribute : AsyncValidationAttribute { protected override async Task<ValidationResult?> IsValidAsync(object? value, ValidationContext ctx, CancellationToken ct) { var users = ctx.GetRequiredService<IUserService>(); return value is string email && await users.EmailExistsAsync(email, ct) ? new("That email is already registered.") : ValidationResult.Success; } } Takeaway: AsyncValidationAttribute checks a rule asynchronously, for example in a database, and Minimal APIs await it before the endpoint runs.
Unethical practices like this is why we lose out on so many good things!
Not only will this risk permanent bans on future programs, but it's downright against the spirit of what @claudeai is trying to do by supporting startups here.
Read ToS folks!
Tejas retweeted
After two years of rapid change in software development, we are again at a crossroads, with two competing visions for what the future might hold.
Vision one is software factories (e.g. Warp Factories), code-defined, closed-loop systems for continuously measuring and improving cloud coding agents. Software factories are developer infrastructure. Platform teams do “factory engineering” on them to optimize development across an entire product, getting the most productivity from agents while minimizing cost and improving quality. It’s a system design mindset for deploying agents.
Vision two is agent teams (e.g. Devin Bots). In this approach, individuals manage agents to orchestrate complex tasks. For example, you might have a “chief of staff” agent and ask that agent to do a coding project. It decomposes the project into subtasks that different agents take on (e.g. a designer, an implementer), reports on progress, and eventually ships. These teams can also have “always on” agents that proactively fix things, respond to events, and so on. Unlike with software factories, the user experience is more about “managing” agents, akin to how you might manage a person or a team.
Which one is better depends on how you conceive of the problem.
I view the problem as: how do you securely deploy coding agents to maximize product throughput and quality, while minimizing cost? I believe this is what businesses care about – there is this magical new technology for building software at scale and they want to make sure they are using it to get the biggest possible competitive advantage.
Put simply: this is an optimization problem. We have a new engineering primitive, the coding agent, and we want to use that primitive as well as we can.
Framing it in terms of optimization immediately leads to a need for measurement; after all, you can only optimize what you can measure. In order to get to measurement, you need reliable, standardized data. In order to get data, you need some amount of centralization and standardization, otherwise that data would be too noisy and heterogenous to do anything with. In order to centralize, you need to move to the cloud and define what a factory is in code. Your factory needs to be open and flexible so you have degrees of freedom for testing different models, harnesses and skills. You need ways of experimenting to see if different configurations perform better. And then you need to be able to feed those learnings back into the system, so it improves over time.
When you frame the problem clearly, the shape of the solution becomes much more obvious. Compared to agent teams, the factory engineering approach is much better suited to solving the optimization problem because it puts measurement, repeatability, and standardization at the center. It allows for a principled approach to improvement in the long run that is missing with agent teams. You want your factory to scale like an engineered system, not like an increasingly large organization (don’t make your agents work in a big company!).
The engineering approach is possible precisely because agents are not people; for the first time in the history of software development we can directly measure, grade and improve how code and products are shipped. We shouldn’t waste this opportunity by anthropomorphizing the technology and treating it like a teammate.
Also, wouldn’t you rather engineer an agent system than manage a team of agents? I’ve been both a builder and a manager for most of my career. You can guess which I prefer.
Tejas retweeted
Anthropic turns down people who are deeply talented technically.
Dario Amodei explained why to Jamie Dimon, CEO of JPMorgan, days before a $1.4 trillion IPO.
- Everyone goes through a culture interview
- No jerks, no one who tries to steal the show, no one indifferent to the public benefit
- He admits it's painful in the short run
- All 7 co-founders are still at the company
- More than 3 in 4 of the first 100 employees are still there
- Two senior product people quit and came back within two weeks
He spends 40-50% of his own time on talent and culture.
It was the first thing he chose to talk about in front of Wall Street.
Full breakdown here: theaiopportunities.com/p/ant…
Cryptography guys be ready
WOW! Anthropic mathematician Levent Alpöge posted a claimed proof of the Riemann hypothesis, found with Claude. It targets the full statement, and no expert has checked it yet.
Riemann's 1859 hypothesis says every non-trivial zero of ζ(s) lies on the line Re(s) = ½. The first 10 trillion zeros do, and in August a Claude-written paper showed that at least 2/3 of them lie on it.
Alpöge's proof is written in the Lean proof checker, and he says it also covers the generalised RH. Until that check finishes and experts agree, the Clay Institute's $1,000,000 problem stays open.
1
157
Tejas retweeted
Replying to @yifanzhang_
People have spent a very long time trying to understand prime numbers, which are special building block numbers. A famous puzzle called the Riemann Hypothesis helps us guess how these prime numbers are spread out. A researcher and a computer helper named Claude worked together to try and solve this big puzzle.
They wrote down a massive computer file containing the full proof that the Riemann Hypothesis is true. The steps involved chaining together special wave-like math functions (called theta lifts) a specific number of times, equal to the square root of a number X, to make the difficult parts of the problem disappear.
Tejas retweeted
𝗖# 𝗶𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻: 𝘄𝗵𝗮𝘁 𝗱𝗼𝗲𝘀 𝘁𝗵𝗶𝘀 𝗰𝗼𝗱𝗲 𝗽𝗿𝗶𝗻𝘁?
Give yourself 10 seconds before you scroll.
var numbers = new List<int> { 1, 2, 3 };
var big = numbers.Where(n => n > 1);
numbers.Add(4);
numbers.Add(5);
Console.WriteLine(big.Count());
Many devs answer 2.
It prints 4.
👉 𝗪𝗵𝘆?
Where() doesn't run when you write it.
It saves a recipe: "take numbers, keep the ones above 1".
The recipe runs only when you ask for the result:
→ Count()
→ ToList()
→ First()
→ foreach
By then, the list already has 5 items. So you get 2, 3, 4, 5.
This is called 𝗱𝗲𝗳𝗲𝗿𝗿𝗲𝗱 𝗲𝘅𝗲𝗰𝘂𝘁𝗶𝗼𝗻.
📌 𝗪𝗵𝗲𝗿𝗲 𝗶𝘁 𝗵𝘂𝗿𝘁𝘀 𝗶𝗻 𝗿𝗲𝗮𝗹 𝗰𝗼𝗱𝗲
1. EF Core queries
↳ Every Count() or foreach on an IQueryable sends a new query to the database.
2. Side effects inside Select()
↳ A log line or HTTP call inside Select() runs again on every enumeration.
3. Captured variables
↳ If a variable used in the lambda changes later, the query sees the new value.
👉 𝗛𝗼𝘄 𝘁𝗼 𝗰𝗼𝗻𝘁𝗿𝗼𝗹 𝗶𝘁
✅ Call ToList() when you need a snapshot of the data right now.
✅ Keep IQueryable when you still want to add filters before the query runs.
✅ If your IDE warns about "possible multiple enumeration", read it. It's usually right.
One easy bonus question for the comments:
What does it print if line 2 ends with .ToList()?
——
♻️ Repost to help others learn how deferred execution works in C#
➕ Follow me to improve your .NET and Architecture Skills
Tejas retweeted
Made in Europe ↓
Docker 🇫🇷
NGINX 🇷🇺
Redis 🇮🇹
C# 🇩🇰
Vim 🇳🇱
cURL 🇸🇪
Grafana 🇸🇪
MariaDB 🇫🇮
VLC Media Player 🇫🇷
Anything else you'd add?
We build highly available systems on the assumption that if one component fails, another takes over. But what happens when the failover mechanism itself spreads the failure? A latent bug, a traffic shift and a modest capacity loss were each survivable alone.
1
11
460
I remember how the conversation went with our internship folks:
Me: "I want Chris as my intern"
Intern team: "Great. Where is he a student currently?"
Me: "Well, ur, um, he's not one. He got a scholarship to drop out"
Intern team: "Um, okay. He does have the right to work in Mountain View, right?"
Me: "Well, urm, not at the moment. We need to figure out a non-student visa, I guess?"
Tejas retweeted
The cost of genearting code is pretty low with AI.
In fact, most of the "complexities" devs argued about are now your agent's problem.
So why not fully embrace functional programming?
It's more deterministic.
Tejas retweeted
40% of AI agent projects will be canceled by 2027. That's not me, it's Gartner. And the reason has a name: agent washing.
They did a survey and found that a lot of what people called agent projects were chatbot projects, RPA, or assistants, even if built on LLMs, purely assistants.
What was missing for them to count as agents? Being able to take some kind of action autonomously. A chatbot doesn't. An RPA doesn't. Autonomy doesn't mean doing things left and right, but some level of autonomy. Without it, it's not an agent. And plenty of people are selling agent projects without building agents.
There's another number, from an MIT report published in 2025: only 5% of AI tools built inside companies reach production. Even worse. 95% of AI projects never get there. The same report talks about 30 to 40 billion dollars invested in generative AI, with 95% of companies getting zero return.
I want to look at that 5%. While 95% goes down the drain, there's demand that is reaching production, generating value, built for results, built looking at the client, the company, the project.
If you really want to work with AI, where you are or at another company, you need to aim at those companies, those projects, those cases that actually reach production.
A software developer exists to solve problems. That's our career. And we only solve problems if what we build goes to production. What only runs on your machine maybe solves your own problem. Is someone paying you to solve that? If yes, great. Most of the time, what's only on our machine helps nobody else.
So aim for the 5%: what goes to production, solves someone's problem, makes someone more productive, gives someone a less miserable day. Your next project or your next company may be in there.
Tejas retweeted
Everyone is talking about AI replacing human jobs, but I think we're missing two much bigger questions.
1. Who will buy what AI produces?
If AI replaces most human jobs, who will have the purchasing power to consume those products and services?
Today's economy runs on a simple cycle: humans work, earn money, spend it, and businesses generate revenue.
Break the employment-income-consumption cycle, and you risk breaking the economy itself.
In countries like India, replacing human labour with AI-powered robots could take decades. Human labour will remain cheaper and more practical across many sectors for a long time.
2. What happens to the next generation of humans?
Imagine a generation that uses AI for everything: thinking, learning, analysing, making decisions and solving problems.
Will they become more intelligent, or increasingly dependent on machines?
We already see how technology reduces the need to exercise certain mental skills. AI could take cognitive offloading to an entirely different level.
My concern isn't simply that AI will become smarter than humans.
It's that humans might gradually stop developing their own capabilities because machines can do everything for them.
The biggest risk might not be AI taking over the world. It might be humans becoming so dependent on AI that they eventually lose the ability to function without it.
AI should make humans more capable, not make humans unnecessary.
Are we preparing for that future, or just celebrating how powerful AI is becoming?
Elon Musk cautions that the time left is short:
You have 3 years at most to keep earning from selling your work. After that, AI takes over most tasks, and paying people for their time stops making sense.
The 200-year-old model, "I give you your salary in exchange for your time", will soon be over.
This will set off the largest wealth transfer in modern history. People already making the shift get it. People waiting for the headlines will show up too late.
In the end, what you own counts for more than how much you work.
The smartest asset to build right now ranks above Bitcoin and land: an income stream powered by AI that compounds while you sleep.
Tejas retweeted
C# is dead.
.NET is replaced.
Monoliths are worthless.
Software engineering is done.
For the last year or so, there's been a post saying every piece of tech is dead.
Instead, everything that was supposed to be "dead", "killed", or "replaced" has been running in production for the last 20+ years.
Bringing customers and money. And will continue to do so.
Underneath, the art of software engineering is what keeps all those systems from falling apart.
So, instead of giving up on software engineering, embrace it.
Learn about it.
Build new things.
Ship to production.
Keep using "dead" tech to bring new ideas to life.


























