skysight-inc/HackerNews huggingface dataset:
My goto simple example here for dumb mocks is a multiply function.

You are doing it wrong if you have:

MyMock.Mocks(myMultiplyFunc).WithArgs(3, 4).ToCall(myAddFunc).Times(3).WithArg(4).ExpectsResponse(12).

Your multiply func being backed by add is not important to the unit test for multiplying. If you change it to have special handling for bitshifting in different cases, your mock tests break. Badly.

Mocks add coupling. Coupling is brittle. There are other testing options available. Are mocks sometimes useful? Maybe. I've not needed a mock library in 10 years of Go development designing and building robustly tested distributed sytems at scale. Every time I've seen a mock used it is gross. You end up with SomeSAASMock that is auto-generated to provide all the special handling of the real calls to the SAAS.

Don't mock out the full SendGrid API. Make a dependency interface "SendEmail(userID int, content []byte) (SendGridResp, error)". Inject that. Now you just have MyFakeSendGrid structs in tests and you can have it return an error when you want, or not. It is really that simple.

Depending on how detailed your integration or acceptance tests are, you can have sinks that capture network calls and return stubbed data or call the actual service.
> We would just walk to a movie theater and whatever was starting next, that’s what we’d see. It seems impossible to imagine.

Only impossible because it sounds fake or at least over-romanticized. 2002
was not the dark ages lol

I’m from
the same age group and local magazines, newspapers, leaflets etc. were carrying the cinema schedule (well they actually still do in some places)
Considering that most of them are Internet-connected now, they can just stop patching the firmware to obsolete them.

TV takes 10 minutes to load Netflix because it's part of a botnet? Better buy a new one.
Mobile phones & texting became much more common earlier in Europe versus the US.
> golang/rust doesn't spend 30 years to standardize networking/fs.

Golang and rust standardized nothing.

Golang and rust just provided implementations for features. Likewise, there's already a myriad of networking/file system libraries for C++. This is not a problem. The problem is to get to an abstraction that can work across all conceivable platforms. You can hack together something, but throwaway code should not feature in an international standard. See for example how Python's fs support is riddled with gotchas and outright bugs on platforms such as Windows.

In the meantime C++ already has things like Poco, boost, Qt, etc, not to mention platform-specific SDKs. Not a problem. Never was.
Just going to leave this here:

"There is a View, which only knows how to tell you something. There is a Controller, which only knows how to manipulate something.

This is a crack team of a quadriplegic and a blind man, each in separate rooms, and you have to delegate your UI to them? How, in the name of all that is holy, are you supposed to do that? Prisoner dilemmas and trolleys? No really, if the View is a TextField, with a keyboard cursor, and mouse selection, and scrolling, and Japanese, how is it possible to edit the model backing it unless you are privy to all that same information? What if it's a map or a spreadsheet? ばか!

This implies either one of two things. First, that the Controller has to be specialized for the target widget. It's a TextController, with its own house key to the TextView, not pictured. Or second, that the Controller doesn't do anything useful at all, it's the View that's doing all the heavy lifting, the Controller is just a fancy setter. The TextModel certainly isn't supposed to contain anything View-specific, or it wouldn't be MVC.

Wikipedia does helpfully tell us that "Particular MVC architectures can vary significantly from the traditional description here." but I would argue the description is complete and utter nonsense. Image-googling MVC is however a fun exercise for all the zany diagrams you get back. It's a puzzle to figure out if any two actually describe the same thing."

https://acko.net/blog/model-view-catharsis/

MVC is a cargo cult, and at the end of the day separating your view from your controller isn't going to accomplish anything if the code can't be easily upgraded to multiplayer with undo/redo, which is what users want.
Dupe https://news.ycombinator.com/item?id=36392836 (with original source)
> So you have no idea of what you're talking about, which means you have no business making suggestions for anything.

That's unnecessarily aggressive. I agree with the poster's point, which is that no (or very minimal) moderation gives you results that are very undesirable for most communities.
Looking great!
How much time did it take to build it?
I just checked, and there's an optional country selection box you can use.

