skysight-inc/HackerNews huggingface dataset:
I feel like many of the commenters here haven't experienced enough corporate environments. I love using a debugger for open-source projects I work on and web apps I used to do for clients, but when you're working for a big company it's usually difficult to impossible to attach a debugger. Almost all of them have such convoluted setups that you'd need to use remote debugging, which is difficult to configure. You can barely use your own IDE in some of the FAANGs. This was the catalyst that made me develop PySnooper.
I asked multiple people in this thread, what the scientific argument is for mandating that Djokovic gets vaccinated before being able to participate, given his specific situation and what we know about vaccine efficacy (especially since Omicron) and side effects (especially in his cohort) to this date. Nobody was able to answer this question sufficiently so far.

If there is no sufficient scientific basis for such a mandate, it is arbitrary. Arbitrary mandates are not only unfair, but also tyrannical.
The Evolution of the PCI Express Specification
This decarbonization business is not going well for us, nipping the low hanging fruits is progress, but it ain't gonna cut it. The problem is trying to be practical, but you can't have your cake and eat it too. The business must stop being usual. We need the unusual.
DB::get() is a static method that figures out from its environment what kind of DB connection to give you.

DB connections themselves belong to another class (say, DbConn), which is not a singleton, and does not keep global state. But user code never instantiates that directly, and only ever calls DB::get(), which does know about global state, and figures out whether an existing connection should be reused.

If you need to set up things in a unit test so that DB::get() will return some kind of mock object, then you call some kind of DB::setupMock() method first.

Basically, I'm taking the kind of code that would go into the DB section of a DI configuration, and putting it in a separate class of its own, which is fully in charge of that particular bit of functionality: providing DB connections to the application.

And since it's functionally a global, I'm embracing that and making its method(s) and state static. Application startup calls DB::init() once, and then it's ready to go.
Excuses Why the FBI Failed Jan 6 2021 Capitol Raid
Yes, this is currently becoming a reality in the UK. [1]

[1]: https://www.gov.uk/government/news/glasgow-to-be-home-to-fir...
Deta Cloud – Developer-friendly cloud platform
this happened at Sinclair Broadcast Group as well, someone should investigate
Vanity or just personal marketing/easily sending to other people. Like your boss that you want to try and extract money from.
But that would be true of any string operation, right? The correct solution is not to use strings with unknown content for sensitive operations (for example by having sensitive operations take a specially blessed string type).
> At some point it appears software design at Apple was taken over by someone who thinks that hiding controls behind hover states and overflow menus (such that you can’t actually see what an app can do without discovering it by accident) counts as making the software simpler, when in fact the opposite is true.

when design is done for marketing purposes, that is what you get
At this point I should research it myself, but I'm on mobile currently.

