skysight-inc/HackerNews huggingface dataset:
"don't get anything other than the HTML that you create" that's the point of declarative languages

"That is, it is not generating anything." if you speak about code generation like code behind in VS, it has nothing do with the paradigm. If you speak about underlying technology, it does not matter. In case of declarative languages, the framework determines what the language is capable of. And that's the point of them, they are generalizing the solution for common problems. The browser do a lot of things in the background when it draws a rectangle the same way how SQL server is doing a lot things when you execute a query, but these things have nothing to do with programming paradigm, which can be understood without computers.

Imperative: cooking recipe

Functional: assembly line in a factory

Declarative: your assistant

(compare the real world examples to the things i mentioned)

> SQL is far and away understood as a declarative language for what data you want out of a relational database. I challenge you to find any literature that does not describe it as a declarative language.

Ok, and I challenge you to compare HTML and SQL. Are they the same by nature. Are the steps, the approach of problem solving is the same? Because if SQL is declarative, than it is really similar to HTML

> Now, can we munge definitions and pull in an odd true scotsman argument about it not being a "true declarative" language? I mean, yeah. But, this is like arguing that LISP is not a functional language by some specific modern view of that term. Certainly true, but far from useful. And almost certainly not what anyone you would talk to expects from those terms.

We are speaking about semantics and taxonomy here. These kind of a questions are always debatable, so i can't really say anything about this, because you are speaking of ways of discussion. What i'm saying that my taxonomy makes the most sense to me, and if someone truly can challenge it, it's gonna make my mind change, but "literature mentions it somehow else" is not an argument makes me change my mind.
I switched to Tidal and haven’t looked back.

The UI is on par with Spotify, they focus on hi-fi audio, and way more money goes to the artists.
Sorry for the digression first. (If anyone has different definitions for the ideas here, I would love to learn.)

I think the answers would depend on the types of tests that the term "this" encompasses. From how I understand it, calling something a unit test or an integration test depends on the context of what is is being tested. For example, if a developer is writing a unit test for a HTTP handler, and the handler implementation includes calls to an external database, then one would have to use a mock for the database, in order for the test to be deemed a true unit test [1]. If the developer is writing an integration test for the same HTTP handler, then the database would have to be a real database implementation [2].

On other hand, if the developer were testing SQL queries for syntactical or logical correctness against a database, these tests would want to use a real database implementation. Note that though the test uses a real database, it is still a true unit test [3]. Additionally, note that using a mocked database here would not serve the purpose of the tests, which is to catch syntactical and logical errors against a database engine. This can, of course, only be achieved by using a real database—or, if you insisted on using a "mock", then, by implementing an entire SQL engine, with the exact same quirks as the real database's engine, inside the mock!

On the original question:

> Do you do this in place of unit tests (where you have to mock/stub the DB interactions) or do you do both?

I guess the answer would be: It would depend on the objectives of and types of tests. Do both of them, because some tests, such as unit tests on the HTTP handler, would use use mocks, while other tests, such as the SQL query correctness tests, would use the real database.

[1] A true unit test is one that has no external interactions, neither directly nor transitively, besides interactions with the system under test (SUT). The SUT here is the HTTP handler.

[2] An integration test should include external system interactions, if any. That's what integration means.

[3] The SUT is each SQL query and the its interaction with the database. There are no interactions in the test with systems outside the SUT, so it is still a true unit test.
Glyphs have to be written in an orientation; bidirection (or higher symmetric) layouts would impose either writing the words left to right & right to left, which would cause smearing when writing with ink with a dominant hand, or mirroring the glyphs themselves, which would make reading & writing words much more difficult.
On that note, search results don’t appear to be real links, so built-in open-in-new-tab functionality doesn’t work.
I don’t think we disagree much if at all. You’ve expanded on my points nicely.

