Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
166243 stories
·
33 followers

WPF IsDirty: Detect Unsaved Changes Before Closing a Window

1 Share
A change-flag IsDirty rises on load, stays set after a revert, and misses edits to saved added rows; × and Alt+F4 skip pending input. Commit it, then compare.
Read the whole story
alvinashcraft
12 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Email Without Secrets: Making ICG's .NET Email Libraries AI-Agent Friendly

1 Share
The ICG.NetCore.Utilities.Email libraries can now capture email instead of sending it. Developers and AI coding agents can build, test, and verify email features without SendGrid, Resend, or SMTP credentials, keeping production protected.
Read the whole story
alvinashcraft
19 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Finding out how your code is really structured with archify Architecture Diagnosis

1 Share

In a previous post I explained how the archify skill helps you to create interactive diagrams.

A diagram shows how you think your system is built. It doesn't tell you how the code is actually wired together.

At some point every architect hits that gap. The diagram says three clean layers. The code says otherwise, but nobody has looked at it in a while. 

Archify has a feature for exactly this moment: Architecture Diagnosis.

Why do we need this?

An architecture diagram, however nice and interactive, is an authored artifact. Somebody (or some agent) decided which boxes and arrows to draw. Whatever was left out is invisible.

Architecture Diagnosis goes the other way around. It reads the repository and shows what is really there:

  • Dependency cycles: modules that depend on each other, directly or via a longer chain
  • Tightly coupled modules: parts of the code that can't change without dragging others along
  • Complexity hotspots: the places where the code is hardest to reason about
  • Layer-rule breaks: dependencies that go in a direction your layering says they shouldn't

Every finding is linked to the source behind it, so you can jump straight to the code instead of arguing about a picture.

Running a diagnosis

Diagnosis is built into the archify skill. There is no extra package to install. If you can't find it, check that you are on a recent version of the skill.

The easiest way is to ask your agent:

Use Archify Architecture Diagnosis on this repository: show module coupling, dependency cycles and hotspots.

You can also call the CLI directly from the installed skill directory:

node <installed-skill-dir>/bin/archify.mjs code-analysis prepare <repo> --out <dir>

The result is one offline HTML file: repo.analysis.html. No cloud account, nothing leaves your machine.

Tip: after Archify delivers a repository-backed architecture diagram, it ends its summary with a short explanation of what Diagnosis can do. The diagram also gets a Code Analysis button. Nothing starts until you say yes, so you stay in control.

Remark: the analysis is static. It looks at a working-tree revision or a pinned commit. Runtime traces or production telemetry are not part of it.

What do you get?

The generated workbench gives you three things.

  • Atlas: your repository dependencies as a radial star map. You can focus on a single sector to see how a part of the codebase connects to the rest.
  • 3D model: the same dependency graph as a rotatable 3D view, handy to spot the core modules and the layering at a glance.
  • Ranked findings: the cycles, coupling issues, hotspots and layer-rule breaks, sorted so you know where to start.

From finding to fix

A list of findings is nice, but a list nobody acts on is just a different kind of diagram.

Each finding comes with a fix task you can copy and hand back to your coding agent. So the loop becomes: run the diagnosis, pick a finding, give the task to your agent, run the diagnosis again.

So the question becomes: should you let the agent fix everything? No. Start with the dependency cycles. They are usually the easiest to explain and the most painful to live with. Review the result like any other change.

Combining it with your architecture diagram

This is the part I like most. You can pair a diagnosis with an architecture diagram you created before, by passing the diagram's JSON file with --ir:

node <installed-skill-dir>/bin/archify.mjs code-analysis prepare <repo> --out <dir> --ir <architecture.json>

Now every component in your authored diagram shows its issue count. It also flags dependencies that exist in the code but are missing from the diagram.

That last one answers the question I started with: where does the diagram I drew differ from the code I wrote?

Which languages are supported?

Architecture Diagnosis covers JS/TS, Python, Java, Go, Rust, C and C++.

Remark: C# is not on that list. As I'm mostly working on C# projects, that's a pity. Maybe I should create PR (I feel a Christmas Holiday project coming up)

Conclusion

That's it! A diagram tells you what you intended. A diagnosis tells you what you built. Together they even become better.

More information

Read the whole story
alvinashcraft
31 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Training Your Own Model to Sound Like You

1 Share
Fine-tune a small local LLM on your own writing with LoRA: turn old posts into training pairs, train with MLX-LM, test on unseen topics, and run it in Ollama.
Read the whole story
alvinashcraft
7 hours ago
reply
Pennsylvania, USA
Share this story
Delete

SE Radio 749: Sachin Singh on the Network Time Protocol

1 Share

Sachin Singh, former software engineering lead for time synchronizsation at AWS, discusses the Network Time Protocol (NTP) -- a key protocol for communicating time between devices over the internet. Host Jason Davey speaks with him about the background of computer timekeeping, how NTP allows us to synchronize with highly accurate atomic clocks, why this is important, and Sachin's experience operating an NTP service at scale. Along the way, they discuss various practical considerations how developers can deal with time in their own applications.





Download audio: https://traffic.libsyn.com/secure/seradio/749-sachin-singh-ntp.mp3?dest-id=23379
Read the whole story
alvinashcraft
7 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Jensen Huang Goes To Washington — With Josh Rogin

1 Share

Josh Rogin is the lead global security analyst at The Washington Post and author of The Cable on Substack. Rogin joins Big Technology Podcast to discuss Jensen Huang’s congressional testimony and what Washington’s scrutiny could mean for Nvidia’s business. Tune in to hear why Rogin believes the investigations are only beginning, how new export restrictions could reshape global chip sales, and what’s at stake in the debate over China’s access to advanced AI. We also cover Chinese cyberattacks, the political divide between JD Vance and Marco Rubio, and how geopolitics is reshaping the AI infrastructure buildout. Hit play for a sharp conversation about Nvidia’s future and the collision between Silicon Valley, Washington, and national security.

---

Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.

Want a discount for Big Technology on Substack + Discord? Here’s 25% off for the first year: ⁠https://www.bigtechnology.com/subscribe?coupon=0843016b⁠


Learn more about your ad choices. Visit megaphone.fm/adchoices





Download audio: https://pdst.fm/e/tracking.swap.fm/track/t7yC0rGPUqahTF4et8YD/pscrb.fm/rss/p/traffic.megaphone.fm/AMPP7845552671.mp3
Read the whole story
alvinashcraft
7 hours ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories