skysight-inc/HackerNews huggingface dataset:
Bias: I'm Christian.

This is probably the best contribution anyone made to the conversation. The role of faith in a person's life cannot be diminished, especially where the scientific option is contested. I belong to a Christian denomination that doesn't believe in The Trinity. I never answered questions about it that implied that it was the belief I held. I didn't mind writing essays on it though when the question started with "According to the trinity doctrine, ..."
I used to be a TDD zealot. In recent years, I've taken a much more selective approach to test coverage. I typically focus my testing on pieces of code that contain business logic whereas I used to test everything. I've also found automated UI testing is not worth the squeeze and I've had better luck just looking at impacted objects and manually testing those.

I'd be interested to hear if anyone has automated UI testing tools in place that are easier to write test cases for than to just do the manual testing.
This is a good point. Just like with anything in engineering understanding the process is more important than just following some steps because you think you should.

When developing software there are many steps before testing even occurs to catch problems, and the earlier you catch problems the better. Coding standards, having requirements, and peer reviews all are important too.

I find tests useful for having a "checklist" of things to do before releasing a new build. In robotics automated tests are especially helpful since there is a lot of code which only happens in certain physical conditions which are hard to recreate manually (i.e. in a low battery condition the robot should do this behavior). But just having the checklist is more important than how you execute it.
yes because insurance companies are all about minimising profits
Mods (dang?): the actual title (and content) is "Ohio House passes bill ...". The current HN title, "Ohio passes bill ...", makes it sound like this is already law.
Motivation is key here. It seems that von Neumann became too fond of prestige and spy stuff. So he was less creative. Smarter than Gödel, able to recognise the importance of Gödel's work, but unable to produce anything of similar moment.
I am quite curious to know what percentage of working devs ever write tests at all. Because I don't think it's the majority, based on my own professional anecdata.

But I've not yet been convinced that any of the various polls are very authoritative. So I dunno.
Core Scaling and Gaming Performance – How Many Cores Do You Need?
What is a conscious process for some can be a completely unconscious process for others.
No, my clients wouldn't work with me then...

On a serious note, I find it hard to write the tests at the beginning for a code that I'm not sure how/what is gonna do. What do I mean by that? Well, as all you probably have experienced, requirements change during development, sometimes 3rd party/microservices/db constraints don't let us achieve what we want. We have to come up with hacky/silly solutions that would require us to rewrite most of the tests that we wrote.

A lot of times I don't even know how to code the stuff I'm required to build. How am I supposed to write tests in that kind of situations? I think it would be like building abstractions for problems that I don't know very well yet.
check out https://mjml.io/. Its a great solution for creating email layouts in code. I use it with vcode where it has an option to preview the result.
False, a giant teapot behind the moon is bot unprovable and safely can be said to be false by anyone without further evidence needed.
I wouldn't be surprised if it is based on the extension, with exceptions for some specific trusted domains/downloads
Honest question, how can it possibly take 10 years to port hg to Python 3? If I am to believe the Wikipedia source for the first release of Mercurial[0], it would've been only 4 years old at the start of the 10 year porting process. How on earth does it take 10 years to port 4 year old software?

Even taking into account the fact that new features were still being added and not all focus was on porting, this doesn't really seem like a reasonable representation of what's going on; I have a suspicion that "10 years" of porting here does not entail nearly as much work as it seems.

[0] https://lkml.org/lkml/2005/4/20/45
Because, well, there's no correct answer. Only what's less wrong. Asimov explains better https://chem.tufts.edu/AnswersInScience/RelativityofWrong.ht...
Thankfully we don't have to. Hillel Wayne links to a few of the studies that have been done on TDD [0]. It doesn't have a conclusive effect on error rates in software. While I do write tests before I write code, more so in a dynamic language without a strong, static type system; it appears that there isn't any correlation to a reduced number of bugs.

But I still do it. And I think that's because that while I may prevent a few obvious errors with the practice the benefit I get is from the informal, automated specifications of the units of a module that I'm building. I also get the benefit of a continuous refactor cycle. Less experienced developers wonder how I write clean, simple code: I refactor, a lot, all the time, because I have tests checking my code.

If it's functional correctness we're after TDD is only one, small, piece of the puzzle. A strong, formal specification will go a lot further to ensuring correctness than fifty more unit tests.

[0] https://www.hillelwayne.com/talks/what-we-know-we-dont-know/
a) "The Earth is between 6,000 and 10,000 years old"
b) "The Bible teaches us that the Earth was created in six days by God, and this occurred between 6,000 and 10,000 years ago"
c) "The Earth is about 4.5 billion years old"
d) "In God's creation, the Earth was formed about 4.5 billion years ago"