Well, maybe you’re more hopeful than a curmudgeon like me.
GP said the TSH test was available for $15 in Canada. I found it also for $15 [0] in the USA as well as for $50 [1].

I also believe you can sometimes pay out of pocket for things like x-rays / MRI's in the USA and get them for surprisingly "affordable" rates (trivially affordable to those making >$100,000/year USD, utterly out of reach for kitchen workers). Sometimes though, the diagnostic facilities with the MRI machines will require a prescription, but that's nt mandated by law.

0: https://www.discountedlabs.com/thyroid-stimulating-hormone-t...

1: https://www.privatemdlabs.com/lab_tests.php?q=tsh&view=searc...
40% of us are obese. Lots of chronic illnesses going on as well.
> Also also: are movie trailers that depict a gun being loaded with a > 30 rd magazine now banned? Or movie trailers that show any kind of modified weapon? How about video game footage?

No, of course not. There is no reason to expect consistency from an illogical policy.
Don’t blame users, blame society/technology for not providing adequate context to people do they can make safe decisions.
Maybe if it was 10-15% of senior managers being cut.
Life expectancy seems similarly hard to game and pretty poor for the US.
it's the bbc, they are state funded.
Perhaps when we have sufficiently capable OSS models, but as it stands GPT is a paid service and not a public good.
Seconding about lock mechanism. The first filter I looked for.
It's an absolute disgrace and I hope everyone who is represented by an MP is writing to them to protest. Its bad enough to Brexit but to willingly give up soft power to save a tiny sliver of budget is shocking.

Whoever figured "well its on the internet" appears to have forgotten that its purpose is to serve people under the sorts of governments that would aggressively block internet access to news sources unfriendly to the government.
Ok, I consider 100 years ago from the top of my head pretty reasonable, especially as someone who couldn’t care less about a foreign monarch or precision in dating architectural styles. But, regardless, it’s not referring to an era but to an architectural style. While it was most popular 120 years ago, there have been Victorians built since then. I know not every Victorian in SF is 120+ years old because the city was burned to the ground in 1906.
Your first sentence describes how pretty much all socialised healthcare operates.

Cosmetic and elective surgeries are generally private in the UK. The NHS generally only deal with these procedures when they relate to another health matter e.g. reconstructive surgery due to injury or gastric bands for the severely overweight.

There's also a private healthcare market for more general care, which frankly needs to be destroyed due to the ongoing damage it's causing.

The current government are a bunch of crooks. Hopefully, they'll soon be dining with Thatcher.
Confident strangers on the Internet are not worth much. Good articles, with references, which go into competing points of view and explain the problems with them, are worth a lot.

Like I said, that Sprey person seems like a blowhard who got attention in the USA, I never heard of him before some YouTube videos in the past few months. The critics I remember were war reporters such as David Axe and IT specialists such as Marcus Ranum.
That’s a tautology since you described a subset.
They used to have an AM transmitter that reached most? of Europe, but it was shut down in 2012: https://en.wikipedia.org/wiki/Orfordness_transmitting_statio...
And yet we have DRM in browsers just so people can have a bad watching experience.
The two countries are moving into NATO together, they are practically married.
Investors snapping up Colorado River water rights, betting on a scarce resource
Looked to see if something like this exists?
> Could you summarize what you think my initial comment was arguing?

In a lame "gotcha" attempt you took author's words extremely literally: "Let's see how you lose a debate against 2 x 2 = 5 believer. Haha, I'm so smart."

Now, which one do you think is more likely:

- Author meant to say that literally every debate is worth losing

- You (likely on purpose) misunderstood the point author is trying to make

What do you really think is the point author was trying to make? Can you explain in your own words?
Algorithmic feeds have totally destroyed Facebook for me. And are now doing the same for Instagram (suggested posts). These are really the only social media I use. Facebook was pretty good when it just showed my friends on a timeline. When they switched to a feed it became a disaster and I had to leave it.

