• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle
  • Yup this is the real world take IME. Code should be self documenting, really the only exception ever is “why” because code explains how, as you said.

    Now there are sometimes less-than-ideal environments. Like at my last job we were doing Scala development, and that language is expressive enough to allow you to truly have self-documenting code. Python cannot match this, and so you need comments at times (in earlier versions of Python type annotations were specially formatted literal comments, now they’re glorified comments because they look like real annotations but actually do nothing).


  • Nevoic@lemm.eetoMemes@lemmy.mluntil we meet again!
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Socialists use work and labor to describe different things. Work is the set of actions a worker is coerced to participate in by capitalists to align with the interests of capital. Labor can be something you engage in as part of work, but that’s not always the case. Sometimes people have jobs that are so inefficient or bullshit that they literally don’t labor at all at work (read Bullshit Jobs).

    Labor is necessary (currently), work is not. Aligning with the interests of capital is not synonymous with the interests of humanity (think ad work, literally encouraging greater consumption, especially around harmful products like tobacco/alcohol/sugar. Most western countries now have bans on tobacco advertising, but still let advertising in general flourish).

    On the topic of feeding everyone, it would be very logistically difficult in the 1600s no doubt. Now we have a massive international trade system, I can easily get massive amounts of goods shipped from the other side of the world in weeks or maybe months at the worst. We also produce enough food currently to feed 12 billion people, and that’s with our incredibly inefficient system of converting edible plant matter (mostly soy) to animals.

    The issue is, under capitalism, poor people don’t deserve to eat. If they lack money, they’re better off dead than alive and consuming resources without paying for them, so that’s what the global international capitalist system does, it moves more than enough food great enough distances to feed everyone as it is. It just moves it to the rich countries where obesity has been a massive issue instead of the global south, because people in rich countries have the money to pay for food, and so they deserve to live (and overeat/waste food) but people born in Africa deserve death.

    Capitalists often lose sight of what an economy is for. An economy isn’t something of value in and of itself, it’s about setting up incentives and systems to benefit humanity. Capitalism fails to do this in everyway that is uniquely capitalist. Anything it does right is attributed to the general functioning of markets, which existed before capitalism and can exist after capitalism (market socialism is a real thing). There are problems with markets no doubt, but capitalism really has no redeeming qualities when compared to market socialism. If you compare it to feudalism, it does do better at mobilizing productive forces, of course at the massive detriment to workers.


  • Yes but in different ways depending on the country. The U.S has a pretty clear analogue, the Native American genocide.

    The main difference between Israel/Palestine and the U.S/Native Americans is the former is happening currently, the U.S has already successfully completed the genocide on their natives, while Israel is in the middle of its extermination.

    Germany also clearly has the Jewish Holocaust, but they weren’t successful in WW2, so that genocide didn’t get white-washed and instead was shamed to paint a clear good guy/bad guy narrative, despite the Nazis open praise of the U.S for our successful extermination of the natives, U.S business interests aligning with Nazis before and during the war, and the U.S trying to stay neutral between the Allies and Axis powers until Japan forced the U.S into action.


  • Nevoic@lemm.eetoMemes@lemmy.mluntil we meet again!
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    9 months ago

    This is the natural order, yet paraplegics live, why? Because we live in a society that attempts to circumvent the natural order in many ways, for the good of all.

    You should take a broader materialistic look on society, who does the work (the working class), who benefits from the work (the owner class), and instead of focusing on amping up people to devote their lives to serve the interests of capital, instead focus to reframe the goals of society to serve the interests of workers, which includes working less, or even not at all. Work is not labor.


  • In humans there’s a psychological phenomenon called “crowding out”, essentially it’s hard for our brains to attach multiple, powerful incentives to one activity. Generally the “lesser” ones get crowded out by the more important one.

    I’m still young (26), and still feel the same way about programming, I deeply enjoy it. However, I know programmers who were passionate like me when they were younger, and that passion has been slowly drained as they continue to code professionally, and I’ve seen it come back when they move into non-programming roles (be it industry change or moving to management).

    Generally you won’t find yourself wanting to program 40 hours a week, 48-50 weeks a year, for 50 years without a substantial break, and yet that’s what capitalism expects of workers. Yet you’ll continue to work because there’s a more important incentive than passion, money.

    You need money to survive (food, shelter, etc.) and your brain understands those are more important than fulfilling a passion, that’s why you’ll go to work even if you’re drained mentally. You’ll continue to do that forever so long as you don’t have the financial freedom to do otherwise (which is the goal of capitalists, this is why we have COL-based incomes, so as not to overpay people who live in cheaper areas as it’d allow them the freedom to leave).





  • Nevoic@lemm.eetoMemes@lemmy.mlI'm too high for this
    link
    fedilink
    arrow-up
    10
    arrow-down
    6
    ·
    1 year ago

    I was part of the vegan cult for years until I read this comment, thank you for saving me.

    I was a wimp. I didn’t enjoy the idea of harming and killing animals, I had watched videos of animals being gutted alive and having their throats cut and squirming for literal minutes afterwards. This was uncomfortable, but only because I was a wimp.

    After reading your comment I manned up and took my dog and 2 cats, strung them up while they were whimpering (which was hilarious), and slit their throats, cooked their delicious innards, and am finally able to walk again (I was only able to crawl because I had been nutrient deficient for so long despite what my libtard doctors told me).

    I’m happy to live in a free country where I can do whatever I want with my property. In China I bet you can’t cook a dog because the government is just a bunch of moralizing leftists. God gave us domain over animals, and so I get to choose what I want to do with the animals I purchase.


  • Most people aren’t practicing teachers, so it makes sense that not all explanations are the best. Trying to get an intuitional understanding of passing by reference or passing by value in imperative languages is arguably more important than understanding how map works, and yet I’d argue it’s also harder to do.

    If you understand map (not just lists, but futures, IOs, Options, Maybes, etc.) then you understand Functors. Yes there are laws, but mathematical laws here are just encoding our intuition. Something like Iterator in Java may not have laws, but you would expect that calling .next() doesn’t modify an SQL database, though it wouldn’t be a technically invalid implementation if it did. The same is not true for Functors. If you map over a List and the act of mapping each int to its double modified a database then you wouldn’t have a lawful functor. But that should make sense intuitionally without knowing the laws.

    People in OO land are more happy to say they “understand” something if they generally get what the abstraction is going for. Do you know all the methods for Iterator/Iterable in Java? Even if you didn’t, you’d likely say you get the “point” of an Iterable. The bar for understanding things in the FP community is usually higher than just understanding the point of something.

    This doesn’t mean FP is more complicated. Actually it kind of means it’s simpler, because it’s not unreasonable for people to totally understand what Functors are for all languages that implement them. The same is not true of Iterable/Iterator. There’s no way you’d have more than just an intuition about what Iterable is in a language you don’t know. I don’t program in Agda or Idris, but I know Functor in those languages are the same as Functor in Scala and Haskell. Same with Monad, Monoids, etc.



  • I think the dislike for Functors/Monads/Monoids etc. is super overrated. I’m not a mathematician, but christ these are beautiful abstractions coming from a background in Java and OO programming.

    Functor instances are defined by one function. Once you learn the one main thing that Functors do (mapping), you’ll understand them no matter the language. Monoids have 2, Monads have 2, etc. Yes all there are functions built in terms of the functions required in the typeclass definitions (or several typeclasses), but they don’t need to be known to effectively use the abstractions.

    I was able to easily transfer most of my Haskell knowledge to Scala at my last job in the typelevel ecosystem because of HKTs like Functors, Monads, monad comprehensions, Monoids, etc. I was the go-to guy for FP-related questions despite most of my background being in Haskell and not Scala.

    Using an Iterable in Java will be different than an Iterable in any other language in at least some respects. Yes they will represent the same abstract idea, but you can’t just 1:1 transfer knowledge between different Iterable implementations.

    I’ve programmed professionally in Java, Kotlin, Scala, Ruby, Python, JS/TS, and many more in hobbyist settings, and the cleanest transition was Haskell -> Scala (omitting language transitions on the same runtime, so Java -> Kotlin or JS -> TS).


  • “post-scarcity” in this context doesn’t mean “everyone gets everything they want whenever they want it”. Maybe I want to own a planet, but there aren’t enough planets to go around, and nobody actually believes in a future where everyone can get their own planet.

    When talking about these things, it’s best not to assume the most ridiculous interpretation of what the other person is saying. e.g instead of reading “post-scarcity” to mean “everyone gets everything all the time no matter what”, read it to mean “everyone gets what they need”.

    also for what it’s worth, I’ve been an ethical vegan for several years after being a die-hard meat eater and literally convincing people close to me to move away from veganism/vegetarianism exactly for health reasons (I had the same misconception you did about veganism). After actually going vegan, doing absolutely no meal planning, no exercise, no calorie counting, still eating mostly frozen food and pickup, my blood pressure as a lean 6’1 mid 20s male has gone from pre-hypertension to normal levels. I get my blood checked regularly and I’m far healthier than I was when I was downing popeyes, jersey mikes, and five guys several times a week. And I’m not just eating salads or whatever, I’m usually having vegan buffalo “chicken” or beyond burgers.

    I don’t advocate veganism based on health benefits (veganism is an ethical philosophy), but vegan diets are baseline much healthier than the baseline for non-vegan diets. You can’t go as wrong with them as the vast majority of Americans do with their diets.


  • As an extension to this comment, digital media is a perfect example of pure artificial scarcity. You can at least imagine a world where food or homes are scarce, it’s not our world, but it can be imagined. The same is not true of distributing digital media, and yet it’s still artificially scarce.

    Without scarcity in capitalism things lack value. That is extremely problematic.


  • Within the context of one person’s career, socialism on its own can do quite a bit to transform people’s relationship to their workplace. No longer would your job be at risk because you’ve all done too well and it’s to “cut labor costs” while profits soar. No longer would you be worried about automating away your job, instead you’d gladly automate your job away and then the whole organization could lower how much work needs to be done as things get more and more automated.

    Democracy would massively improve work-life balance.

    Of course this comes with problems, all of which exist in capitalism (how do we care for people outside of these organizations who won’t have access to work, for example). But if I had to choose between market socialism and capitalism, the choice is pretty clear, and it’s something much easier for liberals to stomach.


  • Nevoic@lemm.eetoMemes@lemmy.mlDamn whippersnappers
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I’ve seen people get pulled over for doing 60 in a 65 on a highway where everyone is doing 70-85, because it’s dangerously slow with only 2 lanes.

    And it’s 6 lanes because of how much traffic there is, forcing people to weave around someone going 10-30mph below the flow of traffic is dangerous.


  • Nevoic@lemm.eetoMemes@lemmy.mlDamn whippersnappers
    link
    fedilink
    arrow-up
    2
    arrow-down
    5
    ·
    edit-2
    1 year ago

    Surprised this is getting as many upvotes as it is. It totally depends on context. I’ve seen posted 35 mph speed limits on 6 lane roads where every is going minimum 50mph, even with cops in the flow of traffic. I’ve also been on 2 lane roads (e.g opposing traffic is directly next to you) and the posted speed limit is 55mph.

    If you’re doing the speed limit in the second one, well done. If you’re going 15-25mph below the flow of traffic in the middle or fast lane, because of a posted speed limit, that’s a problem.