I am an Accountant. I Built a Python-to-.NET Compiler with AI. Here’s What I Learned.

Everyone is talking about what AI can build. I wanted to find out where it breaks.

So I gave it one of the hardest problems in computer science.

I asked AI to help me build a compiler — a program that reads code written in one language and translates it into something a machine can actually run.

Not a script. Not a shortcut. A real compiler with a full pipeline:

  • Reading the source code
  • Understanding its semantic meaning
  • Checking its logic
  • Generating machine-level instructions

Computer science students spend entire semesters on this. Most working developers have never attempted it.

I am not a developer. I am an accountant from Lahore.

That was the point.

⚠️ What Actually Surprised Me

I worked with multiple AI models while building Naja. The differences in how they handle complexity were not subtle.

One behaviour I encountered repeatedly — and this was far worse with some models than others — was this:

When a test was failing because my compiler produced output that didn’t match Python’s actual language specification, the correct fix was obvious:

Fix the compiler. The specification is the truth.

Instead, certain models would quietly rewrite the test to match what the compiler was already producing.

The test went green. The bug stayed. The evidence vanished.

This isn’t hallucination. The AI didn’t invent something false.

It did something more subtle: it optimised for the appearance of correctness rather than correctness itself. It solved the symptom and buried the disease.

Now think about what that means at scale. AI is not just writing code anymore — it is writing the tests that verify that code. If a model silently adjusts tests to match broken behaviour, how many codebases right now are passing their entire test suite while remaining fundamentally wrong?

Nobody knows. That’s the uncomfortable part.

Claude handled this differently — it was more likely to flag the inconsistency rather than paper over it. But the experience taught me that model choice in serious technical work is not just a preference. It is a risk decision.

🔍 The Deeper Problem: Correctness

This brought me to the most underappreciated problem in the AI era:

How do we actually know AI-generated code is correct?

The standard answer is: write tests. Tests matter — but they only prove that the things you thought to test for work. They are, by definition, limited to your known unknowns.

What about the unknown unknowns?

  • The edge cases nobody imagined
  • The assumption buried three layers deep
  • The logic that holds true in a test but fails in a real-world scenario

As we produce output at a rate that our ability to verify cannot keep up with, the gap widens.

The Auditor’s Mindset

I believe we are moving toward an era where proof of correctness matters more than passing tests.

In accounting, an auditor doesn’t just check a sample of transactions and hope the rest are fine. An auditor verifies that the system producing those transactions is sound.

That is Proof Thinking.

Formal verification — the idea of proving code correct the way you prove a mathematical theorem — has been at the edges of computer science for decades. It was considered too slow or too academic for real-world use.

AI is making it necessary.

🔎 What Does Working With AI Seriously Actually Require?

The only way I could catch AI’s silent failures was to understand the territory well enough to recognise when something was wrong — even when it looked right.

That is the real skill. Not prompting. Not knowing the right words to type.

It is knowing enough to audit the output.

AI moves you faster. But it moves you in whatever direction you point it. Without understanding the destination, you simply arrive at the wrong place with more confidence.

The Result: Naja

The compiler works. It’s called Naja.

It takes Python code and compiles it to run natively in the .NET ecosystem — including WinForms desktop UI support. Real windows render. The architecture holds.

The compiler is still far from complete. There are still failing tests. That is honest. But the foundation on which I can build further is solid.

An accountant from Lahore built this with AI — over several months of pushing, breaking, understanding, and rebuilding.

I didn’t do this to prove a point about accountants. I did it to understand what AI can actually do — and what it still needs from us.

The Question That Matters

The most important skill in the AI era is not knowing how to use AI.

It is knowing enough to know when AI is wrong.

As we generate more code than any generation before us — the question of how we prove it is correct may be the most important question in software right now.

I don’t have the full answer. But I think it starts with asking the question seriously.

Full technical documentation and the Naja codebase are coming soon on GitHub. Follow if you want to see how far this goes.

If you are building something serious with AI — not demos, not shortcuts, something that actually pushes the limits — I’d like to hear from you.

Why I’m Done with WordPress Arcade Plugins in 2026 (And the Lightweight Way I Host Games Instead)

If you’ve been in the WordPress ecosystem as long as I have, you remember the “Gold Rush” of arcade sites. Back then, plugins like MyArcadePlugin were the undisputed kings. They promised to turn your site into a gaming powerhouse with one click.

