Feed aggregator
OpenAI Unveils o3 and o4-mini Models
Read more of this story at Slashdot.
Trump Administration Plans To End the IRS Direct File Program for Free Tax Filing
Read more of this story at Slashdot.
Google To Phase Out Country Code Top-level Domains
Read more of this story at Slashdot.
AI-generated Music Accounts For 18% of All Tracks Uploaded To Deezer
Read more of this story at Slashdot.
Companies Are Slashing Their SaaS Spends, UBS Says
Read more of this story at Slashdot.
CISA Extends Funding To Ensure 'No Lapse in Critical CVE Services'
Read more of this story at Slashdot.
Immigrant Founders Are the Norm in Key US AI Firms: Study
Read more of this story at Slashdot.
Figma Confidentailly Files For IPO After Adobe Deal Collapses
Read more of this story at Slashdot.
Cybersecurity World On Edge As CVE Program Prepares To Go Dark
Read more of this story at Slashdot.
Limited Edition of Doom Includes Game Box That, Itself, Plays Doom
Read more of this story at Slashdot.
CodeSOD: Conventional Events
Now, I would argue that the event-driven lifecycle of ASP .Net WebForms is a bad way to design web applications. And it's telling that the model is basically dead; it seems my take is at best lukewarm, if not downright cold.
Pete inherited code from Bob, and Bob wrote an ASP .Net WebForm many many ages ago, and it's still the company's main application. Bob may not be with the company, but his presence lingers, both in the code he wrote and the fact that he commented frequently with // bob was here
Bob liked to reinvent wheels. Maybe that's why most methods he wrote were at least 500 lines long. He wrote his own localization engine, which doesn't work terribly well. What code he did write, he copy/pasted multiple times.
He was fond of this pattern:
if (SomeMethodReturningBoolean()) { return true; } else { return false; }Now, in a Web Form, you usually attach your events to parts of the page lifecycle by convention. Name a method Page_Load? It gets called when the load event fires. Page_PreRender? Yep- when the pre-render event fires. SomeField_MouseClick? You get it.
Bob didn't, or Bob didn't like coding by naming convention. Which, I'll be frank, I also don't like coding by naming convention, but it was the paradigm Web Forms favored, it's what the documentation assumed, it's what every other developer was going to expect to see.
Still, Bob had his own Bob way of doing it.
In every page he'd write code like this:
this.PreRender += this.RequestPagePreRenderThat line manually registers an event handler, which invokes the method RequestPagePreRender. And while I might object to wiring up events by convention- this is still just a convention. It's not done with any thought at all- every page has this line, even if the RequestPagePreRender method is empty.
[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.Older People Who Use Smartphones 'Have Lower Rates of Cognitive Decline'
Read more of this story at Slashdot.
Free Wi-Fi Is On Its Way To American Airlines
Read more of this story at Slashdot.
Gemini App Rolling Out Veo 2 Video Generation For Advanced Users
Read more of this story at Slashdot.
4chan Has Been Down Since Monday Night After 'Pretty Comprehensive Own'
Read more of this story at Slashdot.
Insurance Firm Lemonade Says API Glitch Exposed Some Driver's License Numbers
Read more of this story at Slashdot.
Alamo Drafthouse Rejects Meta's Second-Screen Technology
Read more of this story at Slashdot.
China Outs US Hackers for Attack, a New Frontier in Spy Games
Read more of this story at Slashdot.
Canadian Math Prodigy Allegedly Stole $65 Million In Crypto
Read more of this story at Slashdot.
Apple Says All Mac Minis With Intel Are Now Vintage
Read more of this story at Slashdot.