Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)NA
Posts
10
Comments
311
Joined
2 yr. ago
  • I found this interesting as someone who really enjoys using the |> operator that's present in a bunch of other languages. I also like how it uses "result or error"-like types to be able to report errors from the pipeline too.

    Highly unlikely that I'd ever use this in code I work with personally, but an interesting and fresh take. I definitely learned a few new interesting concepts from reading this!

  • C++ @programming.dev
    namingthingsiseasy @programming.dev

    Elevated

  • Milk has always grossed me out for weird reasons. Reading comments like this makes me glad for that.

    And for anyone that has some kind of gross facts about oat milk, I DON'T WANT TO KNOW ABOUT IT THANKS!!!

  • Exactly. It's just a matter of time before President Dumbass wakes up with another batshit insane idea and throws the world into total disorder again because of whatever idiocy he thought up. And this is on top of the fact that "doing whatever he wants" is a dangerously stupid policy for any country to adopt to begin with.

  • How about neither? Both China and the USA have proven themselves to be unreliable trade partners. In fact, a lack of reliability is inherent in any trade relationship. The conventional theory is that trade brings prosperity (true!) and governments want to maintain that prosperity, so they have a (literally) vested interest in preserving that - and this latter part is not so true anymore these days. (We all know why of course, it's because the prosperity is not shared equally in the USA, and China is unstable because it's a totalitarian state that will happily immolate itself in order to save face - but this is besides the point.)

    The important point is that while trade is nice because it brings greater prosperity, it also comes with security risks and as we move into a new age of geopolitics, we need to be aware of this and find a better balance between trade and security. It will be hard, because it's so easy to be greedy and focus only on economics, but hopefully we will continue learning the lesson of finding this balance as we see more and more crazy things unfold over the course of this decade.

  • Smart decision. China has already made clear attempts to coerce Australia, not just economically1, but militarily as well 2, 3.

    As grim as foreign relations look with the USA, it would be foolish to immediately run to China instead, because they clearly do not intend to have a symmetric relationship with any of their partners either.

  • I prefer eating fresh food, which means that I usually have to go to the store roughly every other day. If I buy more than a couple days of food, it just means more crap in the fridge and more spoilage.

    And if my food did last longer than a few days without spoiling, then I'd really start to question what it was made of....

    Editing to add that this is easily possible because I have several stores within a short walk or ride on the transit, as it was also pointed out in a sibling comment.

  • It's also important to note that Putin intentionally keeps all other leaders in Russia as weak as possible to maintain his iron grip. Unless he has a very good succession plan, things could become quite a clusterfuck before the dust settles.

  • stop

  • I've never had the chance to use a functional language in my work, but I have tried to use principles like these.

    Once I had a particularly badly written Python codebase. It had all kinds of duplicated logic and data all over the place. I was asked to add an algorithm to it. So I just found the point where my algorithm had to go, figured out what input data I needed and what output data I had to return, and then wrote all the algorithm's logic in one clean, side effect-free module. All the complicated processing and logic was performed internally without side effects, and it did not have to interact at all with the larger codebase as a whole. It made understanding what I had to do much easier and relieved the burden of having to know what was going on outside.

    These are the things functional languages teach you to do: to define boundaries, and do sane things inside those boundaries. Everything else that's going on outside is someone else's problem.

    I'm not saying that functional programming is the only way you can learn something like this, but what made it click for me is understanding how Haskell provides the IO monad, but recommends that you keep that functionality at as high of a level as possible while keeping the lower level internals pure and functional.

  • Agreed, but on the other hand, maybe this could push them to be better involved in the collective defense of Europe, not just for new arms but older ones as well. The more countries that contribute to Europe's collective defense, the better.

  • What kind of programming work are you doing?

    I've thought about situations like yours and what I would do if I were in that situation someday. For me, the plan is to try doing as much in the console as possible, which means Vim/Neovim for development and Tmux for window management.

  • World News @lemmy.world
    namingthingsiseasy @programming.dev

    Are Western double standards undermining the global order?

    "Wherever I go, I find myself confronted with the accusations of double standards," said EU foreign policy chief Josep Borrell at Oxford University in May. At last year's Munich Security Conference (MSC), French President Emmanuel Macron said: "I am struck by how much we are losing the trust of the Global South."

    Eisentraut makes this clear in her brief: The criticism of Western double standards is often justified. For example, countries from the Global South point out that the US and other Western states insist on the principle of the territorial integrity in Ukraine, but did not respect this principle during the US-led invasion of Iraq in 2003. Western states have often disregarded human rights by carrying out illegal detentions as part of their war on terror. And the Europeans have made common cause with North African autocrats in order to prevent migration to Europe.

    However, Eisentraut also points out that critics from countries such as China and Russia often use their a

    Programming @programming.dev
    namingthingsiseasy @programming.dev

    OpenTelemetry Tracing in 200 lines of code

    A great introduction to what traces and spans are, how they work, and the OpenTelemetry Protocol

    Europe @feddit.org
    namingthingsiseasy @programming.dev

    NL seems to have lost faith in the market, says finance minister

    “We seem to have lost our belief in a market economy somewhat and our trust that letting go can lead to something great,” he said. “The government does not have to subsidise and compensate for everything. People flourish in freedom, as does innovation. And that is what we need to drive up productivity.”

    Separate article with more details on the proposed budget.

    science @lemmy.world
    namingthingsiseasy @programming.dev

    Pregnancy completely rewires mothers' brains — study

    The researchers found sweeping changes in overall brain neuroanatomy which unfolded week by week during the pregnancy.

    Inside Chrastil's brain, grey matter volume, cortical thickness, white matter microstructure, and ventricle volume all changed.

    The changes were all over the brain too — "over 80% of my brain regions showed reductions in grey matter volume," Chrastil said.

    Neuroanatomical changes observed over the course of a human pregnancy. Published by Pritschet, L., Taylor, C.M., Cossio, D. et al. in Nature Neuroscience (September 2024). https://doi.org/10.1038/s41593-024-01741-0

    Privacy @programming.dev
    namingthingsiseasy @programming.dev

    Solution to youtube-dl (yt-dlp) IP bans?

    I'm getting IP-banned using yt-dlp. It seems that this is a known issue. Have any of you run into this, and if so, what has been your solution?

    I currently use a VPN via a VPS. I am able to view youtube via the web client and use youtube-dl without VPN, but I am only unable to get through using the CLI on the VPN. I have also tried fiddling with some CLI args (like --extractor-args "youtube:player_client=web") but that is also unsuccessful.

    My next step is to try signing up for mullvad to see if I can get around it that way, but would like to hear if this is affecting existing mullvad users.

    Open to hearing other solutions as well. Thanks!

    Programming @programming.dev
    namingthingsiseasy @programming.dev

    xv6: a simple, unix-like teaching operating system

    This is a very easy-to-read book on the implementation of xv6, which is a basic unix-like operating system written for educational purposes. xv6 itself is a very simple and straightforward kernel and the source code can be found here.

    I've been reading it casually over the past few weeks and found that it helped me get a better understanding of many basic operating system concepts. I've also enjoyed reading the source code to understand what a basic implementation of common system calls could look like.

    Golang @programming.dev
    namingthingsiseasy @programming.dev

    How I write HTTP services in Go after 13 years

    Programming @programming.dev
    namingthingsiseasy @programming.dev

    Do any of you program on non-US keyboard layouts?

    I've used a US-QWERTY keyboard layout my entire life. I've seen other layouts that do things like reduce the size of the enter/backspace keys, move the pipe operator (|) and can't wrap my head around how I would code on those.

    What are your experiences? Are there any layouts that you prefer for coding over US English? Are there any symbols that you have a hard time reaching ($ for example)?

    Dota 2 @lemmy.ml
    namingthingsiseasy @programming.dev

    Saksa taking a break from Tundra

    We are sad to announce @saksadota will be taking an extended break due to health reasons and will not be on our active roster. We wish him all the healing and success possible. Thank you, Martin, for playing a pivotal role in our TI victory. You’ll forever be a part of our legacy and the Tribe.

    Maybe they should sign Fata to take his place?