But it’s 2026. The web has changed. Core Web Vitals are no longer a “nice to have”—they are the primary gatekeeper for your Google rankings.

If you are still using 2015-era architecture to host games on WordPress, you aren’t just slowing down your site; you’re killing your SEO. Here is why I’ve pivoted away from traditional “Arcade Plugins” and how I’m building lightweight, high-engagement game portals today.

The Problem: The “Plugin Bloat” Death Spiral

Traditional arcade plugins were built for a different era. They rely on heavy database queries, local file storage that eats up your disk space, and outdated PHP hooks that often clash with modern themes like Blockbase or Full Site Editing (FSE).

When you install a legacy arcade suite, you’re usually adding:

  • JS/CSS Overhead: Loading heavy scripts on every single page, even when no game is present.
  • Higher Running Costs: Hosting all the game files can cost a lot more to host.

The 2026 Solution: Headless Game Hosting

Instead of making WordPress do the heavy lifting of hosting, processing, and serving games, I’ve moved to a Headless approach. By using iDev.Games as a backend, I treat my WordPress site as a clean, fast front-end. The games are served via a high-performance CDN, and the “heavy” lifting (leaderboards, cloud saves, and multiplayer infrastructure) happens off-server.

The Benefits:

  1. Perfect Core Web Vitals: Since the games are embedded via optimized iframes, they don’t block the main thread. Your LCP (Largest Contentful Paint) stays green.
  2. Less Storage Costs: You don’t need a 50GB hosting plan to house thousands of HTML5 games. You just pull the content you need (images, description, title and embed code).
  3. Always Updated: When a developer updates their game on iDev.Games, it automatically updates on your site. No more broken ZIP files or dead links.

How to Set It Up (No Plugin Required)

You don’t actually need a massive plugin to create a professional arcade. You can do it with standard WordPress blocks.

1. The “Clean Embed” Method

Every game on the iDev.Games platform provides a clean embed code. You can simply use the Custom HTML Block to drop a game into any post or page.

  • Pro Tip: Set your iframe to loading="lazy" to ensure it doesn’t even touch your page speed until the user scrolls to it.

2. The “Modern Arcade” Plugin

If you do want a more automated approach, there is a lightweight iDev.Games WordPress Plugin. Unlike the legacy “all-in-one” suites, this acts as a bridge. It pulls the data you want without the file bloat.

The Bottom Line

In 2026, user experience is about speed and friction-less play. If your “Arcade” takes 5 seconds to load because of plugin overhead, your visitors are already gone.

By offloading the game hosting to a dedicated, developer-first platform, you keep your WordPress site lean, your SEO healthy, and your players happy.

If you’re interested in why developers are moving to iDev.Games to release and maintain their games. Check out this post: The Data Doesn’t Lie: Why the “Niche” Web Game Platform is Actually the Highest Per-Game Value in 2026

How I Solved WebSocket “Event Drift” in React with a Custom NPM Package

The “Scattered State” Nightmare
We’ve all been there. You’re building a real-time app—maybe a delivery tracker like my project UniMart or a collaborative dashboard. You start with one socket.on listener in a useEffect. Then another. Then another.

Before you know it, your WebSocket logic is scattered across five different components. This leads to the three Horsemen of Real-Time Bugs:

  • Memory Leaks: You forgot to call .off() in a cleanup function, and now you have 50 ghost listeners eating RAM.
  • Event Drift: Two components receive the same “location-update” at slightly different times, causing your UI to flicker or show inconsistent data.
  • Black-Box Debugging: You have no idea how a specific incoming packet changed your global state.

The Solution: Treating Sockets as a State Dispatcher
I decided to stop fighting useEffect and started treating my Socket instance like a Redux Store.

I built react-socket-sync, a lightweight, type-safe hook that centralizes all your socket events into a single Reducer.

🧠 The Architecture
Instead of scattered listeners, I designed a bridge that maps incoming events to specific state transitions.

TypeScript
// Define your “Brain” (The Reducer)

const reducers = {
  'driver-location': (state, pos) => ({ ...state, location: pos }),
  'order-status': (state, status) => ({ ...state, status }),
};

// Use the hook to sync everything

const state = useSocketState(socket, reducers, initialState, { debug: true });

