skysight-inc/HackerNews huggingface dataset:
> I wouldn't go as far as the author saying TTD is useless as it's genuinely useful against most obvious bugs

I am skeptical of TDD, so I have a genuine question. Let's say TDD is able to find the "most obvious" bugs, like a typo. My question is, why are these bugs worth creating a test for them, compared to either manual testing (running the program and looking at the output) or running a portion of the integrated test suite on the code to find them? If the bug is simple and crippling, then the program is likely to fail anyway.

To me there is a tradeoff. With TDD, you write some unit test code, and it finds a trivial bug. But is every trivial bug found worth maintaining the unit test code going forward? I mean it's not like this bug is gonna appear again all of sudden in your code, unless you change it, but then in all likelihood you need to change your unit test as well.

I guess I don't really see TDD as a good tool, because all the situations that you can run into are already covered by other, more specialized tools. If you want to catch edge cases, asserts are IMHO superior tool to tests. If you want to verify your program quickly, running it manually and looking at the output is superior. If you want to verify your program properly, running a comprehensive (and integrated) test suite is superior (the best if you can make it property-based).

There are situations where unit tests are genuinely useful, like writing a library. But in those cases, unit tests seem to always either compare with some other implementation (for example, if I am testing a sin(x) function, my other implementation is the calculator), or at least compare with well-defined specification that comes outside the code. But I feel like majority of tests written for TDD are not really testing the code against anything (simply because another implementation or specification is not available), they just test the intent of the code itself as is written, which might be useful if you wanted to write "bar" but wrote "baz" by accident, but other than this type of bugs, what is their long-term contribution, that could justify the maintenance cost?
Is there any recent book worth a read, which covers Windows internals for latest versions?
Ask HN: Which Android smartphone to get now in 2021?
Which Android smartphone should I get?
I want a high quality smartphone.
Agreed. The main catch for most people who should be using it may be to first get hardware with full support to install it on. The range of machines with TPM and the appropriate virtualization and memory control capabilities is long enough, at least for laptops, but to additionally neuter Intel ME (AMD PSP still unsolvable for now?) and install open firmware and still have all of the functionality needed, is a pretty high bar.

Then again, even without that last distance, at least it would improve the situation in many cases.

I think Greggman is mostly wrong the software which people want to run is not available to run on Qubes, but one probably has to admit that stuff not available in the repositories of the Template systems could be a bit arduous to configure. Fancy Windows games demanding a powerful GPU seems a bit like asking for trouble that way.
Probably both doable and acceptably practical with enough motivation though.
Displays are frequently binned based on quality. They are probably just buying the cheapest they can, and end up with a lot of prematurely dead pixels.
It’s a constant daily struggle to explain technology experts that inferior technology with superior business/customer/product results can be prioritised over superior technology with inferior business/customer/product results.
Reminds me of a documentary on the flood gates at the Port of Rotterdam. They are operated automatically, humans cannot trigger them (if memory serves well). Reasoning was, that operators live nearby and might tend to close them too soon and too often. Now you have to trust the system to have a proper balance between keeping the port open and protecting communities. Up to now the Rotterdam system seems to work reasonably well so.
> Our competency is not managing mattermost, it's doing what the company is made to do.

The thing though; is that this argument can be used to outsource everything.

Office space, HR, recruitment, even making coffee.

At some point the externality puts restrictions on your maneuverability, in the case of office space it's because you might not be able to just run a few power cables somewhere, for HR (imagining a scenario where it's outsourced) there's limitations on speed, or in the worst cases limitations on how you can even interface with the HR department.

Making coffee is one of the cheapest things you can do, outsourcing it may mean, though, that you lose choice of what beans you have, or what types of milks you want to stock, and there's a premium on the price because another company wants to make a profit supplying this service.

This is a contrived example, but overall my point is: there are times that in-sourcing your tools actually gives you the time and freedom later. It's a gamble you make.
https://tidesandcurrents.noaa.gov/sltrends/sltrends_station....

110 years of 2.5mm per year. Something tells me the study you're referring to is wrong.
The mistake that was made with video games is that you do not have to live out the fantasy in the real world. If playing a violent video game makes people more video game violent then they will keep committing more video game violence ... inside video games. I will go one step further and say that video games let you video game sexualize yourself the same way you commit video game violence. Case in point: All the female player characters played by men to scam other men in MMOs.

The problem with social media is that it is not a game. It's real life.
A quick Google says the Tokyo metro moves over 3.3 billion a year.
PinePhone is too big for me. I cannot use any smartphone with over 72mm weight. It is difficult to use by one hand and have it in pocket. Im curious when reasonable sizes (like old iPhone SE) come back to market.
Very insightful and good advice, thanks!
does macOS have any way of detecting/showing/preventing screenshots/screenrecordings? I'm not sure if newer macOS versions have that kind of fine-grained control over privacy.
> 5MP seems a bit low

