446
submitted 1 year ago by o_o@programming.dev to c/asklemmy@lemmy.ml

Hi all,

I'm seeing a lot of hate for capitalism here, and I'm wondering why that is and what the rationale behind it is. I'm pretty pro-capitalism myself, so I want to see the logic on the other side of the fence.

If this isn't the right forum for a political/economic discussion-- I'm happy to take this somewhere else.

Cheers!

[-] o_o@programming.dev 7 points 1 year ago* (last edited 1 year ago)

This is essentially the argument that Thomas Malthus (economist) made in the 1800's. And he had a point!

In his time, history had shown that the entire output of a country/state was people's productivity times some function of land and labour. Meaning you could increase the output of a country by making people more productive (limited), or increasing the land available (limited), or by increasing the labour available (also limited). Therefore, there was a hard limit on how much output a country could have. And therefore we were fucked because population increases exponentially but output only increases linearly and has limits.

I think this is similar to your lego analogy: the pieces (land, labour) are limited, therefore the output is also limited.

Then the capitalist revolution happened and once the capitalist-style legal framework was in place which allowed the ownership of capital, countries' outputs broke from the historical trend. We realized that a different function better described the output of a country. Rather than land, the correct thing to look at was capital. So the new function was people's productivity times some function of land and capital (hence, capitalism).

And unlike land, capital is, in fact, unlimited. Someone might build a factory on the land, and owning the factory, he/she has incentive to improve the factory. "How much you can improve the factory" is, for all intents and purposes, unlimited. Therefore the output is also unlimited. This equation better described the growth in output that people were seeing in reality (GDP is an attempt to measure this), which has been growing exponentially ever since.

So... we're not fucked? Well, it remains to be seen! We've certainly avoided being fucked so far! The standard of living of the average person on Earth has increased by a lot since Malthus.

Of course, this has come with negative externalities (pollution). We're still seeing infinite growth riiiiiight up until we go extinct. The trick is to keep the infinite growth without going extinct!

EDIT: spelling correction

[-] o_o@programming.dev 2 points 1 year ago

Good to know, thank you!

8
submitted 1 year ago by o_o@programming.dev to c/lemmy@lemmy.ml

Hey folks, was just thinking that one of the major benefits of forums is that it stores and indexes knowledge for the rest of time. I still regularly look up stackoverflow questions written years ago.