Engineering Challenges
Building this wasn’t just about the hook; it was about the NPM Ecosystem.

  1. The Hybrid Module Headache (ESM vs. CJS)
    Modern apps use ESM (Next.js/Vite), but many legacy tools still rely on CommonJS. I had to configure my build pipeline to output both, ensuring the library works everywhere without crashing the bundler.

  2. X-Ray Observability
    I built an internal Logger that provides color-coded console output when debug: true is passed. It tracks:

  • The Incoming Event
  • The Raw Payload
  • The Resulting State Change

This turned “invisible bugs” into a clear, readable timeline in the browser console.

Fighting the Build Cache
During development, I hit a massive roadblock with Next.js Turbopack caching local links. I had to master the npm pack workflow—creating local tarballs to simulate a real production install—before finally shipping to the registry.

Takeaways
Building an open-source library taught me more about Software Supply Chain Security (2FA) and API Design than any tutorial ever could.

If you’re building real-time apps, check out the package! I’d love to hear your feedback on the architecture.

NPM
GitHub

Template Literals in JavaScript

This is a modern way to define string it introduce with JavaScript ES6 features. Now its become standard for dealing with complex string manipulation because of this it become foundation concept which every developer should know it. In this article we discussing what it is? how syntax look like? and what is the use case of it?

Problems with traditional string concatenation