Librem 5 has a better camera, but it's much more expensive.
This also of course leads to inconsistencies in quoting and escaping and makes secure scripting practically impossible. But hey! It certainly was a little easier 30 years ago!
Democrats seem to be judged by their intentions not their results

Republicans seem to be judged by their results and if the results are perceived bad their intentions are asssumed to be malicious and based in an ism or phobia of some kind
you're eligible if you've been wrongfully terminated. if you're fired for showing up drunk to work then that's termination for cause, and you can't get unemployment, but if you're fired because your boss decides he wants a blond secretary and you're a brunette, you can absolutely collect unemployment.
Yeah. In my experience it has worked great on things like Lenovo Thinkpads and I also have it running on a Pureism Librem 15. It's sometimes a bit inconvenient but is totally usable as a daily main work OS (I used to use it as such).
Maybe also KiCAD but that is more ECAD/EDA. Great tool though!
Very much like the Google Pixel series. Only grain of salt so far, support periode wasn't very long with the former models.
> open source projects will always provide a lower quality than comerical ones
linux, gnu utils, almost all programming languages and their entire ecosystems, firefox, blender and many more.
https://maxrozen.com
Leetcode Solutions – List of coding interview problem solutions
My list of solutions for coding interview problems from Leetcode.
DeepMind’s AI has finally shown how useful it can be
> Fact is: Developers are incapable of self organising, and would drown overnight without management's stiff hand.

I beg to differ.

A dev team doing agile, with a team leader who is a manager/dev, can definitely self-organise. The team leader interfaces with non-dev management, removes roadblocks, and in collaboration with the rest of the devs sets the direction for a sprint.

You need this team lader role to keep the suits off your back, and to ensure the demands are achievable.

Project managers used to be people who wandered around with GANTT charts, and signed-off expenses and timesheets. Very rarely, I worked with a PM who saw their role as removing roadblocks, and shielding devs from suits. Those few PMs were a delight to work with (this was long before the appearance of Agile etc.)

> Yes, because left to our own devices, developers will not contribute meaningful business value.

I think that's rather obvious; management runs the business and sells the products. They set the business objectives, and there has to be clear communication between the devs and management, otherwise you get the "rewrite it all in X" syndrome.
I totally agree, and I think another big reason Agile fails to cut through in companies is because anyone who wants to be Agile in a non tech company is fighting a crushing bureaucracy. So rather than innovating and climbing higher on innovation they leave due to the massive inertia that is encountered trying to change company culture.
Agreed. Also, Turing completeness and expressing computations from one domain in another are relatively basic CS concepts. In some Computability courses it would be a mere homework problem.

It has been disappointing for me that lots of people who call themselves hackers (like amateur Capture-The-Flag players or security people) are doing something rather basic for Theoretical Computer Science. Go to a security conference you will find tons of them.

Real hackers are 1% of security professionals and hardcore mathematicians, writers, physicists — look at Richard Feynman. Compexity theorists, for example, literally touch the essence of what computation is.

EDIT: expanded abbreviations
> Flushing toilets with potable water seems just very wrong, and a luxury I always thought western societies can afford only.

I assume the cost and potentially even environmental impact of reusing existing potable water infrastructure to provide water for toilet-flushing is much less than manufacturing, installing & maintaining separate local systems (to collect rainwater, etc) for this purpose.
I am sure many including myself are going to disagree with the assertion that the "requirements are fine"
And tar is a mire of slightly incompatible versions, that only supports streaming, not random access. I wish there was a modern alternative that was ubiquitous enough to be practical.
World Flag Search
Product-market fit when servicing large organizations
Yes, there is the "Screen recording" parameter in Security & Privacy settings.

Also, I remember getting some issues with apps like "Bartender 3" that requires taking screenshots regularly to rearrange the top bar (!!) [1].
Never accepted that and moved to another app...

[1] About the "Screen Recording" permission for "Bartender 3": https://www.macbartender.com/Screen-Recording-Permission/
> The battery is said to work through “reversible oxidation of iron”. In discharge mode, thousands of tiny iron pellets are exposed to the air, which makes them rust (ie, the iron turning to iron oxide). When the system is charged with an electric current, the oxygen in the rust is removed, and it reverts back to iron

This sounds a bit like what red blood cells are doing during breathing.
You likely learned that rule (and others may be learning it here from you) in a manner that either 1) required access to the upper class, serving its class-signaling powers, or 2) required information access like the Internet, or etiquette books, etc. that were not readily available to the class outsiders of Herbert Hoover's time.
An useful cross platform tools for SSH/SFTP/FTP/SERIAL
10+3 / 2 = 6.5 candies for Alice.