I don't like user-generated video content so I rarely use YouTube and I've never touched TikTok. But I don't think algorithms really help. I really prefer the user selection here on hacker news.
There was zero disagreement about what to call the default branch in git prior to this linguistic crusade.

GitHub practically invented the exact situation you're experiencing now by changing to main for all new repos.

Git itself still defaults to master. Everything else is not the default and is the root cause for the uncertainty.
Unless you live in a super dry area you are causing your house to grow substantial mould and make you live shorter by years or decades.

Congratulations...
Microsoft and Intel and the PC makers all seem to be in a deadlock

Microsoft can't rethink Windows because they will never corral the PC makers on a reasonable timetable

PC makers are still selling the same laptops as four years ago (modulo minor spec bumps) because Windows is basically the same OS as four years ago (modulo some UI fluff). Intel and AMD are stuck in the middle waiting for the deadlock to break...but the only winner is Apple.
No, C++ has nothing better.
Also canards look cool as heck.
> So, just like a proper code review process.

Except it happens in real time, with a real person, sitting next to you.

> Are they dependencies on libraries, or are they dependencies on services?

In this case, other libraries... but I honestly don't see the difference. Libraries and services have APIs. They either work or they don't. Services have the additional complexity of network failures and runtime errors, but these are things that can be dealt with and tested in the primary project.

> Just because we have vastly more than two dependencies doesn't mean that I'm working in a shitty environment.

You made the wrong equation there. The environment is shitty because you said that you're in an environment where people have created products so complex that it is very difficult to achieve adequate testing. You also shrugged off Eclipse vs. IDEA... where I'd actually say that matters. You also talk about disabling tests for security... that seems absurd.

> It's entirely feasible, and highly desirable to get a small project to the point where just running the tests makes you feel 100% confident in the correctness of your changes.

I've built multiple companies that have achieved significant revenue on that confidence. Not small projects. I know it is possible to do.

> I'm not sure why you believe that all of these things weren't with us at day 1, either.

So you started off good and ended poorly? Another reason to believe that the environment is shitty.
For me, it seems tabs kept open for weeks or months replaced what bookmarks used to do for me...

(These days I save urls to pinboard then mostly never go back to them to read them later...)
I've pretty much accepted that if content is behind a paywall, I won't read it. Sometimes I might search for the exact title and see it readable elsewhere. Thing is, there really isn't anything that special/important that I need to pay to read, other than perhaps a technical book which I don't mind paying for. News? nah.
NileRed did a video about this chemical.

https://m.youtube.com/watch?v=GOw_I42eUpM
I'm a knife collector, so this site seems cool.

One thing that can be improved is how the knives are displayed.
The white aliased border around the thumbnails looks really really bad, and really turns me off from staying on the site.

One major reason why people like knives is that they look beautiful. The image thumbnail does the complete opposite.

Please use 24bit PNG with proper alpha, on a lighter background, so blade shape and colors can be more beautifully represented.
I just skimmed the TalkFi webpage and Play Store reviews (so many of which have the same writing style and structure) and combined with this post, my “Something Ain’t Right” detector is positively screaming.

I won’t opine on what I think is going on here but… something ain’t right.
Good list. I would add: 5. todos
Awesome and a cool choice of tools.
Reminds me of https://safing.io/spn/ .
Is it possible to split tunnel two different chrome profiles?
nice name! I created https://tunnelto.dev (https://github.com/agrinman/tunnelto) -- also an open source Rust tunneling program.
In the Firefox address bar, type a *. After that, anything you type will be searched in your bookmarks.

Other tips https://support.mozilla.org/en-US/kb/address-bar-autocomplet...
Good point.

Thanks!
Here’s a better image of my Kershaw Launch 1. Has some custom engraving hope you don’t mind. Godspeed ;)

https://im.ge/i/alaVhY