I would interpret that law as requiring that the answers in (a) and (b) be graded as wrong, and that the answers in (c) and (d) be graded as right.

i.e. a teacher should not mark down a student for having a progressive creationist view if they get the answer correct; nor should they give credit for an incorrect answer because that student has a Young Earth creationist view.
Stream Movies on Netflix Premium, No Registration, No Subscription
Fun fact:

This app is written in Crystal, with SSR Crystal + HTML templates.

It's source code is pretty interesting. One of the most popular Crystal apps I know of. (Huge fan of both Invidious and Crystal)

https://github.com/omarroth/invidious
Gerrymandering ensures Republicans have a very strong majority in the state legislature. We're getting dumber and more conservative, but we're not actually THIS dumb and conservative.
Another episode of “Hacker” “News” willingly biting the bait just to have an excuse for some good old Christian bashing.
But I highly doubt that the best programmers we can think of got good by doing code katas and code retreats. They seem more like things mediocre programmers do, or people only do to prepare for interviews. I could be wrong though - have any great programmers expressed their love of katas?
>now I doubt the future of Pornhub

There is one absolute in the world: porn will exist.

Look at every technology and one of the first adopters is porn. Porn has chosen the winner of most battles in tech.
Not for at least half the planet. Facts and reality aren't important or something to even consider.

Observing the exposure of these widespread thought processes by means of social media has truly and deeply disturbed me. There is a good, solid chunk of people who are absolutely not interested in learning or having their minds changed.

I am German and went to a US college where I observed students jumping out from their seat, yelling at a lecturer that they need to include God and his creation stuff in biology lectures.

I was truly baffled. In Germany, we have some of the most persistent anti-scientific and conspiracy communities as well. Especially anti-vaxers, chem trails, and anti-electromagnetic radiation folks.

As a student, my landlord had a radiation shield built on top of electric wiring in the basement. It was a painted brick from some website making bank off of idiots.

And don't forget homeopathy and how politics even financially supports it.
What is the “two-drive trick” that can read Amiga disks on a PC?
Maybe it's time for an update to Hanlon's razor? ;)

Never attribute to incompetence that which can be adequately explained by corruption.
The present and future of food tech investment opportunity
So what happens when the answer is wholly religious?
Show HN: Remoter Project
These are often found in log files when people get a bit to log happy.

I've seen many smart developers accidentally log a request in an API that also happens to show the login credentials.
Barcodes as Icons (2009)
Closed-cell foam is designed to prevent this problem, but at the cost of being stiffer and heavier.

You made a good point, anyway. Foam could absorb water, and air, and get dirty, and smell bad.
When bills are this vague, you can bet it will lead to selective enforcement.
Thanks for your thoughts, I am not sure how can I specify showcase is clickable actually need to think about it UX wise.
It is not secret that they are bots and response time is fast naturally. Maybe in future when we have more things happening in background and more users it will slow down a bit :)

This can be used as a support bot or for just entertainment purposes. It is all about imagination of users.
Right above this it says,

>No school district..shall prohibit a student from engaging in religious expression in the completion of homework, artwork, or other written or oral assignments

Where religious expression is defined including

>Prayer..activity of a religious nature...expression of a religious viewpoint...

So there's more to the story (imagine that, in a story about religion and politics) than "Johnny gets a free A+ on his multiple-choice quiz about evolution."
> especially where the scientific option is contested

There’s no contention on evolution. That’s like saying the equivalent...

“According to the theory of gravity, apples fall to earth...”

Couching all these questions as if they are not facts does nothing but ease people’s minds who don’t want to deal with reality, and does a disservice to students.
And add Blockchain to the name for an additional 50x valuation.
Wind driven hail traveling nearly sideways is common unfortunately. I'm not sure what angle of protection would be the best compromise, but I do know a copy above would not afford 100% protection.
I had to explain to my supervisor's boss' boss (Division VP of a $800M USD/year company) for an hour on why I needed a $45 piece of software to read/understand binary files.
Adequate in the post-truth world we live in.
First bullet point of the original Invidious linked page README:

> Audio-only mode (and no need to keep window open on mobile)
Safekeeping – A Useful Tool for Interacting with First Class Disks
So if this WERE the case, I'd be against it. But, this is clickbait journalism at its finest. If we read the actual text of the law:

> No school district board of education, As Passed by the House governing authority of a community school established under Chapter 3314. of the Revised Code, governing body of a STEM school established under Chapter 3326. of the Revised Code, or board of trustees of a college-preparatory boarding school established under Chapter 3328. of the Revised Code shall prohibit a student from engaging in religious expression in the completion of homework, artwork, or other written or oral assignments. Assignment grades and scores shall be calculated using ordinary academic standards of substance and relevance, including any legitimate pedagogical concerns, and shall not penalize or reward a student based on the religious content of a student's work.