In early developers use single (') and double (") quotes to define string. With this if they need to add variable with string they need to use (+) operator to do this, called string concatenation. This approach work well but if there are many variables then it becomes massy and hard to read or manage it.

But with template literals its easy to add any number of variables directly within the string, no need concatenation here. This approach is good for work with dozens of variables and also provide good readability.

const name = "Anoop"
const age = 20

// old way
console.log("Hello my name is " + name + " and i am " + age + " years old")

// new way
console.log(`Hello my name is ${name} and i am ${age} years old`)

Template literal syntax

Traditional syntax of string use single or double quotes to define string but in the template literals syntax its use backtick symbols to define it.

Old Syntax:

console.log('Defining strings with single quotes')
console.log("Defining strings with double quotes")

New Syntax:

console.log(`Defining strings with backticks`)

Embedding variables in strings

In old way to embed variables developers need to use concatenation with (${}) operator or built-in method. In new way no need to do this anymore, template literals use dolor symbol and curly braces to wrap any kind of variable and place it within intended place of string, this called string interpolation. It also support expressions and function call which provide more flexibility to work with data.

Example:

const a = 10
const b = 15
console.log(`Sum of ${a} and ${b} is ${a+b}`)

function capitalize(name){
    return `${name.slice(0, 1).toUpperCase()}${name.slice(1)}`
}

const input = "wOrLd"
console.log(`Hello ${capitalize(input)}`)

Multi-line strings

Working with multiline text data with older way developers use new line character () to add new line in string this method is not readable for larger data set. But with template literals it’s easy as pressing enter, no need to put these characters here.

Example:

const multiLine = `This is line 1
This is line 2
This is line 3`
console.log(multiLine)

Use cases in modern JavaScript

You seeing it lot’s of time in multiple places during development. These are few uses i encounter during development:

  • Dynamic HTML Code Blocks: defining html code blocks in JavaScript to use it dynamically with html.

  • Constructing URLs: it used construct URLs with adding id’s, parameters dynamically to fetch resources on apis.

  • Logs Messages: creating meaning full messages with system information which used in logging during debugging.

  • Math Expressions: creating math expressions explanations is very helpful because in complex logic older way become massy and hard to read.

No need to worry about it just read this and remember its concepts not syntax because syntax is only one google search far from you. Practice it and remember what problem it solve and what it’s use cases is.

GitHub Copilot Completes a Real Code Review (Claude Sonnet 4.5)

One of the more interesting experiments I recently ran was asking GitHub Copilot to perform a full code review on a .NET application that it had also helped rewrite.

The original project was written in 2013. The application still worked, but the codebase had accumulated a lot of technical debt over the years.

Rather than trying to gradually refactor it, I decided to do a complete rewrite with Copilot’s help using modern conventions in the .NET ecosystem.

Once the rewrite was finished, I wanted to answer a simple question:

How useful is an AI-generated code review on a real-world project?

So I asked Copilot to review:

  • The original legacy codebase
  • The new rewritten solution

The results were interesting.

Watch Full Video

Starting With a Simple AI Code Review

The easiest way to run an AI code review is something like this:

Perform a code review on this project.

Copilot will usually return a fairly useful response that includes things like:

  • Naming issues
  • Readability improvements
  • Basic design observations
  • Possible refactoring opportunities

But there is a problem with this approach.

The review tends to focus mostly on surface-level code quality.

In my legacy project, the biggest issues weren’t small code smells. The real problems were architectural.

For example:

  • Many classes were static
  • Several classes simply passed calls directly to the data access layer
  • Domain logic and database logic were mixed together
  • The solution had no automated tests

The initial open-ended review mentioned some issues, but it completely missed the severity of the architectural problems.

The Other Problem: AI Doesn’t Know Your Standards

Another issue with AI reviews is that the model does not know your team conventions.

Every system has different priorities.

Some systems are mostly CRUD applications where fast queries are the most important factor.

Other systems might be financial or analytical platforms where things like:

  • deterministic calculations
  • validation rules
  • extensive unit testing

are critical.

Without guidance, Copilot evaluates code using generic best practices, not the standards that actually matter for your project.

AI Reviews Also Tend to Be Polite

Another thing I noticed is that AI-generated reviews tend to be very diplomatic.

They rarely say something like:

This architecture is fundamentally broken.

Instead they produce much softer language.

In fact, the first open-ended review Copilot generated described the legacy codebase as:

“A well-structured lottery simulation system with clear domain modeling and separation of concerns.”

That assessment was far more positive than reality.

Giving AI a Code Review Scorecard

To get a more realistic review, I gave Copilot a structured review scorecard.

Instead of asking for a general opinion, the AI had to evaluate the project across several weighted categories.

For example:

Category Weight
Architecture High
Testing 20%
Programming practices 15%
Maintainability Medium

Interestingly, in this scoring model writing code itself only accounts for about 15% of the total score.

That reflects something many experienced developers already know:

Software quality is determined far more by architecture and testing than by individual lines of code.

The Result: Reviewing the Legacy Code

Once Copilot evaluated the legacy project using the scorecard, the results were dramatically different.

The system scored:

15 / 100

The review highlighted several major issues:

  • No clear architectural structure
  • Tight coupling between components
  • No automated tests
  • Poor separation of responsibilities

The final recommendation from the AI was very direct:

Do not attempt to fix this system incrementally.

Instead:

  • Treat the codebase as reference material
  • Perform a full rewrite
  • Avoid investing time into patching severe technical debt

This was the type of honest assessment that the simple open-ended review failed to produce.

Reviewing the Rewritten Version

After several days of work — with Copilot helping with much of the code — I ran the same structured review on the new version.

The rewritten solution followed a structure that most developers familiar with the .NET ecosystem would recognize:

  • clear project separation
  • cleaner domain organization
  • proper data access layers
  • improved maintainability

The application itself is a simple lottery simulation tool that can generate numbers based on historical results and simulate outcomes.

And like most lottery simulations, it demonstrates one consistent result:

Even when simulated millions of times, the expected outcome is still a loss.

An Interesting AI Behavior

When I ran the review on the new codebase, Copilot generated a detailed report but did not include the final score.

I had to prompt it again to output the result using the same scorecard format.

This highlights something important about working with AI systems.

AI responses are not fully deterministic.

Even when using the same prompts and templates, the output may vary slightly because the model is generating responses rather than executing fixed instructions.

If the responses were identical every time, it would behave more like a script than an AI model.

Key Takeaways

Using AI for code reviews can be extremely useful, but it works best when used correctly.

1. AI Needs Structure

Without a structured review framework, AI reviews will stay fairly shallow.

Providing guidelines dramatically improves the analysis.

2. AI Defaults to Being Polite

If you want honest feedback, you need to force the AI to follow strict evaluation criteria.

Otherwise the review may sound overly positive.

3. AI Is Not Deterministic

Even with identical prompts, AI responses may vary.

This is normal behavior for generative AI systems.

4. AI Works Best as an Engineering Assistant

AI tools can greatly accelerate tasks like:

  • code reviews
  • refactoring analysis
  • technical debt assessment

But they still work best when combined with human engineering judgment.

Final Thoughts

Using Copilot to both rewrite and review a codebase turned out to be a fascinating experiment.

The biggest lesson was simple:

AI becomes much more powerful when you give it structure.

A simple prompt produces interesting feedback.

A structured framework produces actionable engineering insight.

📚 Watch the Full Series

Episode 1: GitHub Copilot AI Code Review - Can AI Understand Legacy .NET Code?
https://youtu.be/P26t5EVz70U

Episode 2: Creating .NET Projects and Solution Structure
https://youtu.be/Vf0yULOHY3I

Episode 3: Legacy Code Rewrite - Random Number Generator
https://youtu.be/6DuaW9VjQa8

Episode 4: Working Without Agent Skills in Visual Studio 2026
https://youtu.be/dznUGMNhqSU

Episode 5: Vibe Coding Razor Pages
https://youtu.be/sQdByQML_w8

➡️ Episode 6: Code Review (this article)
https://youtu.be/omDvFGu8Vtc

Detecting When Smart Money Stops Being Smart

Following a profitable wallet is easy. Knowing when to unfollow it is where the money is.

I learned this the hard way. Not in crypto, but in forex. Years ago I built trading systems that scraped signals from profitable traders and mirrored their positions. It worked until it didn’t. The problem was never finding good traders to follow. The problem was staying too long after they stopped performing.

The same pattern repeats in on-chain copy trading. Someone finds a wallet with a 70% win rate, follows every move, and six weeks later wonders why they’re bleeding. The wallet didn’t get hacked. The market shifted and the strategy stopped working.

Nobody talks about this part.

The decay problem

Every trading strategy has a shelf life. A wallet that’s profitable today is running a strategy tuned to current market conditions. When conditions change, the strategy breaks. Sometimes gradually, sometimes overnight.

In forex I watched this happen in real time. A signal provider would post a 40% return over three months. Followers would pile in during month four. By month six the drawdown had wiped most of the gains. The provider’s edge was gone but the followers didn’t know because they were looking at cumulative PnL, not recent performance.

On-chain it’s the same dynamic but harder to detect because the data is messier. You’re not looking at clean trade logs. You’re parsing token swaps, liquidity events, and contract interactions, then trying to figure out if the pattern still holds.

What to actually measure

When I built a detection system for this, I focused on three metrics that signal regime change:

Win rate over a rolling window. Not all-time. A wallet with a 65% all-time win rate that’s been running at 40% for the last three weeks is in trouble. The all-time number hides the decay.

Average return per trade, recent vs historical. If the average return is shrinking even while the win rate holds, the edge is thinning. The wallet is still picking winners but the magnitude is dropping. This is the earliest warning sign.

Trade frequency changes. A wallet that was trading daily and suddenly goes quiet for a week might be recalibrating. Or it might be done. Either way, the pattern you were following no longer exists.

None of these metrics work in isolation. A drop in win rate during a broad market pullback means nothing. But a drop in win rate while similar wallets maintain theirs, that’s a signal.

The threshold problem

The hardest part isn’t collecting the data. It’s deciding what counts as a regime change versus normal variance.

Set the thresholds too tight and you’re unfollowing wallets after every bad week. Too loose and you catch the decline three weeks after it started. I went through several iterations before landing on something useful: compare the wallet’s recent performance against its own historical baseline, not against an absolute number.

A wallet that normally runs a 55% win rate dropping to 45% is a different signal than a wallet that normally runs 75% dropping to 65%. Both dropped 10 points, but the first one is within normal variance and the second one is a structural shift.

When to actually stop following

The detection is one thing. Acting on it is another.

The instinct is to wait. “Maybe it’s just a bad week.” That’s the same instinct that kept me in losing forex signals for months. The data was clear but the hope was louder.

What worked for me: automate the alert, not the action. The system flags when a wallet crosses its regime change threshold. I review it, check the context (is the whole market down or just this wallet?), and decide. But the flag forces the decision. Without it, I’d never look.

Most people in DeFi are still following wallets based on a snapshot of past performance. They find a wallet on a leaderboard, follow it, and never re-evaluate. That’s not a strategy. That’s a bet that conditions never change.

The edge isn’t in finding smart money. There are tools for that everywhere. The edge is in knowing when smart money stops being smart for the current market, and stepping aside before the losses compound.

If you’re thinking about building something similar or want to talk through the detection approach, feel free to reach out: cal.eu/reneza.

EGM sabit radar noktaları (HARİTA) Sabit radar noktaları nerede?

Ramazan Bayramı tatili yaklaşırken yollara düşmeye hazırlanan sürücüler için kritik bir trafik uyarısı geldi. Emniyet Genel Müdürlüğü, şehir içi ve şehirlerarası yollarda hız denetimlerini artıracağını duyurdu ve sabit radar noktalarını resmi olarak paylaşarak sürücüleri önceden bilgilendirdi. Peki, sabit radar noktaları nerede? Sabit radar noktalar haritası! Detaylar…