skysight-inc/HackerNews huggingface dataset:
>The benefit of testing is confidence that things are working.

No it gives you confidence that the test are passing.

I have worked on code bases that are well tested and code bases with non existing testing. The tested ones contain just as many bugs as the non-tested ones as far as the end user is concerned. In a year and a half working at the "well tested" company, regression tests caught an error one time. That was good but considering the testing team was bigger than the dev team, I question if it was actually efficient or not.
You mean we are going to see proportionally more content from people who actually know what they are writing about rather than professional clickbait writers? Doesn't seem so bleak to me.
It took 3 seconds of skimming to see it does not remotely say that. It clearly says to have a public option and medicar for 55 plus only. This is a nudge of the status quo. Par for the course for Democrats.
fenomashas's comment seemed clear to me.

invalidOrTaken's claim that refactoring can affect what is internal versus external, or that it can be context-dependent, was surprising to me. I would consider changes to what's internal versus external as breaking changes; large changes could plausibly be called redesigns. Certainly not refactorings.

The context-dependence of internal/external makes sense, but that makes me think in terms of e.g. "MySQL is external to the application" versus "MySQL is inside the application's container", or even "MySQL is interal to the subnet where the application runs". Architecturally that makes sense, but I don't think it would affect the way I test things, or classify those tests.

On the other hand, invalidOrTaken might be using "external" to mean "other classes", in which case it's easy to imagine a refactoring changing all sorts of (class) boundaries. Likewise, the phrase "external behaviour" could simply mean "the public methods of a class".

I've certainly worked somewhere that claimed to follow "Behaviour Driven Development", where each "behaviour" was a micro-managed implementation detail of a particular method of a class, with a huge pile of mocks to simulate the behaviour of everything else.
If you have such a child, get them into an extracurricular where they can compete with others based on body mass.

I got my ass kicked in varsity wrestling after a grade skip. Still, I competed as I had since late elementary school. I could start varsity because our high school was smallish and I fit into an open weight class.

I had a strong peer group orthogonal to my classmates. I spent time in the weight room and otherwise working out. I learned how to handle myself for the rare occasions that conflicts became physical. These skills helped me immensely when I began university at 16.
Frozen-Flask freezes a dynamic Flask app into a static site.

https://pythonhosted.org/Frozen-Flask/
Before I found out about ublock origins filter lists I always wanted to opt-out of these GDPR cookie banners, modals etc but I got a lot of fatigue having to follow all the steps for each website.

I tried to make an open source extension to try and do it for me:
https://github.com/pyepye/GDPR-opt-out

Although I hit a snag where some GDPR banners / buttons didn't return when using `querySelector` in the extension but do when you use the inspector / console and do it manually.

Does anyone know why and how to work around it? It was always something I wanted to know why but didn't find the time to dig into (and wasn't important while using ublock origin)
Ah, I thought this was about us being enlightened for leaving the dress-based signalling behind.
People have been talking about this idea for maybe 20 years (that I can recall). I'm also pretty sure there've been numerous attempts at implementations because really it's not that complicated a thing to make.

None of them caught on though because when it comes down to it, most sites that successfully make money can probably make more money from advertising than they can from this microtransaction system so there's no incentive for them to adopt it.
I really dislike this narrative that facts don't change our minds and we are all irrational.

The thing is, truth does exert a pull on our beliefs. It's a slow force. It may take years for people to come around to it. Sometimes it even happens on a generational scale. But we are approaching the truth. Everything in history, and everything in our daily experience tells us this. A couple of experiments where researchers manage to fool the people in their studies does not disprove this overall trend.

What scares me about this narrative, is that people are using it to discredit democracy. "Look how stupid people are! We have to spoonfed them the cherrypicked facts that lead them to the right beliefs. We have to decide everything for them."
Automatic unsubscribe I (the developer using Maildown) can't do anything about seems like a no-go for transactional mail?
Exactly, the issue is enforcement.

GDPR is actually quite clear and logical on the notion of consent. Implicit consent is implied for anything essential for a service, everything else has to be opt-in.
Frankly at this point all I want is a way to signal "Yes I have looked at the cookie settings in my browser and I know what I'm doing".
> just make the helper class private

Yes, if your class is small enough to not make sense to test, make it private.
Why would I spend anymore time on this cringey lifestyle magazine? Site used to be alright. I've said my complaint, responded to you, and now I'm gone
> Every team needs to deploy in lockstep.

Team A can finish their part of joint effort before Team B and get deployed on Monday, then Team B finishes their effort and gets deployed on Tuesday: this looks the same in both microservices or monoliths. You can have blue green deployments with monoliths with zero downtime.