https://www.knifegeek.io/blades/kershaw-7100-grybw
No belief here, seen with my own eyes. Nationalism not a good look.
Not surprised to hear that. This happened to me in 2019, and for the whole Heroku account not just 1 database. See https://news.ycombinator.com/item?id=21969358.

They were going downhill since Salesforce takeover.
How does this not make sense?

As far as I can tell, your points don't apply to what I said. I'll quote myself:

>The idea that machines couldn't do everything a human can do (and more) doesn't make any sense to me.

In other words, it doesn't make sense to me when I hear impossibility arguments about AGI that appeal to something special about humans. I'm not making a claim about software and hardware in 2023. I'm saying in principle, there is nothing stopping us from building artificial systems that are just as complex and capable as evolved biological organisms, other than our lack of knowledge of how to build such systems.

>Software does not because it has not evolved

Software does evolve. To get evolution you need three things: replication, mutation, and selection pressure. We replicate, mutate, and select software all the time. I don't think you need a large scale simulation to get evolutionary dynamics.

>Humans may be like robots but their programing is not statistical pattern matching or Boolean logic

That might be true, but I'm also skeptical. Part of the problem is we don't really understand intelligence very well. If we really understood what makes humans capable of intelligent behavior, we would be able to replicate it in artificial systems. I don't see a fundamental barrier other than having the right algorithms.
whats the physical process by which water condensation discharges batteries?
Is remote work bad for the economy?
Having grown up in the USA, I was never into AM even though my father was. He would find the most nails on a chalkboard stuff on the dial and leave it there. Probably not the best impression of a medium.

Fast forward and now I live in Japan. My first job required a long ride by car to deliver/pick up supplies then do manual labor. Like most manual labor jobs there was a radio on all the time and it was the oldest worker (in his 70s) who got to set the station. I listened to hours of AM radio in Japanese. Baseball games (they feel more alive over AM than in person oddly enough), news, shopping (yes, shopping channel like advertising by radio), stand-up/comedy routines and the odd oldie track from the 70s or earlier that sounded even more nostalgic due to it being on AM. This is what finally gave me a love for what it had to offer. It may be a dead format in the west but in Japan it seems to still kick around.
Not every parent holds their child's best interest higher than a potential joke. Not every country has mechanisms to stop it...
The list of references is incomplete without: https://clickhouse.com/blog/testing-the-performance-of-click...
So true. It's really what killed Facebook for me. The timeline was great. The feed was horrible and still is.

I don't care about discovery unless it happens naturally, eg I go looking for something or a friend recommends it. Same with the HN feed, I basically consider most of your friends so it works really well. An AI that has a purpose of just making sure I stick around in the site as much as possible? No.

I've gone and found news sites that were the exact same: chronological content in text format. Hacker news is like a role model for websites for me.
Two ideas here:

1) The same way you'd write any other tests. Use your favourite testing framework to write fixtures and tests for the SQL queries:

- connect to the database
- create tables
- load test data
- run the query
- assert you get the results you expect

For insert or update queries, that assertion step might involve running another query.

2) DBT has support for testing! It's quite good. See https://docs.getdbt.com/docs/build/tests
> it was the oldest worker (in his 70s) who got to set the station.