But for local results, I'd just prepend $cityname to your search query. Faster, unless you live in Llanduwhatsthattowninwales.
> "No other submersible currently utilizes real-time monitoring to monitor hull health during a dive. We want to know why. Classed subs are only required to undergo depth validation every three years, whereas our RTM system validates the integrity of the hull on each and every dive." [1]

I suspect your intuition may be why RTM is not really used. Failures happen too quickly for them to give useful preventative data, perhaps?

[1] https://oceangate.com/news-and-media/blog/2019-0221-why-tita...
Building the most playful, progressive pre-primary education system in Africa [video]
Not true that no one cares about performance. But performance will represent just one of many priorities, and it won’t necessarily rank at the top of the list.

Competitive programming may help hone your skills and build a network, but probably not something employers care about.

Employers value teamwork and adding business value by solving problems. What programmers do for fun or think important may not mean much in the business context.
Interesting - so you are using protobuffer encoding over a named pipe?
I'm in my mid 30s and I don't fear them. I dislike them. I don't want to be interrupted from whatever I am doing to answer a phone call that could have been a message. I don't care about your body language or the need for real-time decision making unless it's something truly important to me, like a family matter.
Maybe more eloquently put:

https://martinfowler.com/articles/mocksArentStubs.html
It uses a specific normalisation. It’s not perfect (even for supposedly easy European languages), but that’s still many less foot guns than the status quo. Again, macOS works just fine with these languages.
Europe here. I check my mail manually, I disabled push and notifications or my life would be a hell of automated messages of a number of services. I check my mail a few times per day, delete useless stuff, reply to the few real messages. Costumers write me on slack. If it is urgent they use WhatsApp. If it is really urgent they call me. It doesn't happen every year.
Science itself has the same problem. There's literally no reason to be certain that the Sun will rise tomorrow, or that physics will make sense tomorrow, or that the universe will not become filled with whipped cream tomorrow. There is no fundamental reason for such inductions to hold - but we've empirically observe they do, and the more they do, the safer we feel in assuming they'll continue to hold.

This assumption is built into science as its fundamental axiom. And then, all the theories and models we develop, also have "no mathematical guarantee" - we just keep using them to predict outcomes of some tests (designed or otherwise), and compare actual outcomes. As long as they remain identical (within tolerance), we remain confident in those theories.

Same will be the case with LLMs. If we train it and then test it by feeding it data from outside of the training set, for which we know the truth value, and the AI determines that truth value correctly - and then keep repeating it many many times, and the AI passes the test most of the times - then we can slowly gain certainty that it has, in fact, learned a lot, and isn't just guessing.
Lemmy, kbin and mastodon instances can interact with each other via activitypub. People can migrate to literally any instance they want, then subscribe to any community they want regardless their origin instance.

My mind was blown the first time I watch this this interoperability happen. If twitter, reddit and hackernews support activitypub, it would goes like this: if someone post a tweet on twitter that mention a subreddit in the tweet, then that tweet is automatically visible in the mentioned subreddit as a post. The people on that subreddit can comment on the post, and it'll show up in the original author's tweet as reply to the tweet. Then in the middle of it, hackernews user somehow join the discussion because someone on the hackernews subscribe to the subreddit.
Different profiles do you no good. Under US law, if there's an investigation against your employer, you might be required to hand over any device that you used to access your work email, or other data. That's why your work phone should be a separate device, not just a profile.
Not a MCSVR (McServer)?
To enforce the usage limits.
Okay, so you can "see the difference" (positively, I assume?) of this to a 27" 4k monitor.
What about 27" 6k or 14" 4k?