Are lemmy instances (such as https://programming.dev) going to be similarly indexed?

If there's been no thought on how to implement this, I was thinking that meta tags could be used to indicate to search engines that homegrown content (i.e. content that belongs to your own instance) should be indexed while federated content (i.e. content on your instance that was federated from other instances) should remain non-indexed.

That way, searching the title of this post on Google will only lead to a single result on the single instance that owns it.

Thoughts?

[-] o_o@programming.dev 1 points 1 year ago

Personally I think we should add a differentiation between the storage policies of content which is owned by your own instance and content that federates from other instances.

The former should be kept for a long time (forever?), while the latter can be cleared more regularly.

[-] o_o@programming.dev 1 points 1 year ago

Good point. I guess my vision differs somewhat from that quote there. Dang.

Welp, good find! I still think my idea for federation would be more resilient, but either way, we’re all wishing the best for this instance, and I really appreciate these discussions we’re having. Cheers to that!

[-] o_o@programming.dev 0 points 1 year ago* (last edited 1 year ago)

I've read that XMPP article before, but it doesn't convince me.

Yes, Meta may "kill" the fediverse. That's a risk. But either we take that risk, or we "kill" the fediverse ourselves by defederating. That's my opinion.

EDIT: Besides, defederating just hands them more users. Wouldn't you rather keep the users, and allow them to see Meta content? Maybe even attract some Meta users here by inviting them? The launch of a Meta competitor is what's causing the risk to the fediverse. Federating with them is how we can mitigate that risk.

[-] o_o@programming.dev 2 points 1 year ago

I appreciate your reconsidering your position! Thanks for taking my argument in good faith hahaha. I was worried I’d get some hate for it.

Cheers!

[-] o_o@programming.dev 1 points 1 year ago

I’m also interested in the same. But honestly even if Facebook is operating in bad faith, such is life. We shouldn’t abandon our core concept even so. In my eyes, we’re testing the “hardness” of the fediverse to operate even if individual instances, howsoever large, operate with self interest.

[-] o_o@programming.dev 25 points 1 year ago* (last edited 1 year ago)

So, are we saying we want more people to create accounts on Meta's Threads?

That's what defederation would imply: people who want to interact with Meta's folks and be in touch with Meta's community would end up creating accounts there. We'd be handing users to Meta by doing that.

Clearly, Meta has tons of resources to invest. If they have half a braincell among them, they'll be able to create some value with those resources. Given that they're launching Threads with or without federation, we now have two options:

  1. We let Meta enhance the value of all instances.
  2. We lock out Meta, and all their value created remains their own.

What are we even talking about here? A ton of people put in a ton of effort and work to create a platform where the whole point is to have different organizations be able to inter-operate without any one instance gaining too much power. As soon as someone with actual resources wants to contribute, we shut them out? Folks, if a single organization could bring down the fediverse, then the "decentralize so that no one can gain too much power" model is proven wrong, and it was bound to fail anyway.

If we become an echo chamber where the only one who can be part of the "fediverse" are people without resources, then what's even the point? Who wants an email service that can't send emails to Gmail and Hotmail, but only YourFriendlyLocalInstance.com?

The way I see it, we should absolutely not defederate. I'd prefer to see Google or Twitter also join the fediverse, and have them competing amongst each other to make sure we have enough competition to keep any of them from wanting to defederate.

EDIT: Quoting this deep child-level comment, which explains my point of view better:

We care about the vision of a “fediverse”, where all instances’ users can talk to one another if they choose. If that’s what we care about, there’s no choice here: federate, or you’ve already broken the vision.

Look, no one is saying that programming.dev should promote Meta’s content on their home page. Let’s beef up our moderation/content filtering tools:

  • Let users block all Meta communities and all Meta users if they choose.
  • Let users set that none of their posts should federate to Meta.
  • Let community mods block all posts from Meta users.
  • Let community mods decide never to let Meta users see any of the posts on their community.
  • Let the instance owners decide never to feature a Meta user’s post or a Meta community post on “all” or “local”. Make it so that the only way to find a Meta post/user is by actively searching for it or subscribing to their communities.

That’s all well and good.

But defederation is worse than that. What defederation really means is: “Even if programming.dev users want to see Meta content or post there, we won’t allow it. Go create an account there instead.” As soon as you do that, it’s not a fediverse anymore.

[-] o_o@programming.dev 4 points 1 year ago

I toss my KeePass file (encrypted database) in Google Drive.

That way I have all the convenience of syncing through the cloud, but I also get the benefit of having my database access and database storage be managed by separate companies.

If Google has a breach and my data gets leaked, sucks, but the database is encrypted so I’m good. If KeePass encryption is broken, sucks, but attackers would also have to find a way to gain access to my Google Drive.

[-] o_o@programming.dev 4 points 1 year ago

You’re welcome! Hope it’s useful :)

[-] o_o@programming.dev 6 points 1 year ago

Thanks for calling this out! Fixed, I hope. Wasn’t intentional.

198
submitted 1 year ago* (last edited 1 year ago) by o_o@programming.dev to c/programming@programming.dev

cross-posted from: https://programming.dev/post/223663

Hey folks!

I've noticed that it's often difficult for newcomers to git to understand what the heck is happening and how the commands work.

Here's a flowchart that has helped me explain things in the past, and (more than once) folks have asked me for a copy of it to use as a cheat sheet. Hope it's helpful!

I’ve crossposted this in multiple places where I think it’s relevant. Hope y’all get some use out of it too! (Mods, please let me know if I should take it down)

EDIT: added non-transparent image, hopefully more visible for dark mode users.

1
submitted 1 year ago by o_o@programming.dev to c/writing@beehaw.org

cross-posted from: https://programming.dev/post/240893

The crowd went silent when the human entered the bar. You didn’t see many of their kind here. He grumbled, uncomfortable for the attention, walked up to the counter and signaled for a mug.

That’s when the whispers started. Mayfly. Young one. The walking dead. He was happy to down his ale.

