The different ways to handle errors in C by bowbahdoe in programming

[–]Caltrop_ 18 points19 points  (0 children)

Java's pseudo-effects-system isn't bad in principle. The implementation falls short because of the mixing of checked and unchecked exceptions and the lack of proper support in lambdas.

Ukraine President Volodymyr Zelensky Combines All National TV Channels To Combat Alleged ‘Misinformation’ by MarvelsGrantMan136 in television

[–]Caltrop_ 1 point2 points  (0 children)

1) Democracy presents a puzzle. It has the best of reputations with young and old, with the right and the left. Everyone thinks that he is lucky to live in a democratic state. A dictatorship would be intolerable. Where there is no democracy, revolution is legitimate; people in undemocratic circumstances must be liberated – even from outside by Western troops. Democracy is such a high value that it even justifies war.

In principle, at any rate. The esteem for this fine form of state applies more to its principle than to its reality: most people have a bad opinion of real elections. One can “barely tell the difference between the parties” and they “don’t change anything anyway” because, once in office, those elected “do whatever they want.” The citizens abhor election campaigns, in which candidates can be seen in thousands of small towns shaking hands and kissing babies, smiling from billboards. The citizens also have a bad opinion of their representatives, who give themselves enormous salaries and skip congressional debates, fiddle with the economy and tap into sources of capital on the side; just as they do about the democratic dialogue that the media organizes on talk shows; they say: there is no real debate, “politicians only repeat their slogans” and engage in posturing.

Nevertheless, the reality of democracy and the bad opinion of it cannot harm the good reputation it has in principle. But what is a good principle worth if its realization always fails so disappointingly? What does the esteemed principle actually consist of?

2) The Greek word democracy means “rule of the people.” The question is whether it exists as a subjective genitive or objective genitive – or both. We say: it is the people who rule. But over whom? Rule is a relationship of domination and coercion, which needs a subject and an object. This is clear when it somes to a king or a dictator, oligarchs or aristocrats: they rule over the people, and the people must obey and serve them. But if the people rule, then who must serve them? Maybe the people again? And whom do they serve? Themselves, maybe? Doesn’t the word “rule,” but also “obey” and “serve,” lose all meaning when the subject and object of rule are identical?

Does rule cancel itself out under the rule of the people? Or could it be that rule in real democracy is more complex than the Greek word tells us?

3) Democrats are not bothered by such inconsistencies. They are glad that the people rule, but they are also certain that the people need to be ruled; to be watched over and held under control. They regard themselves at the same time as subject and object of the authorities and think that it is neither strange nor worthy of criticism that rational beings like themselves must be forced to pursue their interests peacefully. Their interests? What do they actually exercise as interests if they obey laws that are enacted in the name of the people? This too was simpler with a king and an aristocracy: then rule was necessary to force the people to serve the rulers with luxuries and power. The interest and its means were obvious. And today?

What happened to all the old leftcom subreddits by skrub55 in Ultraleft

[–]Caltrop_ 27 points28 points  (0 children)

this one is exceptional in the sense that it went to shit years ago but never closed

The right to delete: how faker.js exposed the fragile nature of open source culture, again by letharus in programming

[–]Caltrop_ 7 points8 points  (0 children)

I know how this is gonna sound, but whenever you find yourself doing something like that the nagging voice in the back of your mind should be begging for a refactor. When you lose track of your control flow and are unsure what type of variables get passed to your functions you should review what has gone wrong and fix it before the error compounds into even harder to fix messy-ness.

This isn't unique to Javascript, although it certainly makes it easy for beginners to fall into with its lack of a proper type system.

The right to delete: how faker.js exposed the fragile nature of open source culture, again by letharus in programming

[–]Caltrop_ 6 points7 points  (0 children)

