skysight-inc/HackerNews huggingface dataset:
Good for them on building a business around redis.

That said, fuck paying for some bolt-on approximation of a search engine with no real durability. I'll use elastic or solr.

They're free, and have massive communities and user-bases. Issues are surfaced quickly. Compatibility is a priority. And all the other benefits of network effects.
Exactly this.

We’ve also been doing this forever. If I go somewhere and someone has a runny nose and is coughing, I am going to stay away. Nothing new here.

COVID is different in the sense that we assume everyone has it. We distance from healthy looking individuals.
The meme here is that your comment reads like a parody of an outraged junior programmer at their Dunning–Kruger peak.
Ongoing culture wars are a recipe for demotivated staff.

Perhaps I am wrong, and I would not start with a 'diktat' for obvious reasons.

As a manager, you didn't have discussions about the level of necessary code coverage? Would be interested on how you managed unit testing without 'dictat'. How it would fit into integration testing and explorative testing. What level did developers in your deparment usually find "adequat" ? If you considered it too low, how did you raise test coverage as a manager without defining a coverage level?
"Or How to Put out Garbage Spam for Self-Promotion".

A quality article that benefits anyone takes at least a week to write, at the very very least.

The author admits "80% of What You Write Will Be Bullsh*t" - so you are basically wasting a lot of people's time in hopes of scoring big via luck.
"larger group of developers" is the phrase that caught my attention. Humans don't scale well. This is where microservices do become attractive. This service is owned by a small team, and that team makes these types of judgements. It may be very different from how other service is owned and maintained, and that's ok.
Any good idea in software can and will be abused to the point where it seems like a bad idea. It's all about context people.
> Yes

I think you mean no. It's not automatic, you have to tell the language to use parallel constructs.

And as others have said, this is probably the right approach. At least if it's not taking runtime information into account.

What is very good about this approach (and Rayon does something similar for Rust), is that the code transformation between sequential and parallel constructs is so small. The closer one can come to writing idiomatic code then tweaking it slightly for high performance, the better.

Apologies if this answer isn't hate-y enough. I'll try harder next time.
> "hanging around with the least fit members of your species" is a losing strategy

