Skip Navigation

Posts
260
Comments
773
Joined
2 yr. ago

  • This is a great idea!

    Motivation

    The Python docs are ill-suited to novices.

    The content of the built-in functions documentation favors precision and correctness over comprehension for beginners. While this style is great for experienced developers who already understand the finer points of Python’s design, the docs are confusing to novice programmers like a 12 year old who is not far on his journey of learning Python.

    This guide is an opinionated and simplified description of Python’s built-in functions.

    My goal is to provide definitions, in plain English, of each built-in function that comes with Python. Along with each definition is an example that is as simple as I can think of. I ran each example against the latest version of Python as of the time writing this guide.

    I want to be able to share this with my 12 year old son or my 10 year old daughter, so that they can understand and use Python. My hope is that this guide also serves others who would like some plain definitions of what the built-in functions do.

    A note for pedants: I am sacrificing precision and exactness in favor of comprehension. That means I will use substitionary language that I think will communicate more clearly than the exact terminology. If you’re looking for that level of precision, please refer to the standard library docs. Those docs are great for that level of clarity.

    For the rest of us, let’s go!

  • That's a nice addition for those that want security over convenience. I wonder why it took them 11 years after this was written to add it.

  • It provides for control over certain functions, but it is underutilized.

  • I like the diversity of sphincter options in unicode and encourage their use. Here are a few of my favorites:



  • This is a web service that returns the ActivityPub data for any URL that returns an ActivityPub message. For instance this post (https://lemmy.ml/post/19589249) returns:

     
        
    {
      "@context": [
        "https://join-lemmy.org/context.json",
        "https://www.w3.org/ns/activitystreams"
      ],
      "type": "Page",
      "id": "https://lemmy.ml/post/19589249",
      "attributedTo": "https://lemmy.ml/u/hongminhee",
      "to": [
        "https://lemmy.world/c/fediverse",
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "name": "BrowserPub: A browser for debugging ActivityPub and the ⁂fediverse",
      "cc": [],
      "mediaType": "text/html",
      "attachment": [
        {
          "href": "https://podcastindex.social/@js/113011966366461060",
          "mediaType": "text/html; charset=utf-8",
          "type": "Link"
        }
      ],
      "sensitive": false,
      "published": "2024-08-26T11:43:09.033551Z",
      "language": {
        "identifier": "en",
        "name": "English"
      },
      "audience": "https://lemmy.world/c/fediverse",
      "tag": [
        {
          "href": "https://lemmy.ml/post/19589249",
          "name": "#fediverse",
          "type": "Hashtag"
        }
      ]
    }
    
      

    Prepend https://browser.pub/ to the URL you want to check: https://browser.pub/https://lemmy.ml/post/19589249

  • So this is a web service that returns the ActivityPub data for any URL that returns an ActivityPub message. For instance this post (https://lemmy.ml/post/19589301) returns:

     
        
    {
      "@context": [
        "https://join-lemmy.org/context.json",
        "https://www.w3.org/ns/activitystreams"
      ],
      "type": "Page",
      "id": "https://lemmy.ml/post/19589301",
      "attributedTo": "https://lemmy.ml/u/hongminhee",
      "to": [
        "https://programming.dev/c/activitypub",
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "name": "BrowserPub: A browser for debugging ActivityPub and the ⁂fediverse",
      "cc": [],
      "mediaType": "text/html",
      "attachment": [
        {
          "href": "https://podcastindex.social/@js/113011966366461060",
          "mediaType": "text/html; charset=utf-8",
          "type": "Link"
        }
      ],
      "sensitive": false,
      "published": "2024-08-26T11:44:00.478179Z",
      "language": {
        "identifier": "en",
        "name": "English"
      },
      "audience": "https://programming.dev/c/activitypub",
      "tag": [
        {
          "href": "https://lemmy.ml/post/19589301",
          "name": "#activitypub",
          "type": "Hashtag"
        }
      ]
    }
    
      

    https://browser.pub/https://lemmy.ml/post/19589301

  • Some key quotes from the article:

    It’s perfectly reasonable for a consumer cloud storage provider to design a system that emphasizes recoverability over security. Apple’s customers are far more likely to lose their password/iPhone than they are to be the subject of a National Security Letter or data breach (hopefully, anyway).

    I wish that companies like Apple could just come right out and warn their users: ‘We have access to all your data, we do bulk-encrypt it, but it’s still available to us and to law enforcement whenever necessary’.

    So what is the alternative?

    Well, for a consumer-focused system, maybe there really isn’t one. Ultimately people back up their data because they’re afraid of losing their devices, which cuts against the idea of storing encryption keys inside of devices.

    You could take the PGP approach and back up your decryption keys to some other location (your PC, for example, or a USB stick). But this hasn’t proven extremely popular with the general public, because it’s awkward — and sometimes insecure.

    Alternatively, you could use a password to derive the encryption/decryption keys. This approach works fine if your users pick decent passwords (although they mostly won’t), and if they promise not to forget them. But of course, the convenience of Apple’s “iForgot” service indicates that Apple isn’t banking on users remembering their passwords. So that’s probably out too.

  • This is a consistent problem for me

  • Conda is their primary focus, but they support well more than conda packages.

  • I'm going to need more than a week to process this

  • Lemmy needs a feature where only subscribers can vote by default and mods can allow non-subscribers to vote it they want to.

  • Permanently Deleted

    Jump
  • This is great!

    @burntsushi@programming.dev, do you know is Astral is working with prefix.dev and their Pixi project? They seem to now have overlapping concerns.

  • Good info! Thanks!

    I wonder if Deno will expand compatibility further

  • Permanently Deleted

    Jump
  • Dude, you're not lost. You have highly specialized requirements that the vast majority of people don't have so most people won't be able to help. But you definitely are ahead of the average Linux user here.

    I'm one of the people that can't help you, but it looks like some others here have good suggestions

  • What self-hosted services did you set up passkeys on? How did setting it up go?

  • Rust @programming.dev

    What are you all doing with Rust?

    Git @programming.dev

    Popular git config options

    Opensource @programming.dev

    Porting Strategy - Redox - Your Next(Gen) OS

    Operating Systems @beehaw.org

    Porting Strategy - Redox - Your Next(Gen) OS

    Rust @programming.dev

    Porting Strategy - Redox - Your Next(Gen) OS

    SQL @programming.dev

    SQL for the Weary

    Rust @programming.dev

    Learn Embedded Rust on Espressif's ESP32-C3-DevKit-RUST-1 Dev Board

    Machine Learning @programming.dev

    A One-Stop Shop for Principal Component Analysis

    Rust @programming.dev

    Rust For Lemmings - Code Together | "The Rust Programming Language" book club meeting on twitch

    Learn Programming @programming.dev

    Rust For Lemmings - Code Together | "The Rust Programming Language" book club meeting on twitch

    Android @programming.dev

    Unattended updates for everyone, 1.19 is here | F-Droid - Free and Open Source Android App Repository

    Android @lemdro.id

    Unattended updates for everyone, 1.19 is here | F-Droid - Free and Open Source Android App Repository

    Learn Programming @programming.dev

    Julia Programming Tutorial | An effective tutorial for science and engineering

    Julia @programming.dev

    Julia Programming Tutorial | An effective tutorial for science and engineering

    Machine Learning @programming.dev

    Spark vs Presto: A Comprehensive Comparison

    Data Engineering @programming.dev

    Spark vs Presto: A Comprehensive Comparison

    Machine Learning @programming.dev

    Offline listening and speaking bot

    Machine Learning @programming.dev

    My Target Audience | The Two Culture Problem

    Julia @programming.dev

    My Target Audience | The Two Culture Problem

    Julia @programming.dev

    This month in Julia world - 2024-01