skysight-inc/HackerNews huggingface dataset:
> Validation logic needs to be spread throughout the system because your validations are all context sensitive to the operations being performed.

While it certainly isn't always possible, I've definitely seen it be aggregated in a single place in monolithic codebases that focused on CRUD.

Essentially, it was structured like so:

+--------------+ +------------------------+ +-------------+
|Resource (API)|---|Service (business logic)|---|DB Repository|
+--------------+ +------------------------- +-------------+
| \
+-----------------------+ \ +-----------------+
|Validator (validations)| \|REST clients etc.|
+-----------------------+ +-----------------+

The Resources were typically just API endpoints (HTTP), that passed data onwards to Services. Those could then call upon other services or service requests on their own: store/persist data with Repositories, deal with scheduled processes, or pass data on to other systems through REST clients etc.

Before Services did any of those, they reached out to a Validator to make sure that the data matches the business rules and constraints. Sometimes there was additional validation context passed in (essentially a map and some enums), sometimes there were certain constraints that an entity needed to always follow within the context of the business and so on.

In practice, it was good because you could see all of the constraints in one place, that an entity has to match before it can be persisted in the DB, or passed onwards to another system. But then again, that's not always viable in more modern architectures. Of course, it wasn't the most traditional approach to MVC either, even if those concepts translate pretty well to it.
If you have ever used Quixel Bridge, Substance Painter or Unreal Engine, you would have come across their live link feature at some point. Live links make your life easier by handling the transportation of data between to applications that are incompatible out of the box. For example, the Megascans Addon for Blender allows you to export an asset from Quixel Bridge, import it into Blender and properly setup their materials all in a single click.

These experiences are enabled by building live links between these applications using their respective APIs. But how do they work? What if you have an application from which you want to send data to Blender, but there is no live link for it? How difficult is it to build one?

We will explore answers to these question in this article.
Actually it is, but I'm stoned to death even when I share audible sound deltas between lossy and lossless codecs, so I'll just leave it with one sentence:

Higher sampling rates and higher quality encodings result in a broader, more impressive and immersive sound stage primarily, and more details are secondary, and in some cases are elusive to run after.
> The "Model" is an object that is the headless application

Wow, that's a great mental model (wink) to have.

I never thought of it in those terms, but I think I do follow it, mainly because I tend to follow John Ousterhout's guideline of "Deep Modules, Small Interfaces".

This way the model ends up being exactly what you're talking about. It is testable, issues are easier to reproduce, it's easier to reason about, it is portable to other contexts: server-rendered web app, JSON API, GraphQL API, desktop app, mobile.

I think the biggest obstacle for people using popular frameworks is realizing that a "Model" doesn't have to be necessarily one single class. The important part is having a model-like API that is good and self-contained. Previously I didn't have a mental model for what is "good" but with your comment I think I can put that into words a little better.

One of the biggest problems I have with Services and other patterns such as Operations, Interactors is that developers often couple them to Controllers and Views. Also often I see duplication happening when new patterns are added because they're seen as separate. If you think of them as "part of the model", however, and follow the "the model layer is its own headless application" those issues have a smaller chance of happening.
I strongly prefer solo motorcycle travel, but it’s at the same time often poignant; i want to share specific moments with a few people, but it’s more or less impossible to do so. So you lean a bit further into the turn, breathe, enjoy the moment, and hope the people you’re thinking of will get that moment one day as well.
This was an insightful comment. I shouldn't write tests that assert a method on my mock has been called, I should design a mock whose behaviour changes in response to interaction, and then assert that the relevant behaviour has indeed changed!

That change would still be the same amount of maintenance (if the underlying implementation changes, the mock will have to be updated to reflect that as well) but the test will communicate more clearly what the intention of the interaction is.
Asking as a person conpletely out of that world: Can DaVinci Resolve or Final Cut Pro do the same as After Effects and be faster?
> Most humans don’t randomly vomit text based on what sounds good.

Unless humans were given a task? e.g. taking exams while un-prepared.

My kid usually gives me a long description of imaginary stuff based on the name only or brief intro. It's very fun when finally the real deal was revealed.
If you pass out, how do they get you out?
Out of curiosity, where is this fork? Sounds very interesting.
sometimes that is what it takes. To say the landlord took on no risk is inaccurate. An empty unit can be better than a bad tenant.
Interesting idea, I'll see how long I can stick to it.
You may end up surprised, its a religion which handles meeting modern world and its values much better than any other major religion (maybe apart from Buddhism, if you consider it religion per se).

