![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
My next book of science cartoons Physics for Cats is available to preorder. Links here:…

My next book of science cartoons Physics for Cats is available to preorder. Links here: www.tomgauld.com
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
How Sauber’s hard work on upgrades paid off in Spain
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Hamilton responds to speculation over relationship with engineer Adami
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Red Bull Junior Arvid Lindblad has Super Licence approved
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
F1 and KitKat to launch partnership in Mexico
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
CodeSOD: The Pirate's Code
We've talked about ASP .Net WebForms in the past. In this style of development, everything was event driven: click a button, and the browser sends an HTTP request to the server which triggers a series of events, including a "Button Click" event, and renders a new page.
When ASP .Net launched, one of the "features" was a lazy repaint in browsers which supported it (aka, Internet Explorer), where you'd click the button, the page would render on the server, download, and then the browser would repaint only the changed areas, making it feel more like a desktop application, albeit a laggy one.
This model didn't translate super naturally to AJAX style calls, where JavaScript updated only portions of the page. The .Net team added some hooks for it- special "AJAX enabled" controls, as well as helper functions, like __doPostBack
, in the UI to generate URLs for "postbacks" to trigger server side execution. A postback is just a POST request with .NET specific state data in the body.
All this said, Chris maintains a booking system for a boat rental company. Specifically, he's a developer at a company which the boat rental company hires to maintain their site. The original developer left behind a barnacle covered mess of tangled lines and rotting hull.
Let's start with the view ASPX definition:
<script>
function btnSave_Click()
{
if (someCondition)
{
//Trimmed for your own sanity
//PostBack to Save Data into the Database.
javascript:<%#getPostBack()%>;
}
else
{
return false;
}
}
</script>
<html>
<body>
<input type="button" value=" Save Booking " id="btnSave" class="button" title="Save [Alt]" onclick="btnSave_Click()" />
</body>
</html>
__doPostBack
is the .NET method for generating URLs for performing postbacks, and specifically, it populates two request fields: __EVENTTARGET
(the ID of the UI element triggering the event) and __EVENTARGUMENT
, an arbitrary field for your use. I assume getPostBack()
is a helper method which calls that. The code in btnSave_Click
is as submitted, and I think our submitter may have mangled it a bit in "trimming", but I can see the goal is to ensure than when the onclick
event fires, we perform a "postback" operation with some hard-coded values for __EVENTTARGET
and __EVENTELEMENT
.
Or maybe it isn't mangled, and this code just doesn't work?
I enjoy that the tool-tip "title" field specifies that it's "[Alt]" text, and that the name of the button includes extra whitespace to ensure that it's padded out to a good rendering size, instead of using CSS.
But we can skip past this into the real meat. How this gets handled on the server side:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'// Trimmed more garbage
If Page.IsPostBack Then
'Check if save button has been Clicked.
Dim eventArg As String = Request("__EVENTARGUMENT")
Dim offset As Integer = eventArg.IndexOf("@@@@@")
If (offset > -1) Then
'this is an event that we raised. so do whatever you need to here.
Save()
End If
End If
End Sub
From this, I conclude that getPostBack
populates the __EVENTARGUMENT
field with a pile of "@", and we use that to recognize that the save button was clicked. Except, and this is the important thing, if they populated the ID property with btnSave
, then ASP .Net would automatically call btnSave_Click
. The entire point of the __doPostBack
functionality is that it hooks into the event handling pattern and acts just like any other postback, but lets you have JavaScript execute as part of sending the request.
The entire application is a boat with multiple holes in it; it's taking on water and going down, and like a good captain, Chris is absolutely not going down with it and looking for a lifeboat.
Chris writes:
The thing in its entirety is probably one of the biggest WTFs I've ever had to work with.
I've held off submitting because nothing was ever straight forward enough to be understood without posting the entire website.
Honestly, I'm still not sure I understand it, but I do hate it.

![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Alexander Armstrong explores Rome's underground treasures
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Tommy Steele's rise to fame as a rock 'n' roll teen idol
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Should McLaren focus on one driver in title battle?
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Side Effects by Bea Tormo
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Madrid makes debut as Imola dropped from 2026
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Side Business
Notable allusions to unrecorded cases of Sherlock Holmes:
- “‘Oh, you mean the little problem of the Grosvenor Square furniture van. That is quite cleared up now — though, indeed, it was obvious from the first.'” (“The Adventure of the Noble Bachelor”)
- “‘Farintosh,’ said he. ‘Ah, yes, I recall the case; it was concerned with an opal tiara. I think it was before your time, Watson.'” (“The Adventure of the Speckled Band”)
- “‘Here’s the record of the Tarleton murders and the case of Vamberry, the wine merchant, and the adventure of the old Russian woman, and the singular affair of the aluminium crutch, as well as a full account of Ricoletti of the club foot and his abominable wife.'” (“The Adventure of the Musgrave Ritual”)
- “‘He is a big, powerful chap, clean-shaven, and very swarthy — something like Aldridge, who helped us in the bogus laundry affair.'” (The Adventure of the Cardboard Box”)
- “‘You know that I am preoccupied with this case of the two Coptic Patriarchs, which should come to a head to-day.'” (“The Adventure of the Retired Colourman”)
- “‘We have not forgotten your successful action in the case of Matilda Briggs.’ ‘Matilda Briggs was not the name of a young woman, Watson,’ said Holmes, in a reminiscent voice. ‘It was a ship which is associated with the giant rat of Sumatra, a story for which the world is not yet prepared.'” (“The Adventure of the Sussex Vampire”)
- “A third case worthy of note is that of Isadora Persano, the well-known journalist and duellist, who was found stark staring mad with a matchbox in front of him which contained a remarkable worm, said to be unknown to science.” (“The Problem of Thor Bridge”)
- “‘This is the Dundas separation case, and, as it happens, I was engaged in clearing up some small points in connection with it. The husband was a teetotaller, there was no other woman, and the conduct complained of was that he had drifted into the habit of winding up every meal by taking out his false teeth and hurling them at his wife, which you will allow is not an action likely to occur to the imagination of the average story-teller.'” (“A Case of Identity”)
- “‘And yet the motives of women are so inscrutable. You remember the woman at Margate whom I suspected for the same reason. No powder on her nose – that proved to be the correct solution.'” (“The Adventure of the Second Stain”)
- “‘I must thank you’, said Sherlock Holmes, ‘for calling my attention to a case which certainly presents some features of interest. I had observed some newspaper comment at the time, but I was exceedingly preoccupied by that little affair of the Vatican cameos, and in my anxiety to oblige the Pope I lost touch with several interesting English cases.'” (The Hound of the Baskervilles)
- “Our months of partnership had not been so uneventful as he had stated, for I find, on looking over my notes, that this period includes the case of the papers of ex-President Murillo, and also the shocking affair of the Dutch steamship Friesland, which so nearly cost us both our lives.” (“The Adventure of the Norwood Builder”)
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Formula 2 and Formula 3 unveil their 2026 calendars
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
All the key highlights from the 2026 F1 calendar
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Formula 1 reveals calendar for 2026 season
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
balk and baulk
Over on Bluesky last month, I was pulled into a conversation that went something like this:
- Someone tweets a screenshot of a comment with the phrase Do you baulk at the film reviews...?
- Someone American asks "how long have y'all been adding a u to balk?"
- And then, predictably, some respondents say it's always been there, Noah Webster took it out.
The Oxford English Dictionary has it as balk. Since it comes from Old English, it only got a 'u' after French had influenced (I am tempted to say 'infected') the spelling system. The 'u' came into the word in the 1600s and 1700s, and today the spelling is very mixed in BrE. British National Corpus has 21 baulked/13 balked, more recent Corpus of Global Web-Based English has 71 baulked/93 balked in BrE. Cambridge, Chambers & Collins Dictionary all list balk first as does the Guardian Style Guide.
Most u/non-u variations in BrE and AmE involve an o—as in words like colo(u)r and mo(u)ld. The variation can probably be blamed on Samuel Johnson as much as Noah Webster. In the 18th-century, not all British dictionaries put a u in words like colo(u)r, but Johnson did, and his dictionary became far more famous than the others, so the u form eventually became standard in BrE. I write about the ou/o spellings at this old post (and much more and much better in in The Prodigal Tongue). But even Johnson spelled balk without the u.
My attention to the -o(u)- words in the book meant I overlooked balk/baulk—but I used the word balked in chapter 7:
...please seemed inappropriate in the small request situation, and so Americans balked at it.
The British copyeditor did not bat an eyelash—or a blue pencil—at it.
Given the dictionaries' agreement, we can say that balk is the "standard" spelling of the verb in BrE. Given the corpus numbers, we can say that it is the "normal" spelling. Given the word's history, we can say it is the "original" spelling.
But those corpus numbers aren't so distinct, and given the conversation on Bluesky, it seems that some BrE writers really want to spell it with a u (and to believe that that is the "standard/normal/original" way to spell it). This may well be another instance of British spelling changing in recent decades in order to fight against perceptions but not realities of a British/American spelling difference.*
Confusion about its spelling is understandable, though, since there is a noun that is more usually spelled/spelt baulk. It's part of a billiard-type game table, and the term is used in several terms in several such games.
![]() |
Illustration from International 8 Ball Referee |
I searched for several of these terms as either balk or baulk in Corpus of Global Web-Based English and got only the u spelling—with none of them in AmE:
(Britannica.com has it as balk. They're owned by the same company as Merriam-Webster. Is the ghost of Noah W. removing U's in the encyclop[a]edia?)
So, in general, if it's a [billiards] noun, it's baulk and if it's a verb it's balk. They both come from the same Old English word, with a Germanic ancestor.
The one other -aulk word in current English is caulk (used much more in AmE than BrE, which tends to say seal/sealant instead)—but that came into English with the u, as it came from French cauquer in the 1500s.
The post-Norman urge to stick a U in balk also affected talk and stalk in the 1600s, but not, apparently walk. For me, the mystery is: why has the urge to stick a U in persisted for baulk and not the others?
----
*I say 'another' instance of spelling change due to perceptions of 'Americanism' because I discuss the main instance of that phenomenon in detail in The Prodigal Tongue:
![[syndicated profile]](https://www.dreamwidth.org/img/silk/identity/feed.png)
Self-serving
Starting yesterday and for the next nine days, Makeship has begun collecting pledges for a Tricerahoodie Dina plush! If we reach 200 pledges in those 10 days, Dina will be made! That sounds pretty rad, I dunno! Run over there if you want to help make this happen.