Last week, I went down a huge rabbit hole and tried to come up with a mathematical generalization of dealing with errors in circuits.

I am not a mathematician, but I tried to come up with a proof as rigorous as possible. However, other eyes are very much appreciated. I'd be happy about a boost and/or feedback.

And of course, I'd be glad if this was useful to anyone else :)

https://www.maxgenson.de/blog/demystifying-tolerances/

#electricalengineering #errorhandling #math #calculus #mathproblems #feedback #helpwanted

Demystifying Electrical Component Tolerances

Did you ever wonder how the tolerances of resistors influence a voltage divider? What happens if you put two components in parallel — does the effective tolerance increase or decrease? I had some very wrong assumptions about the answers to these two questions and am glad I looked deeper in to the topic. Some very suprising, yet satisfying and reassuring insights into error boundaries and propagation lie ahead. So buckle up and get ready for some math! (I enabled LaTeX \LaTeX LATE​X on my blog for this, hihi)

maxgenson.de
Ubuntu 26.04 installation problems

I was trying to install Ubuntu 26.04 and I'm getting tons of error messages. I'm asked if I want to report them and send them to Canonical (I said yes). Then I proceed with the installation and cho...

Ask Ubuntu
🎩✨ Ah, the #utopia where borrow-checking without type-checking is feasible! A dreamland where dynamic typing is sold as a feature and "useful error messages" are apparently the new nirvana. 🚀😏 Let's marvel at this miraculous toy language that's less expressive than #Rust but more expressive than, well, absolutely nothing.
https://www.scattered-thoughts.net/writing/borrow-checking-without-type-checking/ #dynamictyping #errorhandling #programminglanguages #HackerNews #ngated
Borrow-checking without type-checking

How do you handle exceptions in CSharp?

Read more here:
https://bgh.st/ctz7i0

#csharp #beginner #exceptions #errorhandling

@screwlisp

You can pick up the document 'Signalling and Handling Conditions' from this index page:

http://nhplace.com/kent/ZL/

It was longer than I thought it would be, but I think you'll find it interesting to see what the Zetalisp condition system (which inspired the Common Lisp condition system) looked like.

In spirit, it was much the same. The biggest differences are:

