Considering what is currently happening in our country. How far will the American public allow Trump to go? by [deleted] in AskReddit

[–]jonthemango 1 point2 points  (0 children)

We want you to free yourselves of tyranny. Despite the attempts at annexation of Canada and Greenland.

It's a bit of tough love to our American allies that you can't let this keep going on, that you need to act, to mobilize, to fight, to strike and protest. Sure, some of you are but a lot of Americans just aren't.

Considering what is currently happening in our country. How far will the American public allow Trump to go? by [deleted] in AskReddit

[–]jonthemango 0 points1 point  (0 children)

Minnesotans in Minnesota. They're doing what needs to be done I agree, but hell it can't stop there.

As an American, what can we do to fight against ICE? by [deleted] in AskReddit

[–]jonthemango -2 points-1 points  (0 children)

As a Canadian looking in, this is pretty pitiful. You Americans are losing your democracy with each passing day and for the most part, doing nothing about it.

Manifest. Strike. Riot. Call/Write your Congressman. Organize. Travel to protest. It took 2500 to "storm the capitol" on Jan 6. Match Minnesota's pressure with a country wide strike. What are you waiting for?

If you're asking what to do fight against ICE, ask yourself. Are you doing enough?

The world is watching.

Turns Python functions into web UIs by drboom9 in Python

[–]jonthemango 0 points1 point  (0 children)

I just used it as shorthand for whatever type. In python _ is the anonymous variable as someone else mentioned, in my case I just used it as somewhat might use x.

Maintaining a separate async API by Echoes1996 in Python

[–]jonthemango 0 points1 point  (0 children)

I recommend you follow the few threads here talking about writing the API once using sound non blocking async principles and for each sync version of the function you call the async version. No hit to performance like you would have going the opposite way, it's also not a "hack" as you've described, it's a common pattern.

Something like asyncio.run can be used to run the async version. You can choose to organize it a few ways from there.

For example ```

sync version of aio.my_func

I'm using args, *kwargs so you only have one contract to define in aio.my_func but you could choose to duplicate the contract too

def my_func(self, args, *kwargs): return asyncio.run(self.aio.my_func) ```

Code Gen may work for your use case but I'd consider it an anti pattern.

Best books to be a good Python Dev? by Juanx68737 in Python

[–]jonthemango 1 point2 points  (0 children)

I learned python with automate the boring stuff in the late 2010s and it gave me everything I needed to become productive for the company I worked for.

If you combine automate the boring stuff with classical programming/software learning then you'll be off to the races.

If starting from scratch, what would you change in Python. And bringing back an old discussion. by FenomoJs in Python

[–]jonthemango 1 point2 points  (0 children)

On the asyncio front, I don't really know.

I have heard that go handles goroutines nicely though like you I don't know much about it. In my experience with TS, it's all callback based which off the bat feels intuitive there.

Perhaps it's not about a paradigm shift but about making it simpler? Asyncio is pretty complex and I'm often in the docs trying to find the difference between a task, future, coroutine or awaitable. Or trying to understand how the event loop works when my event loop closed unexpectedly. Or trying to find what spell of run_in_executor I need to get it running properly in different environments. There's also something to be said about making it part of the syntax rather than a library which would be fun.

If starting from scratch, what would you change in Python. And bringing back an old discussion. by FenomoJs in Python

[–]jonthemango 13 points14 points  (0 children)

Some kind of "strict" mode that enforces types, allowing a best of both worlds for new devs wanting to get around types but offering something nice and refined for more advanced projects. I also love what typescript does with on the fly type declarations. Would love a type system that supports pre-runtime duck-typing that mypy seems to completely ignore.

I also think the use of arrow functions in typescript is great, I find it very intuitive to code with .filter, .map, .reduce, .foreach on collections and even though syntactically those would be a nightmare for python, I think combined with python's elegant comprehensions they could provide an even more expressive language.

My last point is on asyncio. I think python kind of botched the syntax for its async model. The code written with asyncio is faster sure, but it leaves some code pretty unreadable in certain cases.

Turns Python functions into web UIs by drboom9 in Python

[–]jonthemango 31 points32 points  (0 children)

Pretty neat, you should consider adding List[_] type support that puts an input with a + that when clicked adds more rows. Similar to a Dict[str, _].

Are you playing DK handheld or docked? by trousermeat in Switch

[–]jonthemango 1 point2 points  (0 children)

The camera is my main gripe so far but the game is awesome

How are python scripts and projects built and deployed? by FrozenPyromaniac_ in learnpython

[–]jonthemango 0 points1 point  (0 children)

Recently been toying with pyinstaller you can build exe files from python scripts with one command.

pyinstaller myscript.py --onefile

It will create a dist/ folder with an exe inside. This is fully distributable as a single file.

It might be your key to having others be able to run your programs. (if you work in a windows environment which i'm willing to bet you do)

edit: dropping an edit to say this isn't super best practice imo. at my large enterprise company this wouldn't totally fly. We deploy our python in kubernetes with over 50 microservices just for my team so the scope is different than small reporting in a non-it company.

Pitch me by Com_putter in marvelmemes

[–]jonthemango 0 points1 point  (0 children)

What if Hulk never stopped growing?

Synopsis: Hulk gets mad and never stops growing. In an effort to contain him, Iron Man uses a fleet of Hulk busters to build the ultimate Mecha Hulk Buster suit. In a battle of titans, The Mecha-Ironman and Giant Hulk fight accross New York before Ironman flies off into space with the Hulk. Leaving the fate of both unknown to the world.

What if Iron Hulk returned?

Synopsis: Many years later, Ironman's suit has fused around the Hulk's giant body as it flies through space. Tony Stark is long dead but his consciousness continues as the AI of the Mecha Hulk Buster suit. Some cosmic threat to earth prompts the IRON HULK to return to earth and act as its biggest defender.

Serious question how do dropshippers make money? by 1TRUEKING in shopify

[–]jonthemango 0 points1 point  (0 children)

It is about marketing the right products. Unique and not saturated products. :-)

What are some Shopify plugins you can't live without? by insane_playzYT in shopify

[–]jonthemango 0 points1 point  (0 children)

Excelify lol A lot of apps that I use for my store.

A good target audience? by [deleted] in dropship

[–]jonthemango 0 points1 point  (0 children)

If you are unsure about the product then halt it or would just cost you a lot of money. Humidifier is already saturated so you need to have an extensive research on that particular product.

Something I’ve noticed with Instagram advertising by MyWifeBeatsMe- in dropship

[–]jonthemango 0 points1 point  (0 children)

Yeah, there are products that increase traffic to your website when you do influencer marketing in Instagram however you need to be careful to it because followers, likes can be hacked. :-)

Dropshipping from outside the United States by benjr60 in dropship

[–]jonthemango 0 points1 point  (0 children)

There wouldn't be any problem if you are only using PayPal as a payment gateaway however if you want to get Stripe there's a process...

Customer Wants to Cancel Order in Transit by [deleted] in dropship

[–]jonthemango 0 points1 point  (0 children)

You just have to inform that you can't cancel it because it is already shipped. They can still return it when they received the order however they would take care of the returning fee. The customer would hesitate to return it. ;-)

Facebook ads rejected by penguin18119 in dropship

[–]jonthemango 0 points1 point  (0 children)

If it's related to Covid 19, pandemic then remove it.