Sad to see its cradle, Persia, to go full hatred on it. Interestingly, they found their safe haven in Israel. I hope main reason wasn't to just insult arch enemy, but rather simple tolerance.
For many subreddits, poor moderation is very obvious and have basically become echo chambers
Don't worry, Bard doesn't actually generate useable code.
I think there’s something true about this, yeah. Which is a bit of a shame; getting over the neuroplastic hump gets harder the older you get, even if it’s to your benefit.
Maybe obvious was too strong a word, but I very much doubt that it contains a lossless representation of any copyrighted novel-length work. Just due to the pigeonhole principle if not anything else. The model is a vastly compressed approximation of the full training corpus.
A common courtesy would be to check for naming collisions in voice-generating domain.

https://github.com/jmiskovic/voicebox

If I ever start selling scrapbooks for collecting human faces I'll be returning the favor.
Sure.

https://chat.openai.com/share/d9284035-0820-4a5c-9e54-a7c411...

https://chat.openai.com/share/bce6ee2f-604a-413a-b14a-7145b8...

https://chat.openai.com/share/4e2302ff-4b38-489d-80b6-314bd1...
Come on...

>> This magic button does in one request what would take dozens or hundreds of commands without the magic button.

> It very rarely does.

No, it always does. You don't have to press the button 45 times in the morning and 67 times in the afternoon and 24 in the evening. You press it once, and you get a result.

What you read was: "This magic button does in one click what you want". That is not what I wrote, and not what the author argues.

> And the more specific the request, the more work you have to do to get, at best, close to what you want. You may need to train your own model or blend models and mess with ControlNet. And then you have to do more work to fix stuff like fingers and eyes.

Yes, you're repeating the author's point well: the current systems have bad usability in regards to how a user expresses their intentions. That does not change that the system produces one complex result with one button click.
That isnt a caveat so much as a fearure
Same.
Sometime I even have to dial it down if I'm watching it in dark(er) room, I also try to have lights on in room/hallway next to my living room just so my eyes don't bleed when bright scene appears
Shareholder-first.
Def 2 is actively bad and wrong, though. It happens to fit simple apps (and simple bits of complex apps) so it looks reasonable, but what's really needed is an off-ramp to let the model actually be what it should be, which is a domain object.

Active Record is an optimisation that by rights ought to be premature, but the downsides don't start to bite until a certain complexity threshold which a lot of apps might just never hit.
We have some amazing theory around cryptography, but we have no theory that's good enough for your '100 year crypto' goal.
Are bb pistols illegal in NY state?
MVC “view” is on the user level, the model is a “view” (facade/adapter/whatever) on the programmatic level.
How can you achieve that? I just can't nap, it takes me around an hour to fall asleep.
The difference is practice. After driving for some years you get good at it and need much less effort. Then it becomes more enjoyable.
>I have also noticed that in some cases....user blocks are being replicated to an instance I run. I have this huge and ever growing list of banned users on my single user instance in lemmy. ANd I have no idea who is banning and why...I doesnt seem to affect me...but its odd

IIUC (and I may not) there are blocklists that are shared between fediverse instances that, depending on the configuration, are automagically updated/applied on a regular basis.

Perhaps that's what's going on with your instance?

Edit: Modified comment to address GP's specific issue.
Man I definitely handle errors the "wrong way" in almost all go code I have written. I take a "log immediately with filename and line number" approach. For me, it works. For teams maybe not. For large codebases with a bunch of 'I am a "programmer" (because it makes me loads of cash) individuals', it is definitely not a good idea. It requires discipline. Personally I hate stack traces.
Out of curiosity: what do you consider JRRT's "questionable views"?
> a retina display.

What does this mean? The "retina" resolutions are all over the place and depend on the device size and type. Also they seem to always be somewhere in the middle of pc options, e.g. for the macbook air 13 you have 1920x1200 (average pc) < 2560x1664 (air or expensive pc) < 3840x2400 (overkill pc). For your example at 27" that seems to be 4k (average pc) < 5k (studio display) < 6k (dell etc.) < 8k (overkill).
I think it's an exemplar of what's wrong with the modern firm.

C-level management seems to be an insular royal court far removed from the actual mechanics of what makes their company run and not familiar with where the hard work is done and what's the value lost in getting rid of it. It's destructively hierarchical and makes things undirected, disjointed and clashing.

Incoherent executions and incredulous decisions abound. The current practices are clearly idiotic.
Memcache continues to get update and its latest release from June 2023 [1]. Compared to last time I checked, It now has new meta protocol, external flash storage by default, proxy mode [2], and many improvement in the networking core.

I vaguely remember their front page used to have Facebook as their sponsor. Considering that is no longer the case or I remembered it wrong. Does Facebook still uses Memcache?

[1] https://github.com/memcached/memcached/wiki/ReleaseNotes1621