10-3 / 2 = 3.5 candies for Bob.

You may think that's a strange solution, but it's the only one that matches the problem statement. What was your solution?
The whole JavaScript ecosystem
You have a strange definition of "great." If any other phone exhibited those characteristics, I would write it off as garbage, not excuse its faults with a promise that they'll be fixed Real Soon Now™
One difference is that parameters in the shebang is non standard and not supported on all OSes. Linux supports it, though.
On this regard, it's often commercial software that are just bad with really poor support on Linux.
There's a bit of a non sequitur here. Does the author think that Redis wasn't marketed? Or that most of Redis's users are using Redis in a way that it wasn't designed for?

Sure, there's a difference between creative thinking and doing something that somebody gave you the direct inspiration for. So what? By definition, you can't build a product for off-label reasons. If you knew what the off-label reasons were, then you could market them and put them on the label. Off-label uses basically just happen or they don't, and it's not really the purview of the product builder to try and force it to happen.
I think your analysis is great, but a better solution might be to just pay and consider teachers better.

Here's a data point: in France, after high school, we're put for two years into a "preparatory class" where we prepare during two years for engineering school entrance exams. Preparatory class selection occurs on high school achievements but don't matter at all: the teaching is roughly the same between the preparatory schools. And, teachers in preparatory schools are usually the best you can find: they're very well paid and hugely respected. Plus, they have to pass an exam where they are filtered on their teaching capabilities. In my two years there, I've had very good teachers. The curiculuum is very intensive. The normal workday is 8am-6pm of regular classes and extends until sleep for most students. It is rough, but long enough so that the only way to survive is to keep a healthy work-life balance. I didn't work a lot during holidays, slept for 9 hours every night and kept partying most weekends but still managed to get into France's second best engineering school. And, private teachers don't help much. The state already employs the best teachers you can find and there's so much school time that it would be hard to find time for private lessons. Furthermore, exams are made in a way that is very hard to game. I still think the best way to go into an elite engineering school is to be genuinely interested in engineering, maths and physics.
Well...depends. If moderation is absolutely needed and only slight overdose leads to death, then yes, do not count on moderation and common sense as an absolute.

In general though, by nature's design, people start to consume everything unknown slow and increase the amount/dosage. That is how we function.

The fact some people do not know moderation, for various reasons, is not a sound argument for prohibition. Some will always abuse anything.

You can die of drinking too much water, and certainly people did in the past. Can you prevent that from happening, by controlling the access to water somehow? No.

In my opinion the more nonsensical idea is to try to forcefully protect people from doing harm to themselfes, when common sense and normal behavior will do on its own.
There is free will and autonomy over the own body. That's the limit of regulation.

