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/)NI
Posts
3
Comments
21
Joined
2 yr. ago
  • Disclosure: i work at Infomaniak.

    I don't think Google was saying "come get your ethical email", more like "get your free email". Infomaniak is making money by selling services. The free tier is just there as a loss leader. Google was already selling ads. So i don't think it compares.

    BTW, Infomaniak is already 30 years old :-)

  • [email protected]: An open source two factor auth app that syncs keys between devices?

  • Certainly not the best, but codecademy is decent. After that, it should be enough for you to learn more deeply from official Python documentation, actual Python code base (from OSS repositories), and specific subjects from blog articles.

    But it will highly depend on what type of content you like. For example some people may prefer books over interactive courses. If this is your case, i think this one is recognized as a very good one: https://learnpythonthehardway.org/python3/

  • DevOps @programming.dev
    nikaro @jlai.lu

    OpenTofu ecosystem?

    I'm looking forward to switch from Terraform to OpenTofu, but i have the impression that the ecosystem around it didn't catch up yet.

    Did any of you already did the switch? If so, what do you use as a replacement for Terraform Cloud, the VSCode extension and/or terraform-ls?

    For Terraform Cloud, the are many options: scalr, spacelift, etc. Spacelift looks nice as it can also run Ansible, but Scalr seems to have a better and simpler UI.

    But on the editor side, there doesn't seem to be much... the VSCode extension has been forked but it still seem to be in its early days (cf. this issue: it still uses terraform-ls under the hood, which itself looks for the terraform binary).

  • Python >= 3.10 version:

     undefined
        
    def foo(return_more: bool) -> DataType | tuple[DataType, MoreDataType]: ...
    
      

    But i would definitely avoid to do that if possible. I would maybe do something like this instead:

     undefined
        
    def foo(return_more: bool) -> tuple[DataType, MoreDataType | None]:
        ...
        if return_more:
            return data, more_data
       return data, None
    
      

    Or if data is a dict, just update it with more_data:

     undefined
        
    def foo(return_more: bool) -> dict[str, Any]:
        ...
        if return_more:
            return data.update(more_data)
       return data
    
      
  • Python @programming.dev
    nikaro @jlai.lu

    Type hinting in modern Python: The Protocol class

    codebeez.nl Codebeez

    Codebeez zijn wij met zijn allen samen. Wij vormen de cultuur. Op onze eigen manier, die we gezamenlijk bepalen. Alles draait bij Codebeez om onze mensen, hun plezier, hun groei, focus op ons vakgebied en de kwaliteit van wat wij doen. Onze Beez eerst.

    Codebeez

    This is like Interface in Go (or Java, i don't speak Java but the article say so).

  • The author seems fully aware of the existence CDKTF, and by invest i think he means that they should privilege it instead of HCL. The point is that if you learn Python, it is reusable somewhere else. If you learn HCL, you learned a vendor language, it is only used in Terraform.

  • The author is actually fine with CDK, since it uses an actual programming language. That's the point of the article.

    By the way, on a personal note, Terraform is still bad to my eyes since their license change.

  • DevOps @programming.dev
    nikaro @jlai.lu

    DSLs are a waste of time

    TLDR: terraform bad, pulumi good