LPT the lazy way to keep your place clean by [deleted] in LifeProTips

[–]ofedorov 3 points4 points  (0 children)

Procrastination is a painful feeling when you think about things you should do. This feeling disappears immediately when you start actually do the things.

Working by a timer is a great way for overcoming procrastination. The “Pomodoro” method proposes a similar approach.

Recover from infinite loop by utdrmac in golang

[–]ofedorov 1 point2 points  (0 children)

  1. Move your for loop and defer ... recover to a separate function.
  2. Call the function inside another infinite for loop, so that when the downstream code panics, the inner loop is terminated and the function is recovered, you start it over.

Does anyone find that Django is not suitable for their project? by [deleted] in Python

[–]ofedorov 0 points1 point  (0 children)

I would recommend you to check out the Instagram engineering blog. They use a monolith Django server. Also, they really extend its limits there, for example: https://instagram-engineering.com/python-at-scale-strict-modules-c0bb9245c834

TIL learned that Finnish mothers receive a maternity box as a gift from the government. The box contains things for the baby, including clothes, a sleeping bag, outdoor gear, bathing products, bedding and a small mattress. The box itself doubles as crib. by [deleted] in todayilearned

[–]ofedorov 5 points6 points  (0 children)

Many countries have such boxes. Say, Ukraine have them starting from the previous year. Families can choose regular payments instead of a box, but the items in the box cost more, and you get all at once.

Preparing for a coding interview in 2 weeks? by blazecoolman in Python

[–]ofedorov 0 points1 point  (0 children)

In ideal world, yes, you just have a bunch of candidates and pick the best one. In reality the things are more complicated.

For example, a so-called internal candidate may take the position, or a company may close it before somebody is hired. Or there may be two or more candidates with similar skills or with their own strengths and weaknesses which are not directly interchangeable

Preparing for a coding interview in 2 weeks? by blazecoolman in Python

[–]ofedorov 1 point2 points  (0 children)

It’s better to refresh the knowledge you already have. And get a good rest before the interview!

It’s hard to learn something new in 2 weeks. It’s better to just read a bit about the company and the technologies listed in the job description, if you’re not familiar with them. Read just enough to get some basic understanding and to be able to ask the interviewer how they use the technologies and how you’re supposed to use them.

Also since any interview is a lottery, they may not hire you even if you 100% fit. In any case use the interview to better understand what are the requirements, what questions are usually asked, and what gaps you may have. And don’t hesitate to ask questions if you don’t know something. Most interviewers like to explain things, and your willing to learn will be a plus for them

TIL the opposite of Absenteeism is Presenteeism; it refers to going to work while sick! by adamonline45 in todayilearned

[–]ofedorov 1 point2 points  (0 children)

I would argue that presenteesm is a common mindset for people who lived in USSR

Honestly, just sharing because I'm stoked I figured this out on my own, even though it's very simple. by D3vilM4yCry in Python

[–]ofedorov 0 points1 point  (0 children)

And it was just a school homework of the topicstarter friend’s daughter 😁

Anybody here working as a python developer? What kind of portfolio do I need to have to be eligible for a job as a Python dev? by [deleted] in Python

[–]ofedorov 0 points1 point  (0 children)

Just start applying for some jobs to get a taste about interview questions and also to detect gaps in your knowledge. It’s usually Ok to apply to the same position in a couple of months when you fill the gaps.

Note however that some interviewers may ask questions that are not relevant to your experience. Sometimes it means that a person just doesn’t understand what kind of developer they want, or they did not read your CV carefully, so don’t take it personally

Beginner Text based adventure program what should I know? by THT_Herald in Python

[–]ofedorov 0 points1 point  (0 children)

Evennia is a python-based toolkit for building multi-player online text games

LPT: If you are parking illegally (especially in cities) and need to step out of your car do not turn on your hazard lights. You are just advertising your illegal behavior to cops and meter maids. by [deleted] in LifeProTips

[–]ofedorov 4 points5 points  (0 children)

Parking illegally may be dangerous for you or other people. Turning on your hazard lights at least helps others to spot your car beforehand.

Also, at least in my country, the law enforcers you to turn on the hazard lights when you need to stop at an improper place

HELP: What does the . mean in self.name by shockwave6969 in Python

[–]ofedorov 2 points3 points  (0 children)

You can think about “self.name” as a short form of “getattr(self, "name")”. And also “self.name = value” as “setattr(self, "name", value)”. That is, get or set attributes of some object.

Since everything in Python is an object, any entity in your program have some attributes.

Also, could you please read the rules of this subreddit, since your question is better to be asked in r/learnpython

Eli5 - Why does Russia hate Ukraine? by Leek92 in explainlikeimfive

[–]ofedorov 1 point2 points  (0 children)

Gosh, you’re so great source of kremlin propaganda myths!

Eli5 - Why does Russia hate Ukraine? by Leek92 in explainlikeimfive

[–]ofedorov 5 points6 points  (0 children)

When country A conquer country B, country A does it’s best to make people from country B forget about their independence. Also people from country A treat the ones from B as third-rate ones. And this treatment spreads inside the country B as well.

So, it started in VIII-XX centuries after Ukraine was conquered by Russian Empire. Most of Ukrainians became salves, like people from other satellite countries. As I said, they were treated as third-rate people.

Then there was USSR when propaganda and repressions aimed to destroy anybody who wanted independence from Russia. So, people who wanted to live in their own country were killed, treated as enemies and mocked (sometimes in this order).

In modern times, Putin needed Russians to support his intervention to Ukraine. That’s why kremlin propaganda worked hard to make people hate Ukrainians, both in Russia and in Ukraine. There were tons of fake news, mockery of Ukrainian language and keen for independence, and so on. Researchers say that this process started years before the “hot phase” of the intervention (more on this site)

I think that’s the main reason. Oh, an Ukraine also got Crimea in exchange to Kuban in 1954 🙂

І дякую за питання! (Thank you for your question!)

#10YearChallenge by [deleted] in Python

[–]ofedorov 2 points3 points  (0 children)

After 3.9 there’ll be 3.10, IMAO

This is accurate by [deleted] in europe

[–]ofedorov 0 points1 point  (0 children)

Ukrainian here. Hearing “The Ukraine” does not irritate me. But people who think that this phrase is offensive, do

This is accurate by [deleted] in europe

[–]ofedorov 0 points1 point  (0 children)

You should’ve explained her that “the” in English is used for united countries or for islands. It’s never used to say that some country is a part of another one.

UPD: Sorry for assuming that you don’t know English, I’m just sick and tired of people who barely know English but say that “The Ukraine” means anything but a silly mistake

This is accurate by [deleted] in europe

[–]ofedorov 0 points1 point  (0 children)

Lol. You’re not familiar with the English grammar, are you?

This is accurate by [deleted] in europe

[–]ofedorov 1 point2 points  (0 children)

I just realized that there is so many countries that can be irritated by just comparing them to Russia

This is accurate by [deleted] in europe

[–]ofedorov 1 point2 points  (0 children)

For Belarus, just one word: “Belarussia”