skysight-inc/HackerNews huggingface dataset:
There are two problems I've seen with this approach. One is that sometimes the feature you implemented and tested turns out to be wrong.

Say, initially you were told "if I click this button the status should update to complete", you write the test, you implement the code, rinse and repeat until a demo. During the demo, you discover that actually they'd rather the button become a slider, and it shouldn't say Complete when it's pressed, it should show a percent as you pull it more and more. Now, all the extra care you did to make sure the initial implementation was correct turns out to be useless. It would have been better to have spent half the time on a buggy version of the initial feature, and found out sooner that you need to fundamentally change the code by showing your clients what it looks like.

Of course, if the feature doesn't turn out to be wrong, then TDD was great - not only is your code working, you probably even finished faster than if you had started with a first pass + bug fixing later.

But I agree with the GP: unclear and changing requirements + TDD is a recipe for wasted time polishing throw-away code.

Edit: the second problem is well addressed by a sibling comment, related to complex interactions.
What is drilling the third hole?
You literally said that by the metric of population, their history was not as rich. I don't see how that's twisting your words at all.

My point is that Native Americans do have just as rich and interesting a history as European countries. It was just largely deliberately erased by European settlers.
This is a great point. You're literally testing the test validity as you go.
Eh, wait. Tempest for Eliza works on LCD monitors too.
I tried it with xvidtune to match the settings and the tune worked perfectly, and I did this over 10 years ago.
I mean, I don't want to discount that many people are suffering, but real income growth for the bottom 50% of earners has gone up substantially over the last year (and, notably, have gone up more than for high-earners, percentage-wise). Rising prices are bad and all, but if wages go up more than prices, as they seem to have done, then on aggregate people should be doing better, not worse.

Inflation causes excess capital to flow into assets, which the poor don’t have and HN commenters do.

I'm not sure I agree with this, as inflation seems to have scared markets off of their peaks. I mean, they're not down that far, but I don't see a lot of upper middle-class folks profiting off of this situation. Maybe this is true for some assets, but unless I'm missing something, markets in general do not seem to be feeding off of inflation in the way you're describing here.
>At least it's not institutionalized torture like in Xinjang

https://www.theguardian.com/commentisfree/2015/apr/09/prison...

>concentration camps used to "re-educate" Falun Gong practitioners

https://uk.news.yahoo.com/survivors-troubled-teen-industry-s...

Although tbh the American way to "re-educate" religious fundamentalists usually means executing them from a safe distance.

It _appears_ that China is worse, but once you start looking at actual data instead of the rhetoric found in media, you'll quickly find that it simply doesn't check out.
Do you want people in EVs or not? Because if you make everything look like a Tesla or Taycan, you're not gonna get muscle car meatheads to ditch their V8s. And if you worry about a little extra bit of aero efficiency, every car is going to be the same shape.

I hope you also complain bout the compromised aero in all of these crossover EVs (Model X, and Model S) as well. Because lowering the vehicle back down to car height would also increase their efficiency. But hey, people wanna "sit up high" and nobody ever seems to bitch about how it does literally nothing for you except make an inefficient car with a higher center of gravity.
The big issue I see when people have trouble with TDD is really a cultural one and one around the definition of tests, especially unit tests.

If you're thinking of unit tests as the thing that catches bugs before going to production and proves your code is correct, and want to write a suite of tests before writing code, that is far beyond the capabilities of most software engineers in most orgs, including my own. Some folks can do it, good for them.

But if you think of unit tests as a way to make sure individual little bits of your code work as you're writing them (that is, you're testing "the screws" and "the legs" of the tables, not the whole table), then it's quite simple and really does save time, and you certainly do not need full specs or even know what you're doing.

Write 2-3 simple tests, write a function, write a few more tests, write another function, realize the first function was wrong, replace the tests, write the next function.

You need to test your code anyway and type systems only catch so much, so even if you're the most agile place ever and have no idea how the code will work, that approach will work fine.

