Genuine question, what good does the ability to buy and sell stock on the short term do for humanity ? Does it have any specific vertue appart from allowing one to make make money by betting correctly ? Why are not all sales required to be long term ?
I am a long term investor. Long term investors like me still need to buy or sell stock occasionally, even if only to live out their retirement eventually.
There's no good reason to assume that for every long term who wants to buy or sell on a particular date, there will be another long term investor on the other side of the deal.
So a special kind of short term investor, called a market maker, jumps in. Market makers typically hold a small amount of inventory and offer to buy or sell stock.
Market makers allow your grandma to sell stock any day of the week without worrying too much about timing.
I think we can both agree that there is a lot of value in knowing the "actual value" (as opposed to speculative value) of things in our society. Knowing the actual value of things is impossible for multiple reasons it (it changes very fast and is just intrinsically very hard). However, given a big incentive (making money) we can let the market estimate the value of goods for our society. This speculative valuation is far from perfect, but it is the closest we can get to the actual valiation of goods/institutions.
It turns out that is one of the most important things to do in modern, capital intensive, economies.
It also means people can invest for shorter periods and that means more capital is available for investment. This has a double bonus where it reduces the risk of investments again making more capital available...
Imagine if you're a would be investor. You're money is available now to invest. So you want the market to be open to let you buy. Otherwise that cash is just sat there waiting. Similarly, you want to invest all your money. But if you know you won't be able to get it back for X period of time then you can't can you? You might not even know how long you can invest for: I might reasonable expect not to need some cash till Christmas time but if I lose my job tomorrow I want it now please!
So a market where you can buy and sell rapidly makes you more able and more likely to invest. That's good for you as you can use spare cash productively and make a profit while still being safe if you suddenly have a change in circumstances. It's also it's good for the company you're investing in as they can raise capital quickly and there is more capital available. And all of this means more growth and lower costs and that means more tax money for social services and more jobs for other workers etc.
The analysis for the people receiving the investment is similar but a bit more complex because the company doesn't just get investment, it also get's information: a rising share price tells you you should expand, high prices in general indicate a great time to start new businesses, a competitor whose share price falls while your one rises has issues and might be open to a merger\takeover etc.
If there was no short term market then long term buyers and sellers would have a harder time buying and selling and it would cost them significantly more.
Programming is using conventions. Lots and lots of it.
Conventions for syntax, names, logic, API, structure, vocabulary and so on.
Conventions are by nature arbitrary, influenced by culture, history, social behavior and a whole lot of human weirdness.
Don't try to learn all the conventions first, it comes faster with practice and exposure to it. Solve the problem, then find the conventions you need to apply the solution in your context.
The beginners paradox is that they need to learn a bit of specific conventions (E.G: part of a language, one paradigm and a few libs) to start working on solving a problem, so it's a frustrating experience.
There is no easy way to build the rest of the conventions based on your knowledge of what you know now, because it's artificial.
It's also what leads people to say "don't learn languages, learn to program". Which makes no sense to you at all, until, well, you finally know how to program. But you got there by learning conventions on the way.
I tried to prove you wrong and run multiple tests that all shown you were right. Then I tried to run them on different python versions, down to Python 2.7, expecting that my knowledge was just dated.
No, I was just wrong.
Don't know why I was so convinced of this.
> Regarding docstrings you can access the underlying function via the __wrapped__ attribute,
This assumes one knows about that. A lot of people never even heard of partial(), and won't know about _ _wrapped_ _. Not to mention I never seen a tool using help() fetching _ _wrapped_ _._ _doc_ _ if it exists.
> and signature forwarding is too brittle and magical for stdlib.
@functools.wraps() does signature forwarding to great success, and is in the stdlib.
Nevertheless, I don't think it would be the right strategy for partial(), because you don't have the exact same signature. But at least having something like:
This function is the result of x() being wrapped with partial(x, 1, foo='bar').
Here is the original docstring of x():
....
I run ubuntu 20.04 and don't have one single snap installed.
If you can switch distro, surely you have the skill to just ignore snaps and use ubuntu like a regular debian system. It required zero effort on my part at least.
And a good one too. I'm currently maintaining https://0bin.net, and because we encrypt everything client side, people feel like they can post anything they want. We get some pretty personnal stuff.
They really should not. It's a can of worms. We can get compromised. Bought. Receive a court order (we comply with dmca). Or they could be on the wrong URL (typo squatting, phishing...).
Don't trust random online services with your data. FOSS or not, the code we serve can only be trusted as far as you and I we can be. And you don't know us. And you will make mistakes.
Now I'm guilty of it too, I share passwords with 0bin sometimes. But at least it's my service, I can assess the level of threat.
People post the full links (including the key) everywhere, so regularly, we google a bit to check what people use us for.
This allowed us to discover we were pretty popular on the crypto community and in specific fan fic subreddits. Which lead us to implement btc tipping and reader mode.
We also got reports, tickets, dmca, etc.
We cannot brute force our thousands of paste encrypted payloads, but for a sample, it's easy to follow the bread crumbs. And if we do it, others do it too.
>The goal of 0bin is not to protect the user and their data (including, obviously, their secrets).
>Instead, it aims to protect the host from being sued for the content users pasted on the pastebin. The idea is that you cannot require somebody to moderate something they cannot read - as such, the host is granted plausible deniability.
The titles aren't encrypted. Perhaps people are putting personal data in the titles of their posts, or hinting at personal data in the encrypted portion? Which is still a problem since the code served by the site has access to the plaintext, even if it's not normally sent back to the server. It would be trivial to change the code to send the plaintext or encryption key to the server, or just weaken the encryption somehow. Even if you trust the site operators they could be ordered to implement a change like that with an NSL, and prohibited from talking about it.
As they say in the FAQ, the encryption is there to provide plausible deniability for the operator of the site, not to protect the users' data.
Titles are rarely used, but I did receive emails of users saying "woops, can you delete this ?" with very personnal content.
Which is why we implemented the delete feature (creating a paste gives you a cookie that allows deletion) recently because we don't want to spend time on customer service for a free site.
Super easy to set up with Vault, it just hooks into the cubbyhole engine. The one-time-token is also the decryption key for the data store. I find it great for myself and the occasional email but also wouldn't really want to have others use it too much.
Up to now we just delete it. We coded an admin for that. It takes time because we have to read the claim and assess the legitimity of it, not for the deletion.
Assessing said legitimity is tricky. Not because people lie, up to now they have been pretty decent, but because you really don't want to be tracked while following potentially child pron links, so it may take time.
Scaling moderation could become a problem if 0bin becomes more mainstream, but with so few reports, it's not a problem right now.
Sure, on HN, you will find sometimes some people that reports using it on real life projects.
But in the last 10 years, I did missions for about a 50 or so companies, and none of their team members, NONE, used TDD.
Few even had tests at all.
I've seen companies tried many things: agile, remote work, one team by micro-services, etc.
I've seen many videos of people saying they applied on TDD in their companies. I've even seen a few IRL of them in conferences or meet up.
But I've never worked with people using TDD in real life.
Not saying it doesn't happen, or that TDD is bad, just saying that I don't think it ever became a popular approach. Like Haskell or Nix, it's famous only in our bubble.