skysight-inc/HackerNews huggingface dataset:
Yes, Amazon has had ample opportunity to self-regulate, and they are passing on it because--contrary to outdated theories--it's been more profitable to ignore the problem.
"While it's useful to have it split up into logically discrete chunks with sensible naming these 2-4 line functions far increase the mental load of the code."

I don't do this a lot, but in those cases where I'm tempted to pull out "helper functions" that I just call once, simply so I can give them a name, I often use blocks instead. That is, instead of:

func DoTheThing(...) {
x = doTheFirstPart(...)
y = doTheSecondPart(...)
return doTheThirdPart(x, y)
}

func doTheFirstPart(...) { ... }
func doTheSecondPart(...) { ... }
func doTheThirdPart(...) { ... }

I'll do:

func DoTheThing(...) {
// Do the first part
var resultType1 x
{
// basically the contents of doTheFirstPart here
}

// Do the second part
var resultType2 y
{
// basically the contents of doTheSecondPart here
}

// Do the third part
{
// doTheThirdPart here
return final result
}
}

If you're literally going to call the function only once, and it just disrupts the flow, this has a number of advantages. In most brace-using languages, the braces will confine a scope just like a function would have, so you still have clear specification of what can flow out of the brace functions via the previous variable declarations. (They can stack up a bit if you have a lot of these sections but I've not had too much trouble with that.) If you do need to pull it out into a function later, it's a fairly mechanical process instead of a surgical process, because you're already 90% of the way there. But if you never need to do that, you retain the ability to simply read through a function and see everything it's doing.

I've noticed a lot of my "payload" functions sometimes end up long, but if you look carefully, you'll see I'm still using a lot of tools for scoping and simplification to confine action-at-a-distance within the function itself.

You do get a couple of weird looks and possibly some weird review comments if you use this; people are not used to seeing scopes used solely for isolation like this. I've had people ask me whether this is a syntax error or not in the review. But usually once you explain yourself it passes through.

This seems to mostly end up in my testing code, where I may need a chunk to set up the environment for a particular chunk, and then may have some tests I want mostly isolated from each other, but to use the same environment, or in a recent case, I had a chunk that setup the unique environment for the test, the code under test was basically "testEnvironment.DoIt(...)", and then I had half-a-dozen blocks verifying that the DoIt call had done all the things it was supposed to do and had all the exact side effects it was supposed to have, one class of them at a time, confined in braces so it's syntactically enforced they can't have leaking values. (This was an integration-level test.)

There are definitely other cases where simply naming things and breaking them into functions can be helpful, so you end up with an "orchestration" function that reads cleanly, and all the little bits also read cleanly. I do that plenty too.
most languages have a library that takes a json structure from a file and creates an AP. for eg json-server on node.js, I just use that initially until the "need" for the db becomes clear ie what data do I need to interact with. After that it's custom all the way - it's more malleable I find
I think their market share encourages them to do nothing. You actually have to offer a good product to grow market share, then slowly run it, then users switch to a new product which originally starts good, and the cycle repeats.

Nobody would start using Google Search in its current format.
I think courses and books are super valuable.

For example, I've been building a new web app with Elixir and Phoenix for the last few weeks, learning as I go. Couple hours a day (when I can basically). Did nothing but skim the docs and look at open source examples.

I got pretty far and made real progress but the other day I decided to just buy the Programming Phoenix 1.4 book which is written by the people who made Elixir and Phoenix.

I'm now 80% done with the book and I'm very happy I bought it. It filled in SO many gaps and I have a ton of actionable "TODOs" in my app to make changes based on what I learned in the book. Some of these are really big wins and the insights learned help me understand how to write better code in the future (even outside of Elixir).

When it comes to courses, I can't speak for OP but I personally offer free life time updates and support (I happen to create courses too, but not on SQL). Having a get out of jail free card where you can ask someone a question and get an answer is worth the course's price alone. Especially considering if you were to hire someone for that level of support you would probably end up paying 3 or 4 times the cost of the entire course just for 1 hour's worth of support.
The 2 times I had fraud issue with my credit card it was people buying plane ticket. One time it was on Easyjet for a ticket a few hours later and it was clear that the name was completely made up (strangely it appeared on my credit card statement).

It seems that travel/air ticket are a major source of fraud.
> Corporations have a responsibility to act in the best interest of the shareholders

No, they don’t. There are no legal requirements to act in the best interest of shareholders. There are no directives to do so inside corporate charters.

Your phrasing of “act in the best interest of shareholders” is perhaps the silliest and most extreme version of the “maximize shareholder value” myth I’ve heard yet—a myth that first started being pushed by Friedman and his ilk in the 1970s, and has morphed into this common theme nobody even questions. It isn’t true. There is no such responsibility required of a corporation.
> Many people think there is no inherent value in government because that has been sold to them for the past 50+ years.