You see, this wasn’t your average bar. This was a speakeasy, one of the few scattered across the world where the elves and the dwarves shared a drink. Where the seraphim flirted with yokai, while fae fluttered from table to table. Where the orcs played chess at their own table, practically drowning themselves in ale. Where seldom a human showed his face.

They aren’t rare, of course, humans. No, quite the opposite. They simply didn’t live long enough. Speakeasies are illegal, you see – no self respecting elf could be seen drinking with a dwarf, or dare I say, an orc – so they’re not exactly advertised. The humans who helped found these establishments had long since died. They’re mayflies, alive just barely long enough to be young, and dead practically as they learned to walk. The new humans since simply hadn’t heard of the place.

“There you are, Arthur! It’s been a long time since I saw you last!”

The bar quieted once again as she walked in. Drea, high elf, and uncontested beauty. Many pairs of eyes tracked her as she comfortably made her way to the counter, where the human was nursing his second drink.

“Has it been that long? Seems like only yesterday,” he said.

A second passed before he cracked a smile.

“But it is nice to see you again, Drea, after all these years. I was beginning to get bored.” She laughed, embraced him, and for a while they simply enjoyed each other, rocking slightly as they hugged.

The chatter in the bar changed as the pair caught up. The beautiful, stately high elf laughing as the human told some story, snorting as the ale went up her nose. She was clearly smitten, and many of the larger orcs and stronger dwarves, now more than a little intoxicated, took exception to such a lady falling for a human.

“No!” she was saying between laughing spurts, “Surely Matt told you it was a bad idea!”

“Was it, though? I’m telling you, my arms are pretty long, and the River doesn’t have any– Ah, can I help you gentlemen?”

A dwarf had approached the counter in the company of a rather large orc, both wearing faces that shouted “I’m stricken by her beauty, but I don’t want her to know it.” “Nae, nae youngster,” said the dwarf. “I’d more like if ye lady friend here’d care for another drink! So’thing stronger, maybe, with some flavor!”

“Aye,” the orc boomed, “something stronger!”

Arthur quietly admitted to himself, he was impressed with the orc’s bulging muscles as he flexed. Drea, apparently, wasn’t.

“Oh quiet yourselves, my friends. I’m afraid you’ll have to drink with each other. I am quite taken.”

A fist slammed hard on the counter, “By the human?! What can this young thing do that I can’t! I can lift a mountain!”

Arthur believed him. He tapped the orc on the shoulder to get his attention, and felt the rock of his muscle.

“Aye, my friend,” he said, “taken by me. I’m sure there are others here that would be more receptive of your charm?”

“Nae,” said the dwarf, “I wan' te know what makes ye better than us who been buildin' when ye gran’father still be suckling milk!”

“Ah but we can so easily tell you,” said Drea.

Arthur wasn’t so sure. “We can?”

“Sure, sure! Please continue your story.”

He still wasn’t sure where she was going with this, but no one ever had to prompt him twice to tell a story! He swigged his ale and cleared his throat, warming back up to the tale.

“Aye, so there I was, at the top of the cliff by the bank of the Gaiden’s Blood River with my friend Matt. We were looking at the River down below. I’ve been swimming in it, and it’s gorgeous. It’s exactly the perfect temperature and it’s so deep and wide you can swim for hours. I really did feel like a swim– it was getting rather boring up top.”

Eyes started widening as Redbeard and Grukk began to realize where this was going. Gaiden’s Blood River, as you probably know, is the largest river in the world. As the story goes, when the blood rushed out from the god Gaiden’s wound, the force of it cut such a deep swathe in the earth that its banks are huge cliffs. How the River changed from blood to water is a story for another time, but the cliffs are so high that a dive would surely kill even the most sturdy dwarf.

Surely he didn’t.

“Surely ye didn’t”

“Jump? Of course not! I’ve no wish for death. See, we have these things called parachutes – large cuts of fabric, as large as the largest dining table in the largest hall, that catch the air and slow your fall. But I didn’t have a parachute.”

Eyes widened again. Such an invention didn’t exist among the dwarves or the orcs, and neither Redbeard nor Grukk could think of a more reckless, irresponsible, unsafe thing to do than to fall freely from the sky with nothing but fabric to stop you. Didn’t this human have better things to do?

