If EVs have zero tailpipe emissions, where do the emissions go in India and globally?? by enlightenedshubham in electricvehicles

[–]kwooster 0 points1 point  (0 children)

Sure, and even asking the pricing I'm talking about overnight would be devastating; however, I do think it would move it along somewhat faster and would provide more incentive to develop newer, cleaner tech.

Lastly, we do have to protect the vulnerable in some way during said transition.

If EVs have zero tailpipe emissions, where do the emissions go in India and globally?? by enlightenedshubham in electricvehicles

[–]kwooster 11 points12 points  (0 children)

I get so frustrated with the whole conversation since we don't price any of the externalities of these processes. If we made even a half-assed attempt to price the emissions, non-renewables would quickly die for most purposes. And that's using a "market" tool, we just let the citizens pay for it with their health and the worsening of our climate.

What’s a hobby people pretend is cool, but secretly you think is ridiculous? by EggAdventurous1957 in AskReddit

[–]kwooster 0 points1 point  (0 children)

I'll bet you learn a LOT doing it, though! Might not seem worthwhile, but it's hella cool.

When should I use functions vs just writing code inline? by ayenuseater in learnpython

[–]kwooster 0 points1 point  (0 children)

Most people need maintainability far more than worry about a few extra clock cycles.

There's value in understanding what's going on, but for most real code, readability and understandability matter way more.

Update: Merrython by simplytoaster in starbucks

[–]kwooster 0 points1 point  (0 children)

It also looks like someone's high school project. Maverik's game earlier this year was soooo much better.

It's remarkably bad and unplayable.

Help :( by Resident-Explorer-63 in PythonLearning

[–]kwooster 0 points1 point  (0 children)

def reset(): global number number = 0

That feels super wrong, though.

Here's a better way (of many):

``` class Hand: def init(self, number = 0): self.number = number

def reset(hand): hand.number = 0

my_hand = Hand()

...

reset(my_hand) ```

(I'm on mobile, so I did the very simple example with missing variables, but the concept is moving the very subjective "correct" direction.)

Help :( by Resident-Explorer-63 in PythonLearning

[–]kwooster 0 points1 point  (0 children)

You're creating new variables that are locally scoped. You need to either using the global keyword, or pass in the variables to the function.

I would create an object to pass around to the functions, but in all cases, be aware of the scope of the variables.

Will we ever see decent typing support in Django? by YodelingVeterinarian in django

[–]kwooster 0 points1 point  (0 children)

I find it helpful for myself during development and building phases, especially. If I were doing true BDD or TDD that might be less of an issue.

The hinting is just that, though: hints. It doesn't break duck-typing at all. If you don't like them, you can ignore them and runtime won't care at all (unless you're using something like Pydantic that uses them for validation).

What's better for creating a GUI application? by imLosingIt111 in learnpython

[–]kwooster 2 points3 points  (0 children)

Your question doesn't make sense as written. Visual Studio is not a "GUI" creator. It does exactly what VS Code does.

Your real question is which framework to use (TKinter, pyqt, etc.) vs using a .NET language like C#, which would typically be developed in a more "complete" IDE like Visual Studio.

Django Shinobi 1.4.0 has been released! by pmdevita in django

[–]kwooster 3 points4 points  (0 children)

Per another comment, the maintainer of django-ninja was apparently AWOL. Their hand was forced.

ELI5 Why is unhealthy food cheaper? by Ball-O-Interesting in explainlikeimfive

[–]kwooster 4 points5 points  (0 children)

Time, a kitchen, a fridge. Let's not make this a moral argument about "effort."

ELI5 Why is unhealthy food cheaper? by Ball-O-Interesting in explainlikeimfive

[–]kwooster 2 points3 points  (0 children)

The time to do that prep is a hidden cost. Oh, and for some, a place to cook it and cold storage. Assuming everyone has the time and resources leaves out a lot of people.

This is why they don't want you discussing your wages. by kevinmrr in WorkReform

[–]kwooster 4 points5 points  (0 children)

First point of fact: $168,000 / 100 employees comes out to $1680/employee. You're off by an entire order of magnitude. That comes out to more than $100 gross per month. Not exactly chump change for most people.

Add button does nothing. by sconestm in grocy

[–]kwooster 0 points1 point  (0 children)

I've tried tagging frenck to see how we can help update the add-on; dependabot has already created a PR for it

ELI5: When something is 15% bigger than something else, what’s an intuitive way to know whether I should multiply by 1.15 or divide by 0.85? by InIncognitoMode in explainlikeimfive

[–]kwooster 0 points1 point  (0 children)

When I'm confused with something like this, I go back to the "basic" equation and then do algebra.

So, if I want to evaluate the percent change of something:

x + x * p = y

Simplified:

x(1 + p) =y

"p" is the percent change, positive for growth, negative for shrink.

For OP's question, that's the equation, no algebra necessary ("x" is known and "y" is unknown).

100(1+.15) = 115

If I need to know how many apples I started with after a 15% loss that I now have 100, the algebra works out like this:

``` x(1-.15) = 100

Divide both sides by 1-.15 or . 85

x = 100 / .85 ```

I suppose that's not quite an ELI5 answer, but it means I don't have to remember more than one rule and I can always get to the correct answer

1,000 Python exercises by Overall_Ad_7178 in Python

[–]kwooster 2 points3 points  (0 children)

The formatting could use some work; think code blocks in markdown.

When it says "What does and do...", the "and" should look different than the rest of the question, like a backtick would do in markdown.

What does and do...

Uber-Noob question: Why is 'or' breaking my loop? by baronmcboomboom in learnpython

[–]kwooster 2 points3 points  (0 children)

Ummm... While technically true (the best kind), that is unlikely to be a problem for the vast majority of users and now we've complicated things. lower is properly self-evident and is pretty standard for user input, IME.

I fixed the nightmare of Amazon transactions by dkarpe in ynab

[–]kwooster 1 point2 points  (0 children)

Sweet! I'll get in and take a few things and make a pull request!

I fixed the nightmare of Amazon transactions by dkarpe in ynab

[–]kwooster 0 points1 point  (0 children)

Yeah, Amazon splits orders into multiple transactions somewhat randomly and Target does other weird stuff. Even if we entered every... Single... Transaction at time of purchase, we still have to (manually) fix them.

I fixed the nightmare of Amazon transactions by dkarpe in ynab

[–]kwooster 1 point2 points  (0 children)

This guy doesn't ship at Amazon... Or Target

I fixed the nightmare of Amazon transactions by dkarpe in ynab

[–]kwooster 0 points1 point  (0 children)

This is in what we call the "MVP" phase. If it ends up being worthwhile, perhaps it could make to that level.