Why does it look the same? Because you have to be careful with how you modify the interfaces in any case. If team A is requiring a new field from Team B to be not null immediately, then the Monday deployment breaks in either case. If team A uses a feature toggle or just does the old thing when the new field is null, that has nothing to do with microservices vs monoliths. If you are using a monorepo in both cases the synchronization story is the same: master needs to build and run without error.

The real distinction is what the Monday and Tuesday deployments look like in either case. With monoliths, the Monday deployment and the Tuesday deployment look identical: the whole monolith goes up and down. With Microservices, team A can be responsible for their deployment on Monday and it can be completely distinct from what team B does on Tuesday. If team A is team B, then the gain was a minor allowance in the deployments being different which might be a net loss.

Actually, when team A and team B are in lock step, then the monolith allows changes to be deployed that would otherwise be considered breaking if deployed in a microservice architecture. However, a lot of monoliths will still be clustered and might talk to each other across the network, killing this advantage.
But I am addressing it. You cannot make circumstancial exemptions like "if you are currently in the country" to a merit based visa. That way the whole thing can be struck down in court.

And again, we are negatively impacting the entire population with very draconian rules and lock downs. Heavy handedness all around. But somehow none essential foreign influx is just fine? They can come if they have to, clearly.

People are really measuring all this by two standards. If you think it's okay for citizens to be impacted by necessary lock downs, parents not working due to young children staying home, but foreign students are cozy in their home office?
This is an excellent comment, and I agree on the conclusion that either exists as much as the other.

However ;-), I dare to say your argument is weak: Assume "I believe in the apple on my desk". But you will find there is neither a fruit nor an Apple branded computer on my desk. So an outside observer is bound to believe I am going mad, hence my belief shapes my social relationship with others around me. Now does this make the apple as real as religion, which becomes real due to it's impact on social relationships? Or are people who let religion shape their social relationships as mad as I am? Or is the argument flawed? (edit: No, I can not answer these question).

Shapiro's "Thinking about mathematics" springs to my mind, IIRC in the first chapter(s) he gives a nice overview about what philosophers thought about numbers, the realm of numbers and whether they "exist" or not. I think some of that could be applied here. (And, generally, I think it's a great read for computer scientists & mathematicians interested in philosophy, as it gives a great overview across various different schools).
CAP theorem strongly suggests if you optimise against data loss you have to trade off something else which is probably important too...
I think there needs to be more reporting in this article about how TikTok is structured. India just banned tiktok because of its links to China and there is a news report today that the US is considering the same. Who owns TikTok and what are its links to the Chinese government?
This is what yahoo were doing in 2018 (it's my twitter)
https://twitter.com/pos43/status/999606375217967104

I found a very convoluted way of opting out:
https://twitter.com/pos43/status/1001331147110957056

It is now 2020 and I would be interested to see if these methods have been changed to make them easier or harder.
The problem with clicking agree is that you give them legal basis to track you which goes beyond cookies and involves IP addresses & browser fingerprinting.
Bytemark! What a surprise to see a reference here.
Managing resources is key. Personally I use the triad Time-Money-Attention, but I think I like yours better. Attention presumes the requisite mood or motivation.

Time, money, and mood seems to me like the three most important limited resources we have. The next natural step is to apply cognitive tools from economics on each of them. The etymological origin of the word is basically "allocation of limited resources" after all. I've found this to be immensely useful.
https://upload.wikimedia.org/wikipedia/commons/f/f6/Xerxes_a...
Fractally Broken
Last time i was looking for a job, i didnt do leetcoding at a big company which surprised me as im pretty junior, then in my interview with the team lead he said he looked at my two tiny PRs to an some opensource projects and thanked me for contributing, got an offer from it as well
I would be all for a ban. The app is a ccp spyware trashfire.
Yup, https://youtu.be/EczW2IWdnOM?t=3444
But how, exactly?

Sure, the chaos monkey could kill haproxy-server-state-management but that wouldn't uncover the bug in question — it'd just demonstrate that without it running HA proxy's view of the world goes stale, which anyone would expect. Triggering the bug would require reducing the number of HA proxy slots below the number of webapps running for many hours. This is clearly something chaos engineering could do but IMO it's highly unlikely anyone would think to do this. If they thought of this they would also have thought about adding tests that caught such as issue long before the code went into production.

In my experience chaos engineering is often only as good as the amount of thought put into the things it does. Killing processes here and there can be useful but it often won't expose the kind of when-the-stars-align issues that take down infrastructures.

It looks like a classic lack of monitoring, as the article says. Alerting on webapps > slots, early exits, or differing views of the number of webapps up would have likely caught this.
Why is everyone on this site ignoring the this?
That's mass consensus and if you want to roll with it who could possibly sway you?

I've come to a whole new understanding, as a computer scientist that signalling still matters and we just suck at it.

If you read the comment you wrote you may see that it casts all pre-computer people who actually dressed up in a very poor light and I'm sure some of them could set us straight on many things related to life skills.
Transfer of S. Typhimurium from Tile, Wood&Carpet:Testing 5-Second Rule (2007)
As someone who teached programming to many people on and off for the last 25 years, I still think nothing beats LOGO or Scratch. No tooling problems, no braces (in Scratch), no complicated syntax (what does "->" mean?). A programming language for beginners is NOT a dumbed down version of your functional/OO language of choice.

Turtle graphics helps people deconstruct problems into smaller parts - the essence of programming - and abstract over your solutions to solve more general problems. As a second step I use some IoT board with Scratch so people can turn on LEDs or react to sound which makes them motivated.

My first teaching 20y ago was with Java and it was a disaster. People struggled with the tool, syntax errors, semantics, braces and in the end could write some Java programs but did not understand what programming was about and could not solve their own problems.

+ Several submissions on one day.
How can a company that violates law in 13 countries just choose which country gets to enforce?
> help to build your code

Some tests should exist as scaffolding while you are working on a project and then you can throw them out afterwards.
I suspect geometric kernels and 2D/3D renderers don't fall into the "easy to parallelize" category. Of course there are functions that use multiple threads, but it's not obvious how you could build the core system to do so. However the code in CAD software is often pretty old, it wasn't that long ago that many of these still used intermediate mode OpenGL and I wouldn't be surprised if some still do.

In the same vein something like ECAD tools don't use GPU-accelerated 2D rendering but instead use GDI and friends (which used to be HW-accelerated, but isn't since WDDM/Vista).