I think most Americans' experience with government is bad. Especially with taxes--they won't even tell you what you owe them. Often the electronic systems are just broken (Illinois' form a couple years back required a driver's license to submit payment, but the field only accepted 8 digits while IL DL numbers are 12 digits long). I personally don't have a problem with tax or government if there's a sane value proposition.
> I understand the dislike for using in-memory databases as a json store (by reading/writing entire objects at once), but if you're using Redis this way, you're doing it wrong.

I guess... is it so terrible to use a dictionary/hash-type data structure with values more than one level deep? Redis doesn't provide a data structure for that.
Building Microservices on .Net Core – Part 3 Service Discovery with Eureka
Anthony Pompliano predicts $100k Bitcoin by end of 2021
Does the Cheese Grater Do a Great Grate of Cheese?
Cloudflare fixes outage that affected Discord and others
“Sanders will also release a detailed roadmap -- centered on new taxes on Wall Street -- to raise the $2.2 trillion dollars necessary to pay for this program and his other college funding plans. It will include a 0.5% tax on stock trades (or 50 cents for every $100 worth of stock), a 0.1% fee on bonds, and a 0.005% fee on derivatives. Sanders believes that could raise more than $2.4 trillion dollars over the next ten years.”

Sure hope “stock trades” doesn’t include retirement contributions or rollovers. I just rolled over 90k - that would’ve cost me $900 (sell, then buy).
Or external SSD drive. I ran RPi successfully on this:

https://www.aliexpress.com/item/KingDian-Newest-item-Portabl...

and also have this:

https://www.aliexpress.com/item/KingSpec-External-SSD-hard-d...

These are cheap Chinese SSDs, so I'm not sure about their longevity. There are also similar Samsung SSDs for ~2x price.

Another alternative is to get a good industrial SD card.
Good point. I believe there are EU directives in place which mandate that if an institution is authorised in one member state it can operate in any other state
"mildly inaccurate simplification" is a long way to say "clickbait."
> If there's no way to dedup the same dependency code between apps then memory usage can grow out of control pretty easily.

You seriously say this in an era when Electron exists? You'd be hard pressed to waste more resources by simply not having deduped libraries.

> Package-based distributions concern themselves with this a lot

Yes, and they end up causing a lot more headache than they ever save because of it.
The reason I went with N26 is because they're German -- the German government will guarantee all savings up to €100k -- this is not the case with the others hence why Revoluts "EU banking licence" doesn't offer as much consumer protection as simply being a German bank. It just means they get more access to EU markets by abiding by certain terms.
You do have the right to pay additional taxes over the minimum if you believe in the cause.

Why do things to minimise your taxes if you don't mind paying more and see it as a benefit to society?
I'm unaware of a state where Walmart can not sell safety glasses, they're used for a lot more than airsoft/paintball.
Pressure to IPO sooner would probably be a good thing for most people. Index fund holders got to benefit from the rise of Amazon and Google much more so than the rise of Uber. Public company accountability mechanisms may put a damper on some of the founder
-led vision that private cos are willing to abide, but generally it would be better if the wealth were spread around.
I think it is an anti-pattern to design a system where each domain object is a process. Sometimes data is just data and should be managed as such.

I think what makes actor models so nice is the explicit ownership of state. It is not possible to declare "var x = 1" in one file, and access x in another file. You always have to retrieve state explicitly, otherwise it won't be accessible within the scope of your function.
Hmm. That explains the inexplicable behavior to multiple domains, some being CF and some not.

I've been seeing it for about 10h now.

Update for datapoint: I'm in Bloomington, IN, on ATT DSL.
> they want to force other people to pay

And, in fact, they know how this will play out:

1. Demand that “the rich” pay “their fare share”

2. “The rich” becomes anybody who earns more than basic subsistence income

3. “Their fare share” becomes whatever leaves just enough to get by

4. The actual rich create more loopholes so that only the middle 80% are actually impacted by these new tax hikes.
Well, indirection can be quite helpful even for simple checks:

if is_json(somestring) {
// do something
}

function is_json(string s) {
return JsonLib.convert(s) != NULL
}

this indirection is easier to read rather than thinking too much about what JsonLib.convert(s) != NULL mean. This does not hinder debugging because you only debug this is_json function when the code does not evaluate is_json as expected. Every other time, you debug what's in the if statement.

The given example x.startswith("foo") is simple enough to include it directly. However, if there is a business reason for why "foo" is checked here, it will be difficult to understand why the check is there. This will be more difficult to read a code like this:

if x.startwith("-")
do something

instead of

if is_yaml_node(x)
do something

