twoframesperminute

joined 11 months ago
[–] [email protected] -4 points 8 months ago (1 children)

@SpaceTurtle224 you're "looking for" and easy answer to a question you can answer yourself easily. Your "question" did not even specify what your looking for.

[–] [email protected] -1 points 9 months ago (1 children)

@ericjmorey Except it's outdated. Here, I'll write a new paragraph for you: "When you start to learn Python, start with Python 3.10. If you at some point come across an codebase using older versions, you'll have learned enough to get to grips with the differences outlined in Python documentation." There, that's all you need to know.

[–] [email protected] -1 points 9 months ago (3 children)

@ericjmorey Why are you copying part of an article you've already linked to? I'm not sure what your point is.

My point is very simple: don’t spend any time on even considering Python 2. The fact the author spent so much time on it shows it's quite an old guide. (The dates in the git repo confirms this.)

[–] [email protected] -1 points 9 months ago (7 children)

@ericjmorey any guide that even mentions Python 2 is probably outdated and should be met with caution.

[–] [email protected] -1 points 9 months ago (1 children)

@Chais from module import \* should almost never be used anyway, so...

[–] [email protected] 1 points 9 months ago

@Sigmatics Habits can be unlearned over a few generations. Doesn't mean in becomes practical all if a sudden. It's just messy to say "I'll do this tomorrow" when "tomorrow" might mean "before I go to bed".

"See you Monday!"
"Eh, before or after sleep on Monday?"

It's just not viable. It requires us to think differently about what a date is, returning the original issue: different people living at different dates.

[–] [email protected] 4 points 9 months ago (2 children)

@Sigmatics you can have everyone on the same time zone and still have different day/night cycles. It just means you have to get up at 14:00 and go to sleep at 5:00. The big problem with this is that the date-switch happens for everyone at the same time, which means you might have breakfast on Thursday and lunch on Friday. That makes it terribly inconvenient, and therefore probably unviable.

[–] [email protected] -4 points 9 months ago (1 children)

@BeardedGingerWonder will you adapt your time to be 7 hours later?

Thought so.

[–] [email protected] 0 points 9 months ago (1 children)

@sugar_in_your_tea Using asserts in any code except testing is frowned upon, afaik. You should use specific exceptions instead of vague unlabeled assertion errors.

You also seem to think that you're not allowed to use exception to communicate the fact a check failed. If that's the case, you're seriously underusing the power of exceptions.

It sounds a lot to me like you don't even want to use Python or think it shouldn't be used for anything serious. Why then even argue about it?

[–] [email protected] 0 points 9 months ago (1 children)

@sugar_in_your_tea I don't think we should change any functionality when it comes to exception handling. Code based documentation would be great for type checking and auto-generated docs, but they can be done using annotations, not changed interfaces.

Monads are already possible, but should not be the normal way to code either. It's clunky and difficult to understand. It might work great for some scenarios, but doesn't for many others.

view more: next ›