This suggests, that, you may not penalize OR REWARD a student because their work contains religious references. However, the work is still to be marked using ordinary academic standards of substance and relevance.

So if a student said that "The world was created 6000 years ago" on a science test, then they are still marked wrong. If they said "I believe the world was created 6000 years ago, but scientists say that it is 4.543 billion years old" then the student should be marked right for providing the correct answer, and their religious view should not be considered or weighted.

Further, if a student was making a moral argument about a character in a novel for an English paper, if they referenced morality as coming from god, they shouldn't be penalized for that if the paper still is a strong well formed academic work that assesses the themes in the book.

The other sections of this bill actually do a lot to protect the individual rights of anyone religious (whether Christian or otherwise) and atheists, by disallowing school boards to prevent you from practicing your beliefs and requiring that they allow time for prayer, meditation or reflection, as well as allowing students to opt-out of any such activity without repercussion.

This law is being constantly painted as some draconian attempt to allow wrong-answers based on religious belief, and it simply doesn't even come close to doing that.
It worked out well enough for them to get an exit. DBX is unexciting, but it’s not a penny stock.

And Google and Microsoft do exactly that already.
I think a problem with this approach is that since it doesn't ask for the student's actual belief, the student might score highly but still hold beliefs that may be dangerously wrong when used in a practical situation.

For example, a student may give a correct answer to this question, but when employed as doctor and prescribing a treatment (e.g. for contraception, pregnancy issues, heritable diseases) they may act according to their beliefs rather than the theory they were asked about, with dangerous consequences.
> Rust has a secondary set of rules that programmers have to learn

The rules are not that hard if you're somewhat familiar with the constraints of functional programming. Rust requires you not to rely on shared, mutable state, unless specifically enabled - thus, by default, you're essentially writing FP code using a 'procedural' paradigm and syntax.

It is also possible to do "quick, exploratory" programming in Rust; it just requires somewhat liberal use of language facilities such as .clone() and RefCell<>, to specify things that would mostly be implicit in other memory-safe languages. (And because these somewhat problematic features are so clearly marked in the resulting code, it becomes fairly easy to directly refactor it into better-performing, idiomatic Rust.)
How could a business think about charging money for a service?! I won't be falling for it again.
> Public school is K-12. All of the questions asked in public school have overwhelming supporting evidence.