“I didn’t have a parachute–”

The pair sighed in relief.

“–but our tents were made of the same fabric, so I told Matt to hold my beer, and I cut the damn things into wings from my wrists to my ankles. See, I’ve got pretty long arms, and I figure my wingspan would be enough to catch enough air that I could glide down to the River.”

At this point, both sets of eyes were as wide as dinner plates, and Drea was quite amused by the rapt attention with which they were absorbed. She could hardly blame them.

“An' it worked?” ventured Redbeard the dwarf. Drea, too, was curious.

“Worked?! My friend, it was amazing! It felt like flying! I didn’t even bother swimming! Soon as I landed, I climbed the two-day path back up the cliff and I jumped again!” Drea was the first to break the silence.

“You really are something, aren’t you, Arthur.”

“Human,” said the orc, “you are lucky to be alive. What drove you to such madness? Why threaten your life?”

“Aye. Ar' ye mad, ye dumb bastard?”

“No, not mad. Just bored.”

“Bored?”

Neither man had ever heard of the term. It must have been some sort of madness to drive a human – already with so short a life – to commit to such a danger so readily. They glanced blankly at each other, clearly confused.

“What’s bored?” they said in unison.

“If I may,” said Drea. “I can explain.”

Arthur gestured for her to go ahead, as he drank his ale.

“You see, humans, and especially Arthur here, occasionally enter a state of mind that drives them to do ridiculous things. I daresay it’s a kind of madness, but we’ve been arguing about that for ages. There is a very interesting cause to this madness to which all humans succumb.”

She waited a beat, and watched as both men were swallowing nervously. “It’s caused by a lack of threats in their immediate environment. Humans crave threats, you see. Threats to overcome. And that is why, gentlemen, I stand by his side over yours.”

Thus leaving both men impressed, Drea grabbed Arthur by the arm, and they walked out of the bar together.

“You are extraordinary, you know,” she said, “I’m very glad I met you. You must’ve been mad to approach one such as me, a high elf, so many years ago.”

He kissed her then, smiled, and said “No, not mad, my dear. Just bored.”

1
submitted 1 year ago by o_o@programming.dev to c/fantasy@lemmy.ml

The crowd went silent when the human entered the bar. You didn’t see many of their kind here. He grumbled, uncomfortable for the attention, walked up to the counter and signaled for a mug.

That’s when the whispers started. Mayfly. Young one. The walking dead. He was happy to down his ale.

You see, this wasn’t your average bar. This was a speakeasy, one of the few scattered across the world where the elves and the dwarves shared a drink. Where the seraphim flirted with yokai, while fae fluttered from table to table. Where the orcs played chess at their own table, practically drowning themselves in ale. Where seldom a human showed his face.

They aren’t rare, of course, humans. No, quite the opposite. They simply didn’t live long enough. Speakeasies are illegal, you see – no self respecting elf could be seen drinking with a dwarf, or dare I say, an orc – so they’re not exactly advertised. The humans who helped found these establishments had long since died. They’re mayflies, alive just barely long enough to be young, and dead practically as they learned to walk. The new humans since simply hadn’t heard of the place.

“There you are, Arthur! It’s been a long time since I saw you last!”

The bar quieted once again as she walked in. Drea, high elf, and uncontested beauty. Many pairs of eyes tracked her as she comfortably made her way to the counter, where the human was nursing his second drink.

“Has it been that long? Seems like only yesterday,” he said.

A second passed before he cracked a smile.

“But it is nice to see you again, Drea, after all these years. I was beginning to get bored.” She laughed, embraced him, and for a while they simply enjoyed each other, rocking slightly as they hugged.

The chatter in the bar changed as the pair caught up. The beautiful, stately high elf laughing as the human told some story, snorting as the ale went up her nose. She was clearly smitten, and many of the larger orcs and stronger dwarves, now more than a little intoxicated, took exception to such a lady falling for a human.

“No!” she was saying between laughing spurts, “Surely Matt told you it was a bad idea!”

“Was it, though? I’m telling you, my arms are pretty long, and the River doesn’t have any– Ah, can I help you gentlemen?”