But how would you print {x} in 1.57? I doubt you would escape it with {{ in that release. Maybe \{ then? Does that still work in 1.58?

This still smells fishy to me, but I need to dig deeper.
No, the issue was that the Content-Length header was searched for in a case-sensitive manner
We used C++20 to eliminate a class of runtime bugs
I think they offer very similar things. Games offer you the ability to interact, making the story at hand more your own. Books give you less information, allowing you to create the environment for yourself, but have a set story.

There are also games to teach you things (factorio definitely taught me a lot about planning, not to mention logic gates), just as books can.

The only advantage books have for me is that they don’t irradiate my eyes with as much blue light as a screen would late at night.
Our new series of interviews to startup founders is now live
Hi! I'm really happy to announce that Deep Dive: our new series of startup interviews is now LIVE! The first one is featuring Sebastian from digitty- AI and project management.

I would really appreciate it if you could take a look and maybe give us some support or feedback. :)

Here's the link to the Linkedin post:
https://www.linkedin.com/feed/update/urn:li:activity:6887513904797233153/

And to our blog post:
https://www.reskript.com/post/building-an-ai-startup

(p.s: if you are a founder and wish to be a part of it, send me an email to martina.hackbartt@reskript.com)
That's a valid point, but what you're saying is that the feature is only intended to help create log messages and the like, which raises the question of why add a feature with so little utility when it could have much greater utility? There's a missed opportunity here.

But let me push on it a little more. I think that what you're seeing isn't so much a culture thing but a small ecosystem thing. Imagine that Rust takes off and in ten years there are 1M professional Rust programmers who use the language because that's the one chosen by their employer. You'll not have one JSON library (or whatever other format will be used then) but 50 and so on, and most programmers will not be experienced ones but relative novices (to programming in general). How likely would it be for them to generate JSON with format! ? So this feature provides a better user experience for the less safe path. A feature should be designed with the next 20 years in mind.
“using PayPal to buy and sell clothing on eBay, to exchange money for a poker league she owns and for a non-profit that helps women with various needs. “

I can see one of those things causing an issue (poker league)

We use PayPal for membership fees for our nonprofit. This year they’re limiting us to 2000 a month transfer out which is annoying to us, but we’re small enough to get by.
Can anyone confirm this? I don't want to spread fake news.
It seems a bit like an unforced error to be dumping Linux a few months before Steam's new Linux-based Steam Link is released.
On the other hand, I remember how The Flash costume (the 1990 TV series) needed water cooled undergarments:

https://en.wikipedia.org/wiki/The_Flash_(1990_TV_series)#Cos...
How does it pay it's bills?
It's a nice touch that the logo is done with pure HTML and CSS (well, other than the triangle, which is an SVG, albeit a simple one), so you can copy the text
Covid kills X people because of the restrictions, otherwise it would kill N*X people, where N would be a lot higher number than 3.2 because of the secondary problems like hospitals overflowing.
I would check their privacy policies if this is allowed, regardless if it is happening.

Of course, if the privacy policies do not include a data sharing provision, then evidence of the sharing would be interesting.
It seems perverse to make a ubiquitous operation (formatting a string) intentionally hard just because some people may use it for inappropriate purposes such as building SQL queries from untrusted input. Sure, we should have ergonomic easy of building prepared statements and such but that doesn't seem like something that belongs in the standard library. Or maybe it does. But either way there are many, many legitimate use cases for string formatting.
Biggest drawback is Americans don’t like them built in volume and ITAR-free. They didn’t like it in free hands so much that they once did a civilian “military aid” to let an ally build a clone of then top of the line Delta II.

Looking back at history, maybe what goes on top actually do keep the peace in the world, so maybe we could safely go back to building solids at scale for peaceful space transportation. But not likely without an American nod, I would imagine.
Don't worry, these class-action type suits never succeed in UK. So when this fails it will make it harder for groups in other countries to pursue the same claim.
The reasoning behind the rust approach:

- As pointed out by GP, `format!` is a macro and only works for literal format strings available at compile time. This allows the compiler to convert the format string to code _at compile time_.

- What you are talking about is a general string template/formatting engine to execute at runtime. Such a feature can easily be provided by external crates, because it would work at runtime and not require any particular interactions with the compiler.
It also makes pretty reasonable the choice not to hop on this kind of subscription services.
> Side note I don’t know if I’ve just been lucky but I can’t relate to this talk of “companies are evil and act maliciously against their employees at every opportunity”. That hasn’t been true in my experience.

I think this heavily depends on the type of industry you work in. In some industries the abuse is so normalised that everyone takes it for granted.

In retail you have the example of companies scheduling workers just under the number of hours at which they'd qualify for insurance or other benefits.

Hospitality work often expects you to be available any time they're short staffed, if you aren't you'll probably find your shifts cut.

On the white collar side last year we heard about junior analysts at Goldman Sachs being made to work 100+ hour weeks[1].

Game development is widely avoided due to a similarly toxic work culture, where you'll often be forced to "crunch" for long periods of time[2]. The worse places will also lay you off after the game has shipped.

At the software companies I've worked the biggest issues have been terrible raises for current employees, to the point that graduates were being paid the same or much more than people with 3+ years of experience.

[1] https://www.theguardian.com/business/2021/mar/18/group-of-ju...
[2] https://www.polygon.com/2020/12/4/21575914/cyberpunk-2077-re...
> higher unemployment

Yes, but the US also measures unemployment differently. People are culled from those statistics much faster in the US than in Belgium.

> lower per capita income

True, but that's not caused by indexation of wages (COLA) alone - I'm not even sure it's a statistically that significant. It's down to a combination of factors, such as market size, startup culture, taxation, social welfare...

> These across-the-board mandated policies do impose a cost, they make the economy as a whole less flexible and decrease employment, at the margin.

The Belgian economy is less flexible by default, because it's constrained by three languages, seven governments, a total area slightly larger than Maryland and a population roughly equal to Ohio's.

Whether it's a cost is debatable, if Belgians on average live almost three years longer, on average have cheaper and better education, etc. If you compare the quality of life [0], Belgium is ahead of the US in many metrics except precisely cost of living,, housing size and wage. All I'm saying is: economical statistics don't paint the whole picture.

0: https://www.oecdbetterlifeindex.org/countries/belgium/
No, it's a classic nocebo.

There recently was a bit of a scandal in Germany because for years a major government authority has reported levels of "infrasound" from wind turbines far above what was physically plausible. A lot of the fearmongering relied on those numbers - yet it turned out they were due to a calculation error.
> Chucking a bunch of variables into a linear regression, getting an r^2 of 0.3 and calling it day

In reality chucking a bunch of variables into a linear regression is the easy part (well, with exceptions), getting ,or creating, good, interesting and important data that were not already analysed to death is a problem. Imho the revolution is the realising value in observational data and not using statistics. It's all about the data.

When discussing machine learning, data-mining or statistics with somebody far removed from the machinery (so for example from linguistics to biology), they always focus on what's possible with the tools but in reality the available data is what's constraining everything. Most tools (especially fancy ones like neural networks etc.) only work under certain constraints the are hard to achieve, it's not a hammer. You can always use a hammer and get results.
or is it just a reflection of the internet zeitgeist?
> Woah woah woah. You’re saying that the majority of computer users treat their OS as a tool to run the software they care about and let the platform get out of the way and you’re looking down on them? That’s literally all an OS is for. Everything else is fangirling.

No.

I'm saying that the software doesn't take full advantage of the tool people have bought, -to use a similarly bad analogy- like forcing them to use their motorized screwdriver without using the motor by instead by twisting it around like a classic hand operated one because that is the approach that works on all screwdrivers.
What's the name of the company you're interviewing for?
In fact, nobody does want Facebook, so you were right
Slackware was my first distro too. Painstakingly downloaded 40 disk images onto floppies at university, brought them to a friend's house to test on his PC, and it turned out the very last disk ended up corrupted. It was the last of the X11 set, so that first install couldn't run X11. Fortunately, there was Doom on svgalib.
Rust has a pretty strict backwards compatibility policy. Generally speaking breaking changes are not allowed, unless they fix a specific vulnerability or other critical issue. Language-level breaking changes can be done with the Edition mechanism. Three editions have been released so far, with three years between each of them.

Additionally, new releases are frequently tested with a tool called Crater, which basically builds and runs the tests for all publicly available Rust code. This helps massively in upholding backwards compatibility guarantees and in evaluating if a compatibility break is worth it.
>>we find stepping through a program less productive than thinking harder and adding output statements and self-checking code at critical places.

This ignores the typical scenario where you are working in a business application that you've never seen most of the code, only the relevant parts of whatever tasks you have done in that program, and all of the sudden you are asked to solve a bug or make a change in some place that you didn't know even existed, the original developer is long gone, is not documented, and chances are that there are many great coding horrors. A debugger can be really helpful to uncover how that code works.

Also it assumes that the only possible use of a debugger is set a breakpoint and then follow every next step until the end, but this is actually not the case. A debugger allows you set conditional breakpoints, skip whole sections of code, evaluate code using the actual context that the application had when it was stopped, make changes to variables while the program is being executed, it is a great tool to explore code and behavior.

I respect that some people may not like them and don't want to use them, but I find pretty dumb the idea that not using them is superior and you are a worse programmer if you do.
I have no doubt that batteries will also form part of the grid energy storage solution. But they don't scale as well as hydrogen and have higher maintenance costs and replacement rates.
Strings should fill you with fear, because the problem is not that they're supposed to be a major cause of vulnerabilities, or that they could be a major cause of vulnerabilities, but that they are a major cause of vulnerabilities. And the danger with this kind of string interpolation is that it makes using format! easier and so more attractive without making the creation of ValidSQLString easier.
It's almost as if piracy is to only way to not constantly be messed with.
> I doubt you would escape it with {{ in that release

You would. Brackets were still escaping in that release because you would of course still do `println!("{}", x);`
I'm referring to this cryptographic property: https://en.wikipedia.org/wiki/Deniable_authentication

which means that once a message is received you cannot re-authenticate it, so evidence on any device is no better than with unencrypted messaging. This is in contrast with classic public key authentication like PGP which provides further evidence that the message is legit and was indeed sent by who it says.
Debuggers are just a few hairs out of absolute relevance.

You just need a:

- ability to describe different points in the evaluation graph as one investigation set

- ability to bookmark restore these investigation set

- ability to visualize them in batch

bonus point:

- extract a patch from debugger interaction so you don't type again what you 'xplained to the debugger
Sometimes PayPal institutes transfer limits on accounts, so its entirely possible that they don't let you transfer out the money fast enough.
Maybe you can answer a question I've had about ASN.1. Long time ago, Marshall Rose had harsh things to say about the ASN.1 macro facility like "buried semantics"[1]. Do you know what he meant?

[1]: https://www-sop.inria.fr/rodeo/mavros/intro-mav.html Search for "Rose"
> If you cannot see your family again without vaccination, that is a clear mandate to me.

That makes it a bit of a gray area. "Mandated" as in "you have to take it" is one thing (which few states would hopefully ever try) or "Mandated to do X" is a different thing. Then how much overreach is involved really depends on what X is. Working in hospital? Very reasonable. Attending university? Well, that was always a thing. Crossing borders - this was also always a thing.

> If it is not based on clear scientific evidence that shows that there was no better option, then the mandate is arbitrary. Arbitrary mandates are tyrannical.

One can argue that almost all restrictions during the pandemic had to be based on very shaky science because there simply isn't time to first await the science and then make the decision. And there are surely a lot of restrictions that are much worse to have, than vaccine mandate for immigration. Shutting down schools or banning gatherings, for example.

> then that mandate was arbitrary and hence tyrannical.

Yeah I mean I don't necessarily agree with all the restrictions around the world and got knows Australia has the most shitty immigration politics on the planet - even outside the pandemic. But what I do think is that they should have the right to have whatever restrictions they want (even tyrannical ones) and there isn't much to do about it.
Implementing string formatting the right way can actually solve this problem, of course. In modern JS/TS, for example, string formatting isn't just used for constructing strings, and it can limit input types as well.

This means you can construct some kind of prepared statement or similar object with a string format, and it will force the correct handling of potential injections.

Of course you can still just format a string and shove it in, but I'd argue that a good SQL library should simply not accept pure string queries and require the format that guarantees injection-safety.
You can download and extract one audio file per song in a playlist easily, there you have the album.
Rust – Async and Dynamic ORM for Rust
`printf` isn't exactly modern!
No. Keys, passwords, all of that data is private. Not shared. It's not like I'm publishing this data for the whole world to see and then trying to regulate access to it. And if I do publish anything, I will do so with the understanding that once it's out there it's out of my control. Complete opposite of what these copyright people want which is public data that they are still able to control.

In cryptography there should be exactly one copy of a private key in the entire universe. When your keys leak due to a mistake or whatever, you invalidate it and make a new one, you don't sue anyone who might have a copy in order to get them to delete it.
But to copy one must circumvent DRM, itself an illegal act (in the US).
If you move 50k a week it could still be a problem.
> however you're still not allowed to bypass DRM to get at the data.

I'm not sure this has ever been tested in court, though. And even the DMCA itself does provide for a rather clunky system of "exemptions" to the no-circumvention provision.
Is that not choosing?
It's my first port of call, as it's rare for me to run the code I'm working on outside the debugger. So if anything goes wrong, it's there. If nothing else I can set a breakpoint or two to check that particular points are being reached, and have a look at some variables to see if there's anything obvious.

Also very good for crashes or asserts or whatever. The offending line, and the stack trace, are shown immediately.
As an interesting complement to this story, I've recently seen a video on youtube (I'll try to find it when I'll get home) showcasing poorly or not-at-all color-graded movies made with expensive gear and crew, either because someone wasn't aware they should do it (seriously...), or they've seen other such videos and considered this to be desirable aesthetics.
I agree that the interview can't be just war stories. There has to be code in there somewhere, like whiteboard sketches of an algorithm the candidate has implemented.

On the other hand, leet code questions definitely don't show that the candidate can actually write maintainable, well-documented code with test suites and easy-to-use APIs.
what a strange name, "KINDERLULU" in german could be translated to "children's pee"
> a bug in a if statement that would've been obvious at a first glance with a debugger

If you already knew which if statement to look at, it's irrelevant whether you use a debugger or printf().

Actually, it becomes even less relevant when you have thousands of dynamically allocated objects running the same statement but only one of them goes wonky and you only know which one it is later at runtime. In the end you end up doing the same logging and tracing with the debugger that you can do with a printf().
> You want to make the more attractive feature the safer feature to draw people away from danger, not toward it.

There's an entire world of software which does something else than creating SQL queries or HTML pages. Rust is a general purpose language, not some niche DSL. I use format strings all the time in my Rust code, yet I've never been in a situation where those strings should or could have been sanitized.
Not sure where you have been for the last 10 years but yes, even SPAs are trivial to scrape today. But even better, because many people build SPAs, they tend to be powered by APIs, so you can just use the API directly instead. But even if you can't, trivial to scrape even when flooded with JS magic.
Where was the opera house?