skysight-inc/HackerNews huggingface dataset:
> I don't see why any memorization should be necessary. I have never written a BFS algorithim.

Neither have I, but we both have prior knowledge that accounts for solving most of the problem. We know how trees are implemented. We clearly know what BFS is and what's "tricky" about it.

Someone hasn't dabbled with tree traversal has to grok a lot of information in the heat of an interview.

> Also, the utility of BFS and DFS in frontend seems hard to ignore, the majority of the data structures are trees (html, xml and json) and these are the two ways to traverse them.

I'm not 100% sure about frontend, but I haven't heard of anyone writing tree traversal algorithms for a DOM tree. That's all handled by either browser APIs (document.querySelectorAll?) or lower level libraries (ReactDOM?).

> What about "process these things in this order" is uncommon? If anything, the constraints are far simpler and easier to understand than most of the business logic I implement.

That's exactly the point. Think about it... there are literally dozens of ways to implement a BFS. The currently accepted standard way of writing a BFS is the most concise and efficient.

A minuscule amount of your business logic is as concise/efficient. Most of the time your business logic will balance finding the best solution with meeting milestones (milestones usually win).

So let's say someone doesn't have any experience traversing trees (why would they? you rarely have to, if ever). Let's also say that they haven't memorized what BFS is and what the constraints are. You're presenting them with a new problem and expecting them to come up with the most efficient/concise solution to that problem. The only people who get rewarded here are people that simply memorized the solution or the solution space. In effect you've validated nothing.
I can tell from experience that a kid or adult having too much "screen time" is annoying drag to people around right now.

It is not just about whether kid will be 0.5% more aggressive 10 years after. It is that he or she treats others (familly, siblings) badly now. It is also that such person is visibly loosing abilities like communication, patience, dealing with IRL setbacks, willingNess to do homework etc and parents have to intervene.

When these direct issues don't happen, parents care less. Waiting for study that confirms that some other kids are impatient jerks (or are not) after 3 hours of play is meaningless, because you a.) you are raising this one b.) they don't fund large scale studies over details like that.
I have the same concerns about power. In the expanse they spend pretty much a whole book griping about how little sunlight there is to grow plants on a moon of Jupiter, and yet they have fusion powered star ships that can maintain 1g+ indefinitely without running out of fuel for a trip basically anywhere in the solar system.
You need voter action not a leader change. --WA citizen
I did specifically mention "normal code". `unsafe` is not normal code. Obviously if there is a segfault, I'd fire up a debugger - GDB is just fine for such purposes.

The comparison with Java is interesting. With Java, I have often found that errors occur in a rather non-local fashion, due to dynamic code loading, confusing inheritance trees, and ubiquitous mutations and what have you. Maybe I'm not actually calling the function I thought I was, maybe because I have actually received a subclass of my expected class. Print-debugging is often too narrow to highlight the cause. In such a situation, I would fire up the debugger and inspect the general state of the application (which Java makes relatively easy to do).

In contrast, in Rust things tend to happen in a very constrained fashion. You can't randomly mutate things, you can't (without considerable effort) make complicated graph structures where everything can touch everything else. With the occasional exception of highly generic code, your call sites and function arguments are exactly what you expect. So I can rely on print-debugging to quickly find the cause of my problem.

Incidentally the same is true with Haskell, moreso even, except due to laziness the evaluation order can be harder to ascertain - debug statements can appear in a strange order (or not at all).
We built CockroachDB on top of RocksDB
I'm actually a little surprised that DDG doesn't at least do IP geolocation to provide more locally-relevant results. I'd hardly consider that "tracking" or any kind of privacy invasion, since it's so trivial to correlate an IP with a location, and they don't need to store any data about visitors to do this.

(Yes, I know, geo IP databases aren't perfect, and people using VPNs will get incorrect results. But for most people, this isn't an issue.)
Detecting something and protecting from something are different things, as Cf498 said in his comment, they just go directly to the protect step and ignore the detect step. They don't have time for Detect step. Its just that in the way he phrased his first comment, it was unclear, but I didn't assume that he was actually confusing the 2 steps, that's why I used "if" and said that I didn't understand clearly. Actually he didn't needed the info in that answer, but some others readers could get confused, as it seems to be my case. Now if you ask me how could I possibly think that cover a mirror is a way to detect a two way mirror, then I have to say I don't know, but maybe I imagined that if its day time, and the curtains don't provide enough darkness, you could cover the mirror with your head inside the cover to provide enough obscurity for your eyes to see trough the two way mirror. So maybe my imagination went too far, but yeah.
Thanks! First thing I did this morning was re-calibrate my monitors...didn't realize there was a rebrand. Whoops :)
Bacteria and Depression: Something to Test
OK, so you are just going to assume that any interview you can't pass is broken?

