

Gang of Four?
Gang of Four?
Exactly how I feel about it as well.
Why not if (f & (F_1 | F_3)) {
? I use this all the time in embedded code.
edit: never mind; you’re checking for both flags. I’d probably use (f & (F_1 | F_3)) == (F_1 | F_3)
but that’s not much different than what you wrote.
My car is a diesel. I believe catalytic converters are the usual fare for gasoline engines.
It’s just like the DEF tanks on 18 wheelers. I buy a 10L jug of it from Walmart for something like $10. In my trunk there’s a panel you remove and under it there’s a small cap very similar to the gas cap. Remove that, hook up the DEF bottle hose (the bottles come with a 12-15" corrugated hose) and very slowly pour it in. You don’t want to spill that stuff, it’s nasty not because it’s urea, but because when it dries it kind of crystallizes and makes a real bloody awful mess.
Replace the cap, replace the panel cover, close the trunk and you’re done for another 9-15mos.
It’s my understanding that the cheat was in all TDI models, but the smaller Jetta was particularly bad because it didn’t have a urea system and the fix for that model was to retrofit one. My Passat may have needed a more robust urea injector and not just software, but I can’t remember now. Either way on my year/model the fix was barely noticeable.
The dumbest part is that after I got my car updated (the Passat only needed a firmware update) the fuel economy was not even one MPG worse. It’s been a decade and I’m still regularly getting slightly better than 50MPG on the highway and low-30s in the city. There was no reason to cheat.
I’m currently driving that VW TDI – best car I’ve ever owned in 35 years. Next vehicle wasn’t going to be a Tesla, but perhaps an F150 Lightning if they ever get their head out their asses and offer a regular old e-pickup – I don’t want quad cab and a short bed, just two doors and a regular full size bed would be great. Alas, that’s hard to find in ICE, let alone electric.
I mainly use it to generate unit tests and it frequently makes shit up that clearly won’t work. Like directly invoking non-exported functions that I deliberately choose not to export, because they don’t need to be exported.
If you work where I work, their solution is to just so they have access to all the functions/variables I painstakingly marked
static
specifically to prevent them from trying to unit test the internals.
It’s called the asshole tax. Don’t be an asshole and you won’t be charged.
“Nothing is perfect” Is a hell of a way to minimize the enormity of the issue. Like wow…
“I moderate heavily. If someone is rude or abusive, their comment isn’t published. Unless it’s really funny.” :-)