I could imagine in some circumstances it isn't. The slowest in your group will likely be first targeted / caught by a predator.
I think most tech stocks are overpriced right now. The amount of speculation taking place in the stock market at the moment is just insane. MSFT gained 30% over 6 months (that's compared to pre COVID levels), what's changed that much? Microsoft is a mature company, it shouldn't swing this hard. Nvidia almost doubled compared to pre COVID levels. ???
in the name of expediency

or productivity.
and it's not just that, for example branch coverage only says that you branched but not how, a complex branch might need more than one test to be fully, or decently, tested.
So you would write test cases for all the methods and constructors for a class like this:

class Foo{
public Foo(initialValue) {
this.value = initialValue
}

public setValue(value) {
this.value = value
}

public getValue() {
return this.value;
}
}

What's the point, what are you testing? That the language's most basic operations still work?
They're not a tech support company or a hosting company. There are literally thousands and thousands of documents on basic web server installation and configuration already written. The information is trivial to find. It falls under "if you have to ask, you're not ready".
> Which goes back to the article's point of having to write code that is unit test friendly.

> Now architecture decisions have to integrate interfaces that wouldn't be needed otherwise.

You're not wrong.

But in the context of functions, that doesn't seem to me to be particularly onerous. If the worst I'm forced to do is change the type of my parameters to an interface instead of a concrete type, that seems like a pretty small price to pay for easy testability. Certainly a much smaller price than the examples in the article.
You can mock networks all you want and you'll still cover only what you can think of.

It will always break on the user's internet, because it's too diverse to predict.

Doesn't mean you can't have some networking unit tests, just that you shouldn't believe in them too much.

Edit: you said services. You thinking of server? I'm thinking of clients.
How to Choose the Correct Machine Learning Algorithm
Which Computations Do I Care About?
What everyone seems to overlook is how do you cancel cancel culture without simply engaging in the act of cancelling (it)yourself. Calls to end cancel culture are mostly within realms of sides,which ultimately means confliction which will lead to more calling-outs of it's opposition which will always preceed some type of cancelation. Not everyone cancelled is good and not everyone cancelled is bad, a lot of social nuance and tribal neuroses. No easy solutions.
Being cast out from society appears with many other animal spaces according to wildlife documentaries that I have seen. Public shaming is more difficult to match to animal behaviour.
I would absolutely say that telcos were too greedy, and that the history of the Internet is exploiting the fact that the Internet doesn't have a billing system to undercut telcos at every opportunity.

The Internet has undercut voice, text, ""online services"" (Compuserve and AOL etc), news, and most recently cable TV. The only way those prices can be lifted off the zero floor again is by a monopoly somehow squeezing out the free alternatives.

The psychological overhead of billing should not be underestimated as a reason against micropayments. Not having to think about your usage is liberating. This is why bundling (e.g. Netflix, Prime) is not going away.

Content creators do sometimes need to be paid somehow to produce content (although lots will do it for free!), and people seem to be slowly converging on Patreon/Kickstarter for this.
Great CSS Frameworks for Web Developers
Yes, in a strange way: I use Stream-Framework by GetStream (curiously moved away from it to GS today).

The backend storage for stream activities is Redis. It's lightweight and fast enough for most use cases.

Sure, not a full on database use case... But it is data that is persisted.
I like thinking about the trade off between a simpler rule that is mostly right vs. decisions require judgement and consensus. I think the simpler rule is usually the better side of the trade-off.

But in this case I think the cure might be worse than the disease. Tests for plumbing code often end up being brittle tests of methods getting called on mocks in the right order. People will notice that these require a lot of toil to keep them running as code changes while providing very little benefit in avoiding mistakes. People will rankle at being told that they must write these tests, which they can see are a waste of time.

I've done it both ways. I'm much happier with my work when I'm not trying to write tests that are tedious and don't seem to provide any value, in order to hit an arbitrary coverage metric. I suspect my teammates feel the same way, so on teams where I have input into the decision on this, I do not advocate for 100% coverage. It does make it harder to have the discussion of which tests should and shouldn't be written, but I think it's worth that cost.
https://kitze.io/posts/zero-or-one

If you think that's an oversimplified polarization, click on this blog post at the bottom.

"You're either a Zero or a One"

"You have either reached your goal, or you haven't"

In other words, life is a destination, not a journey. Yeah, nah.
Wonderful description. In brief:

Unit test algorithmic code; use integration tests for everything else, i.e plumbing code.
What, no. That's exactly the opposite.

Unit tests protect you against current mistakes. They're tied to the exact implementation.

"Right now my function X should call Y on it's dependency Z before it calls A on it's dependency B.
I know that my method should do this, because this is how I designed it now.
Let me write a test and expect exactly that."

Integration and unit tests will tell you whether in the future your code will still work when you refactor.

"Okay, we rewrote the whole class containing the function. Does running my thing still end up writing ABC into that output file?"

Otherwise I agree with you mostly.
> glibc (no matter what they say about having stable endpoints)

glibc does have a stable ABI. What they don't have is a frozen ABI so they will all new entry points. But old programs linked against glibc do and will continue to work fine.

> You can't run a program written today on the system repo libraries from 5 years ago.

You can absolutely write programs today targeting 5 year old ABIs. I agree that the FOSS toolchains could be more helpful there so you can just pass some compiler flag for the oldest glibc version you want to support but it is not impossible to achieve that on your own.
javax.* is copyrighted and is now copyleft if you use the jakarta.* namespace instead.

as for java.* I don't see how one could have issues, for example Kotlin use and extend the java standard library without any lawsuit. I believe that the issue was that Android devs copy pasted copyrighted code and putted them in their own reimplementation of the jdk without respecting the original authors. Their reimplementation (dalvik & ci) is the root of all evil and is technically a mess with antic java support. It's such a shame that we can't have ZGC or senandoah on android...
From my limited experience you get cross team discussions about unit testing, especially if one microservice has too many bugs in the eyes of other teams giving development a bad reputation or making working with a microservice hard. Especially if it breaks with releases and other teams get paged.
Why on earth would you run a Tor node on an IP that you use for any personal transactions? This isn't surprising in the least.
I'm inclined to say the biggest piece of value peer review adds is that it ensures that new research takes into account the most relevant past research. It also means that the argumentation in most peer-reviewed research passes appropriate "smell tests", which is rather weaker than saying the argumentation is sound.
Yup. The debate over unit testing, being political, is a far bigger impediment to progress than the actual tests, which are a technical hurdle. It's essentially the same reason for linters and auto-formatters.

It has a side benefit that it forces devs to write testable code, which inclines them to reasonbly factored code.
In fact it is from 1994 -1997, as explained in the FAQ linked above
https://azure.microsoft.com/en-us/blog/microsoft-and-redis-l...
Toc Bar – A table of content widget
A userscript that adds floating widget displaying table of content of current page.
> The closer your code resembles pure functions, the easier it is to do dependency injection and unit testing.

If the only thing you inject is data, can we still call that "dependency injection"?
Indeed. I also think research is important, and research, sources, and cross references to actual studies and data is important, and you can't research 10 things deeply in a week and write about them.

I feel that a lot of articles generated at such prodigious speed are mainly about the feelings of the author that happen to resonate with the reader, as opposed to some kind of deeper truth, insight, or understanding.
I'm making my final computer:http://talk.binarytask.com/task?id=8015986770003767235
> Mock frameworks make it trivial.

In my experience mock objects can be brittle. A few sprinkled in judiciously can be ok, but once the density gets high enough, it starts to feel like the test becomes decoupled from the actual code it's supposed to test.
The whole component simply known as "the comments" is terrible, my only theory is that someone is paying them to destructively test mice through needless clicks.
The emotion of disgust is related to disease and how likely we are to catch something. You will likely find an open festering wound disgusting, rotten food or a filthy bathroom.
Czech Airlines to Operate Scenic Flights over Prague at Low Altitude
VCs' duty is to act in the interests of their limited partners, so they have to make investments that they think will generate the highest returns, within the fund's investment mandate.

It may make sense for the activists to apply pressure on the limited partners (many of these being institutions with some social / public angle, such as pension funds, university endowments or sovereign and municipal funds) to demand higher diversity of founders from the venture funds they invest in.

Some large-scale investors have a history of adopting a social or environmental based elements in their investment strategy (for example, Norway's SWF divesting from coal and oil companies) - probably similar moves (but aimed at equal opportunities for all backgrounds) can be demanded from major US based asset management institutions - I don't see why, just to take an example, Harvard's board of trustees can't agree to that - even if that change is not directly aimed at generating the highest return on investment, it may be the right move from the longer term societal development perspective and for the university's brand value.
It’s so critical, it manifests as a fundamental emotion: disgust.
Java, .NET, Golang are actively used for web development. PHP is popular, especially for small projects, but it definitely did not win, web development is a contested area.
The interest is purely in the benefit of universities charging full rate of most international students.
Newer printers absolutely Just Work over wifi, at least with iOS and macOS devices. iOS automatically detects the printer on the network, no installation needed. MacOS is also about as seamless.

On the other hand I recently acquired a Windows 10 PC due to work-from-home and it was trouble-ridden. The auto-detect failed and I had a hard time installing drivers when it did fail. I have an easier time printing from my old Thinkpad running an out-of-date Debian. Hard to believe that Windows is still this primitive. It’s disappointing.
> were not gay, but rather used gay sex as an outlet for pleasure given the hopeless circumstances they were in

MSM behavior is on a spectrum, that moreover encompasses both deprivation-based homosexuality (the kind you get in "hopeless" circumstances with no access to heterosexual relationships) and dominance-based homosexuality (MSM sex as a raw exertion of dominance by one participant towards the other). These sorts of practices need not have much to do with "sexual orientation", as understood today.

In ancient Mediterranean cultures, being a dominant participant in MSM encounters was something "anyone" could do, and was not understood as anything unusual. It was only the submissive partner that was considered highly feminized. This same model shows up in other ancient cultures, e.g. in East Asia. The modern Western understanding where MSM practices boil down to a gay "sexual orientation" that's equally shared by both partners is historically novel.
I'm not sure that helps your point much though since eventually they're going to want their economy to grow unless your position is that Brazilians don't want their economy to grow.

There was no point other than to identify the error in your proposition.
> - In your average Rust project, all dependencies are already built from source

That is only the case for open source code like crates.io, there is nothing that guarantees you will get the source code of a third-party, though.

I mention this because in the native world it is common to give customers precompiled libraries.

> - Already using LLVM as the compiler backend

Some people don't seem to know this, but all languages that target LLVM (including C, C++, Fortran, Ada, Julia, Swift and others) can be used in WebAssembly.
> In fact, it wouldn’t be surprising to learn that 90% of traffic doesn’t read comments at all, most of the time.

I don't think so. Askreddit is one of the most popular subreddits.
It's a cool idea, even if just for performance reasons. So many things come from CDNs these days, we may as well start shopping the common ones ahead of time.

But recently I learned something unexpected. Lots of extensions are terrible with their resources. On a page targeting tech-savvy people, around 1% of requests has some extension content injected into the website which requests an external font file. (info comes from CSP reports) There's so much tracking opportunity exposed through them.
Show HN: Syphon – A privacy centric cross-platform matrix client (Open Alpha)
> In the book, Klein argues that neoliberal free market policies (as advocated by the economist Milton Friedman) have risen to prominence in some developed countries because of a deliberate strategy of "shock therapy".

I don’t think the author of this book understands the views of Milton Friedman very well.
The rarely triggered code is exactly where you want unit tests.

That's an opportunity to describe, in code, what that path is supposed to do, and then make sure it does it.
HTTP2 vs. HTTP1.1. Implementing HTTP2 in Net Core
Unless the stock pays a dividend (and a lot of stocks have never paid one), their cashflow never end up in your wallet as a shareholder. Thus the only value you will get is the amount someone else will pay for your stock.

Sure they need some cashflow (after all, nobody wants to buy a bankrupt company) but to believe the stock value is a straightforward formula based on cashflows isn’t how the market works. Otherwise Amazon would have plummeted in price long ago.
Today’s best business software goes viral
> Reddit’s decision to lock some vocally awful subreddits (/r/politics /r/atheism /uspolitics etc) made the homepage a gaggle of Obama & anti-religious rhetoric rather than anything compelling.

Now that's an interesting phenomenon I hadn't thought about before. There's been a lot of discussion recently about tech companies removing/blocking content they do not agree with. In most cases (racism, hate-speach, etc) this seems pretty well justified as it helps keep these people from rallying together, but I never thought about those boards being a sort of trap crop [1] for the internet, keeping the pests distracted and away from the areas the rest of us enjoy.

[1] https://en.wikipedia.org/wiki/Trap_crop
I'll see your legacy C/C++ and raise you legacy Fortran 77 :)
> If the only thing you inject is data, can we still call that "dependency injection"?

I suppose that's a philosophical question.

Probably the 2 most common functions I 'dependency inject' are rand() and time.now(). I feel like they count, but you might not.
What are you going to do, build your own phone?
And like other tools their importance is part of the entire tool-set. In many shops tight schedules, management by Product managers or people who are too removed from code cause you compromise every other principle of responsible sane coding. When this happens, unit tests are your only shield from doom. If everybody knows and allowed to write sane, good code with reasonable time to build it, the unit tests are nice to have but not a must
The Ubuntu podcast has a very recent episode about this: https://ubuntupodcast.org/2020/06/25/s13e14-ace-of-spades/

The conversation around snaps starts at 5:20.

It sounded to me that they genuinely tried to put themselves in both side's shoes.
It reads to me like you've taken rsynnott's point to an extreme here.

> Is it so werid that I'm tired of all the preaching

Humans are all weird in different ways, but that isn't the point here. The point is that your views on this seem to be making you unhappy. And, well, that doesn't have to be the case. Talking to someone can help you not feel unhappy about this stuff. And if indeed it does, it will likely make other parts of your life better too, in ways that may not be obvious now.

Lot's of people here have had therapy. This is not a judgement or a dismissal, rather it is genuine advice.
> what's changed

Passive cash flows became more expensive. Money got pushed into Microsoft, not pulled into it.
I wonder if you had just waited without turning it off the result would have been the same.
Color me skeptical anytime a company benchmarks their product against the competition.
Yes I have seen bad unit tests very often.

Writing good testing code is harder than writing business code. Especially junior developers struggle with this, most often because many companies write not enough tests to learn writing good tests.

And if you're in an environment, where this is a non-issue I think thats great. Don't fix something that doesn't need to be fixed.
Ask HN: Are there any common patterns of values found in uninitialized memory
I guess you need to urlencode it, try C%2B%2B
Buybacks. The other (and more efficient) method to return capital to shareholders is via buybacks, where the company literally hands you cash in exchange for your shares.
I know where you're coming from. I'm far more comfortable working on my library's codebase - fixing, improving, etc - than I am with planning/writing/creating "promotional" stuff about the stuff I've fixed and improved in the latest release.

Promotion work is Hard Work. It's also depressing work when nobody notices the post ... or maybe I'm just too needy.

Loved the video, btw. I'm guessing the canvas part is Fabric.js based?

My library's most popular video has 220 views. I was quite proud when it reached 3 figures! https://www.youtube.com/watch?v=LebxNhVWyOQ&t=31s
Yes. you move the people don't scale well issues to multiple teams don't scale well
This is probably the least significant contribution.
100% test coverage is pretty easy to game as long as the metric is known. Just exercise all paths and write as few assertions as you can.

I'd prefer <100% coverage plus discussions about what to test (and how) much more than working with a test suite built on the wrong incentives.
Pretty much - Large and Mega cap is performing well because at the end of the day it’s small businesses that will struggle while the larger entities can ride it out. Add a few trillion in cash and the writings on the wall.

I also suspect the decision makers don’t really want asset prices to go to shit, so better for them to issue more debt and let the next generation deal with it.
This has been a problem for me with my quarantine project. It's little more than a CRUD app: get some data, download it, display it on the screen. There's practically no business logic to it; the entire project is wiring up various XaaS. By the time I mocked everything that needed to be mocked, I'd have put more effort into mocking than the project itself.

I test the parts that are actually mine as best I can, but most of my debugging consists of driving it by hand.
> Newer printers absolutely Just Work over wifi, at least with iOS and macOS devices.

Not my experience at all.
run it on a vps if you have one
Show HN: Expose your Kubernetes resources to the world
Why is there a stigma to elderly developers applying for internships?
As an elderly but intellectually spritely developer (51) looking to shift focus to front-end development, I've been looking at various remote internships... only to find I'm getting figuratively strange looks as I'm not a recent graduate or product of a bootcamp. Assuming that it's not entirely down to me as a candidate (of course it could be!), and given that there's at least another 15 years of work left in me, is there some unspoken code that I'm unaware of?