I'd bake in micropaynents based on digital currency from the very start.
So in other words I'd invent Bitcoin or eth and make them first class citizens on the web so we have p2p payments for content, and this would then happen before KYC and AML so everyone would be awash in a sea of digital currency and all world be right with the world.
I'd also pass a law in every country that created a Digital World Heritage Fund, making destroying of digital works and sites deemed heritage a crime or offence. Digital preserve for us and the future. And I'd make sure GeoCities was on the Digital Heritage List.
I'd also make search, and a basic news feed based social network first class citizens part of the infrastructure of the internet, free and available to everyone, and supported in the same manner that the network backbone is supported... Or better... I'm not an expert on that part, someone else can nut out the details of how to support it.
In that parallel universe, Zuckerberg would be expelled from Harvard for spinning off Hot or Not into a porn site called Facebook, and trying to blackmail students with sextapes for favors, and Larry would be CS head of dept at Stanford, while Sergei would lose both arms in a wingsuit accident and become a womanizing paralympian. Eric Schmidt would stay at Novell, and Google.com would be owned by a birdwatcher from Nova Scotia with a side hustle in crank conspiracy theories.
YouTube would be the most popular website in the world, where a cat would have its own channel and become the first animal billionaire, then be elected to the US Senate in Delaware, and then removed in a tax scandal.
2001 would never Pop and the founding team at Pets.com would now be there richest people in the world. Jeff Bezos would see no opening for a books retailer, or anything else, and would eventually find his biological father and take over the family bicycle shop and repair business, and would marry a waitress at the local diner who always remembered his order and always flicked him a smile.
Elon and Peter et al would never start X nor PayPal, but instead would move to LA and write scripts and get into Hollywood. Eventually co-directing DCs answer to the MCU and giving the LaRussos a serious run for their endless money.
This is good article. But the second example seems to suffer from the defect of the first. Removing default contracts and representing fixed contracts as intervals leaves it possible that these fixed contracts can overlap....which is probably...undesirable?
In that case, applying the remedy of the first example (a set of dates, and inferring that every 2nd (even zero length, to account for adjacent fixed) interval will be default,) introduces another bug where if you lop off any random date in that set or list, you invert everything.
I love the concept represented here, it is akin to normalization as in...simplify the representation so no redundancy is introduced as this usually leads to better results...but it seems it's no guarantee of better results.
But maybe that's just because the "model" we are simplifying from was not an optimal representation. Perhaps there's a better model of the second example that doesn't end up with the defect of the first example.
I really like this article but am struck by how something that I wanted to be almost a silver bullet trick for modeling, ends up being a mass of compromises mired in tradeoffs that doesn't show any clear way forward in the general case. Still, probably a good rule of thumb, but I guess this rule is not optimal...as it can have so many unworkable misinterpretations/misapplications.
It would be cool to see a list of, like, "Programming Heuristics", ranked by decreasing general applicability, of which this rule was a member somewhere far down the list.
> In that case, applying the remedy of the first example (a set of dates, and inferring that every 2nd (even zero length, to account for adjacent fixed) interval will be default,) introduces another bug where if you lop off any random date in that set or list, you invert everything.
This is a good point, and something I usually describe recoverable problems versus non-recoverable problems. If I make start/end dates in the first example instead of just a set of start dates, then I can always create application-level or database-level constraints that don't allow either overlapping or incomplete segments. When business rules change, I can delete the constraints and update the business logic as necessary with no change to underlying data structures.
However, if I miss implementing a constraint and it erroneously allows overlapping or incomplete segments, I can easily run a query to identify all such invalid entries. Then I can then investigate and decide how to fix them.
However, if I go with the start-date-only set-based approach, and miss implementing a constraint, and it leads to a deleted date creating incomplete segments... I'm screwed. There will be no query you can do to identify incomplete segments to investigate or fix, because all segments are assumed to extend to the next start date. You can irreversibly lengthen one segment by deleting another, due to a forgotten constraint preventing you from making the change.
These could both be errors on the developer's part, depending on the requirements at the time, but one data design may lead to more non-recoverable issues than the other. Add in the flexibility of the former approach, and I'd probably be more likely to implement the former approach than the one proposed.
"It would be cool to see a list of, like, "Programming Heuristics", ranked by decreasing general applicability, of which this rule was a member somewhere far down the list."
Willing to relocate: Yes, if required, to your timezone (if not your city) with your help
Technologies: web client, server, infrastructure, cloud, scaling, real-time, algorithms (and interested in but less experienced with graphics, embedded, enterprise)
Love to get experiences in: fintech, oil&gas, mining and construction
This is good but it's a bit too long for me to reply here, plus HN is saying my other account is posting too fast. I'd like to write something longer form addressing what you say because I think it's interesting. do you have a blog or an email that I could post it to you in reply? You can hit me up on WeChat/Gmail: cris7fe :) or just say here
I found this GitHub feature very useful. I love it. In my 30,000 something line repository it gave me eight code scan alerts of which seven were useful and had like specific coded up example workarounds how I could fix them, and I followed all the advice. And one was not relevant because it was a shell script that I don't use anymore, but there's no way the code scan could know that I don't use script.
I don't have experience of the security fatigue and stuff that other people seem to be talking about. Maybe I just write better code, or use fewer, and fewer problematic, dependencies? ¯\_(ツ)_/¯
Anyway I think this is a really cool feature and I'd love to see more of these sort of value added and free features on top of public repos. Is there a place where like you can create your own like a marketplace or something?
Cool, yeah when you do it enough times you just want to script it. I use to have more sensitive stuff in here I think before I obliterated the historical stuff and made it a public repo, but I factored all that before sharing it. Like 2 years ago. It was a good exercise I think, separating secrets from config.
Thanks Roben! :) Yes full stack, and the way I run most dev is to run it in the same server as production, but in another clone of the repo in a different directory, a different branch, and a dev port, like 6667. But keep the same certs TLS, and create a clone or dev version of the db. Then just access the same as normal but on the other port.
Occasionally, for like a larger project with load balancers, I'll run an entire dev single VPS with a subdomain of the production and use a wildcard TLS cert.
Then I can do whatever I like to the dev and production will be fine. Depending on situation, I might set it up blue-green and shift some traffic over from production and monitor and if it's ok, I push that to production. Or for larger projects, mirror the whole stack (two instance pools) and alternate production and dev, so I get continuous monitoring of the latest changes and I can roll back to the last stable version by traffic shifting if need be.
Thank you, you're welcome :) I think you can use it as a base. Well maybe not you specifically, but someone can customize this... The git commands in particular save me lots of time, and I guess the rest is stuff used enough times i put it here to not have to look it up next time.
So in other words I'd invent Bitcoin or eth and make them first class citizens on the web so we have p2p payments for content, and this would then happen before KYC and AML so everyone would be awash in a sea of digital currency and all world be right with the world.
I'd also pass a law in every country that created a Digital World Heritage Fund, making destroying of digital works and sites deemed heritage a crime or offence. Digital preserve for us and the future. And I'd make sure GeoCities was on the Digital Heritage List.
I'd also make search, and a basic news feed based social network first class citizens part of the infrastructure of the internet, free and available to everyone, and supported in the same manner that the network backbone is supported... Or better... I'm not an expert on that part, someone else can nut out the details of how to support it.
In that parallel universe, Zuckerberg would be expelled from Harvard for spinning off Hot or Not into a porn site called Facebook, and trying to blackmail students with sextapes for favors, and Larry would be CS head of dept at Stanford, while Sergei would lose both arms in a wingsuit accident and become a womanizing paralympian. Eric Schmidt would stay at Novell, and Google.com would be owned by a birdwatcher from Nova Scotia with a side hustle in crank conspiracy theories.
YouTube would be the most popular website in the world, where a cat would have its own channel and become the first animal billionaire, then be elected to the US Senate in Delaware, and then removed in a tax scandal.
2001 would never Pop and the founding team at Pets.com would now be there richest people in the world. Jeff Bezos would see no opening for a books retailer, or anything else, and would eventually find his biological father and take over the family bicycle shop and repair business, and would marry a waitress at the local diner who always remembered his order and always flicked him a smile.
Elon and Peter et al would never start X nor PayPal, but instead would move to LA and write scripts and get into Hollywood. Eventually co-directing DCs answer to the MCU and giving the LaRussos a serious run for their endless money.