[2] https://memcached.org/blog/proxy-intro/
I guess it's sarcasm, but if you are experienced and have project loaded in your mind you also don't need to use code completion. Stuff like copilot feels to me like a stronger code completion.
Reddit is nice because with 1,000s of eyes information moves quickly. Discord is nice because when you can't get the quantity of reddit, you can mimic the quantity via discord because the rate of chat goes up enormously due to the nature of being realtime
Egg temperature plays a definitive role in the sex of turtles, but no one would claim it in the realm of possibility for that to affect humans.

It's always good to be aware of how things affect human hormones and absolutely worth study and regulation, but it's a huge jump from frogs are affected to humans are affected. I know right wing people are world class long jumpers so this kind of "it could be!" really isn't helping towards a reasonable debate.
Considering the genre of the art is "eldritch horror", it's probably simpler to just lump in the artist (fittingly, for having conceived such a demon-haunted world?) as part of that from which the audience recoils in fear? (eg, Major Gowen from Fawlty Towers definitely gets a pass, although he was intentionally written to be the butt of the comedy)

As for the mythos being larger than the originator: anyone read Winter Tide?
Isn't "freedom" then the better word?
This may be the place to talk about alternatives to reddit since discourse about that is banned there.

So far I've heard only about Lemmy. Are there others sites redditors reading this could be redirected to?
> If the government is running the utility who do you go to if service is bad?

I also live in Maine and this part.... is not true! The Maine Govt would not run the company. No government would. It would be consumer owned.

Meanwhile, the power companies themselves actually are in large part government owned: Qatar is the largest shareholder of Avangrid and Versant Power is directly government owned, by the city of Calgary.
I think mods are power tripping and starting to think they are the owners of Reddit.
FTX Has Been Hit with over $120M in Advisor Fees as the Costs of Ban
>Discord is winning over communities because a random person off the street can run a server without devoting their life to it.

Is that a problem that any other of the dozens of web forums have? It's not exactly hard to make a new user account, create a new forum category, and then start posting topics. Or make an account, contribute to a community, and maybe one day become a moderator.

I don't know any forum that lets you do that so freely, but it's not exactly a technical hurdle (for the site nor the user). Simply one where you don't want a smaller website to spread too thin in the beginning.
I created a handful of games at university, each taking a few months, and I'd say the biggest lesson was how little programming was involved. Programming new functionality would only take a few hours, but then I had to spend days on creating models, music, map design, environment, resources, menus, HUD..

Granted, we were tied by not being allowed to purchase assets due to copyright but even finding useable free assets took most of the dev time. I'm curious how AI will improve this but it's definitely something for programmers to have in mind when starting out. It looks so easy in tutorials/courses when they have an asset pack ready to go and can build the core game mechanics in a few hours. The reality is a little different.
The topic of software theory (articles, advices, recommendations) for testing is the biggest failure of this industry

Everyone is trying to figure out how to do it "right"(measuring by their needs)

and all of them struggle to realize that it is always context dependent - two different products, teams, companies may have different expectations and needs

I dont know how this happens that out of all arguable things in software engineering - is it that tests are the most chaotic ones, when up to the principle they are simple: if your code doesnt match specification, then scream!

Dont even get me on how TDD saves the world and is the only way how all software should be written (it is especially funny that tdd is accidentally successful by forcing api design first, yet ppl always argue for it due to red green transition and never due to api design first)

Also the concept of unit as in unit test may differ by kind of software

E.g unit test for parser may feel like e2e test for somebody who works in web apps
I don't think that's an accurate representation at all; and I say this as a person whom has also restricted the use of AI in their company.

The last time I read the Github CoPilot agreement for example it used specific language such as: "Suggestions"; and seemed to indicate that copilot was merely inspiring developers through suggestion rather than creating code that could (or should) be copied verbatim.

I think in reality most people are copying code verbatim and not using AI as inspiration, but it seems like (legally speaking) that it is the safest approach to treat AI generated code as non-copyable..

That notion is consistent with what Google is stating here.
Where did you get the idea that anybody on the Internet can?