If you do it right, the tests are trivial to write and are very short and disposable (so you don't feel bad when you have to delete them in the next refactor).

Do you have a useful test suite to do regression testing at the end? Absolutely not! In the analogy, if you have tests for a screw attaching the leg of a table, and you change the type of legs and the screws to hook them up, of course the tests won't work anymore. What you have is a set of disposable but useful specs for every piece of the code though.

You'll still need to write tests to handle regressions and integration, but that's okay.
+1.

Pine64 has listened to feedback, and made attempts to get Tow-Boot flashed on the PineBook Pro. It just didn't fit Pine64's manufacturing timeline.

Does any other manufacturer do better in this regard?
Behavior is an unfortunate term, because the "London Style" TDD sometimes is described as testing behaviors:

https://softwareengineering.stackexchange.com/questions/1236...

Which seems like the exact opposite of what the talk is saying you should do.
Agreed!; Personally, I am of the opinion that Idris for one is mature enough that there is no need to forego tools that have a proper proof system for the entire program. It’s feasible today.

Idris is carefully and purposefully described by its creators as not production ready. Nonetheless, because of what Idris is, it’s arguably more production-ready than languages which don’t even attempt formal soundness to anywhere near the same degree. In other words: Idris is not a complete Idris. But! All the other languages are even less complete Idrises!

Big old “personal opinion” disclaimer here though. –Let’s prove it’s not possible to use Idris by doing it! Shall we?
Ah "security key" as in hardware token. Sorry thought you were referencing to your key file and not your usb-key. Misunderstanding that's all :)
And those are illegal to use between 11PM and 6AM in my city and presumably most others.
The problem with Zelle seems to be that no one knows about it. Yet, I'm using it more and more all the time.

For example, the person who cuts my hair only takes cash. I asked if we could try Zelle (I rarely carry cash). She agreed, and we haven't looked back.
And here I was thinking it was a way of checking if the barn door was open, and how much, and was thinking "why not just reset it at closed".
middle-class american urban yuppies who've given up on McD a few months ago and now insist the rest of us should follow suit? not the enemy, just their useful idiots.

global elites with their private jets, yachts, islands and castles preaching to us unwashed masses to tighten our belts and lower our expectations as they bring about the end to our peace and prosperity? yes, absolutely, they are my enemy - and yours, if you can see past your nose and realize these people don't give a flying fuck about the environment, social justice and all the other bullshit.
Tesla isn't even close to those kind of volumes.
> Does that include when he had fled to Italy in 1953?

There were ~4 days between the Shah fleeing and royalist forces taking power. I supposed if you want to consider those a 4 day interregnum you can.
In theory, I agree. In practice, at least for my projects, the results are mixed.
Indeed, while I also often prefer to use a card, I believe it is essential to retain cash as legal tender.
The intent of using power tools and heavy equipment is not to assault. The intent of a needlessly loud car is to disturb and assault others.
Dumb question: how come that isn’t fraud?
Back in 2001/2002 (I was 11 or so) I wrote an AppleScript to play a specific iTunes playlist. I then set up my iMac to run this script every morning at ~5am to be my alarm clock. That feeling of bending the computer to my will was pretty cool, and started me down the path to becoming a software engineer. It's amazing what ~10 lines of code turned into.
I would counter by asking, "why do you trust paper voting?" As long as there are people in the process, there's room for corruption; that's just a fact you'll have to live with. With decent encryption, an electronic voting machine is at least as safe as paper ballots.
Yes, it is.

https://pubmed.ncbi.nlm.nih.gov/19145965/
Exactly. Nobody's on board with paying at least twice as much for software though. But that's what you get when things change and you have to refactor BOTH your code AND your tests.
To me this is the first formal announcement that the Fed is going to solely operate this system, which makes many of these companies redundant.
That's quite the re-writing of history there. The Shah removed Mosaddegh from power in 1952 but re-instated him almost immediately due to pressure from pro-democracy supporters. The Shah was then exiled after a failed coup attempt by one of his Imperial Guard colonels effectively leaving him powerless.

The rest is history and we've gotten to where we're at today because the UK and the US interfered with a nascent democracy because...oil.

> if Queen Elizabeth asked that Boris Johnson step down from role as PM(which is her right), and Boris Johnson instead refused and said that he was now the leader of the UK, whose side would you throw your support behind?

Regardless of Johnson's behaviour and incompetence I'd hold my nose and throw my support behind the Prime Minister. Such autocratic behaviour should not be tolerated. I should reveal that I'm an anti-monarchist and a believe that states should strip any and all powers from from their monarchies, even if they are quaint and historical anachronisms.
> "BlackRock is using money that doesn’t belong to them to push an extreme agenda with no regard for American families who are paying the price," Will Hild, executive director of Consumers’ Research, told Axios. "Consumers deserve to know where their investments are going."

This is completely unsurprising for Republicans, especially with the (most likely) lie about American families "paying the price". Also I reject the "Conservatives" title for Republicans, it's insulting to anyone who is conservative (a dying if not dead bread in the Republican party).
In the Navy, we take exams for rank advancement -- we have a phrase. When in doubt, Charlie out. In other words, if you don't know, guess C and move on
I sometimes feel bad to have a prejudice against some pople but realistically i don't have the time and energy to sift through a lot of bad ideas when I can talk to other people who usually have good ideas.
> Another partly orthogonal issue is that design is important for some problems, and you don't usually reach a good design by chipping away at a problem in tiny pieces.

True, but… you can still design the architecture, outlining the solution for the entire problem, and then apply TDD. In this case your architectural solution will be an input for low level design created in TDD.
Privacy. If someone owns two servers you're logging into, they can associate your logins if you use the same key.
Another case is associating you with your GitHub account (as your ssh keys there are public)
Banks implement the UPI protocol (an API essentially) to talk to the NPCI infrastructure network. Your UPI VPA is linked to your bank account. Most banks in India are already on the NPCI/UPI network.

Thirdparty apps can also implement the API to provide services on top of UPI eg: bill pay, ticket booking for buses, trains, movies etc.,

Payment processors provide UPI as a payment method (in addition to debit cards/credit cards/netbanking/digital wallets etc.,).

To answer your question on credit cards usage with UPI: No, you only need a bank account. UPI is a p2p payment overlay over the banking network.
Canonically, George made millions by inventing 'iLoo', so you can find a toilet wherever you may be, and did not defraud investors or poorly manage his company, but in fact was merely a victim himself of Madoff.
Why the Learning Styles myth spreads
An easy solution for the rotary knob would be to include a second low-profile knob without the protruding finger-grab piece.

This looks like a nice keyboard, but I have the same concern about slipping it into a bag. I’d try to 3D-print a flat replacement knob if it didn’t include one out of the box.
As I understand it, this is settlement infrastructure for banks. How the consumer experience is actually implemented is up to each bank.

Perhaps Zelle will switch to it for settlement without changing the user experience? Some limits might be removed, but then again I’d guess that the limits are at least partly there for security purposes (to prevent bank accounts from being drained too easily) and the risks don’t go away just because settlement is easier.

(In a similar way, ATM transactions have daily limits and it’s not because there’s any technical reason for daily limits to exist.)
I think so. By the late 2000's, it was Java.
I agree we're losing a lot with secularization. But I think we'll need to be quite creative to chart a path forward.
Assuming you use different keys for different services, the answer would be: privacy.
Yes, if you were right about the requirements, even if they weren't well specified. But if it turns out you implemented the wrong thing (either because the requirements simply changed for external reasons, or because you missed some fundamental aspect), then you wouldn't have had to debug, refractor or maintain that initial code, and the initial tests will probably be completely useless even if you end up salvaging some of the initial implementation.
Using: Has() as a CSS Parent Selector and much more
A mercenary satellite is a wild concept. It raises an number of ethical questions.

It also feels like another step down the path toward a cyberpunk dystopia. I'll add it to the list with robotic policing and subscription based airbags.
I always liked the discussion "Is TDD dead" between David Heinemeier Hansson (of Ruby on Rails and Basecamp fame) and Kent Beck. DHH arguing against, Kent Beck obviously in favor of TDD. Martin Fowler is moderator and the discussion is very nuanced and slowly identifies areas where TDD has its benefits and where it should be rather avoided. https://martinfowler.com/articles/is-tdd-dead/
Quill Deltas are a very interesting concept, I used Quill myself along with Supabase for realtime sharing (not collaboration) of text and it was almost a breeze.
my go-to strategy is to just make a module and write code there, and then if I need to change a struct definition, I just change the name of the module and re-run it.

ReplMaker.jl can make this process more convenient, but in version 1.9, there’ll be a facility for that built into the regular REPL.
So...I should try more by doing what, exactly?

Assuming I'm an average driver, and across a 30-year career, that commute is increasing my changes of dying something like 0.3%, given the number of miles I'm driving (that's a whole lot higher than I expected!) by car vs. 0.03% by bus. But...by bus, I've spent an additional 3% of my entire life (assuming I live 100 years = 876,000 hours) commuting, so the balance of that equation shifts pretty far in favor of car commuting (and I'll switch to electric at some point soon once EVs are purchasable without a 6-12 month wait...).

I will grant you that riding a bike 4 hours per day would probably improve my lifespan more than that 4 hours (due to improved fitness), though will likely also cost me my relationship because all I'll be doing is working and commuting to work. But this would enable me to move closer to work! Win/win!
If you run a dark net market and your servers are at the risk of being seized, then no, you don’t want stuff like whoami.filippo.io to work.

It all depends on your threat model, I guess.
Britain also has PayM, to send money using a phone number as an identifier, but at least in my bank's app the interface is hidden several menus deep.

Denmark's equivalent, MobilePay, is very widely used. I even use it for some online purchases, as the flow is so smooth:

- Select pay by MobilePay

- (They probably already have my phone number (e.g. for delivery notifications), if not I must enter it. It's 8 digits.)

- A notification appears on my phone, with the amount and recipient

- Fingerprint and swipe to confirm

- That's all.

The website doesn't keep any card data, but I still get a very quick checkout process.

To send money to friends or family (or small businesses) is also fast:

- Open app, unlock with fingerprint

- Type in amount, e.g. 100, press Next

- Choose a recent recipient, or scroll through my contacts, or type a phone number

- See confirmation -- the amount and the person's name as on their bank account, not their name in my address book

- Send.
I feel like TDD's usefulness depends very much on what type of code you're writing.

If it's C libraries that fiddle that do lots of munging of variables, like positioning UI or fiddling with data structures... then yes, totally, it has well-defined requirements that you can assert in tests before you write it.

If it's like React UI code, though, get out of here. You shouldn't even really be writing unit tests for most of that (IMO), much less blocking on writing it first. It'll probably change 20 times before it's done anyway; writing the tests up from is going to just be annoying.
It does come from the flesh tho (read the link) it's chemically extracted from the pulp after the mechanical pressing is finished.
Zelle does roughly $490B/year in transaction volume (1/4 of total annual US card volume, ~$2T). If that's failure, I want to fail too! Venmo is closer to $230B in volume.
> As with current Federal Reserve Bank services, the FedNow Service will be available to depository institutions eligible to hold accounts at the Reserve Banks under applicable federal statutes and Federal Reserve rules, policies, and procedures.

I wish this would be more available to directly connect with versus having to go through an existing bank. It also leads me to believe that adoption won't be widespread for a few years after release.

With Real time payments (RTP, the clearing house instant payment rail) it still has banks onboarding to the network each month. RTP was launched in late 2017
Ask HN: Dealing with the Guilt of Giving Notice?
I know companies aren't loyal to employees. I know we're all replaceable cogs in the company machine. I know that the concern of managers is a trained tactic. I still feel the guilt. I'm abandoning the team. How to you brace yourself to handle this, specifically? Not at an intellectual, but an emotional level.
Faster payments is good in a way but also.... weird. At least the way my bank implements it.

Want to pay someone new? Better have your smartphone with the app, and your bank card and your card reader. Be ready to provide your fingerprint and your card PIN number. And they'll send you a text message telling you a new payment recipient has been added. That's a fine level of security if you're paying thousands of pounds - but if you're paying £5 for lunch the process is just as strict.

And despite all that security, it's still limited to payments <£10,000 for some reason.
I find that past a certain size, even exploratory code base benefits from having tests. Otherwise, as I'm hacking, I end up breaking existing functionality. Then I spend more time debugging trying to figure out what changed.. what's your experience when it comes to more than a few hundred lines of code?
There's only one buyer and that is Apple it's not anti-competitive or monopolistic. If there were more buyer the capacity will be increased.
In my admittedly not-vast experience, a pattern going bad because the implementer doesn't understand it is actually only the implementer's fault a minority of the time, and is the fault of the pattern the majority of the time. This is because a pattern making sense to an implementer requires work from both sides, and which side is slacking can vary. Sometimes the people who get it and like it tend to purposefully overlook this pragmatic issue because "you're doing it wrong" seems like a golden bullet to critiques.
Thank you for the tip!

My take on "ze Germans", "psycho-acoustics" and "badass typists"

First off: As a native German-speaker, I always have to giggle with the whole "Das" Keyboard. "Das Keeboahd. Jaaaa."

Secondly: As silly as "...the psycho-acoustic experience [...] an unmatched typing experience" sounds. I know exactly what they're talking about. And it matters to me.

Maybe, as a neurodivergent person, it's because it provides a stim that I need in exchange for sitting still. So, to their credit, "psycho-acoustic experience" nails it for me.

Thirdly: Not in this lifetime will I buy a product named "Badass4" made for "badass typists" (Honestly, wtf?). I will not get into criticizing the overall shape. That's a matter of taste. Let's just say, the Altair I speaks to my preferences.
> You have two gated monopolistic ecosystems, choose the one you want to be gouged by.

Is there some number of gated ecosystems that we get gouged by that would be considered acceptable and non-monopolistic? Three, ten?
Love the design, and maybe even more so the website design.
I think the point is more that _not_ talking is even more misleading.
I haven't documented it yet, but my serverless board game platform supports collaborative text editing. I'm using Codemirror 6 which has a very simple operational transform scheme, and I baked Codemirror's OT scheme into my back-end. It works great, but this was because I had all the realtime stuff sorted out (connection management, multiplexing, etc...)

https://www.adama-platform.com/
If you want Delphi to succeed you have to win the developers.

The Embarcadero website experience for a developer is nonsense. The first thing you see in the page is "BUY NOW", "FREE TRIAL". It's so aggressive that my instant reaction is to close the product page before I even get to see what the product is about.

And no, I don't want a "product demo". I don't want to contact sales. I am a developer I don't care about that. "Contact sales"/"Request a product demo" sounds intimidating. It sounds like you want me to spend $5000, which I am not willing to spend.

My primary objective as a developer is to develop applications. The website has to focus on assisting that process.
I figured OpenBSDs argument against ZFS was the licens. It makes sense that they would want to audit the code before importing it into base, and it can’t be a kernel module, given that OpenBSD yanked that feature years ago.
No way, this is false. Tons of engineers preach TDD.
I think the majority of the western world would disagree with the first sentence, I know I would. But at the same time the people of Taiwan generally prefer things to stay as they are right now; independence with everything it involves isn't the number one option there. It's definitely _the_ main option for United States - because, as usual, the war would be waged far away from US territory, so they wouldn't suffer losses.