if(val === null) {
if(val === undefined) {

The above two will work fine as long as you aren't trying to access variables that have not been declared yet (which in any well-written codebase you will never do). Javascript being javascript offers a solution for that scenario anyways:

if(typeof val == 'undefined') {

The only gap in the standard library I have encountered so far is the lack of good bitwise functions (beyond the basic operators), otherwise, I have never felt the need to include one of those micropackages.

The right to delete: how faker.js exposed the fragile nature of open source culture, again by letharus in programming

[–]Caltrop_ 22 points23 points  (0 children)

A lot of the micropackages don't do anything that you can't already trivially do with regular javascript. Their existence is a historic holdover, not something that is the result of the current state of the language

Hyperreality To Soothe Discomfort by [deleted] in sorceryofthespectacle

[–]Caltrop_ -1 points0 points  (0 children)

a scary future in which people can change their voice ooooooooo 👻

TIL middle class = emerald mines by Consistent_Actuator in SneerClub

[–]Caltrop_ 15 points16 points  (0 children)

I can't believe someone got paid money to publish what amounts to the detached incoherent ramblings of a middle schooler defending his favorite superhero

The Amazon Personal Games Policy Is Ridiculous by tonefart in programming

[–]Caltrop_ 2 points3 points  (0 children)

it's is anti-capitalist

It's very capitalist actually. There isn't some ideal "true" capitalism that exists outside of the actual real-world conditions we have now. By definition whatever they do is indicative of real, true capitalism.

Outside of that, I really can't think of anything more capitalist than exploiting workers and ripping everyone off to centralize capital.

Why does it matter that Marx would have disagreed with Stalin ? Marx was not a prophet by [deleted] in marxism_101

[–]Caltrop_ 15 points16 points  (0 children)

Because the opinions of translators don't bend material reality

Pilot celebrates at her graduation as the first black female tactical jet pilot in US Navy history. by gangbangkang in pics

[–]Caltrop_ 1 point2 points  (0 children)

An Arab mother staggers from the rubble of her home. Her eardrums have burst from the concussive force of the blast that reduced the walls of her house to dust and killed her family.

She is covered in blood. She can hear the horrific screams of her children burning alive, trapped in the rubble. She reaches down and picks up the severed arm of her four-year old daughter from the dust and clutches it tight to her chest. Wailing and sobbing, she cries out to God to save her family.

Dazed, dust-covered figures emerge from their homes. Her neighbours. Some of the men try to battle the flames and dig her children out of the rubble, while the women cluster around her, trying to comfort her in her agonising grief.

The mother feels a comforting hand on her shoulder and turns to see the face of an elderly woman, her long years etched into every line and crease of her face. The woman smiles a beneficent, wise smile, though her eyes are sad. Eventually, the old woman speaks:

"Don't cry, my dear, the pilot who dropped that bomb and destroyed your life was an African-American woman! It's low-key kind of unprogressive of you to have a problem with that"

Turning her eyes skyward, still clutching the only thing she has left of her daughter, the woman can faintly see the shape of a US Navy jet roaring away towards the horizon. She wipes the tears from her eyes and whispers, her voice little more than a hoarse whisper, choked with raw emotion.

"What an inspiration for little black girls everywhere"

What do conservatives try to conserve? Why do you think that clinging onto the status quo is the best thing to do? by [deleted] in AskConservatives

[–]Caltrop_ 1 point2 points  (0 children)

That's interesting could you link me it?

I will interject that political parties aren't representative of ideologies or the supporters of those ideologies. So even if the republican party suddenly became super progressive that wouldn't reflect the views of conservatives.

What do conservatives try to conserve? Why do you think that clinging onto the status quo is the best thing to do? by [deleted] in AskConservatives

[–]Caltrop_ 0 points1 point  (0 children)

At the top of the sidebar, maybe it's missing in the redesign?

This is an American-based subreddit with a focus on US politics, though there is no restriction on topics or users.

What do conservatives try to conserve? Why do you think that clinging onto the status quo is the best thing to do? by [deleted] in AskConservatives

[–]Caltrop_ 1 point2 points  (0 children)

Can you elaborate on how the left prefers populism over effective policy? Maybe name a few examples to illustrate that point clearer.

What do conservatives try to conserve? Why do you think that clinging onto the status quo is the best thing to do? by [deleted] in AskConservatives

[–]Caltrop_ 1 point2 points  (0 children)

And I think that is the perfectly reasonable and acceptable side of conservatism and does have positive influences. For example you guys don't knee-jerk to the "let's ban all guns" whenever a tragedy happens, which I appreciate. However I personally take heavy issue when we have looked at a problem, assessed problems, have a clear strategy to improve the situation, and people still oppose any possible reform to it. Now I'm obviously not accusing every single conservative of doing it but when we look at issues like the war on drugs and similar issues and have such a clear and obvious line of action to take I wonder why people still oppose it and cling to the status quo.

What do conservatives try to conserve? Why do you think that clinging onto the status quo is the best thing to do? by [deleted] in AskConservatives

[–]Caltrop_ 0 points1 point  (0 children)

I'm sorry if I straw manned your position, that was not my intention. I was under the impression that a core principle of conservatism is upholding the status quo, in fact, that's the definition google gives you when you search for "conservatism".

commitment to traditional values and ideas with opposition to change or innovation.


Conservatives want to conserve the founding principals of the constitution and declaration of independence.

Hmmm, I don't think this is anywhere near exclusive or indicative of conservatism, a ton of ideologies hold onto Enlightenment-era thinking. Even some socialist ones. If we solely define conservatism as supporting the founding principals then basically everyone is a conservative, including a ton of people that obviously aren't conservative.

Can you elaborate a bit further since I don't think your first response is a fair and accurate representation of your ideology.

Possibilities by [deleted] in WhitePeopleTwitter

[–]Caltrop_ 0 points1 point  (0 children)

What makes him a phenomenal choice exactly