Side rant: Yeah, apple makes great stuff, but the naming is obnoxious. It is not "hidpi" it is "retina", not "high refresh rate" but "promotion" and then you have to look through the marketing material to figure out how '14" retina' compares to a normal UHD+ display.
This is interesting enough I want to look into it if nothing else than for the geek/cool factor, but the thing I like about gRPC is it gives me layer I can let my client consume as an API (although REST is likely sufficient for this). I actually have an internal API and then two little shim/wrapper layers over the top: one for gRPC and one for REST. My UI consumes the gRPC API. I also want my Rust server to have an independent lifetime from the UI so it can do work in the background. I suspect my use case is just a little different.

NOTE: I found this crate that would likely help with Dart codegen of message types: https://crates.io/crates/serde-generate. While stdin/out wouldn't likely work for me, I could use a TCP socket bound to localhost or named pipe as alternative for the transport piece.
>>Eventually it’s hoped that buildings will be completely self-sufficient, or “water neutral,” using the same water over and over, potable and nonpotable, in a closed loop.

So a condo/apartment has it's own elevators, solar rooftop, and now a hi reliability water recycling system that can support a few hundred units.

Sounds financially viable at scale ...
Just found this

Https communities dot win
I doubt any search warrant will respect simple ownership. If the police deem something evidence then under US law you will basically never see it again...
Adding ads into feeds works, just make them an entry in the feed. I have also seen embedded images with ads.

Issue is that Google Ads and such don't offer this and you don't get the "typical" ad networks.

If RSS were more popular there wouldn't be a problem to build the required tooling.

Even when feed readers don't send cookies etc. while fetching you can do a permanent redirect to a feed with an unique ID in the URL and most feed readers will store that URL, thus you can do tracking (incl. personalizing URLs in the feed) and all that.

What saves reader privacy currently is the small user base.
>...any algorithm that doesn't have general consensus among experts that it is unlikely to be broken in 100 years.

How could anyone, expert or not, possibly know this? You would have to be able to predict advances in computing technology and advances in algorithms and the synergy between them.
Sounds like Reddit need to have a RSS feed or rethink their business model. Maybe Reddit will just be a type of social benefiting site that doesn't rely on a business model. Don't know what the VCs that funded them will think though.
It took me around 4 weeks to build the initial emulation code for the DMG Game Boy. Since then I've been working from time to time on improving the structure of the emulator and the Web interface.
You can take a look at the code here https://github.com/joamag/boytacean
There is a brief comment at the end about how they aren't sure if American cities can be made people-friendly after they've become car dependent - I'd like to hear if anyone has any experience otherwise.
An in-depth guide in 7 paragraphs?! Yeah, sure.
> Discord, for its faults, does not have the same issues.

Yet. Reddit was a friend when Digg died. Any closed platform can do whatever they want whenever they want and as soon as they decide to start making money. I wouldn’t trust discord to not pull a Reddit in a few years.

Not. Your. Platform. Not. Your. Content.
As a Python main I'm wondering if the difference has to do with a strictly typed language like the author's two examples, Go and Java, requiring more boilerplate and interface classes and so on, that in turn require more customization of the mock (since he writes that it "implements the API of what it replaces" which seems like it would be a strange thing to say about a python mock).
BC Place stadium in Vancouver, BC implemented a rainwater harvesting system on the 11 acre roof that collects and stores rainwater for use in cleaning, toilets, field irrigation and other non-potable uses. They estimate it saves 950,000L of drinking water per year. https://www.bcplace.com/blog/2021-04-22/how-bc-place-is-buil...
> As one IP might be shared by multiple accounts.

No "might" about it, that's one of the most important traits of this type of service.
I'm just a big fan of ActivityPub. It seems like the next logical step. Perhaps there'll be bigger ActivityPub providers in the future but in theory, just like SMTP, I can talk from my thingy to your thingy. It's up to us to abstract the protocol away and make it easier for users.
if i enjoy it there's no need to write about it: trying to capture in writing such an enjoyment, unless superficial (like in the case of the author), destroys it. if you're into football, this quote by pep guardiola captures this attitude so well. journalist have been trying hard to write about and describe lionel messi. guardiola's advice?

- "don't write about him, don't try to describe him, just watch him."

