o_o

joined 2 years ago
 

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 0 points 2 years ago

I do the same! It works quite well.

[–] o_o@programming.dev -1 points 2 years ago (1 children)

My point is that any meaningful capital is directly tied to resource usage. Our ability to produce energy directly depends on our ability to mine resources to build power plants and maintain them. Saying that we can increase energy production infinitely is reductive beyond any meaning, it’s like a physics problem about a perfectly spherical cow.

Not at all! To use real examples to avoid spherical cows:

Used to be that you needed wood to generate energy. Then coal (which is an order of magnitude better). Then oil (another order of magnitude). Then solar. Then fission. Then (hopefully) fusion. Then who knows what. At each step, we've taken something which previously wasn't considered a resource at all and used it to generate exponentially more and more energy. There's no limit to how often we can do this-- things which were previously not resources become resources once we know how to use them.

Another example is food production. I saw a graph recently-- if I find it I'll edit this message to include it, but it showed how it used to be that we needed 100% of our population dedicated to food production. Now it's less than 1%. Meaning that 1 person is producing enough food for 100 people. Incredible.

These examples (and many more) show that our ability to produce things are not subject to limitations of natural resources, because natural resources aren't limited. There's enough energy coming out of the sun to be infinite, for all intents and purposes.

[–] o_o@programming.dev -1 points 2 years ago (3 children)

Yes, natural resources are limited, but that doesn't mean that capital is limited. What I mean is that: yes, we're using more energy as a civilization, but thanks to the investment of capital, we're also expanding our ability to produce more energy at the same time. And "how much energy our civilization is capable of producing" can increase infinitely.

Yeah, the problem of pollution is certainly an existential threat. But I don't think it's fair to say that the type of threat is "we're running out of resources". We're not running out of anything, we're just producing too much atmospheric carbon!

 

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?

 

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.

 

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.”

 

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

 

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

 

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!

 

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!

 

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

 

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 ›