There have been interviews I have failed and instead of blaming the interviewers I took the time to actually study the problem I was given. This has helped me become a better programmer.
Thanks, I really appreciate it :D
Saudi State-Supported Piracy of World Sport and Entertainment
Ah yes are right. I was thinking specifically networking, not AWS.
Totally agree. People will do what they have to to not starve.
That’s true. But there are fewer of these regulations and they’re very large powerful entities only interested in profit.
Glad to see I'm not the only one who thinks this - it's one of the many areas I need to look at, and saw that recommended elsewhere... took a look on Amazon and got completely intimidated! If 1000+ pages is an introduction, what does the chapter and verse look like?

(I've started reading Grokking Algorithms this week, and it's been a much better introduction - I know it's not as in depth as some other books, but I'm making good progress with it and not drowning in complexity from the get go)
That is interesting. That article sounds a much more positive note than what I recollected. I was admittedly on the periphery of the semiconductor space but I never heard much about them after the initial splash.
The core problem IMHO is that a great many of the people hiring developers are not themselves developers and have little to no technical knowledge. Companies depend on these ridiculous hiring processes because many decision makers believe it allows them evaluate candidates that they have no other way to evaluate. They see Google using these approaches and figure if it is good enough for Google it is good enough for them -- not realizing that Google is an entirely different situation with needs that don't match their own (Note to 99% of companies in existence, you are NOT Google and Facebook). I speak from experience. I have been hiring and managing IT staff for 20 years. I also happen to have 25 years of experience in development and infrastructure. One of my priorities when taking over an IT division is to get rid of these useless tests and I have received push back from internal recruiters, HR, and non-technical management every time I have attempted to do this. It requires moving a good percentage of of the hiring process from non-technical management to the IT staff and its not an easy change. Recruiters and non-technical management see it as a threat to their positions. Until there is a realization that you have to know something about a topic to judge the skillsets of others I don't see this improving (I expect that to happen... never).
Instead of textbook logical fallacies would you care to provide any real arguments to support your position that people should essentially be allowed to self-prescribe painkillers? Or at least try to engage me on the points I made?
Every other seller is doing it for their own products on Amazon though, it seems to be the only way to move your junk efficiently on Amazon these days. Amazon is happy either way because more raw sales look better in their reports, and the cost of returns are on the seller anyway.
> The simple reality is that for gaming the 2080 is still a better pick if only because of the RTX features.

I think there's a strong argument to future-proofing 4k gaming experiences. I think the 1080 Ti is a better pick, but the 1080 Ti is sold out in the US Market. The 2080's 8GB of VRAM is usable today, but I'm not entirely sure how long it will be before 4k games blow through that.

1080 Ti had 11GB of VRAM, Radeon 7 is a bit overkill at 16. But 8GB is solidly a mid-range VRAM size.

> The only case where the Radeon 7 would be better than the 2080 is likely in a small subset of GPU accelerated software that properly supports AMD GPUs e.g. blender.

FP32 performance is also used in Adobe Premier (video editors). But yo man, 3d renders (like Blender) can take hours under normal circumstances. Its a solid market to try to accelerate.
Just wanted to say that your rust projects are a blast to watch from afar on twitter. You've done seemingly really crazy things with Rust + Zelda Wind Waker.

Thank you for sharing your hacks!
Nobody's quitting. Recognizing the gravity of our situation is essentially the opposite of quitting.
Why are people worrying about Bing shutting down? Bing brings in billions, and it's bigger than Twitter. Not to mention that Microsoft needs a search stack for the rest of the company.
Vague is the name of the UN game.
Federal agencies have made websites for the past 25 years. Let's Encrypt launched in 2016. It's bleeding-edge technology as far as public sector requirements go.
I dont get this clipart scrap book article, are thy suggesting it blew over, got back to normal and its all good now like nothing happened? Lets consider just one example: video/TV industry. Not doing anything in the face of your market share going down to zero sure showed them!

Frontline: Coming From Japan [The Fall Of The US Television Industry] (1992) https://www.youtube.com/watch?v=aesJTsZqm6c
A product of helicopter parenting in many respects. New parents don't tend to like the idea of letting their kids running around the neighborhood. The way those well off enough like to reconcile this with balanced lifestyle is overschedule activities for their kids. They get ze dezignated social time at hockey, soccer, karate every other night. Busy-ing a kid's life has its own pitfalls.
That's funny: for me, that book made it really clear that I don't want to even daydream about going to Mars. Too restrictive. Don't have quite that amount of pioneer spirit and ability to commit. But I can see how others might!
Imagine you have a pool of 10 candidates from a minority group and 100 white males.

Only 20% from each group are qualified enough.

If you need to hire 5 people and want them to be from the minority group, you end up hiring 2 qualified engineers and 3 - not so much.

