I'm too lazy to check this myself this Sunday, so I'll just ask...
how much of a performance penalty is paid if someone adds #Python imports statements inside a helper function body so it can be just copied and pasted around?
I guess the optimal thing would be to add the imports at the top of a module with the helpers so they occur only once when one imports the function, instead of being evaluated each time the function is called, but, in the context of didactic examples it is handy for the learner to have the helper function together with the example... but then I could move the imports to the top... but then I'm lazy, and... so many decisions...
My annual advice as someone who turned a disastrous lifestyle around: if you try to start a dozen new habits on January 1st, you will get overwhelmed and fail all of them.
If you have a list of things like “shower every day”, “go to bed before midnight”, “keep up my duolingo streak” etc, pick ONE, the most urgent one that will improve your life the most, and don’t worry about the others until you’ve gotten the hang of it. Build up to your resolutions over the year
Mastodon is financed by crowdfunding instead of venture capital not because we don't know that venture capital exists, not because we don't have bills to pay, and not because venture capital isn't willing to give money to new social media platforms. VCs don't want a sustainable business, they want a big exit. Every VC-backed business is on a timer to deliver or die.
Reparei que o pessoal ainda tá chegando por aqui, a maioria pela mastodon.social
Foi por onde eu cheguei também no Fediverso em 2020, mas como eu já disse aqui, o Mastodon só ficou atrativo pra mim quando passei por uma instância brasileira (no meu caso foi a Ursal.zone). É o que eu recomendo pros novatos. O @santiago fez uma lista bacana de instâncias brasileiras no fediverso, que eu recomendo vocês darem uma olhada. https://brasil.rednet.social/
De app pra celular Android, recomendo o Moshidon! ✌️
I don’t usually measure the impact of my work with numbers, but I did the math and I had a hand in 655 successful internships in 6 years working with Outreachy. That blows my mind.
Eterno estudante migrando de carreira para desenvolvimento de software. Viciado em estudar tecnologia. Casado, pai de gatos.- Análise e Desenvolvimento de Sistemas: finalizado!- Python dev, amante de cinema, literatura e artes.#studytechbr🗣️ : 🇧🇷 🇬🇧📚 : 🇳🇱 🇮🇹ALTCapa: Imagem de fundo preto com desenhos brancos minimalistas de personagens do Studio Ghibli, sendo o central o Sem Face.Avatar: homem de costas vestido de azul com mochila verde e flores amarelas saindo dela. Fundo verde. Cores de baixo contraste.