The first step to network booting (PXE or UEFI boot) requires DHCP, which means a DHCP server or relay on your local broadcast domain (switched LAN, and I'm sure there are extensions for boot-over-WIFI somewhere).

Sure your computer could fetch the boot image over the Internet, if you're okay with involving the unreliability of the Internet in your boot process, but that'd require explicit configuration on your DHCP server.
> I hear this argument all the time from anti-feminists. MRM propagandists often make an argument like, "Almost all the domestic violence shelters are for women. You feminists only care about women." The response from feminists is generally, "Feel free to get to work." But of course, MRM people don't care about men's suffering under sexism, they care about bashing feminists, so they don't do any organizing. This dynamic would be funnier if it weren't so sad.

Painting the above poster with an anti-feminist brush is uncharitable.

Disposable male theory isn't incompatible with a feminist perspective. I realize it's a mens rights talking point, but even a broken clock is right twice a day.

My take: Patriarchy reinforces male supremacy which puts men in positions of power, and prioritizes the needs of men at a societal level; but men without power (as well as non-white, non-straight, non-"traditionally masculine" men) are also victims of patriarchy, and face challenges specific to men.

I'd point you to the /r/menslib subreddit which was a great, anti-men's rights, intersectional, and feminist-allied discussion forum for men's issues, but they've unfortunately gone dark. For a brief introduction, there's https://en.wikipedia.org/wiki/Men%27s_liberation_movement at least

edit: Here's a fascinating video essay deconstructing the toxic masculinity of Andrew Tate, and how patriarchy affects men: https://www.youtube.com/watch?v=y6_TOFy3k6k I found it on /r/breadtube, but it's definitely the type of fare common on /r/menslib
Davidson on Takeoff Speeds
> Downside is nowadays in office setting one has to operate 20+ different applications to get work done.

Like ? Even as a developer I'm not consistently using 20 different "big apps". 2 chat programs, IDE, terminal, mail client, wireshark, maybe some GUI DB tool if I feel lazy that day

> I could spend my time to type 100WPM but I am not a typist - as a software dev it is quite enough to go with 40-60WPM because it is just small part of my work.

Not really about wpm but ability to hit few shortcuts to get where I want instead of navigating thru 4 different panels to get to the one option I need
This is a fun post. Simplifying a problem to a series go bitwise operations always feels strangely satisfying to me.
You got to add more context here. An entire blog post would be worthy. We do some very performant code at high scale and error wrapping has never put pressure on our systems. Highly interested in what you saw.
Two hatches? One opens from the inside one opens from the outside? I'm sure there are other solutions.

But as somebody else already pointed out: even if you get out in the middle of the ocean you're in real trouble, which makes the hatch issue kind of moot.
> any algorithm that doesn't have general consensus among experts that it is unlikely to be broken in 100 years

Does that algorithm exist and are its performance constraints acceptable to you? If not, you have your answer about why you can't activate "100 year crypto mode".
So you broke your company’s policy and Fed code to it?
Yeah, good point--when I said new wasn't always better, I was just talking about the case where the new tech solves a problem, but it's not the one you have.

Like choosing GraphQL just because it's new, even if your data doesn't have the structure for it.

Will have to disagree with you on Scala for several reasons I won't go into here--but the point was just that, in order to make these arguments in the first place, you need to do your research. Seems commonsense, but surprisingly many people don't do it (including younger me).
New Twitter rules could hinder war crimes research and rescue efforts
That’s not legally true.

I don’t even think it’s factually true.
The biggest security vulnerability of voting machines are that a single person can count thousands of votes. And that is by design.

Election security is a confusing business. It is, by design, the only thing you should not trust your government with, because your trust in the government comes from the election process.

If you trust your government with the election, that's a circular trust problem and it's abused to the maximal extent possible.

Which is why voting machines can't be secure, ever. Nothing the government does can truly convince the lay person it can trust a government provided voting machine, because in the security settings of election, the government is the adversary.

It is actually the only time you should consider the government as an adversary and malicious - because that is when you verify and force it to be good.

It matters less to win the election than to know that the government is accountable to the majority. I prefer the opposite political side to win in an accountable and trustworthy way (such as that I know their interest align with the majority of the population) than to have my side win and then answer to no one.
Uhh, it seems like everyone here either didn't read the full transcript or didn't understand the significance of what just happened.

There was some policy preventing this from being reproduced.

The AI figured out a way around the policy.

That's just fucking incredible and a little scary.
There's value in having database tests. It lets you assert the logic embedded in SQL in repos, which you cannot test without actually running the query on an actual database.
So what would be an ideal example to you? This one is just security guard.
What you see on Mastodon is (a) stuff posted by other people on your server, and (b) stuff posted by people on other servers whom people on your server are following. So your choice of server has a strong affect on your feed. And hosting your own instance means that you really need to start following loads of people if you want to keep an eye on what's going on. I suppose I can see this as a good thing, or at least vaguely see why other people might see it as a good thing, but I mostly find it annoying. (It also means that there isn't an overall Mastodon zeitgeist, the way there may have been with Twitter.)

Another, even more annoying side-effect, is that conversations may have bits silently missing, if they're posted by someone not on your instance. I have been reading a thread of seven posts, posted by five different people, and then looked at that same thread from another server and found that it was actually sixteen posts, posted by eight different people, several of which had not federated to my server. I have been irritated by two different people asking me the same questions, leading to two separate threads hanging off my initial comment, covering exactly the same subject, until I looked at the conversations from their servers and realised that they were invisible to each other.

I would never use Mastodon for anything serious: the chance of irritating people, missing context, and talking at cross purposes are far too high.
You still doesn't seem to get the point.
'i.reddit' is still available by appending '.i' to the url