Is this (oldest worker's choice) a Japan thing, or just a thing at that worksite?
IANAL but…

> The original code may be licensed MIT. The MIT license allows for the project to be relicensed, closed source

… this is less compelling to me than this:

> and it is also possible for a proprietary contributions that aren't MIT license to be added to it that are protected as any other closed source code. The MIT license is not "viral" and doesn't require that everything following from it is.

AFAIK, changing the licensing terms of an MIT project isn’t retroactive to prior licenses. A quick search seems to confirm that.

The possibility of more restrictive or revocable licensing of subcomponents is more compelling as a rebuttal to “mine” at a philosophical level, but it’s not compelling from the perspective of GitHub revoking access. They’re welcome to comply with relevant legal actions, but they’re not actually the police of your licensee status and don’t even attempt to be.

Ultimately it’s the person who maintains the private repo who is responsible for and to any license challenges. GitHub isn’t a party or privy to those agreements, and again doesn’t have any pretense of such except compelled by legal action. And I give them the benefit of the doubt that this isn’t their motive.

This behavior is part of their own permissions model, and their own model of the relationship between “forks” and “private”, as defined by their own use cases. It’s a surprising one, but it needn’t have anything at all to do with their view of any given user’s repo’s license compliance.
> I've seen a lot of code where the what is not at all obvious

So then the question that needs answering is:

"why" is the what not obvious?

Document the "why."
You can always tell you're dealing with a junior-level programmer when they complain about new syntactical sugar added to a language.

I've been programming almost entirely in C#/.NET since its beta in ~2001, and though the language has obviously evolved significantly since then, it still feels like the same core. The language features were never an issue; it's the ephemeral feature frameworks that can be frustrating (e.g. WCF, WPF), and of course, the whole .NET Core/Standard/Framework confusion. However, that is easily tempered by the fact that .NET moved glacially compared to the 'hip' languages, and support is offered for older tech for years/decades.

The last few years have brought the seamless ability to run .NET on Linux, a built in, super-fast web server, support for gRPC, fully open source, and massive performance improvements. It's never been the 'cool kid', and it has its baggage from years of MS being MS, but I'm hard pressed to think of a better choice today for writing a large, reliable, and performant web application.

C#/.NET probably rivals Java in the billions of lines of code out there, written over the last 20 years, driving critical business processes across many sectors. It's not going anywhere anytime soon. There's not even a reasonable contender for migration for all those 1MM+ LoC 'boring' applications out there (unless you flip to Java.)
I agree its of fact. However as per commentary above, if you do not have insulin resistance then eating either of the two does come down to taste preference, with both options being quite healthy foods when eaten in moderation.

Additionally, for those that do not have insulin resistance, eating either a Banana or Avocado is not going to put you into any health risks. Infact eating either of them as part of a balanced diet with exercise is likely to have positive health benefits.

I'm not American, however in my opinion, people by and large aren't waking up with insulin resistance due to no fault of their own. It is due to lack of exercise and chronic consumption of high GI foods that aren't eaten in combination with a relatively healthy diet.
AI can detect pancreatic cancer better than the best radiologists. The belief that machine learning cannot surpass human intelligence is contrary to the evidence.
Wonder what this will mean for watch Netflix on mobile devices and funny enough, in cars
Funny that you'd call out the subjectivity of some measures, then bring immediately introduce another, breast cancer survival, that has also been called misleading, and only an indicator of higher screening. https://theconversation.com/when-talking-about-cancer-screen....
The US gov even explains why 5 year survival rates are "illusory" https://www.cancer.gov/about-cancer/screening/research/what-...
Life expectancy, and perhaps maternal deaths, seems less subject to reporting variations.

As for other countries having less income after health care, is that actually a comparison of health costs, or simply average incomes? Because dollar value incomes don't translate at all between countries, as an indicator of wealth and living standards.

The big hole in all that is that costs without insurance can quickly exceed affordability, especially for the unemployed/poorer folk more likely to be without insurance.
Which, as well as being unacceptable to much of the world, probably also removes a lot of terribly sick people from any measurement at all.
We have a great park just down the street (about a block and a half), but the street is great and it's right outside. Maybe 10 cars per day travel our street. Besides, the street is paved for bikes and rollerskates. The park is, of course, not. Also, it's easier to keep tabs on the kids right out the front door than it is when they're unsupervised down at the park.

But, yes, they also play at the park. They all run all over the damned place -- because it's a safe place and, culturally, the people living in the neighborhood have a high degree of trust and look out for one another. It's very difficult to replicate that in high density urban developments with the attendant problems those areas recruit (e.g., crime, homelessness, etc.).
It’s called a prerequisite.