You've just inherited a legacy C++ codebase, now what?
This article was discussed on Hacker News, Lobster.rs and Reddit. I’ve got great suggestions from the comments, see the addendum at the end!
Hasnain says:
Bookmarking for later reference.
“Well, there you have it. A tangible, step-by-step plan to get out of the finicky situation that’s a complex legacy C++ codebase. I have just finished going through that at work on a project, and it’s become much more bearable to work on it now. I have seen coworkers, who previously would not have come within a 10 mile radius of the codebase, now make meaningful contributions. So it feels great.
There are important topics that I wanted to mention but in the end did not, such as the absolute necessity of being able to run the code in a debugger locally, fuzzing, dependency scanning for vulnerabilities, etc. Maybe for the next article!”
Posted on 2024-03-04T02:22:05+0000
In Nome, Where the Muskoxen Roam … Controversially | Hakai Magazine
In Alaska, residents are negotiating a contentious relationship with muskoxen, which were introduced to the area decades ago without local consent.
Hasnain says:
“The average visitor to Nome today would never guess that muskoxen were ever ghosts on the landscape. The animals adorn guidebooks and artwork at gift shops and draw wildlife viewers and photographers. With their bulky coats, sloping shoulders, short legs, and upturned horns, it’s not hard to picture them roaming alongside saber-toothed cats, wooly mammoths, and other big-bodied beasts of the Pleistocene. But all the muskoxen around Nome today have ancestors that saw the inside of a train station in New Jersey. Their reintroduction to Alaska was the result of a decades-long campaign by early 20th-century settlers and promoters, one that followed a template used many times over before and since: it was a plan for developing the Arctic, drawn up without the consent of Indigenous people.”
Posted on 2024-03-04T02:02:08+0000
Pankaj Mishra · The Shoah after Gaza
Memories of Jewish suffering at the hands of Nazis are the foundation on which most descriptions of extreme ideology and...
Hasnain says:
Lots to ponder here.
“More consequentially, the secular-political religion of the Shoah and the over-identification with Israel since the 1970s has fatally distorted the foreign policy of Israel’s main sponsor, the US. In 1982, shortly before Reagan bluntly ordered Begin to cease his ‘holocaust’ in Lebanon, a young US senator who revered Elie Wiesel as his great teacher met the Israeli prime minister. In Begin’s own stunned account of the meeting, the senator commended the Israeli war effort and boasted that he would have gone further, even if it meant killing women and children. Begin himself was taken aback by the words of the future US president, Joe Biden. ‘No, sir,’ he insisted. ‘According to our values, it is forbidden to hurt women and children, even in war ... This is a yardstick of human civilisation, not to hurt civilians.’”
Posted on 2024-03-03T03:24:03+0000
Lake Oswego dad accused of drugging girls at sleepover
“Mom please pick me up and say I had a family emergency. I don’t feel safe," one girl frantically texted her mother in the middle of the night, court records show.
Hasnain says:
I, uh, what…
“He also moved one girl’s arm and moved her body on the bed, the affidavit says. The girl “remained awake in fear that Mr. Meyden was going to do something” to her friend, according to the affidavit.
The affidavit says Meyden walked out of the room, prompting a girl to text her mother at 1:43 a.m. Sunday: “Mom please pick me up and say I had a family emergency. I don’t feel safe. I might not respond but please come get me (crying emoji), Please. Please pick up. Please. PLEASE!!””
Posted on 2024-03-02T03:53:27+0000
A tech billionaire is quietly buying up land in Hawaii. No one knows why
A mystery has been brewing in a small ranching town on Hawaii's Big Island. Word has it that Salesforce CEO Marc Benioff bought the land, stirring worries about what he plans to do with it.
Hasnain says:
“A couple of days before the interview, Benioff texted the same NPR colleague again, asking for intel on my story. Then he called me and demanded to know the title of this piece. During that call, he also mentioned he knew the exact area where I was staying. Unnerved, I asked how he knew, and he said, "It's my job. You have a job and I have a job." During the interview, he brings up more personal details about me and my family.
I leave the meeting disconcerted and still unclear about what exactly is happening with his land in Waimea.”
Posted on 2024-02-29T07:43:03+0000
The Shocking Protest Vote That Rocked the Michigan Primary Is Just the Beginning
Over 100,000 people voted to protest the White House’s Israel policy. That’s a very big deal.
Hasnain says:
“It’s unlikely Michigan will be where this ends. Several other states yet to vote have an “uncommitted” option on their Democratic ballots, including states like Minnesota, which will vote in next week’s Super Tuesday primaries. You can bet the White House, despite all public pledges to the contrary, will be closely paying attention to them.”
Posted on 2024-02-29T05:59:36+0000
11 years of hosting a SaaS
Lots of mistakes, some uptime too.
Hasnain says:
"If I had a time machine to go back to 2012 and give myself a few pointers, what would I say?
Lots of little tips, and three big ones. Both boil down to spending a bit more money, to avoid a lot of headaches.
Use managed services for as long as possible. We did ourselves a big disservice by leaving Heroku after only a few months. We should have stayed on it for years - there was so much time wasted managing servers that could have been done for us during critical early days.
Set up a PIT sooner. I should have set up a team of professionals who wanted to work in this space much much earlier. Not in the Heroku days, but once it became untenable as we hit real scale.
Look after yourself just a bit more. For some reason I always found it really hard to prioritise projects that would decrease alerts, simplify oncall, or help me get more sleep. Until suddenly one day I snapped and reallocated a lot of budget to set up the PIT team. Getting decent sleep has many commercial benefits and it’s not selfish to prioritise that over other things the team could work on."
Posted on 2024-02-29T05:35:18+0000
Extreme Bevy: Making a p2p web game with rust and rollback netcode
In my previous post, Introducing Matchbox, I explained how Matchbox solves the problem of setting up peer-to-peer connections in rust web assembly for implementing low-latency multiplayer web games. I said I'd start making games using it and I figured it's about time I make good on that promise, as....
Hasnain says:
Bookmarking for future re-reading
"This has an important implication for how we write our game: Everything needs to be perfectly deterministic. Fortunately, rust and wasm makes this easy for us, and the rewards for doing so are big:
No state synchronization aside from input ⇒ very low bandwidth
We can write the entire game in simple "forward" systems. No need to handle de-synced inputs. It's all done automatically for us by rolling back and re-simulating."
Hell is other people: performance management at Big Tech
I spent a fair portion of my adult life working for large tech companies. In all my interactions with peers, no other topic caused as much cynicism and angst as the question of performance management — that is, the labyrinthine processes the companies follow to decide who to fire and who to reward...
Hasnain says:
"The kicker is that across the industry, the perception of this Google-originating process isn’t necessarily any better than that of what it sought to replace. At a great cost, we merely traded the accusations of manager-level favoritism for grander conspiracy theories — sinister corporate agendas divined from the garbled words of secretive, shapeless committees.
The promise of a more egalitarian performance management process is a part of the mythos of Big Tech; but it’s also a fascinating study of painting oneself into a corner, unable to walk back."
Posted on 2024-02-29T05:10:35+0000
From burgers to birria, halal restaurants are booming in the Bay Area
Halal food is rapidly expanding and diversifying in the Bay Area. These restaurants have everything from burgers to Chinese food and barbecue.
Hasnain says:
I still need to try Fikscue!
"At their exceedingly popular restaurant Fikscue in Alameda, owners Fik and Reka Saleh offer a unique cuisine of their own making: Central Texas-style barbecue, like smoked beef back ribs and brisket, along with Indonesian curries, soups and fried rice. The Salehs didn’t initially offer halal meats during their early days as a pop-up, but said they made the change to be more inclusive. Their meat supplier Creekstone Farms is halal certified, and the restaurant doesn’t offer pork products. “So many people were very excited when we opened because there were no Texas-style barbecue restaurants they could try,” Reka said.
Seeing other nontraditional halal restaurants was also a factor: Reka noticed they did exist, but were fairly spread out. When she wanted to try something new with her whole family, which includes some members who observe Muslim dietary law, most online searches just brought them back to familiar Middle Eastern restaurants. “If we all wanted to have Chinese food or Thai we would have to drive really far,” she said. Reka is happy to see more options have become available, though Old Mandarin Islamic in the Sunset District of San Francisco is still a go-to."
Posted on 2024-02-29T05:06:46+0000