Congratulations, you've met your diversity quota.

Also, the condional probability of a minority engineer being underqualified is 3/5 now, but this number is declared racist.
Or, we need the powerful ones to internalize their impact on others more.

Either can work.
Your conditional breakpoint can change execution behavior thought flushing cache/icache in a way that doesn't reproduce.

X86 is pretty orderly so you usually don't see that class of bugs until you start getting on other architectures but when you do man is it nasty. C/C++ volatile comes to mind particularly. MSCV makes it atomic and fenced which isn't the case pretty much anywhere else.

Also debuggers don't help you with the 2nd/3rd order effects when you need to trace something that's falling over across 5-6 different systems. With print based debugging I can format + graph that stuff much faster than a debugger can show me.

Like I said, different tools for different uses. It's just important to know the right tool so that everything doesn't look like a nail.
Would be nice to read but after 2 'paragraphs' of text:

"SIGN UP TO CONTINUE READING"

"To continue reading, enter your email address"

"If you have an account, we'll get you logged in.
If not, we'll help you set one up. No credit card required."

Nah, I'm good.
Netflix drops on mixed fourth-quarter earnings
SF stories have to pick and choose which tech they emphasize and which they gloss over. As a rule of thumb, tech shouldn't be explained much in detail unless it helps move the story along, or helps to describe the constraints in which the characters make decisions, making for a more interesting story.

The most elegant SF stories IMO gloss over a lot of tech - Inception for example, never explains a single technical detail about the machines that power the dream world, instead focusing purely on the human interactions.

A counterexample is Seveneves by Neal Stephenson, which focuses heavily on tech and makes a good attempt at keeping it within the realm of physics while still describing interesting ideas - however much of the theme of the book is how technology develops as a product of its environment and how it builds on existing tech in a collective way, so it contributes to the story. Even so, it was criticized for being too technical (even though I enjoyed that part of it immensely).

Another example is 2312 by Kim Stanley Robinson, which makes the mistake of focusing too much on the tech - in fact the whole plot is essentially a vehicle for the author to describe all the possible human habitats that could exist in space.
Elgato Stream Deck – Live Content Creation Controller
eh? I dunno about hoarding, but I have feelings about eating.

And quite a story. ConceptJunkie explained elsewhere in the thread what I consider to be a disorder: a behaviour that harms yourself and, even knowing it's wrong, you are unable to stop.

Most people has mild variants of self-defeating behaviour in some areas. The problem is when they mess severely with our well being.

You know you can't really blame your farming ancestors, they adapted to whatever changing conditions they found. You are expected to do the same. FYI limiting carbs is more convenient than counting calories and much more effective.
The fear of Japan was also fossilized in the classic Crichton novel Rising Sun (1992, made a movie the year later). But it quickly became aged, as that was right at the tail of the mania.
Sci fi is a vision of possible futures...

..our present is locking us into a narrow range of dystopian futures.
The article talked about directly re-using stop codons like some exotic organisms do to integrate pyrrolysine, but there is another more nuanced way which humans use for selenocysteine: https://en.wikipedia.org/wiki/SECIS_element
Print debugging is only necessary when support for trace points in debuggers is lacking for the respective language.

With good support, a couple of trace points, even on a live running instance is all that is needed, without any extra recompiles.
I believe I read that taxi drivers have a very high fatality rate in the United States, but definitely higher than law enforcement.
I might be missing something but I don't see how adding DNA nucleotides can lead to novel proteins. You have more letters to potentially map to amino acids, but unless you've also expanded your set of amino acids, how does this lead to new proteins? And did they also design new t-RNA's (the things that maps RNA to amino acid)?
The ICO addresses the issue of MAC addresses in:
https://ico.org.uk/media/for-organisations/guide-to-the-gene...

> A business uses Wi-Fi analytics data to count the number of visitors per hour across different retail
outlets. It is not necessary to know whether an individual has visited an individual store (or multiple
stores) before.

> This involves the business processing the Media Access Control (MAC) addresses of mobile devices
that broadcast probe requests to its public Wi-Fi hotspots. MAC addresses are intended to be unique
to the device (although they can be modified or spoofed using software).

> If an individual can be identified from that MAC address, or other information in the possession of
the network operator (the business, in this example), then the data is personal data.

Indeed, collecting unique MAC addresses, potentially from multiple endpoints, can reveal a lot of personal, sensitive, information (location, trips, time you go to the coffee shop or which hospital you visit, etc.).