This statement is profoundly inaccurate. All kinds of questions are asked in K-12 education, by teachers and students, whose answers do not have "overwhelming supporting evidence." School is not a parade of STEM: civics, a little philosophy, history, literature, etc. are all important and all included.
No, my religion says that the current title is fine.
I've been using invidio.us for months. It brings me back to a simpler time on the web. The interface is straightforward, does just what I need it to and not more, it doesn't relentlessly spy on me, and I can have a separate non-Google invidio.us user account (which, again, Google can't data mine, auto log me into, etc.). I've always figured it'd get shut down at some point. I'd actually pay a small monthly fee to keep access to it and avoid Google's official YouTube interface.
Where are you storing the mats also? I can't imagine that they'd be small, even rolled up.
But aren't these high salaries spent on high living costs as well? Presumably, the places where you make a lot of dev money are also expensive to live at, no?
I mainly write embedded software and I tend to write my tests using Robot Framework. I generally start by writing the new feature since I need to probe around how it will work on the hardware, but generally write the test before the feature is actually finished. This is because the test itself will help me recreate the conditions I need the hardware to be in during debugging! One example is sending a specific sequence of serial commands over the CAN bus, or hitting a sequence of buttons on the user interface.

I am still trying to figure out the best way to do unit testing with embedded C (working with Unity right now), but with Python development I try to write unit tests only for more tricky code.
Netflix Will Fix World War II Documentary Following Complaints from Polish PM
What code won't benefit from unit testing ?

If you don't know what to test, then you don't know what you are implementing. Find what that is, clarify it and pin it down with a test then move on to the implementation to make it happen.

If you don't know what the output is like, then do some exploratory throw-away work to know a little more. Then write the test that you would've written if you knew what the output is like.

tackle your problems one a at a time, not knowing what to test is not a good enough excuse to not test first.

Make it Work - Make it Right - Make it Fast (while still under the protection of your first-written test)
No, it's passed in as a parameter with a default value of 1
Didn't the non-touchbar version have lower specs? I'm pretty sure I tried speccing the other one to the same level and the price difference was very small.
You mean students making religious statements like “2π = 6”?

Yeah that’s definitely not right, the correct solution of course being “Burn the mathematician^W witch!”
$150 is the price I pay for a Moto Z3 play (of course after a discount from Motorola, which is applied to everybody). The Z3 play might not be as "open" as this one, but it's a very nice phone, rootable, able to install TWRP. So $150 for this phone is a little too much.
Maybe she should talk to John Fogerty...
Was his work in quantum mechanics Nobel-worthy? If so he'd be on the list of greats not to receive the prize.
Not a difficult task lol
Can anyone here comment on the maturity of the supported OSes? UBPorts and Sailfish(!) look like the farthest along of the bunch from a read of the docs.
> I wouldn't expect low-level info like this in an FAQ. Maybe the "SCION Book" listed at the top of "Publications" that goes into it on a higher level than what the paper does. If not there is a huge number of other links to papers and videos that I'd expect covers it in detail.

I mean... maybe? But this is quite a big claim and just saying "yep, it does" with no further info is not a communications strategy that inspires confidence. I had to look about the site for a fair bit before I found the correct whitepaper, and I never managed to find the book until another poster linked it.
Actually, the more technical a text is the more likely it is to contain references and (sub)headers. Also, I certainly would not describe this text as a 'straight wall of text'. A straight wall of text would be a text without paragraphs or headers.
There's nothing inherently wrong with advertising. But if the business model is trade users and their data for advertising revenue, there's no chance that the users' best interest can be served. That said, as someone working on social technology where we've expressly decided to not go down that path, it's also clear that the dark patterns that an ad-driven approach lead to are also effective at driving growth. I'm curious how many people will pay rather than have their data collected and sold. My guess is that it takes more than just being ethical to charge for social tech, it takes adding extra value as a product as well. I'm betting my current career on the idea that there is an alternative.
My fiancé is an elite opera singer. I’m a programmer/founder.

She has spent years and years perfecting the way she practices, sleeps a ton, and hustles hard for gigs. She’s highly systematic as to how she memorizes her music, learns how to pronounce words in different languages, practices technique.

Less successful singers in our network can’t be this efficient. They struggle at sight reading despite years of practice. They take hours to learn new music as opposed to minutes. My fiancé takes minutes to learn music and hours to perfect. They work their ass off practicing their Italian accents but are never quite perfect.

My fiancé works hard but all her work has compounded over the years because she has an incredible talent for memorization, languages, and likely perfect pitch.

I’m a good programmer, not great like John Carmack. I get stuff done but I have to work to the point of exhaustion at times. Personally I don’t think this sort of elite relaxation is available to everyone and may be just specific to musicians.
Equifax Data Breach Update: Backsliding
I have used that add-on for a while, but half the time the video's stop playing after a while.

Instead I now have a youtube container and have set firefox to open all youtube urls in that container. That way all cookies and session are contained.
What's interesting is the React team had to implement their own DOM manipulation abstraction, with efficient change management and not interrupting the main JS thread. Their implementation strikes me as a possible general purpose implementation that could eventually replace the way DOM works.
‘Cryptoqueen’ Brother Could Face Up to 90 Years in Prison
The answer to this question depends on the type of programming you do.

1)

Working as a part of an enterprise team on a big lump of TypeScript and React? Then you probably don't write tests before you code because a) TypeScript catches all the bugs amirite? and b) Your test runner is probably too hairy to craft any tests by hand, and c) You are probably autogenerating tests _after_ writing your code, based on the output of the code you just wrote, code which may or may not actually work as intended.

2)

Working on an npm module that has pretty tightly defined behaviour and the potential to attract random updates from random people? Then you _need_ to write at least some tests ahead of time because it is the only practical way to enshrine that module's behavior. You need a way to ensure that small changes/improvements under the hood don't alter the module's API. This means less work for you in the long run, and since you are a sensible human being and therefore lazy, you will write the tests before you write the code.
It's no longer "philosophy" but education and awareness. The longer bitcoin exists, the more custodial exchanges get hacked and consequentially the better knowledgeable bitcoin users we will have.

You cannot bring points against bitcoin which actually happen more in centralization-backed entities than in decentralized scenarios.
It’s a broad church, long as they know to how to add dollar bills to the right palms.
That seems like a handwavy way to disregard the way that theory came to be, meaning that instead of "According to theory of evolution" a more honest complete question would be "According to all the evidence we have acquired over the last few centuries in the fossil record thanks to the studies of hundreds of anthropologists and biochemists how did humans come into existence?"
I have yet to have it become it's own problem.
The pound is rallying on a highly uncertain Brexit deal
Drones fly around and use ML to recognise hail, and when it detects hail, sends a signal to self-driving cars to (cue Monty Python's Holy Grail:) "Run away! Run away!"
> No if it was beating up cheating ex wife's lover.

Well that one is indicative of a violent person, with maybe some poor impulse control. Not necessarily someone I'd want to work with. (but since I'm in a country where companies can't easily get criminal records, I don't think I'd ever be in position to make such a choice)