Skip Navigation
Is Python's tooling incredibly difficult, or am I just stupid?
  • when the official docs are telling you to use it, then it's used. You can have no expectation of people to think the tooling isn't shit when it's literally the official recommendation.

  • I don't exist
  • Hi, I believe I've fixed the issue with your profile. Can you please verify for me (I'm able to see it on my side)

  • I don't exist
  • Hi, I believe I've fixed the issue with your profile. Can you please verify for me (I'm able to see it on my side)

  • I don't exist
  • Hi, I believe I've fixed the issue with your profile. Can you please verify for me (I'm able to see it on my side)

  • Server will be going down in 1 hour at 3:40 UTC for database maintenance.
  • Server is back up and user profiles should now be visible. Hidden communities have not been fixed yet.

  • Server maintenance 3:00 UTC
  • ok, stuff seems to be federating 'normally'. Let me know if you find any issues.

  • Server maintenance 3:00 UTC
  • server seems quite overloaded right now. not sure if this will federate or not...

  • Server maintenance 3:00 UTC
  • seems to be working. testing images

  • Server maintenance 3:00 UTC
  • testing federation..

  • Server maintenance 3:00 UTC

    We are going to be upgrading to 0.19.5 at 3:00 UTC on Thursday Oct 3 (10 minutes from now).

    Downtime is expected to be about an hour. Hopefully it is not more.

    6
    What is your preferred API error response and why?
  • Anything but the last one. Don't duplicate the http code in the body, else you're now maintaining something you don't need to maintain.

    I'm not a fan of codes that repeat information in the body either, but I think if you had used a different example like "INVALID_BLAH" or something then the message covered what was invalid, then it would be fine. Like someone else said, the error data should be in an object as well, so that you don't have to use polymorphism to figure out whether it's an error or not. That also allows partially complete responses, e.g. data returns, along with an error.

  • I keep getting logged out today. Is it just me?
  • What OS are you using? Version of FF?

  • I keep getting logged out today. Is it just me?
  • so it sounds like default frontend, maybe tied to the version we have (we're still a few versions behind), only mobile ff.

  • Thanks for keeping the instance programming-focused :)
  • My response would be something along the lines of “Do you use a different phone number or email address depending on the topic of the conversation?”, but the blank stares quickly remind me that I am part of the last generation that actually talked on their phones and wrote emails to actual people.

    I mean... not a phone number, because that's not given out willy nilly, but emails? hell yeah. I don't use my work email for private convos, just like I don't use my junk email for coordinating group trips.

    But just like you choose an email to converse with (do you have gmail? well that says something about you. Hotmail? same thing), you only communicate on the fediverse with that account. it doesn't mean your identity is that topic. It just means its your home base. Just like gmail or hotmail might be your 'home base'.

    Most of us will however be better served by joining a a neutral federation or - even better - by running the instance under your own domain.

    which is choosing a topic (yourself) as the root of your identity. Maintaining your own instance is hard. Maintaining a large instance even harder. Growing that instance and keeping it from turning into Reddit (isn't that why we're all here) means making choices about what you want to be. Programming.dev was never meant to be a catch-all. I was the main moderator of /r/ExperiencedDevs and frequently helped people on /r/cscareerquestions. I wanted a place to replace that, but that still had other things connected to it. A sort of in-between between HN and Reddit.

    At the very beginning of the exodus, there were instances popping up left and right that had absolutely no connection to each other besides all saying "lemmy". We had lemmy.net, lemmy.world, lemmy.news whatever. Tying your identity to lemmy (or the fediverse even) is a losing proposition. The website should be able to grow no matter what tech it uses, and no matter if it's federated with this fediverse or not.

    The choice in making a topic-ed instance was a deliberate one and a very thoughtful one. You can't grow if people have no clue what you are or what you do. Reddit took literally 14 years before it was mainstream enough for people to start coming over from facebook groups. Whether that's something to be desired or not, you can argue about, but it is a point to make that when you tell someone "Oh I use reddit" they're like "what's a reddit". That doesn't happen with programming.dev. And it doesn't happen with other topic instances like solarpunk or mtgzone or literature.cafe. You know what you're getting when you go in (a programming forum), and you happen to be able to use that to communicate with other forums rather than having the diaspora that is Discourse or BB, which you can joyfully find out after joining. Needing to know that something is the fediverse before going in is terrible for discovery and honestly terrible as a website idea. Reddit grew because it happened to be a forum of forums which many people wanted. But a forum of forums where you can choose literally hundreds of sites (and you have no way of knowing which are good or even mediocre) or even host your own? That's too much for most people, even software devs.

  • External communities not syncing?
  • It seems that something went wrong with our nameserver, thus no connections to the 'outside world' were working. As soon as I added a new nameserver, federation started working again (this also affected server updates).

  • Willow at her first vet treatment...
  • These posts showed up right after each other in my feed so I got to see them in order without clicking in 😂

  • Man is fined after trying to 'body slam' killer whale
  • According to a video I watched yesterday, it’s not random, it’s because they’re bored teenagers

    Hilariously I left this post then scrolled down just a few posts and found this. https://www.usatoday.com/story/news/nation/2024/05/24/killer-whales-attacking-sinking-boats-are-bored-scientists-say/73558157007/

  • Your server owner is now banned from participating on lemmy's Github

    I will no longer be able to assist with development nor debugging actual issues with the software... Quite juvenile behavior from the devs. It stemmed from this issue where the devs continuously argued in public by opening and closing an issue. Anyway, thought I would keep y'all apprised of the situation, since these are the people maintaining the software you are currently using.

    146
    Outage - Oct 14/15

    Over the weekend we had a large intermittent outage, followed up by unplanned maintenance that I had put off for way too long.

    Lemmy runs with several different services.

    • lemmy-ui (the reactesque frontend)
    • lemmy (the rust backend)
    • postgres (the data store for operations, comments, posts, etc)
    • pictrs (the image data store)

    The outage concerns itself with the last one. We always knew we'd eventually need to migrate to an object based store, but Lemmy defaults to file based picture storage and that's what we stuck with up until now. This eventually caused the VPS that programming.dev is running on to seize up, and resulted in the outage over the weekend.

    Saturday night I spent several hours testing out the object migration on the beta.programming.dev site in order to validate that it worked. During this time I struggled with some very obtuse ansible errors that I hadn't encountered before and so I was not able to start the migration that night. I delayed until the next morning (thank goodness).

    I began work Sunday morning at 10:00 America/Denver time. Initially the migration started off quite well, but was moving incredibly slowly. Looking back on it now, the migration would have taken over 144 hours if I left it to do its thing. I let this run for about an hour before messaging the pictrs dev to understand why logs weren't showing up for the migration (even though objects were showing up in the store). Apparently lemmy-ansible is set to use 0.4.0 of pictrs, which not only is quite old, but doesn't have the ability to run migrations concurrently. There was the issue. I asked the dev is it was possible to stop a migration in the middle of the running, upgrade, and continue. They told me what changes I'd need to make, I made them, did the upgrade, and restarted the migration. It immediately failed. This was the start of my issues.

    The server was now too full of data to do anything, including running apt update or apt install to install tools to assist me. I was able to attach more block storage, but I'm not enough of a linux guru to figure out how to mount it where the current pictrs filesystem would be able to take advantage of it. I had to result to copying the entire pictrs filesystem to a fresh ~500gb mount, fixing permissions, and then rerunning the migration from there. By the time I got to this point, it was about 12:30PM. The migration from then on took several hours.

    After the migration completed, I needed to deploy the new stack with the correct settings. The ansible script needed to run apt though, and, well, that wouldn't work when the server was still full. At this point I was not confident in the migration and I also hadn't realized that you could do the migration while the site was running (big oversight from me). I therefore wanted to maintain the entire pictrs file store until I proved the object store was working. I created another block storage, copied the entire pictrs directory over to it again (another 20 minutes or so) and then deleted the original directory. I was now able to run the ansible script and deploy the new settings for pictrs, confident that I had a backup available in case something went wrong (this is not the main backup method, the server is backed up externally as well, but I didn't want to have to resort to those during the migration).

    That completed the migration, some 5 hours after it originally started.

    There were several things that exacerbated the issue that made it take several hours longer than I wanted.

    1. I let it go so long before doing the migration to object storage that the server was too full to even perform an apt update. This resulted in me not being able to install tools I needed, along with a host of other issues as mentioned
    2. pict-rs was at a very suboptimal version. If it had just been two minor versions newer it would have migrated perfectly fine, in a few hours.
    3. my limited knowledge around ansible led me on wild goose chases several times

    Things I would change if I had to do it again:

    1. Dig in a bit deeper on the concurrency flag in the pictrs docs. It was not present in the original guide I followed (from a lemmy post on another instance), and thus I didn't realize that it wouldn't run with concurrency at all.
    2. Don't wait so long so that the server is full
    3. Migrate while the server is running. That would have been dumb in this case, since the server wouldn't stay up anyway, and could have caused other issues. But there was no reason to take the server down if it had been stable, and other instances have done so with no problems.
    4
    Password limit is set to 60 characters

    It seems like the password limit is set to 60 characters so I’m unable to login to my instance. There probably should be no limit in the app because each server could have different limits set.

    18
    What God or Goddess would personify Testing?

    There's gods for everything, but of course computers didn't exist in ancient Roman and Greek times. What God or Goddess in your opinion would personify Testing?

    And yes these answers matter. 😬

    22
    Threads and the Fediverse

    Start by reading these two articles:

    • https://blog.joinmastodon.org/2023/07/what-to-know-about-threads/
    • https://ploum.net/2023-06-23-how-to-kill-decentralised-networks.html

    Ok, now that you've done that (hopefully in the order I posted them), I can begin.

    I have always been a strong supporter of Open Source Software (OSS), so much so that all of my projects (yes all) are OSS and fully open for anyone to use. And with that, I knew that things could be used for good... and bad. I took that risk. But I also made sure to build stuff that wasn't, in itself, inherently bad. I didn't build anything unethical to my eyes (I understand the nuance here).

    But I've seen what unethical devs can do.

    Just take a look at those implementing the ModFascismBot for Reddit (that's not its name, but that's what it is). That is an incredibly unethical thing to build. Not because it's a private company controlling what they want their site to do, no, that's fine by me. Reddit can do whatever they want. But because it's an attempt to lie about reality, to force users to do something through manipulation not through honesty. Even subreddits that voted overwhelmingly to shut down still got messaged by the bot telling them that the users (that voted for it) didn't want it and they had to open back up or they would be removed from mod position. This is not ethical. This is not right. This is not what the internet is about.

    Or the unethical devs at Twitter, who:

    It's one thing for an organization to have political lean...that is just a part of life, and that will never end. It's another to actually sow disinformation in order to accomplish nefarious things to further your profits. It is what has caused massive addiction to tobacco, the continuation of climate change, death and disfiguration from forever chemicals, ovarian cancer and mesothelioma from undisclosed exposure to asbestos, or selling 'health products' that claim to cure everything under the sun, but can "interfere with clinical lab tests, such as those used to diagnose heart attacks".

    Please do not confuse this for saying that companies shouldn't be able to sell things and make a profit. If you want to sell someone something that kills them if they misuse it and you market it as such, you go for it. That's literally how every product in the cleaning aisle of your grocery store works. That's how guns work, that's how fertilizers work, that's why we have labels. But manipulation for profit is unethical, and that's why companies hide it. It hurts their bottom line. They know that their products will not be used if they reveal the truth. Instead of doing something good for humanity, they choose the subterfuge. Profits over people. Profits over Earth honestly. Profits over continuing the human race. Absolutely nothing matters to companies like this. And unethical developers enable this.

    ----

    Facebook (ok, fine, Meta, still going to refer to them as FB though) is trying to join the Fediverse. We as a community, but honestly each of you as individuals, have a decision to make. Do they stay or do they go? Let's put some information on the table.

    Facebook...

    • lies about the amount of misinformation it removes [^1]
    • increased censorship of 'anti-state' posts [^1] [^2] [^3]
    • lied to Congress about social networks polarizing people, while FB's own researchers found that they do [^2]
    • attempted to attract preteens to the platform (huh, wonder where all that "you must be 13" stuff went) [^4]
    • rewards outrage and discord [3][5]

    Facebook also...

    • Allows for checking on friends and family in disasters [^6]
    • Created and maintained some of the most popular open source software on the planet (including the software that runs the interface you're looking at right now) [7][8]

    From my perspective... There's not much good about FB. It has single handedly caused the deaths of tens of thousands of people across the planet, if not hundreds of thousands. It continually makes people angrier and angrier. It's a launching pad for scammers, thieves, malevolent malefactors, manipulators, dictators, to push their conquests onto the world through manipulation, lies, tricks, and deceit. Its algorithms foster an echo chamber effect, exacerbating division and animosity, making civil discourse and mutual understanding all but impossible. Instead of being a platform for connection, it often serves as a catalyst for discord and misinformation. FB's propensity for prioritizing user engagement over factual accuracy has resulted in a global maelstrom of confusion and mistrust. Innocent minds are drawn into this vortex, manipulated by fear and falsehoods, consequently promoting harmful actions and beliefs. Despite its potential to be a tool for good, it is more frequently wielded as a weapon, sharpened by unscrupulous entities exploiting its vast reach and influence. The promise of a globally connected community seems to be overshadowed by its darker realities.

    ---

    As a person, I believe that we need to choose things as a community. I do not believe in the 'BDFL'...the Benevolent Dictator For Life. Graydon Hoare, creator of Rust, wrote an article just recently about how things would have been different if they had stayed BDFL of Rust. From my position the BDFLs we currently have on this planet really suck. Not just politically, but even in tech. I don't think that path is good for society. It might work in specific circumstances, but it usually fails, and when it does, people get hurt. Badly.

    So, with that in mind, I've been working on a polling feature for Lemmy. I seriously doubt I'll be done with it soon, but hopefully FB takes a while longer to implement federation. I understand there's a desire for me, or the other admins to just make a decision, but I really don't like doing that. If it comes down to it, I will implement defederation to start with, but I will still be holding a vote as soon as I can get this damn feature done.

    ---

    [^1]: http://web.archive.org/web/20220120004921/https://www.washingtonpost.com/technology/2021/10/25/what-are-the-facebook-papers/ [^2]: http://web.archive.org/web/20220119204203/https://www.washingtonpost.com/technology/2021/10/25/mark-zuckerberg-facebook-whistleblower/ [^3]:https://web.archive.org/web/20181016003104/https://www.nytimes.com/2018/10/15/technology/myanmar-facebook-genocide.html [^4]: https://www.wsj.com/articles/facebook-instagram-kids-tweens-attract-11632849667?mod=article_inline [^5]: https://www.wsj.com/articles/facebook-algorithm-change-zuckerberg-11631654215?mod=article_inline [^6]: https://www.facebook.com/about/crisisresponse/ [^7]: https://developers.facebook.com/blog/post/2021/10/18/peeking-behind-the-scenes-of-facebook-open-source/ [^8]: the website actually uses Inferno, but from what I can tell it was forked directly from React, judging from the actually documentation and references in the repo.

    21
    Flow testing with Turbine
    code.cash.app Flow testing with Turbine

    Say hello to Turbine 1.0, our library for testing kotlinx.coroutines Flow and more.

    Flow testing with Turbine
    0
    Rewriting the Ruby parser
    railsatscale.com Rewriting the Ruby parser

    The Ruby and Rails Infrastructure team at Shopify exists to help ensure that Ruby and Rails are 100-year tools that will continue to merit being our toolchain of choice.

    Rewriting the Ruby parser

    Shopify wrote a new hand-written recursive descent parser. This looks like it will be a great improvement to the Ruby ecosystem!

    0
    Dynamic Kotlin with Zipline
    code.cash.app Dynamic Kotlin with Zipline

    We want the web platform’s velocity for our other client platforms!

    Dynamic Kotlin with Zipline
    0
    McDonald’s Just Dropped a Brand New Game Boy Game in 2023
    retrododo.com McDonald's Just Dropped A Brand New Game Boy Game In 2023

    McDonald's has just released a brand new Game Boy Color game that plays on actual hardware in 2023. Yes, you read that correctly.

    McDonald's Just Dropped A Brand New Game Boy Game In 2023
    0
    Database optimization changes

    I'm trying to get the instance to run better, so I just adjusted the database pooling to hopefully make things run more stable. Let me know if it made stuff worse 😂

    0
    Community Request Thread

    Please comment with what communities you would like to be added here.

    For mod creation I need both the url style name (experienced_devs) and the Display name (Experienced Devs)

    10
    Kotlin goes WebAssembly!

    Has anyone used WASM with Kotlin yet? I still haven't had a chance to check out Multiplatform at all (haven't really had a need).

    0
    Welcome to programming.dev

    Welcome to the community!

    My name is Tyler Thrailkill (@snowe or @snowe2010 on almost every site). I am currently the main mod at r/experiencedDevs on Reddit, and am starting this site up in the hopes that we can make a collective developer community free from VC influence. This is partially because of the recent API changes Reddit has declared, but also because developers are the ones that can most likely make a community like this succeed.

    It will probably not go well, I understand that. It will probably be crazy expensive. I understand that. I do hope that the community is able to work together to actually make this a success though.

    I've started by creating 3 communities:

    meta is for discussions about programming.dev itself. I think this is one of Stack Overflows best ideas (was it their idea?), because it allows for incremental improvement as a collective group. Please use this to discuss things you think need to change about the site.

    Programming is for general purpose programming discussions. This is an analogue to /r/programming on reddit.

    Finally, Experienced Devs is an analogue to the /r/experiencedDevs sub that I currently moderate on Reddit. I hope to pull some of my mods over from there, but we're still talking about it because we don't even know if lemmy is built to handle the traffic that this site could generate.

    I will be creating several more meta posts in the coming days, so be on the lookout for those. Thank you for reading!

    0
    snowe snowe @programming.dev

    I'm a staff software engineer at Sunrun, the USA's largest residential solar installer.

    I mostly work with kotlin, but also java, python, ruby, javascript, typescript. My hobby is picking up new hobbies. Currently bird photography and camping.

    Posts 17
    Comments 786