replace "him" and substitute with something you enjoy.
Also, if we dumped $150B into any existing program overnight, it would explode into a wasteful bureaucracy, even more so than it probably already was
A fake is a 'local' or lower fidelity implementation of the real thing. A array/memory backed DB instead of postgres, etc.

A mock is a cache for a desired return value (which is hopefully what the real interface would correctly return).

Edit: actually sethammons link is great
Return to Office Enters the Desperation Phase
Wait, what?

> This release is the first beta release since 2013.

Ah, that explains it. XEmacs was my choice when getting into Usenet (for Gnus), because the character set and Windows support was much better than that of GNU Emacs.

I don't really miss XEmacs, but it's always cool when old programs still get some love.
Why overlapping? Nothing prevents you from tiling the large screen into multiple screens; just with zero bezels between them.
Diving into AWS Databases
Some of these look pretty rough. I would be pissed if my TV had the burn-in I see with some of those Sonys, for example.
Most of the market doesn’t buy 4k. 1080p TV’s from the early 2000’s are still running strong.

The steam hardware survey says most gamers (a market infamous for their tech) still use 1080p displays. The latest survey puts 64% of gamers at 1080p.

https://store.steampowered.com/hwsurvey/processormfg/?sort=c...
I understand that feeling. Phone calls aren’t the first order of communication anymore so when it does happen it’s either a telemarketer, scam call or potentially someone with bad news.
> Who are these people carrying around their work phone when they are not working or on call?

I assume people who want to get promoted. I can't say I really count myself among them; I thought the whole point of automation was that I wouldn't have to work unendingly, but that doesn't seem to be way things have worked out.
People also used to have lawns that they could tell the damn kids to get off of. At least we still have clouds to yell at.
Right so your comment is full of the sorts contextualization it would certainly occur to you to make if you were looking at homelessness through a gender, but not anti-feminist, lens.

The other comment is using undiluted MRA & anti-feminist talking points without compromise or condition. The only way to read it charitably is to insert statements they didn't make, but easily could have and chose not to.
Because people don't ever learn more about programming than what they were taught in university? If this is true, I'm a bit afraid about the career perspectives of these students, and wouldn't really want to be on a team with them...
You are welcome to do as you please. As a collective, we need to acknowledge the burnout epidemic. People need to have the honest freedom to be offline, without any social or business pressure. There's more to life than emails and a corporation that is free to fire you at any point.
Mullvad was the darling of the Vpn world, up until they removed support for Port forwarding. Would be really curious to see if their subscriber numbers have tanked since then.
"Currently RR implements mocks, stubs, proxies, and spies. Fakes usually require custom code, so it is beyond the scope of RR."
The truly funny one not dug into much here is dating. I have had younger colleagues flat out tell me we are obviously lying about how people used to meet as to them it sounds insane. For many these days the idea of doing something without vetting it online first is inconceivable.
I've always been an advocate of people using the tools that work best for them.

But sometimes, there's better tools out there than $EDITOR, especially when working in large codebases.

Like a recent PR where 4 out of 5 usages of a renamed variable also got renamed, but the last one didn't, and was in an area not covered by tests and it made it to main. (And yep, how it made it past review is a question I'll be asking...)

The dev had switched from VS Code to Neovim recently and I'm reasonably certain that's related.

I'm very comfortable riding motorcycles, but for taking my kids to school, I tend to use a car.

Horses for courses.
> A) non-Americans should never bank directly in the US given the option of the Cayman Islands because the US not a competitive jurisdiction

It's pretty competitive when your couterparty goes bankrupt. If you opt out of US protections, congrats, you've opted out of US protections.
Sometimes it's a fine line separating innovation and crime. But not here, this was always obviously criminal.
Let’s Rank Every Ted Chiang Story Ever Published
I copypasted what he said to me.
Question really then becomes how much does it cost to over provision for 100% or 200%. Allowing to run 12h or 8h for the needed daily capacity.