The only ways to properly collect and store MAC addresses are either using privacy-protecting methods (e.g. cutting the last bits of the MAC address, potentially using bloom filters) or immediately aggregating the collected MAC addresses.
These consumer chips have 60 active CUs compared to 64 for the MI50 so this is probably just the "failed" MI50 chips that are being sold, not something they manufacture to that spec. If they didn't sell it it would have been a much higher loss (if there is one) I think.
Completely agree. I think a lot of people would enjoy git more if they made better use of the `-p` options.
Erlang/OTP and Elixir books translation to English crowdfunding
It's pretty much exactly like Ingy's XXX perl module from 2006: https://metacpan.org/pod/XXX

Prints a YAML dump of "my str", followed by file/line number information, then returns its argument so it can be embedded in expressions:

$ perl -MXXX -E 'say uc(WWW("my str"))'
--- my str
...
at -e line 1
MY STR

Data::Dump's "ddx" (1996) is also commonly used for print debugging, except it doesn't return the argument.
This was a very humanizing read and provides a good perspective of how devastating any prison term can be.

I find myself asking whether other forms of rehabilitation can be more effective than prison terms.
Netflix shares drop after Q4 revenue miss estimates
This is the correct answer. You'd be surprised how many programs rely on the remote server redirecting them to a secure server.

Most major banks in Sweden had http landing pages and did not use HSTS last time I checked (in 2017).
What exactly is the AI doing? From the description it sounds like a UI design tool that exports the UI as code, which is like any other UI design tool out there.
How's the documentation coming along? I've had to take a break from it because so far I've only been able to use if for hobby projects. Coming back to Rust for me often means bouncing around different editions of the docs (especially if FFI is involved) and searching blog posts, forums and my own old code to try to remember how to do things. But then of course the language has changed or best practice has so it's all out of date.
Sure, there's outliers. But Not all college grads are capable of operating at that level. Which is why companies have a lot of regimented hiring practices and tests to filter out all those not making the cut.

I've been on the college recruiting circuit to help my company hire, and I'm often severely disappointed by a good portion of those I meet. There's occasionally the standout who really impresses me, but then I think they're never going to want to stick around at my place. With this thought, I'm sort of in agreement with the commenter who said that we need college to train people at a higher level since there's almost not time on the job to ease into it.
buT HaRDly aNYonE aCtuaLLY haS USe fOr A TrucK
> I think the point was, the algorithm is so basic that a moderately experienced software engineer could invent it - it doesn't need to be researched.

Right. My point was the problem is perceived as "basic" because the commenter memorized solutions in the problem space. If it's not something you deal with regularly (or have interest in) then it isn't as basic as it seems.

People that haven't memorized the most efficient/concise solution also freak out because they know that their whiteboard solution is going to be judged on the merits of the industry standard solution.

> bug: "takes too long to find a <file / json field / html node>"

This is almost always an issue with an underlying library. The better question is why your programmers are wasting time writing slow BFS code when they should be using well tested solutions.

Example: I recently needed to write some AST transformation code. Did I write my own AST node traversal code? Hell no! I picked a library that did the job. I spent about 20 minutes catching up on state of the art AST traversal (so I'm not blindly importing a bad solution) and let the library do the work.
I use it all the time. If my program crashes, I swap `python foo.py` with `ipython --pdb -- foo.py` and it will drop me into an ipython session at the exception so that I can inspect variables and the backtrace.

Also, if I want to pause at a point and step from there, just drop `import ipdb; ipdb.set_trace()` at the line I want to set a breakpoint.
Even if you have everything working just the way it should, in the majority of cases print debugging is enough because problems boil down to the assumptions in your head about what should be a variable not being reflected by what it is in your program.

You write tests? Consider selecting variables of interest (and printing them to STDERR when debug mode is on) like one of many test.

Looking at memory and all the variables has its place, but as you said only "here and there" - because when you have to do that, you have already lost: you are looking for a needle in a (hay)stack, and will lose much more time that just eyeballing the variables of interest you selected before.
All of science is right for the wrong reasons. Our models are wrong. Just by decreasing degrees. Science will never be "true" in the strictest sense. Looking at it otherwise is a flawed viewpoint that is perpetuating post-modernism.
I like being alive. I don’t generally extend my personal scale of experience beyond my neighborhood let alone intergalactic diplomatic relations. If we destroyed an alien civ, life would be as it were before meeting them, which was fine. Why do aliens need to factor into your world view?
Wait, I though getting people to vote is a good thing? I am seeing a wave of propaganda to vote each time elections are near, registration drives, celebrity appeals, etc. Everybody is talking about how voting is good, not voting is bad and "suppressing" somebody's vote (including convincing them not to vote) is plain awful. There's a case where judge threatened a person with jail unless they vote: https://www.wkyc.com/article/news/investigator-judge-ordered... (clearly unlawful but the judge wouldn't do it unless they thought voting is great).

So if fake news drive people to vote it should be a good thing, at least in the minds of people that think voting is always good?
Sure it is. For the other 5%, you can spend an extra 3 seconds searching again on Google, if you really need to.