And no smartphone in your pocket, of course.
- 3 Posts
- 10 Comments
nikaro@jlai.luto Privacy@lemmy.ml•Privacy@lemmy.ml: An open source two factor auth app that syncs keys between devices?18·1 year agoYou can use KeePassXC (with a dedicated vault or not), synced by another mean (Nextcloud, Syncthing, Git, etc.).
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/
Can you explain it to me like i’m a 10 yrs old (which i’m not 🙄), then?
Except the ecosystem, how is terraform better than opentofu? As far as i know, currently they still are almost identical.
nikaro@jlai.luto Python@programming.dev•[Answered] Typehints for functions that have variable signatures4·2 years agoNice! It looks like the best solution out there.
nikaro@jlai.luto Python@programming.dev•[Answered] Typehints for functions that have variable signatures4·2 years agoPython >= 3.10 version:
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:
def foo(return_more: bool) -> tuple[DataType, MoreDataType | None]: ... if return_more: return data, more_data return data, None
Or if
data
is adict
, just update it withmore_data
:def foo(return_more: bool) -> dict[str, Any]: ... if return_more: return data.update(more_data) return data
nikaro@jlai.luOPto Python@programming.dev•Type hinting in modern Python: The Protocol class1·2 years agoThe difference is that with
Protocol
you can define which method presence you want to ensure. Like i said: custom vs. generic.
nikaro@jlai.luOPto Python@programming.dev•Type hinting in modern Python: The Protocol class1·2 years agoFrom what i understand,
Protocol
is for custom interfaces that you define (this object must havedo_x()
method), while ABCs are generic (this object is iterable).
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 :-)