A lot of "easy" opportunities to improve UX and productivity.
Possibly due to the tweet by Max Howell:

"Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so fuck off."
for >1 micron it's optical lithographic transfer, for <1 micron, it's e-beam lithography.
sorry, but i don't agree with that assertion. algorithmic skills are never going to be out of date.

true, widespread availability of high quality implementations may obviate the need to implement such structures 'by hand'. however, the developer must understand not only the operations that a data-structure supports, but also their complexity. one needs to understand the fundamental properties of data-structures to use them properly, so that the application satisfies it's own complexity requirements.

and complexity here is not just asymptotic complexity, but also the machine cycle count (ofcourse benchmarking helps here. a lot) this also implies that one must understand the architecture of modern machines f.e. how the cache-hierarchy affects performance etc. etc.

every decade (or even less !) new architectures are sufficiently different from the previous generation that makes a mockery of our 'intuition' of their performance characteristics. data structures that might work wonderfully on old pdp machines would probably not be a good choice on modern machines with multiple layers of caches etc.

this constant tension between abstractness and efficiency is what makes, imho, programming such a joy :)
> DDD promotes (...) test driven development.

It does not, nor does the blog post say so. The two are completely orthogonal, and while TDD is a rather questionable development method, DDD is a widely accepted design principle.
I made my own recipe manager web app in Chicken Scheme (awful + SQLite). It was a nice exercise in CRUD and scraping, as I built importers for some large recipe websites. An update broke it, so I'm now rewriting it in Common Lisp (caveman2), learning the language as I go.
That's a strange claim to make. Care to elaborate on how making things easier and faster to change is less agile?
That's interesting. My observation is almost the reverse — the casual English default for "or" seems to be xor, and only people with some exposure to formal logic know it can be ambiguous.

I find some reinforcement for that in almost every logic book I've ever read using the casual English parsing of "or" to introduce the notion of inclusive or. But it's been a while, I may be misremembering.
Creating and using your own external Java library for your TotalCross Apps
Thanks! I'll try my best to improve.
Also nothing to do with "Judaism", rather more of the ludicrousness of Eastern European rabbinical orthodoxy holier than though attitude that made them the most hated social group in Israel, mostly due to their blatant hypocrisy (i.e. object the legalization of prostitution in Israel, while they are the largest beneficiaries of it by percentage). Sort of kidnapped and suffocated to the death the essence of Judaism and reduced it into a cult.
Are there any Risc-V designs that would plug in to this?
> Normally I would bypass a floppy install entirely and just boot an older computer via PXE and then install over the network. I thought I could put iPXE on a floppy and stick in an ISA NIC but iPXE just hangs without any error messages right after it's loaded from floppy.

How about the plop boot manager? It has helped me a lot back in the days.
Or any other pxe implementation.

Or veven installing everything on that drive from another computer, which is likely the easiest way.