def is_yaml_node(x)
x.startwith("-")
I used to run pi-hole, but just switched over to:
nextdns.io
It works like a charm!
Well, good abstractions/indirections are hard.

The wrong abstraction can be worse than no abstraction at all. And it can be non-obvious if you've got the "wrong" abstraction until much later when it's been in use for a while and had to be maintained -- and sometimes even then, we aren't good at recognizing that our pain is coming from the use of the wrong abstractions.

We often are, without necessarily realizing it, reluctant to refactor existing abstractions once there, preferring to alter them slightly or even more add new ones on top (which can make things worse in the long-run). And this isn't necessarily irrational, refactoring/removing existing abstractions is expensive, and with no guarantee you'll get it "right" this time either.

Sandi Metz says:

> prefer duplication over the wrong abstraction

https://www.sandimetz.com/blog/2016/1/20/the-wrong-abstracti...

Mechanically extracting things as in OP can often lead to "wrong" abstractions, which is what I get as the takeaway from the OP, which is a good reminder.

You are right that abstraction is the main tool we use as computer programmers, one way or another. Thinking in abstractions is the main thing we do that characterizes computer programming in contrast to other endeavors. So we certainly can't give it up entirely.

But this fact, I think, from my observations over my career, often leads us to over-abstraction ("over-engineering"), and the wrong abstractions. Because we are so taken with abstraction (it is neat, and you probably think so if you enjoy computer programming). It is good to be reminded that there is such a thing as too much as well as too little abstraction. Sometimes it's the "wrong" abstraction, but sometimes the "right" abstraction and the time it would take to arrive at it were unnecessary, and less/no abstraction would have served you just fine.
Second the idea of MotionEye OS - I have one running as a camera for the front door of my house, emailing me when it triggers to my phone's gmail account. So I have a kind of running "backup" of events if anything happens.

I use to run ZoneMinder on an old PC, but it was a bit flakey, way too crazy to set up for a home system; I had learned how to config and admin it over the last several years, but I was just plain tired of it. It's another great system for security cameras, but not really for a home, unless you have a ton of cameras that need monitoring, and don't mind the dedication of a beefy machine to the task.

