It's an endless debate whether your code should include and check assertions or not.
In this article, I present the concept of assertion, its problems, and advantages, and propose an alternative for checking contracts at compile time.
#cpp#assertion
https://t.co/lCGOOM9V4N
A bug I found required some work to fix because of the pairing of a std::function powered callback and a std::promise.
The post describes how to handle this kind of needs via the type erasure idiom.
https://t.co/t4scyTBsod
#cplusplus#typeerasure#stdmoveonlyfunction
If you want to know what a State Machine is or you need to explain it to someone with some C background, you may find my post on EmbeddedRelated of interest:
https://t.co/Wma1drpFii
Is civilization doomed? Yes, and that’s a good thing. Civilization is wiping out life on the planet, and it is a horribly oppressive system at its roots.
Is humanity and most life on the planet doomed? This is where my dooming takes pause. I don’t know. If civilization goes the way of the dodo, maybe we will revert to conditions and a culture that don’t pierce planetary boundaries. The Limits to Growth model shows sharp decline of industrial output and the human population. It will no doubt be a crazy time for all. But I maintain the possibility of a new culture and planetary rebound after this time.
How does anyone know otherwise?
Is civilization doomed? Yes, and that’s a good thing. Civilization is wiping out life on the planet, and it is a horribly oppressive system at its roots.
Is humanity and most life on the planet doomed? This is where my dooming takes pause. I don’t know. If civilization goes the way of the dodo, maybe we will revert to conditions and a culture that don’t pierce planetary boundaries. The Limits to Growth model shows sharp decline of industrial output and the human population. It will no doubt be a crazy time for all. But I maintain the possibility of a new culture and planetary rebound after this time.
How does anyone know otherwise?
Ha ragione #ElenaCecchettin: il privilegio maschile esiste e dovremmo fare mea culpa
Si tratta di riconoscere un privilegio di nascita, l’essere maschio, e provare ad abbatterlo. A nessuno interessa il curriculum delle volte in cui avete rispettato le donne, ma di quando non lo avete fatto
A cura di @SaverioTommasi
Have you ever wondered if there is a better way to handle failures with error codes, than checking for failure at every function call?
My post about this matter has been published on Embedded Related: https://t.co/NSlkIouoIu
#cplusplus#errorhandling#embeddedsystems#monads
MEGA FACTCHECK
EVs are “likely crucial” for tackling transport CO2, says the IPCC – and sales are rocketing
But EVs still face relentless hostile media coverage
So, I spent the past few months debunking 21 (!) of the most common EV myths
Here it is 🧵
https://t.co/gfqcswgRvK
The Pope has issued a blistering, lengthy attack on climate deniers – and what needs to happen at COP28
"a broad change in the irresponsible lifestyle connected with the Western model would have a significant long-term impact"
https://t.co/BBNsrex4f6
Daily meetings are a micromanaging shitshow.
Most people know these 15-minute stand-ups are useless. But they do them anyway because "that's how it should be."
One day, the corporate world decided that Scrum answered every problem. Daily meetings became popular. Everyone. Every day. No exceptions.
When did we become numb to how inefficient this is? How much time do companies waste every year in this charade?
The funny part is that Scrum sells these by telling us they are a way to avoid other meetings. You gotta be kidding me!
Unfortunately, I've participated in daily stand-ups for decades. If I were to compress these years into a single story, it would read like this:
• We are still waiting for some. Where is he? We can't start unless we are all here. We are late already.
• There's a manager in the meeting. We know she shouldn't be here. Who is going to tell her?
• We take turns reading from a JIRA board shared on the big screen. Everyone can read, but we still do it out loud. She wants to hear us say it.
• Yesterday wasn't a great day, but I won't admit it. Instead, let me tell her, "I'm making great progress" and "I'm getting closer than ever."
• We are all talking to her. She said this is a "safe space." We trust her, of course. Now, she is questioning anyone who isn't moving fast enough.
• 15 minutes in, and we are still here. Same as yesterday.
The first time I led a team, I stopped daily stand-ups. One of the first principles of getting shit done is "maximizing uninterrupted time." Daily meetings are in direct conflict with that.
Why should I force everyone to be at the same time and place while stopping everything else?
I asked everyone to write instead. Some people wrote every day. Some people, whenever they had something to say.
10x improvement overnight. For the project and the team.
I've talked to many people about this. Many tell me developers will never communicate unless you force them into a room daily. They say I shouldn't trust them to put in writing what they need to tell everyone else.
They may be right. They need a better team.
🧵Since it is becoming hard to keep track, here is a list of countries/municipalities that have seen catastrophic flooding in the first 11 days of September 2023:
- Greece
- Turkey
- Libya <--- *thousands feared dead*
- Brazil
- Hong Kong
- Shanghai
- Spain
- Las Vegas
1. The overwhelming sense of the present moment is that we are in some sort of proxy war. There are increasing flashpoints, but at some time very soon the deluge will happen - 100,000s will die and the world will never be the same again. This time is a time out of time.
People think they can decide how much of a serious issue the planetary crisis is. They can. But that is like going over Niagara Falls and thinking you can climb back up the spray and not die. Physics is physics. Once certain tipping points are triggered there’s no going back. 🚨
"Humanity’s war on nature is ultimately a war on ourselves.
It’s time for the world to adopt a far-reaching biodiversity framework — a true peace pact with nature — and deliver a green, healthy future for all." @antonioguterres
No time to wait. #ActOnClimate#biodiversity
There’s almost no one in public life or media who understands this will likely happen to you, us, and when it keeps happening, homes become uninsurable, millions will lose everything - and what then?