I recently came across IDE/SD card adapters. Perfect for that kind of project, as it is much easier, cheaper and energy efficient to find, swap and use SD cards nowadays. My use-case is an Xbox console for nxdk dev work, but I haven't tried yet.
What would have been really nice, would have been for for those 'cookie consent' forms to be managed at the browser level. It's not like browsers don't already have infrastructure in place to manage cookies. All they need is to make it more accessible.
Sudbury schools are even better. Unfortunately there are very few such schools in the world so you just have to get lucky and live near one, or start your own.
For example in the one where the participant's own answer was disguised as that of another person we can't discount the result so easily. That's also true of the studies where participants downgraded their confidence when asked to give an account of it.

On the invented studies, bear in mind that the point wasn't to measure changing the participant's mind, only for them to rate the value of a study that either supported or contradicted their initial position. Their only basis for evaluating the value of either study was their own pre-existing bias, so objectively they had no reason to evaluate them differently.

That's quite different from expecting them to change their minds, as the reasons for them holding their position might not even have been addressed by the study. For example someone who disagrees with capital punishment on moral grounds may not care whether it is an effective deterrent or not so may no have any reason to doubt a study that it is an effective deterrent.
From my own experiences, most "gifted" students are actually from middle or upper class families, and their parents are usually well-educated and very interested in the education of their own children. This will positively affect the "psychological well-being" of those kids, and likely also negate many negative impacts of academic acceleration.

Plus, acceleration is really unnecessary these days. There's no shortage of information on the internet, so why bother rushing into universities? Just let kids find and follow their passion.
At some point, someone is going to have to do something more direct about China's government. This steady erosion of human rights needs to stop.
> Ergo they are out of business and you get severely limited content

Yes. That’s a side effect I think needs to be taken into account. I see ad blocking and the GDPR as a way of cleaning out bad actors (and their content), but hopefully also a way to give an advantage to good actors. Like authorities shutting down restaurants that don’t pay their taxes. The selection short term goes down, jobs are affected etc., but it’s unfair competition if they aren’t playing fair.

> where is this 'magical ad tech' that enables newsies to make a decent dolllar?
It's non existent.

To be clear I don’t mind if ad blocking and the GDPR in concert work to kill 90% of the 2000-2020 era web in terms of “free content”. Should the survival of online firms, content producers, the adtech industry etc even be a consideration here?

> people can chose to share some basic information

I’m all for that. But without transparency like what the GDPR tries to enforce, people aren’t making an informed decision.

I never consent to anything even on sites I really enjoy and wish would survive, because I don’t trust the chain of actors involved, nor do I understand exactly what I consent to.

But I’d be happy to fill in an extremely detailed survey about everything I’m interested in down to my shoe size, and have that data accessible by any site without even asking me. That together with the browsing context should be more than enough to show targeted ads.

In the end this discussion usually comes down to the question “yes you think subscriptions etc is better but don’t you think others should be free to pay with PII if both sides of the transaction agree? They are adults after all” to which my answer is basically “no”.
Ask HN: Best Go Integration with an Editor?
I've been using VS Code, but finally realised today that I'm fighting the editor to get it to autocomplete properly, and it's too feature-rich to be usable now. What's everyone using that has good Go integration?
Essential? Knowing how to not get killed by another human being. Say the wrong thing, step in the wrong neighborhood, get in the wrong car, and you’re a dead man.
I absolutely concur. Even on 1.7.2 things are a mess.
I think the mass consensus is to pretend like it doesn't exist while actively engaging in it making it ever more subtle and meta until eventually noone knows who's trying to signal what anymore. Good times.
I write about iOS development stuff on my blog (https://fluffy.es), and I have gotten a few mentoring gig for junior iOS dev, and gotten job offers as well.

Didn't do any leetcoding, just keep on writing helpful tutorial
Though they do have good availability, they are certainly not infallible and have been down for hours or even days. And, when that happens, all you can do is pray they get to it soon. You have no control over when they will make riskier changes or how fast they will be able to respond. If they fail to respect the SLA, the maximum they are going to do is giving your money back for your services.

Obviously, there are good aspects of outsourcing devops/admin work. It's a tradeoff, as most things. If you are a struggling startup it's difficult to justify the cost of owning a bunch of hardware and hiring expensive infra people to manage it. However, facebook is probably better off owning their own infraestructure.
In my experience the ops team will be constantly changing things and upgrading to keep all those customers happy, and they don't really care about your personal risk tolerance. They probably screw up a smaller proportion of the changes but they make an order of magnitude more and you can't predict what impact it will eventually have
How to Design and Develop Your Taxi Booking App Using Flutter?