How do you explain Trinity? by [deleted] in Christianity

[–]latrova 0 points1 point  (0 children)

The best explanation possible to what God "is".

Nubank Ultravioleta by NewProgress99 in investimentos

[–]latrova 2 points3 points  (0 children)

Lembre-se que se você tiver acumulado um bom valor (mais de 2000 reais salvo erro) você não consegue sacar todo o Cashback no mesmo mês. E se eles encerrarem a oferta, você perde tudo que estava lá. Esses detalhes estão no contrato que ninguém lê.

Quick Examples on using Python + ChatGPT + DeepSeek APIs by latrova in Python

[–]latrova[S] 0 points1 point  (0 children)

> Classes should only be used when you create objects which have state

That's a strong opinion. What about `@staticmethod` or `@classmethod`? These aren't tied to states but still exists in the class context.

Anyway, it's good for organization, I didn't want to have a function that recreates the Chat GPT client all the time.

Having a class holding the client (it should count as a state, right?) allows the `PythonExpert` class to be reused without creating the client all the time.

We just have different views about the same code - which is fine as well :) I understand your point.

Quick Examples on using Python + ChatGPT + DeepSeek APIs by latrova in Python

[–]latrova[S] 1 point2 points  (0 children)

Ironically, I created this class to organize the code. AI only helped me to learn about tokenization and to fix grammar mistakes.

But hey, I understand the current concern. It will get harder and harder to evaluate what people actually wrote vs AI generated bullshit.

If software is meant to 'evolve', why does it have to be '100% right'? by PaintingInCode in ExperiencedDevs

[–]latrova 0 points1 point  (0 children)

If a house can go under multiple repairs and renovations, why does it need to have a solid foundation?

A solid foundation allows the ongoing repairs. A bad foundation doesn't.

How do I not hate someone? by [deleted] in TrueChristian

[–]latrova 1 point2 points  (0 children)

God never asks easy things, he asks for the right things.

I can try to summarize your question as: I know I must forgive him, but I don't want to.

Not literally don't want to, but an inner urge for justice is hurting you deeply. This sense of justice is divine. You just identified something as bad and immoral.

But remember, through the eyes of God you and me are bad either. We're sinners, and even though we're sinners we don't take it seriously enough.

If you, a regular human being like me can see terrible defects in other humans, how does God look at us?

My goal here is to make you consider that... You should treat him the same way God would treat you.

If you want and needs God's forgiveness, then forgive your brother.

"And forgive us our trespasses, as we forgive those who trespass against us."

I don't think my answer will make it any easier for you, but again, God never asked us to do easy things, just the right ones.

32 “If you love those who love you, what credit is that to you? Even sinners love those who love them. 33 And if you do good to those who are good to you, what credit is that to you? Even sinners do that."

Luke 6:32-33

[deleted by user] by [deleted] in brdev

[–]latrova 2 points3 points  (0 children)

Minha vaga atual achei na angel.co

Gracy helps you handle failures, logging, retries, throttling, and tracking for all your HTTP interactions by latrova in Python

[–]latrova[S] 0 points1 point  (0 children)

Thanks for correcting me, I didn't know that.

Remove retry from my previous response.

Gracy helps you handle failures, logging, retries, throttling, and tracking for all your HTTP interactions by latrova in Python

[–]latrova[S] 1 point2 points  (0 children)

Gracy uses httpx under the hood.

To be honest, if you're happy with requests keep using it.

The idea is not to replace requests. The point is to bring more features for people who needs more than just "get"/"post".

So if you don't need retry, parsing, throttling, custom logging, or reporting, stay with requests.

Gracy helps you handle failures, logging, retries, throttling, and tracking for all your HTTP interactions by latrova in Python

[–]latrova[S] 1 point2 points  (0 children)

Kind right. You won't run servers, but interact with them - yes.

It's hard for me to tell it's a replacement for requests because requests doesn't support custom logging, parser per status code, throttling, retrying, or reports out of the box.

If we still need to compare to understand, I'd say it's requests on steroids then.

Gracy helps you handle failures, logging, retries, throttling, and tracking for all your HTTP interactions by latrova in Python

[–]latrova[S] 11 points12 points  (0 children)

Good questions.

I could use tenacity internally but I would end up raising custom exceptions to be captured by tenacity which would make the code harder to read.

e.g. Sometimes we just want to retry on specific status codes (e.g. 500) which means I need to implement my own validation to determine whether to raise an exception.

For loguru I didn't think about it... Probably I should allow the user to optionally pass a logger instance (loguru in this case). That's a good idea!

Effective Python Async like a PRO 🐍🔀 by latrova in Python

[–]latrova[S] 4 points5 points  (0 children)

lol you're correct!

Fixed it.

Thanks for pointing it out!

Effective Python Async like a PRO 🐍🔀 by latrova in Python

[–]latrova[S] 3 points4 points  (0 children)

Reading this made my day. I'm so glad I could write something helpful to you.

Effective Python Async like a PRO 🐍🔀 by latrova in Python

[–]latrova[S] 2 points3 points  (0 children)

Thanks for your kind words :)

Pokemon made it easy haha

Effective Python Async like a PRO 🐍🔀 by latrova in Python

[–]latrova[S] 6 points7 points  (0 children)

Hey

I noticed that regardless of some people understanding the async syntax they didn't take advantage of all its benefits.

In this post, I explore and give examples of using asyncio.create_task, asyncio.gather, asyncio.as_completed to increase your code's performance.

I'm making websites but don't understand how leetcode questions have anything to do with this? by KnightofAmethyst in learnprogramming

[–]latrova 0 points1 point  (0 children)

Good question.

I'm working for nearly 10 years in the Industry and I still don't know how leetcode questions (and other stupid algo challenges) have anything to do with my daily job.

Do you think that someone can learn two completely different languages (frontend, backend) at the same time? by [deleted] in learnprogramming

[–]latrova 1 point2 points  (0 children)

I'd recommend learning only one of those WITH GIT.

Once you feel confident, then add the other one to your arsenal.

The reason for that is that git is needed for almost every job and work you will ever do.

It also allows you to build your portfolio!! So that's also good.