A dwarf had approached the counter in the company of a rather large orc, both wearing faces that shouted “I’m stricken by her beauty, but I don’t want her to know it.” “Nae, nae youngster,” said the dwarf. “I’d more like if ye lady friend here’d care for another drink! So’thing stronger, maybe, with some flavor!”

“Aye,” the orc boomed, “something stronger!”

Arthur quietly admitted to himself, he was impressed with the orc’s bulging muscles as he flexed. Drea, apparently, wasn’t.

“Oh quiet yourselves, my friends. I’m afraid you’ll have to drink with each other. I am quite taken.”

A fist slammed hard on the counter, “By the human?! What can this young thing do that I can’t! I can lift a mountain!”

Arthur believed him. He tapped the orc on the shoulder to get his attention, and felt the rock of his muscle.

“Aye, my friend,” he said, “taken by me. I’m sure there are others here that would be more receptive of your charm?”

“Nae,” said the dwarf, “I wan' te know what makes ye better than us who been buildin' when ye gran’father still be suckling milk!”

“Ah but we can so easily tell you,” said Drea.

Arthur wasn’t so sure. “We can?”

“Sure, sure! Please continue your story.”

He still wasn’t sure where she was going with this, but no one ever had to prompt him twice to tell a story! He swigged his ale and cleared his throat, warming back up to the tale.

“Aye, so there I was, at the top of the cliff by the bank of the Gaiden’s Blood River with my friend Matt. We were looking at the River down below. I’ve been swimming in it, and it’s gorgeous. It’s exactly the perfect temperature and it’s so deep and wide you can swim for hours. I really did feel like a swim– it was getting rather boring up top.”

Eyes started widening as Redbeard and Grukk began to realize where this was going. Gaiden’s Blood River, as you probably know, is the largest river in the world. As the story goes, when the blood rushed out from the god Gaiden’s wound, the force of it cut such a deep swathe in the earth that its banks are huge cliffs. How the River changed from blood to water is a story for another time, but the cliffs are so high that a dive would surely kill even the most sturdy dwarf.

Surely he didn’t.

“Surely ye didn’t”

“Jump? Of course not! I’ve no wish for death. See, we have these things called parachutes – large cuts of fabric, as large as the largest dining table in the largest hall, that catch the air and slow your fall. But I didn’t have a parachute.”

Eyes widened again. Such an invention didn’t exist among the dwarves or the orcs, and neither Redbeard nor Grukk could think of a more reckless, irresponsible, unsafe thing to do than to fall freely from the sky with nothing but fabric to stop you. Didn’t this human have better things to do?

“I didn’t have a parachute–”

The pair sighed in relief.

“–but our tents were made of the same fabric, so I told Matt to hold my beer, and I cut the damn things into wings from my wrists to my ankles. See, I’ve got pretty long arms, and I figure my wingspan would be enough to catch enough air that I could glide down to the River.”

At this point, both sets of eyes were as wide as dinner plates, and Drea was quite amused by the rapt attention with which they were absorbed. She could hardly blame them.

“An' it worked?” ventured Redbeard the dwarf. Drea, too, was curious.

“Worked?! My friend, it was amazing! It felt like flying! I didn’t even bother swimming! Soon as I landed, I climbed the two-day path back up the cliff and I jumped again!” Drea was the first to break the silence.

“You really are something, aren’t you, Arthur.”

“Human,” said the orc, “you are lucky to be alive. What drove you to such madness? Why threaten your life?”

“Aye. Ar' ye mad, ye dumb bastard?”

“No, not mad. Just bored.”

“Bored?”

Neither man had ever heard of the term. It must have been some sort of madness to drive a human – already with so short a life – to commit to such a danger so readily. They glanced blankly at each other, clearly confused.

“What’s bored?” they said in unison.

“If I may,” said Drea. “I can explain.”

Arthur gestured for her to go ahead, as he drank his ale.

“You see, humans, and especially Arthur here, occasionally enter a state of mind that drives them to do ridiculous things. I daresay it’s a kind of madness, but we’ve been arguing about that for ages. There is a very interesting cause to this madness to which all humans succumb.”

