Skip Navigation

Posts
0
Comments
1,572
Joined
11 mo. ago

  • i think we're talking about different things. you use enforce to mean "validate", i used it to mean "coerce". one of the cases was a command line argument parser that consisted of a single decorator, so you could write

     python
        
    
    @command
    def foo(bar: int, baz: float):
        print(baz * 2 + bar * 3)
    
      

    and call it with $ myfile.py foo --bar 3 --baz 2.2 and it would print 13.4

    another was about creating working protocol buffers from an excel sheet, nested types and enums and oneofs and everything. we used it to parameterize tests of our bluetooth protocol.

  • meanwhile in the b2b world...

    engineer: we have had an experienced technical writer on the team for a year and involved them in every user-facing process, we did six rounds of A/B testing for all documentation and operation, and we've produced a manual which basically qualifies for a pullitzer.

    later...

    it's broken
    is it showing an error?
    idk it's just broken
    what did you do?
    nothing! it just broke
    how did it break?
    we needed it to go faster so we connected it to the 480V line and then it just broke
    it's a 12V device...
    yeah it's an even multiple right?

    i have been on both sides of this exchange.

  • i mean, i'm all for rejiggering the internals. i've personally written at least two libraries that uses type annotations in reverse to force arguments into the correct type, and i feel like that should probably be a separate mechanism to "just call the annotation"

  • the problem is that the language doesn't and can't support one single way to use type annotations without changing fundamental functionality. you can absolutely hook up mypy to your editor for newbies, but once you get on the intermediate level, fighting with mypy takes more code than actually solving the problem.

    also there was that proposed update to mypy that was put on held when it turned out that the maintainers didn't know how annotations are used in the wild.

  • it's simple! it's like the i in stir, or the e in germ, or the u in turn, or the a in earth.

  • looks like monopoly go is a niantic job, so it's probably something like their earlier work pokemon go. but you... catch monopoly men? idk.

    oh, maybe you buy up actual streets

  • if you want to make a new conspiracy, be sure to involve mothman's ass again.

  • i hate you

  • it's pre-internet.

  • ...you just unlocked something it my brain. if it's the video i'm thinking of, the costumes were all this shit-brown color of latex paint that wrinkled uncomfortably as people mowed in them. like, full-body pterodactyl costumes with dick holes.

  • this reads like an ad for dice tower... which i know they wouldn't do because they don't have that kind of audience.

    i stick to susd, which means that i never buy any board games because whenever they review one it immediately goes out of stock.

  • ...did you start watching the minute they uploaded and post this the minute you were done?

  • this depends on where you live, surely. i have open field farms all around me that cooperatively own a slaughterhouse. they sell meat in stores under one brand but you can go to any of the farms and get it directly.

  • no. my first smartphone ran android 1.6 and had a flashlight. may have been a htc-specific thing back then though.

  • and then scientific consensus made him change it. there was a clique of, quote, "patriotic" englishmen who, worried about "foreign influences", kept using the misspelling, but they were very few and very much gone by the time the americans changed their minds.

  • it's got a trigger, don't it? yeet that meat

  • no.

    the discoverer, humphry davy, was english. the name is originally the english "alum" and the latin "ium", which was criticized because names were traditionally constructed from latin roots. european scientists suggested "aluminium", for "element created from alum", but the year after that, when davy published a chemistry book, he spelled it "aluminum". this took hold in britain, but the rest of europe used "aluminium" so they standardized.

    a few years later, when the word first appeared in an american dictionary, only the "num" spelling was added. scientists kept using "-ium" but the general populace went on the dictionary definition until it won out. the "american" spelling was only accepted by american scientists about 110 years after the element was discovered.