MotionEye OS is more a distributed solution. It is possible to set it up so one install can monitor multiple cameras (in some manner - I haven't played with it), but I like it as a simple single IP camera turn-key solution. It basically can turn a Rasperry Pi into a cheap wireless IP camera that isn't locked down or tied to a proprietary ($) cloud system.

Using a RasPi Zero W and the cheapest camera you can find, you can build such a camera for under $50.00 USD off Amazon; probably cheaper if you shop around a bit more. The only cheaper option I've found (but it takes more to set it up properly) is the ESP32 camera modules that you can get.
Bonus: automatic surf and turf.
Firebug has now been mostly integrated into the main dev tools.
> Why not?

It seems silly to me that an end user company not providing any network services which only has a 256 IP block has the ability to break a significant portion of the internet with a configuration mistake. There are several ways to setup dual ISPs and routing that don't involve such risk.
That would have to be determined by new laws but no, I'd imagine they would be treated as separate person's who are relatives of Bezos.
Technical Support
Dear users:

We understand the importance of privacy to you and will do our best to protect your privacy.

If you have any questions, please leave a message below or contact us as below.

Contact: wheelyCool@gmail.com
Earnest question: do econ departments advertise themselves as a pure science?
Oyo Has Remade India’s Hotel Business. Now It Is Going Global
google pi2scart
If they're truly fiscally conservative then they only have loans they can afford to pay off and a degree that was worth getting.
Maybe I'm just old but I would never put my money in an institution where I can't go to their branch/office and talk to a human. Typically this is hardly needed with all the digital convenience but when things go wrong, it is truly worth it.
Most places that are just doing it for that reason won't be advertising anything other than their own /24 or whatever though. You have to fuck up pretty spectacularly (and have your upstream providers do the same) to be able to accomplish what has happened here.
Out of interest don't you get any penalties for all those declined/failed payments?
I had a similar issue around two years ago (multiple travel transactions, some Indian), although it was one of my physical cards (which I had barely used anywhere). I didn't have enough funds at the time so nothing was charged and I immediately reported the card stolen. After this I've tried to keep my balance below €300 with the rest in vaults to minimize the risk - whenever I need to make a larger transaction I just withdraw money from the vaults before.
The fact you have to skip the intro to YouTube videos speaks to Google's algorithms. Even if people don't have ten minutes to say about a particular topic, they'll upload it.

When people find out the metrics to getting more views, they become meaningless.
> Instead, data center services should be built using stateful application servers or custom in-memory stores with domain-specific APIs, which offer higher performance than RInKs at lower cost.

We've been using Sirius [1] (on the JVM) for this.

[1] https://github.com/comcast/sirius
I guess they built the transaction limit assuming that your merchant would tell you the transaction was declined, but neglected to address the case where you weren't the person hitting the transaction limit with your card.
Yes, and I am advocating that if the wealthiest desire to change the overton window around taxes there's plenty of other ways to do this on top of the op-ed for which I don't personally see evidence of happening (if I'm wrong please let me know). It's not difficult to buy up local newspapers in red states. It may be much more difficult to challenge Fox News, but we already have VC-unicorns for various stupid apps that're advertised far and wide. It should be possible to VC-startup a 'conservative' media, bribe mainstream fox news reporters to break contract to get on the 'conservative' media, and force them to become millionare mouthpieces of progressive billionaires with a major advertising campaign.

The reason why we have such strong anti-tax now can be partially attributed to a highly successful creating of one's own audience through careful information feeding, powered by wealth, through multiple channels. Therefore, I don't see reason why the progressive wealthy cannot do the same manipulative tactics for their own purposes.
I have a raspberry pi zero w that I use with PivPN and Pihole and also I compiled tor on it. I can vpn into my home network , use tor as my socks 5 proxy and I also use pinhole to deal with tracking and advertising. best 5 dollars I've ever spent.
As he’s a Greek, I assume he’s making a joke about
https://en.wikipedia.org/wiki/Epimenides_paradox
Main discussion (over 200 comments): https://news.ycombinator.com/item?id=20260014
> The fact that I can't even answer that simple question troubles me

It shouldn't trouble you. Consider "if you have money coming in." What's "money coming in?" You could tax money transfers, but then my sending $10 from BofA to Citi would invoke a tax. Okay, so if the person on both accounts is the same no tax. Fine. What if some sends $10 from a sole account to a joint account? What if it's from a natural person to their single-member LLC? Et cetera, et cetera.

Broadly speaking, federal income taxes take down about 10% of GDP and payroll taxes a further 6% [1].

[1] https://en.wikipedia.org/wiki/Income_tax_in_the_United_State...
The real problem here is that the compensation structure was initially defined to give the dev team payments for four years and then stop. That makes sense for stock options, when there are established mechanisms to expand the options pool later. For a cryptocurrency it creates a big problem for you, that you’ve punted four years down the road.

We’ll see if Zcash developers manage to fork into a coin that keeps paying them to work on it, but I think the lesson here is to incorporate this up front in the model. Any amount can be fair if it’s fairly communicated up front.
Virtual card is a disposable card that you can use X times (or whatever you set it up). For example, i use virtual cards for services that require CC info in order to register for trial, this way i don't have to remember about my trials expiring and getting charged (because i set the virtual card to be used only once / delete it right after i have used it).
That's a pretty lazy assumption if you're providing a how-to video. Especially since:

1. There are new Linux users every day

2. The Mac/Windows users will most likely have to install PostgreSQL on a Linux server eventually for production anyway

It would be very beneficial to at least add instructions for installing on a Debian based distribution like Ubuntu, since that would cover the vast majority of Linux users, especially newer users.
There is merit to ecological reasoning, but sometimes people like nice things; and concern over the use of pi’s over existing arbitrary computers is so low on the list of ecological priorities that perhaps it’s better to simply recognize the value it provides to people who want to buy one.
Building Microservices on .Net Core – Part 4 Building API Gateways with Ocelot
We used to take our family vacations on Ocracoke. The first time we booked a fishing charter, my wife couldn't understand the man on the other end of the phone! We eventually got it all sorted out and we went fishing with the O'Neals several times over the next few years. Always a good time.
Original content: https://rework.withgoogle.com/blog/the-evolution-of-project-...

Project Oxygen is a really great resource for any of you out there looking for more information on this stuff.

One thing I’ll call out from this particular summary:
> "I love to be micromanaged," said no employee, ever.

One thing to think about is how to junior / in training mode your current team member is. Your level of management involvement scales (micro to macro) as your team member becomes more senior, and you’re able to trust their work, and they’re able to trust your direction. I’ve made this mistake where I had a junior employee, gave them tons of autonomy and freedom, and they floundered and felt “unmanaged”. To me, I was just “not micro-managing” them. To them, I just wasn’t managing at all. Management isn’t one size fits all, and the techniques we use has to vary based on each person on our team. There is no “One True Way”.

Coaching is an interesting topic for a lot of people, as I see this as a gap for a lot of the managers I work with through my mentoring program. We teach coaching during our leadership cohort program ( https://connect.eagerlabs.com ) for this very reason, and I’ll be curious how many of our graduates actually look to start taking ICF workshops or certifications coming out of it (or some other coaching certification network).
Alright, but you know that wasn't what my post was talking about.