She waited a beat, and watched as both men were swallowing nervously. “It’s caused by a lack of threats in their immediate environment. Humans crave threats, you see. Threats to overcome. And that is why, gentlemen, I stand by his side over yours.”

Thus leaving both men impressed, Drea grabbed Arthur by the arm, and they walked out of the bar together.

“You are extraordinary, you know,” she said, “I’m very glad I met you. You must’ve been mad to approach one such as me, a high elf, so many years ago.”

He kissed her then, smiled, and said “No, not mad, my dear. Just bored.”

-2

Thought this might interest the general programming community as well! If you've ever been interested in the different types of ways websites can render themselves....

cross-posted from: https://programming.dev/post/223726

Here’s a quick summary of the different ways you can load a website.

SSR (Server Side Rendering): The classic way. Browser makes request to server, server creates an HTML/CSS/JS bundle, sends it to browser.

CSR (Client Side Rendering): The vanilla React way. Browser makes a request to server, server sends back JS code which runs on browser, creating the HTML/CSS and triggering browser to further make requests to load all assets.

SSG (Static Site Generation): The “gotta go fast” way. Server creates an HTML/CSS/JS bundle for web pages at build time. When browser requests a page, the server just sends this pre-built bundle back.

ISG (Incremental Static Generation): The “imma cache stuff” way. Server may create some HTML/CSS/JS bundles for web pages at build time. When the browser requests a page, the server sends this pre-built bundle back. If a pre-built bundle doesn’t exist, it falls back to CSR while it builds the bundle for future requests. The server may auto-rebuild bundles after certain time intervals to support changing content.

ESR (Edge Slice Re-rendering): The “cutting edge, let's get latency down so low it's practically in hell” way. Server does SSG and tells the CDN to cache the bundles. Then, it instructs the CDN to update the bundle in the event that page content needs to change.

In order of performance, usually: (SSG = ISG = ESR) > CSR > SSR

In order of SEO: (SSR = SSG = ISG = ESR) > CSR

In order of correctness (will users be shown “stale” information?): (SSR = CSR) > ESR > ISG > SSG

3

cross-posted from: https://programming.dev/post/223663

Hey folks!

I've noticed that it's often difficult for newcomers to git to understand what the heck is happening and how the commands work.

Here's a flowchart that has helped me explain things in the past, and (more than once) folks have asked me for a copy of it to use as a cheat sheet. Hope it's helpful!

3
submitted 1 year ago by o_o@programming.dev to c/git@programming.dev

Hey folks!

I've noticed that it's often difficult for newcomers to git to understand what the heck is happening and how the commands work.

Here's a flowchart that has helped me explain things in the past, and (more than once) folks have asked me for a copy of it to use as a cheat sheet. Hope it's helpful!

0
submitted 1 year ago* (last edited 1 year ago) by o_o@programming.dev to c/lemmy@lemmy.ml

Instances, of course, have some bot-mitigation tools which they can use to prevent signups, etc.

However, what’s stopping bots from pretending to be their own brand new instance, and publishing their votes/spam to other instances?

Couldn’t I just spin up a python script to barrage this post, for example, with upvotes?

EDIT: Thanks to @Sibbo@sopuli.xyz ‘s answer, I am convinced that federation is NOT inherently susceptible, and effective mitigations can exist. Whether or not they’re implemented is a separate question, but I’m satisfied that it’s achievable. See my comment here: https://programming.dev/comment/313716

[-] o_o@programming.dev 1 points 1 year ago

Agreed from a technical standpoint.

But the implications are still interesting. One might (big might) trust Reddit as an organization not to use this data for evil, but with federation, there’s nothing stopping an instance from simply releasing all users’ voting history to be public.

Of course, my instance didn’t even ask for an email to sign up, so my entire account is anonymous that way.

I wonder if there are technical ways to federate votes anonymously?

3
submitted 1 year ago by o_o@programming.dev to c/lemmy@lemmy.ml

Hey folks! Just realized something that makes Lemmy different from Reddit. Because of the federation, your votes are not technically anonymous on Lemmy. At least, I think.

Although there’s no UI to look at a user’s voting history yet, one could conceivably be built by an instance. Perhaps coincidentally, I hear there’s instances out there populated by mostly bots?

view more: next ›

o_o

joined 1 year ago