276 karma · joined February 11, 2016
I almost have more of an eye strain with multiple monitors because of more horizontal movement of my eyes, and often being a little bit further from the monitor. (and my bigger monitor isn't the same resolution as my laptop)
But then they have to go and ruin it by making single letter variables a common thing.
Was just reviewing colleague's code with them the other day. Hit some blocks like this (not quite as offensive, but tackling a bit in one line), and hell if they knew what was going on in their own code.
It actually was very practical. According to him it was more or less stuff we do every day, with one generic, programming puzzle of sorts.
No, that is not the case. To better understand this you should look at an async library, like https://github.com/aio-libs/aiohttp Look at what it actually calls all the way down under the hood.
If it were as simple as adding `asyncio.sleep(0)`, then that library seems as though it would have been much easier to write. :P
Just look at the code you posted at the end, it actually runs faster synchronously, without `asyncio.sleep(0)`. The sleep is what happens async, not the print statements, therefore, all you're doing is introducing delay.
Similarly, the Django ORM DB calls you make in the other examples are all still happening synchronously. However, you're just adding a delay that causes them to get picked off in an inconsistent order.
This way your aren't complicating your stack by adding more services sooner.
I've got a standing desk as well. But standing is no substitute for exercise, which is what your back really needs - both the movement and the strengthening.
Where the case here is that it's a bunch of individual businesses that have to weigh their cost of pursuing with the cost of not pursuing a suit, individually.
My commute usually ranges from 1:50 to 2 hours. I get up at 6:30, a 10 minute walk to the Beacon train station for the 7:08 train which brings me straight to Grand Central.
I'm working from home right now, but I was literally always there first person into the office at about 9am.
The fact that no car is involved and it's only one mode of transportation to get into the city is what makes the commute very easy for me.
With my phone or iPad as a hotspot I can easy work, Reddit, or just play on my computer. Grab a book and now you've got some good dedicated reading time.
To top it all off, you ride along the Hudson for the entire trip.
At times I certainly didn't love it, but I found it surprisingly bearable.
For the same reasons you mention it makes 2pm in the afternoon the worst time to be on break and out of your air conditioned office or workplace.
Being that I was new to both, I didn't have any ingrained best practices, and it was hard to find any best practices around when to use redux.
Every example seemed to use it for everything, which seemed insane to me in a real web app. I could see that the size and clutter would grow terribly, and for no obvious benefit.
Your example above is similar to how many component libraries work (where you need to give the user flexibility).
In a dashboard app, I'll make good use of Redux because there are often sets of data you revisit in different ways.
In a more directory-like site I've recently built I use it to keep track of the logged in user information and high level information that dictates your experience (like user location), but nothing else.
They mentioned orders (plural) of magnitude difference in cost. Which means it was closer to $37,000/mo previously.
They don't realize just how easily performant Postgres can be - and often so easily by sticking basic indexes where they are needed. Similarly they may not realize the amount of data and load PG or MySQL can handle just fine.
I can't see how 2 million users are worth it either. It really isn't even that many anyways because I'm sure many were already snap users)
Unless it's because they really wanted to do Snap map and are basically paying to have a fast implementation and have that many people with it enabled from day one. This way when Instagram copies them it will take a few months.
But setting up a data warehouse that builds out the KPIs you're looking for along with a dashboard to display them (the easy part, for sure) can certainly take over a month.
But I'm still failing to see why you can't pull the local data from local storage and show it, then render the data from the server (should you get new data)?
Building a list of 10,000,000 items:
List comprehension: 599ms For loop: 930ms For loop with append localized: 736ms
The CEO is actually really nice and accessible, and their customers seem to really vouch for them.
> Minus any of the user agreements...
Exactly. Which is why I think comparing it to anything financial (banks, PP, etc) is silly in the first place.
Replace collectable potato chips with baseball cards and you're back to the example I was trying to portray.
If someone was holding your property (baseball cards) and sold them out from under you, then it seems like there would be good ground for a civil case.
Meaning, it's theirs to issue/manipulate it as they please. If a third party did that, it seems as though it would be much different.
> no more legal rights than the gold you earn in World of Warcraft
Undoubtedly, if a company offered some sort of account to store that gold, they'd be in deep shit if they took gold from those accounts and sold it to pocket the money.
It doesn't matter if it's cryptocurrency, collectible, stock, etc, it still is not a business asset.
If you've got my Jesus shaped collectable potato chips in storage you can't sell them to keep your business afloat.
If you're a brokerage whom I have an account with for my stocks or asset trading, you can't sell my assets to keep your business afloat.
If you're a bank storing my currency, there are very specific rules that govern you, and my money is FDIC insured. This isn't a bank, period. You can't just change the rules saying "well, banks don't always have your cash on hand, so this guy doesn't have to either". There are rules around how all of that works anyways - and he wasn't operating within them.
This is more akin to paypal, or some type of digital wallet. As it's an "account" where you can "send and receive dogecoins". There is no reasonable expectation that anyone else should have access to the dogecoins in your account. There's weird grey area around that shit, but suffice to say my assets are NOT your business assets.