The better aproach is education in a honest, factual way.
Hard to say, but it forced Walt to use other methods like using phenylamine as a pre-cursor, which was a lot harder to come by. To get that you will need to have contact with some big corp and rob a train or something so barrier of entry is much higher.
>1) (学区房) Apartments that are in good school districts. The usual trick is to purchase a very small apartment (may still cost some 2-3 million USD in Beijing for example for a something like a 20 m^2 one). One recent policy (before this one) is to completely remove those districts and randomly pick schools for the kids (I think it's still based on geography but a larger one)

Just to add some flavour to this, recently a celebrity on a reality TV show complained that 650 RMB (~100USD) per day isn't even enough money to eat and was lampooned on social media for being out of touch with money.

Meanwhile parents in the school rat race are forking out millions of USD in Beijing to try outmanoeuvre each other. That's how BIG education is in china
While that’s true the GP mentioned children breaking contact and never speaking to their parents again as though there is some permanent catastrophic trauma which is out of scope to the example expressed.
What's the problem with the distributed social networks? If you don't want a single entity to be in control of all people's data, then distributed is the only way to go.

Of course the problem with the existing distributed social networks, like Diaspora, Friendica and all those others, is that there's not a lot of money behind them, so they're mostly amateur projects. And there's certainly a lot that can still be improved about them in terms of features.

What I personally don't like, is how you currently need different centralised sites and apps to follow various things an people. Just Facebook isn't enough; you also need Twitter. And Instagram. And Reddit. And then there's every possible blog.

I'd like a system that acts as my own portal to all those systems, and allows me to follow people on the Fediverse, Facebook, Instagram, RSS feeds, you name it; and is easy to expand to support new things, but also gives me more control over my feed; all of those social networks have a tendency to include all sorts of nonsense in my feed that I'm not interested in. More powerful filters would be nice.

And I wouldn't mind paying for that either, as long as it really has the capability to support nearly everything. The internet has grown to only support free, and therefore ad-monetised, possibly selling your data. But I somehow still pay EUR 22 per month for TV that I rarely watch. Something that helps me manage my feed well and puts me in control, should be worth something, shouldn't it?
I would argue that technology is in general not management's responsibility, but resource allocation is.

If you care about quality and productivity, please quantify those and present your findings in terms of tradeoffs.
dont forget to exclude your sysinternals/nirsoft-tools-dir from av
The idea that "conspicuous" consumption is worse than inconspicuous consumption is necessarily rooted in classism -- it's that you don't want the "lowers" to see what they can't have, and anyways, you're only jockeying for status among the uppers anyways, so why not consume inconspicuously in an uppers-exclusive environment?
There's nothing wrong with asking, but be graceful if they say no.

Make no mistake, it doesn't matter how long you were there, or how great you were to them, you will be remembered based on the way you leave.

You can leave well, and have good contacts and references for life, or leave badly and you just set fire to years if reputation and networking.

That kind of damage will make it a really expensive week off.
I do and would agree smashing a phone is terrible example.

If anything it shows authority has been lost and the parent is flailing desperately.

Sure, you can get compliance just like you can get compliance by pepper spraying someone but it's not how to do good parenting.

You can of course remove the phone if it seems it's warranted. Parents are eligible to critical interventions IMO.

There are times when parents actually need to intervene. But this intervention should be taken from a position of dignity, authority, respect and minimal violence.

The quality of intervention depends on the situation. As a parent of a slightly autistic child for example I've had to restrain the child physically to stop the child for harming themself or the anyone else during a meltdown.

I would never smash any of my childs property. Remove - yes, if the situation warrants it.
> snitching

That is not a good thing to teach kids.
It does matter. But companies should not pick software solution with garbage Linux support if some employees are using Linux.
Nobody would pick a software that does not work on Windows and Macos.
Years ago I was working on a digital graveyard called “rest in bits” (RIP = rest in peace = rest in piece = pieces are bits = bits are what makes up code) but it never came to fruition. Anyway, if you need a name, I recommend rest in bits.
IMO it is absolutely inexcusable that a device I paid for, does not let me run the software I want to. Lack of browser engine diversity is but a small symptom of that larger root problem. The owner/user must have final authority to run, use it as they like.

If the market is failing to ensure this for the vast majority of the phones and tablets sold, the state must intervene. This is classic monopoly abuse.
I spent around 11 years in large companies(anywhere between 300 and 6000 employees). It highly depend on what you work on and what's your work ethic. In all honesty beyond circumstances which were outside my control, I ended up in a small company and just now I realize how much the idiotic bureaucracy truly bothered me. And I'm acknowledging that precisely agile facilitated this hell.

I think you are looking at it from an r&d (still evangelistic) prospective, but now picture rewriting a truly ancient system still operating on mainframes(and the original developers and maintainers are no longer among the living) in a modern language where it's not a question if something is worth doing or who will do it-it has to be done. Figuring out how the old system works is a combination of reverse engineering and brute forcing. I've been there and trust me, in those circumstances story point is a synonym for a random number. This is a real life example and in those conditions agile doesn't only crack, it collapses and it mentally crushes on top of you cause you are still forced to stick to everything agile.

What I'm saying is that agile and by implications sorry points work in some extremely specific circumstances but in the vast majority of cases it only adds multiple layers of complexity which does nothing but waste valuable time.
Can you explain why you have to use a different phone for maps? Couldn't you use a browser? Or do you mean navigation?

And is the GPS device optional or always included for all pinephones?
Aside from that being a false statement.

"Wrong" is subjective. I am sure these is a ton of government spending believe is wrong or outside the role of government that you find to be a requirement of government
the input is rarely free.

Unless there is a regulatory blip, then there is always a cost to energy. Stuff has to be maintained, connections repaired, monitored and upgraded.

The other thing to note is that its only "free" if you own both the infrastructure and the producer. If you are doing "arbitrage" then the efficiency is your profit margin.
> Otherwise islamic cultures are known for destroying archeological sites

I’m not sure that this is an Islamic trait so much as a victor/oppressor behaviour.

You see this in buildings throughout history, where the dominant power converts existing structures to their usage, or destroys things they don’t want. It’s how rulers seek to dominate.
He didn't say anything about degrees (only careers). He said you should avoid expensive schools.
Bluehost Hosting,It Is Cheap, but Is It Good?
I'm not sure if Agile ever claimed to be a good process for coming up with unicorn startups though.

It's a way to meeting actual business software needs, much more suited to custom development for one customer than product development, which necessarily requires some additional insight into what the market wants.