* The CL system has 'active' restarts, where the ZL system had a passive thing where you returned a value to the case context and hoped that it would do the thing you wanted. It felt quite a bit more error-prone (if you'll pardon the reuse of 'error' here, maybe I should say 'mistake-prone').

* The ZL condition system offers a lot of really low-level stuff that did not seem proper for CL.

* The set of operations offered in ZL was richer, but also a lot more complicated, I thought, and I worried people would not really see what it was trying to do.

* Obviously, the ZL system was based on Flavors, not CLOS, and made reference to a lot of LispM-specific packages.

* The document was published in January, 1983 and identifies itself as part of Symbolics Release 4.0.

There are other differences as well.

#Zetalisp #LispMachine #LispMachines #Symbolics #LispM
#ConditionHandling #ConditionSystem #ErrorSystem #ErrorHandling #CommonLisp #CL #Flavors #CLOS #History #ComputerHistory
#InternetArchive #Bitsavers

The SharePoint Architect’s Secret: Programmatic Deployment

2,131 words, 11 minutes read time.

If you are still clicking “New List” in a SharePoint production environment, you aren’t an architect; you’re a hobbyist playing with a high-stakes enterprise tool. You might think that manual setup is “faster” for a small SPFx project, but you are actually just leaking technical debt into your future self’s calendar.

Every manual click is a variable you didn’t account for, a point of failure that will inevitably crash your web part when a user renames a column or deletes a choice. Real developers don’t hope the environment is ready—they command it to be ready through code that is as immutable as a compiled binary.

The hard truth is that most SPFx “experts” are actually just CSS skinners who are terrified of the underlying REST API and the complexity of PnPjs. They build beautiful interfaces on top of shaky, manually-created schemas that crumble the moment the solution needs to scale or move to a different tenant.

If your deployment process involves a PDF of “Manual Setup Instructions” for an admin, you have already failed the first test of professional engineering: repeatability. Your job isn’t to make it work once; it’s to ensure it can never work incorrectly, no matter who is at the keyboard.

We are going to break down the two primary schools of thought in programmatic provisioning: the legacy XML “Old Guard” and the modern PnPjs “Fluent” approach. Both have their place in the trenches, but knowing when to use which is what separates the senior lead from the junior dev who just copies and pastes from Stack Overflow.

Consistency is the only thing that saves you when the deployment window is closing and the client is breathing down your neck. If you don’t have a script that can “Ensure” your list exists exactly as the code expects it, you are just waiting for a runtime error to ruin your weekend.

The Blueprint: Our Target “Project Contacts” List

Before we write a single line of provisioning code, we define the contract. Our SPFx web part expects a list named “ProjectContacts” with the following technical specifications:

  • Title: (Standard) The person’s Full Name.
  • EmailAddr: (Text) Their primary corporate email.
  • MailingAddress: (Note/Multiline) The full street address.
  • City: (Text) The shipping/mailing city.
  • IsActive: (Boolean) A toggle to verify if this contact is still valid.
  • LinkedInProfile: (URL) A link to their professional profile.

If any of these internal names are missing or mapped incorrectly, your SPFx get request will return a 400 Bad Request, and your UI will render as a broken skeleton.

Method A: The XML Schema (The “Old Guard” Precision)

Most juniors look at a block of SharePoint XML and recoil like they’ve seen a memory leak in a legacy C++ driver. They want everything to be clean JSON or fluent TypeScript because it’s easier to read, but they forget that SharePoint’s soul is still written in that rigid, unforgiving XML.

When you use createFieldAsXml, you are speaking the native language of the SharePoint engine. This bypasses the abstractions that sometimes lose detail in translation. This isn’t about being “old school”; it’s about precision. A field’s InternalName is its DNA—if you get it wrong, the entire system rejects the transplant.

I’ve seen dozens of SPFx projects fail because a developer relied on a Display Name that changed three months later, breaking every query in the solution. By using the XML method, you hard-code the StaticName and ID, ensuring that no matter what a “Site Owner” does in the UI, your code remains functional.

// The Veteran's Choice: Precision via XML const emailXml = `<Field Type="Text" Name="EmailAddr" StaticName="EmailAddr" DisplayName="E-Mail Address" Required="TRUE" />`; const addressXml = `<Field Type="Note" Name="MailingAddress" StaticName="MailingAddress" DisplayName="Mailing Address" Required="FALSE" RichText="FALSE" />`; await list.fields.createFieldAsXml(emailXml); await list.fields.createFieldAsXml(addressXml);

Using XML is a choice to be the master of the metadata, rather than a passenger on the SharePoint UI’s whims. It requires a level of discipline that most developers lack because you have to account for every attribute without a compiler to hold your hand. If your personal “schema” is well-defined and rigid, you can handle the pressure of any deployment. If it’s loose, you’re just waiting for a runtime crash.

Method B: The Fluent API (The Modern “Clean Code” Protocol)

If Method A is the raw assembly, Method B is your high-level compiled language. The PnPjs Fluent API is designed for the developer who values readability and speed without sacrificing the “Ensure” logic required for professional-grade software.

Instead of wrestling with strings and angle brackets, you use strongly-typed methods. This is where the modern architect lives. It reduces the “surface area” for errors. You aren’t guessing if you closed a tag; the IDE tells you if your configuration object is missing a required property. This is the “Refactored” life—eliminating the noise so you can focus on the logic.

// The Modern Protocol: Type-Safe Fluent API await list.fields.addText("City", { Title: "City", Required: false }); await list.fields.addBoolean("IsActive", { Title: "Is Active", DefaultValue: "1" // True by default }); await list.fields.addUrl("LinkedInProfile", { Title: "LinkedIn Profile", Required: false });

The “Fluent” way mirrors a man who has his protocols in place. You don’t have to over-explain; the code speaks for itself. It’s clean, it’s efficient, and it’s easily maintained by the next guy on the team. But don’t let the simplicity fool you—you still need the “Check-then-Create” logic (Idempotency) to ensure your script doesn’t blow up if the list already exists.

The Idempotency Protocol: Building Scripts That Don’t Panic

In the world of high-stakes deployment, “hope” is not a strategy. You cannot assume the environment is a blank slate. Maybe a junior dev tried to “help” by creating the list manually. Maybe a previous deployment timed out halfway through the schema update. If your code just tries to add() a list that already exists, it will throw a 400 error and crash the entire initialization sequence of your SPFx web part.

Professional engineering requires Idempotency—the ability for a script to be run a thousand times and yield the same result without side effects. Your code needs to be smart enough to look at the site, recognize what is already there, and only provision the delta. This is where you separate the “script kiddies” from the architects. You aren’t just writing a “Create” script; you are writing an “Ensure” logic.

// The Architect's Check: Verify before you Commit try { await sp.web.lists.getByTitle("ProjectContacts")(); console.log("Infrastructure verified. Proceeding to field check."); } catch (e) { console.warn("Target missing. Initializing Provisioning Protocol..."); await sp.web.lists.add("ProjectContacts", "Centralized Stakeholder Directory", 100, true); }

This logic mirrors the way a man should handle his own career and reputation. You don’t just “show up” and hope things work out; you audit the environment, you check for gaps in your own “schema,” and you provision the skills you’re missing before the deadline hits. If you aren’t checking your own internal “code” for errors daily, you’re eventually going to hit a runtime exception that you can’t recover from.

Stability is built in the hidden layers. Most people only care about the UI, the “pretty” part of the SPFx web part that the stakeholders see. But if your hidden provisioning logic is sloppy, the UI is just a facade on a crumbling foundation. Integrity in the hidden functions leads to integrity in the final product.

The View Layer: Controlling the Perspective

A list is a database, but a View is the interface. If you provision the fields but leave the “All Items” view in its default state, you are forcing the user to manually configure the UI—which defeats the entire purpose of programmatic deployment. You have to dictate exactly how the data is presented. This is about leadership; you don’t leave the “perspective” of your data to chance.

When we provision the ProjectContacts view, we aren’t just adding columns; we are defining the “Load-Bearing” information. We decide that the EmailAddr and IsActive status are more important than the CreatedDate. We programmatically remove the fluff and surface the metrics that matter.

// Dictating the Perspective: View Configuration const list = sp.web.lists.getByTitle("ProjectContacts"); const view = await list.defaultView(); const columns = ["Title", "EmailAddr", "City", "IsActive"]; for (const name of columns) { await list.views.getById(view.Id).fields.add(name); }

In your own life, you have to be the architect of your own “View.” If you let the world decide what “columns” of your life are visible, they’ll focus on the trivial. You have to programmatically decide what matters—your output, your stability, and your leadership. If you don’t define the view, someone else will, and they’ll usually get it wrong.

Refactoring a messy View is the same as refactoring a messy life. It’s painful, it requires deleting things that people have grown used to, and it demands a cold, hard look at what is actually functional. But once the script runs and the View is clean, the clarity it provides is worth the effort of the build.

The Closeout: No Excuses, Just Execution

We have covered the precision of the XML “Old Guard” and the efficiency of the Fluent API. We have established that manual clicks are a form of technical failure and that idempotency is the only way to survive a production deployment.

The “Secret” to being a SharePoint Architect isn’t some hidden knowledge or a certification; it’s the discipline to never take the easy way out. It’s the refusal to ship code that requires a “Manual Step” PDF. It’s the commitment to building infrastructure that is as solid as the hardware it runs on.

If your SPFx solutions are still failing because of “missing columns” or “wrong list names,” stop blaming the platform and start looking at your deployment protocol. Refactor your scripts. Harden your schemas. Stop acting like a junior and start provisioning like an architect.

You have the blueprints. You have the methods. Now, get into the codebase and eliminate the manual debt that is dragging down your career. The system is waiting for your command.

*******

These final modules are your implementation blueprints—the raw, compiled logic of the two provisioning protocols we’ve discussed. I’ve separated them so you can see exactly how the XML Precision and Fluent API approaches look when deployed in a production-ready TypeScript environment.

One is your “Old Guard” assembly for absolute schema control, and the other is your modern, refactored protocol for speed and type-safety. Treat these as the “gold master” files for your SPFx initialization; copy them, study the differences in the dependency injection, and stop guessing how your infrastructure is built.

ensureProjectContactsXML.ts

// Filename: ensureProjectContactsXML.ts import { SPFI } from "@pnp/sp"; import "@pnp/sp/webs"; import "@pnp/sp/lists"; import "@pnp/sp/fields"; /** * PROVISIONING PROTOCOL: XML SCHEMA * Use this when absolute precision of InternalNames and StaticNames is non-negotiable. */ export const ensureProjectContactsXML = async (sp: SPFI): Promise<void> => { const LIST_NAME = "ProjectContacts"; const LIST_DESC = "Centralized Stakeholder Directory - XML Provisioned"; try { // 1. IDEMPOTENCY CHECK: Does the infrastructure exist? try { await sp.web.lists.getByTitle(LIST_NAME)(); } catch { // 2. INITIALIZATION: Build the foundation await sp.web.lists.add(LIST_NAME, LIST_DESC, 100, true); } const list = sp.web.lists.getByTitle(LIST_NAME); // 3. SCHEMA INJECTION: Speaking the native tongue of SharePoint const fieldsToCreate = [ `<Field Type="Text" Name="EmailAddr" StaticName="EmailAddr" DisplayName="E-Mail Address" Required="TRUE" />`, `<Field Type="Note" Name="MailingAddress" StaticName="MailingAddress" DisplayName="Mailing Address" Required="FALSE" RichText="FALSE" />`, `<Field Type="Text" Name="City" StaticName="City" DisplayName="City" Required="FALSE" />` ]; for (const xml of fieldsToCreate) { // We don't check for existence here for brevity, but a Lead would. await list.fields.createFieldAsXml(xml); } console.log("XML Provisioning Protocol Complete."); } catch (err) { console.error("Critical Failure in XML Provisioning:", err); throw err; } };

ensureProjectContactsFluent.ts

// Filename: ensureProjectContactsFluent.ts import { SPFI } from "@pnp/sp"; import "@pnp/sp/webs"; import "@pnp/sp/lists"; import "@pnp/sp/fields"; /** * PROVISIONING PROTOCOL: FLUENT API * Use this for high-speed, readable, and type-safe infrastructure deployment. */ export const ensureProjectContactsFluent = async (sp: SPFI): Promise<void> => { const LIST_NAME = "ProjectContacts"; try { // 1. INFRASTRUCTURE AUDIT let listExists = false; try { await sp.web.lists.getByTitle(LIST_NAME)(); listExists = true; } catch { await sp.web.lists.add(LIST_NAME, "Stakeholder Directory - Fluent Provisioned", 100, true); } const list = sp.web.lists.getByTitle(LIST_NAME); // 2. LOAD-BEARING FIELDS: Strongly typed and validated // Provisioning the Boolean 'IsActive' await list.fields.addBoolean("IsActive", { Title: "Is Active", Group: "Project Metadata", DefaultValue: "1" // True }); // Provisioning the URL 'LinkedInProfile' await list.fields.addUrl("LinkedInProfile", { Title: "LinkedIn Profile", Required: false }); console.log("Fluent API Provisioning Protocol Complete."); } catch (err) { console.error("Critical Failure in Fluent Provisioning:", err); throw err; } };

Call to Action


If this post sparked your creativity, don’t just scroll past. Join the community of makers and tinkerers—people turning ideas into reality with 3D printing. Subscribe for more 3D printing guides and projects, drop a comment sharing what you’re printing, or reach out and tell me about your latest project. Let’s build together.

D. Bryan King

Sources

Disclaimer:

The views and opinions expressed in this post are solely those of the author. The information provided is based on personal research, experience, and understanding of the subject matter at the time of writing. Readers should consult relevant experts or authorities for specific guidance related to their unique situations.

#AutomatedDeployment #AutomationProtocol #BackendLogic #cleanCode #codeQuality #CRUDOperations #DataContracts #DeploymentAutomation #devopsForSharePoint #EnterpriseDevelopment #errorHandling #FieldCreation #FluentAPI #Idempotency #InfrastructureAsCode #LeadDeveloper #ListTemplates #LoadBearingCode #MetadataArchitecture #Microsoft365 #MicrosoftGraph #ODataQueries #PnPPowerShell #PnPjs #professionalCoding #ProgrammaticProvisioning #RESTAPI #SchemaAutomation #Scripting #SharePointArchitect #SharePointFramework #SharePointLists #SharePointOnline #SiteScripts #softwareArchitecture #softwareEngineering #SPFxDevelopment #systemStability #technicalDebt #Telemetry #TypeScript #ViewConfiguration #WebDevelopment #webPartDevelopment #XMLSchema
Get real-time alerts for Brokepoint! This video shows how to use the Notification Web API to surface errors from background jobs and streams so nothing slips by. A must-watch for devs who want smarter error handling. #WebAPI #Notifications #WebDev #JavaScript #ErrorHandling #DevTools #OpenWeb #PeerTube #English #ScienceTech
https://video.d20.social/videos/watch/6f48e2fc-b970-424b-8f77-ad2afecdc1cf
Notifications for Brokepoint

PeerTube

#Development #Techniques
From instanceof to Error.isError() · Safer error checking in JavaScript https://ilo.im/16avdx

_____
#ErrorHandling #JavaScript #Browsers #NodeJS #WebDev #Frontend #Backend

From instanceof to Error.isError: safer error checking in JavaScript - Matt Smith

Why instanceof error fails across realms in JavaScript, and how Error.isError() fixes it.

FastMCP brings a suite of Python tools for the Model Context Protocol, now with full type hints, docstrings, robust error handling, input validation and logging. Ideal for AI developers who want clean, maintainable code and seamless integration. Dive in to see how it streamlines your LLM workflows and boosts open‑source collaboration. #FastMCP #ModelContextProtocol #PythonAI #ErrorHandling

🔗 https://aidailypost.com/news/fastmcp-offers-python-tools-type-hints-docstrings-error-handling

@screwlisp

Coincidentally, I assume, Abhijit Rao posted on LinkedIn earlier today a very interesting blurb, reporting on his use of this condition handling structure in conjunction with LLMs.

(Works for me in an incognito window, but you may not be able to see past the first comment if you don't have a LinkedIn account.)

https://www.linkedin.com/posts/quasiabhi_commonlisp-lisp-agents-activity-7425847332560293888-fYf9

The blurb references this more detailed account of the work, which I haven't been through in detail yet:

https://quasilabs.in/blog/2026/02/07/conditions-restarts-and-the-agent-that-chooses/

#CommonLisp #Lisp #ConditionHandling #Errors #Restarts #Continuations #ErrorHandling #ConditionHandling #LLM #LLMs #AI #Modularity #QuasiLabs #Reflection #Introspection #MetaProgramming

#commonlisp #lisp #agents #llm #programming #code #quasilabs | Abhijit Rao

In 1988 The Common Lisp Condition System was formally introduced by the X3J13 committee, responsible for the ANSI standard. It was a radical idea: The code that /detects/ an error should not decide how to /recover/ from it. Instead, the signaler establishes named recovery options—restarts—and lets a handler higher up the stack choose which one to invoke. The decision belongs to whoever has the broader context. This was ahead of its time. For 35+ years, the "broader context" was either a human in the debugger or a programmer who knew at compile time which restart to pick. Both worked fine. Then LLMs showed up. An agent monitoring a data pipeline encounters a validation error. Three restarts available. No hardcoded strategy. The agent needs to reason about system goals, weigh tradeoffs, adapt to context it wasn't explicitly programmed for. The architecture was already right. What was missing: semantic context for the handler. Restarts come with names and descriptions. Agents need to know what the system is /trying to achieve/. What failed and why. What each recovery option costs. Why these specific restarts exist in the first place. When you add structured intent metadata—goals, failure modes, design rationale—the agent can map recovery options to system objectives. Same restarts. Profoundly different decision-making surface. I built Telos to capture this. It makes the why behind code queryable at runtime. Combined with conditions and restarts, you get agent-legible error recovery. The condition/restart protocol already separates mechanism from policy. It supports multiple recovery options without the signaler knowing which will be chosen. It allows the handler to be arbitrarily far—in code, in time, in understanding—from the signaler. It's an architecture perfect for agentic systems. And, yes, Common Lisp has an ANSI standard. Blog post with full working CSV validator example: https://lnkd.in/dSbuDK6J #commonlisp #lisp #agents #llm #programming #code #quasilabs