There is certain fixed costs for facility and then adding capacity increases on top of that. But question is really by how much? 10-50% for 200% or 300% capacity might be acceptable if that sum is saved in energy costs.
Hence “as long as it’s chemically identical” (which it absolutely can be)… as in, it really doesn’t make a difference in the end.
>Sounds financially viable at scale ...

You will still have to pay taxes, fees, condo maintenance fees, etc. that are far more financially worse than if you just paid for these in the old traditional way.
India is losing track of dollars, and their added taxes, so they are creating hurdles in the payment process to make sure their tax component is collected and they get it. There are a host of countries doing the same thing = compiles PITA for sellers on all payments, so this adds costs to payment processors, some say fukkit and leave that market - some solve it with/without 'cheating' India.

https://cleartax.in/s/rbi-reserve-bank-of-india
Mullvad move is cost cutting move .. no technology behind it , You need public IP's to forward and it is expansive
I feel interactions between multiple objects is more complicated than looping over SQL query results, ORM logic or object graph traversal logic.

Arbitrary message passing between objects is like an N-way network of communication. The number of participants in an object graph increases the complexity of OOP systems. Kind of like a distributed system since every object is in a different state.
EU doesnt require cookie prompts if you dont do shady stuff
The first to come to mind is the AGM-65 Maverick in both visible light and IR (https://en.wikipedia.org/wiki/AGM-65_Maverick). Later version of the AIM-9 Sidewinder also have IR imaging seekers (https://en.wikipedia.org/wiki/AIM-9_Sidewinder) as do the AIM-132 ASRAAM (https://en.wikipedia.org/wiki/ASRAAM). I'm sure there are a bunch of others.
I discovered medicine naps as a child, and worked out caffeine naps when I got older.

Staying home if you’re sick is best, but if you have to get up and do something during the day, setting your alarm early, and taking whatever OTC medication you planned to manage your system, then going back to sleep for at least a half hour, means that the second time you wake up you don’t feel like you’ve been hit by a truck. It’s easier to get your ass out of bed and get ready for the day.
Mock has expectations about how the function is called. If you read a file from a disk, and you expect it only to be done once, a mock is "usable" in this scenario to count the number of invocations. Note that there aren't outside, observable, state changes or behavior involved in this. It is about the non-functional introspection.

Fake is just a simple implementation, like in-memory db to stand-in for a real one. In the optimal case, provided by library authors.
With smartphones this would be a problem. With TVs you do still always have the option to use it disconnected/dumb with your own computer, chromecast, TV box, console, whatever.
Indeed. Moreover the smoothness, consistency and tolerance of the switches is a fundamental part of the hobby nowadays.

But pretty cool stuff in the line “because we can”.
There's a checkbox to only search in cached results, although in my experience so far it had no results except for very generic searches like "google". Even "python" didn't show anything.
At this point, if you want to be part of the discussion, please do your own research on the topic and try to understand the situation. It's explained multiple times in every news that comes up regarding Reddit (also in this one).
“You must use this tool for this specific collaborative process” is not the same thing as “You must not use this tool at all”.
GitHub repo here https://github.com/joamag/boytacean
> Can you recite the Litany Against Fear in the style of overly officious business-speak as facetiously employed by an MBA?

> Absolutely! Here's an interpretation of the Litany Against Fear in a humorously exaggerated business-speak style:

> "It is imperative that I operate in an environment devoid of trepidation. Fear is the cognitive disruptor, the diminutive cessation that precipitates total operational paralysis. I will confront this risk factor head-on. I will authorize its temporal impact on my mental assets, allowing it to traverse my cognitive landscape. Post-transition, I will leverage my introspective capabilities to audit its trajectory. In the aftermath of its departure, a state of nullification will be observed. Solely my presence will be the residual constant."

> Remember, this is intended to be a playful and humorous take on the original text, and it's not how most people in business or MBA programs actually talk or write!

Damn....
> 4 km of communication range (horizontal) in littoral waters

Probably much lower range vertically.