skysight-inc/HackerNews huggingface dataset:
Ask HN: Good Ressources on API Architecture?
Backend rookie here!

I'm playing around with the coding of a small API for simple CMS needs which will be eventually the backend of my personal website. It has the standard stuff like logins, jwt authentication and there will be some minor data uploading stuff in its future iterations. It's written in Go and I use Mongo as my database.
Now I am asking myself whether there are some architectural approaches or patterns out there for building maintanable and also scalable backends with logical and secure APIs? Any good hints where to start or some good examples?

Thanks in advance!
Always have backups... but in the bitwarden/vaultwarden case (just like with git), every client has a full copy which can be syched back to a new server, so even if you lose a server, you still have all passwords on (every) client.
In my case, that is multiple browser instances on multiple laptops and the bitwarden client on android.
Mountpoint for Amazon S3:Generally Available and Ready for Production Workloads
Agree, but it's not just about exploitation. Many people are weird about money and honesty around their skillset. I think it would be a good change, but I'm not sure the majority of people would like working like a pro sports team. In pro sports you know what everyone makes and relative skillsets are ranked and on display.
Humans and cars, bad combination.
Technical Hurdles: Building Video-Based AI Conversations
Sure, but we're a far cry from most migrants being "job creators and entrepreneurs"

The reality is that a lot of them struggle to find jobs, and a lot of them end up working illegally for unscrupulous bosses. And yes there are a whole lot of reasons for that, but at the end of the day it's the reality we have to deal with
I agree burdening the teachers with individualized instruction is too much. But students learning about themselves seems like a good thing.

My only point is that I believe the situation has not been studied well, and it should be.
Let's build WordPress for React together
Hello, my friends! Just starred this repo and it sounds promising. It’s Wordpress for React. Good timing to join. Cheers! https://github.com/webcrumbs-community/webcrumbs
My main point is that Meta works on issues to support the community much more than other companies, especially Google. Even when those issues don't directly contribute to Meta products itself.

Sure it is self-serving in the sense that they do get a lot out of the community as well, but I don't feel that super min-maxing of resource allocation on their open source projects.
A couple counter points:

1. Many queueing solutions struggle with at most once delivery. I've used a queue I built on top of RDBMS to solve this before. Ironically, when I was a junior we used a key/value store to lock certain messages for at most once delivery, which doubly compounds my next point.

2. A queue is more infrastructure to manage, and hard to troubleshoot infrastructure at that.

3. Many queueing softwares struggle with deserialization into native types which makes the code on either end unnecessarily obtuse. Using RDBMS queues makes your serialization as good as your drivers.
Bitwarden has had VC investors for years, long before the mentioned 2022 funding. I think our track record to date shows how we operate in this relationship. We specifically choose partners that align with our vision, not just anyone that comes off the street wanting to throw money at us (though there are many). Our health as a company afford us this luxury.

Bitwarden is and has been monetized since the beginning. There are no plans to change how we monetize our products. It's working well for us.
This is a bizarre idea contrary to how many housing affordability crisis were actually solved in the past. Would SF's housing prices go down if you were to build 10,000 new units? You're right, probably not that much. Would SF's housing prices go down if you were to build 1M new units? No doubt.

Shenzhen grew from 100,000 people in the 1980s to 13M now with no housing affordability crisis...by building. The whole pearl river delta region is essentially an 80M people megacity with no housing problems...because they continuously built. Tokyo is also a classical example of continuously building infrastructure to support millions more people per decade.
> People have "checked out from the system" because the system has abandoned them. When homes are $1M or more, there is no point working a second or harder job in order to afford a home, for many people owning a home is now forever out of reach.

In the past decade I've seen a ton of young labourers who just do seasonal work and then spend the rest of the year backpacking or living in a cheap country Asia. These are talented and very hard workers, but they have little chance to make a life for themselves in the country they grew up in.

They will loose money if they stay and work the whole year, because of the cost of living, and the progressive taxes, not to mention that all-year employment is usually the 9-5 with no overtime. Better to make a quick buck working hard in the season and then go travel and have a much higher quality of life for much less expenses. You'd be dumb not to do it.

The people who have a chance of owning a home are either those whose parents help them financially or those who manage to get a government or corporate full time job that the bankman likes. The rest are completely screwed, and have been for decades.
There's a huge secondary market but it certainly could be bigger. I wonder if Lego themselves shouldn't advertise more how to get rid of old bricks.
Horrible page to read from on mobile, but nonetheless what surprises me is that most people seem to just accept whatever rules management throw their way and start commuting again.

If I were in a position that required me to go into the office I would resign asap.
Anthropic is known for having a model with a context nearly 3x that of ChatGPT. You must not be following LLMs very closely
No company will eever say that thereyare plans for aggresive monetezation. They will always say everything stays the same - open-source mindset etc.

Until 2 years later there is a license and pricing change. One that will make it 10 times more expensive - or the free/open-source version will be crippled.
Any serious system programming will use the OS vendor tooling.
Weird copyright idea of mine: copyright registrations lapse, and must be paid for regularly, but the copyright itself continues. You have to have a registration to be able to demand statutory damages and can only demand for the period of the registration. So, if it lapses, you can't demand anything. No copyright zombies, because if you cared enough, you'd have made sure the registration was up to date. But it still falls close enough to treaty requirements to not get thrown out.
You know the truth about SERN, right?

https://en.wikipedia.org/wiki/Steins;Gate_(TV_series)

and how they covered up superluminal neutrinos?

https://www.youtube.com/watch?v=jYh0tWNeZJw
My point is that despite what you're saying about the possibilties of formal methods, it doesn't have any bearing on the claims in the OP paper.

More bluntly, it's irrelevant to the discussion.
With my manager being on one side of my country and most of my team members on another, any attempt at ‘return to the office for collaboration’ invariably means sitting at a hot desk in an over subscribed office with my headphones on all day because every conversation I have is on a video call.

Problem is, they’re still pushing for it.

With a workforce spread the way many tech industry ones are, I really don’t see any reason to go in frequently at all, and I’ll happily change jobs to continue doing my current 4 days a week from my well equipped office at home. I don’t need to book the desk in advance and I can even leave my laptop on the desk too.
High and low end people don't have to be hired for the advertised position. I believe the company can still say "yeah, you're not this level, but we're interested in you for position X instead" which may be outside of the advertised range.
It makes it unhelpful or not practically actionable, rather than inaccurate.
I like your list of 100 opinions. Of course, not absolutely all of them ;-) but the effort you took to compile the list. Lots of things to think about.
Look, public healthcare is socialism. Just invest and cover your health expenses from profit. Look, public pension is socialism that is subject to political corruption, just invest and cover your expenses. Hey, we are going to slightly nuke your investment values for public good, which may seem a bit socialist...

I'm partly joking, partly serious. The current state of affairs is roughly by design. At some point USA is going to be forced to have this conversation: how much socialism are we going to have? Are you going to deal with angry "homeless" or is universal housing availability so fundamentally good for society as a whole, that the government is going to enforce it some way, even if it comes at the expense of already housed?
Nobody throws away Lego bricks, there is huge market, you can sell them in various ways (by kilograms, by pieces).
I'm still waiting for the day Google Assistant can answer "what time does Home Depot open in the morning?"

GA: "I found 3 locations, which one?"

Me: "The closest one"

GA: "I found 3 locations, which one?"

...
They've undoubtedly discovered the hard way just how difficult and expensive it is to achieve any sort of consistent product with recycled plastic.

You can produce "something" --- but it will usually be a blackish/gray mess that is hard to re-color with variable viscosity, melting point and other properties that make it hard to mold in mass --- and the result probably won't look like something that should end up in your kid's mouth.

There are some valid use cases for recycled plastics but kid's toys may not be one of them.
> How is this even allowed?

Nixon v. Warner Communications (1978)

If a company feels the need to reveal their trade secrets in court to make their case, but ultimately wants to maintain protection over the trade secret itself, what option would you provide them?

Obama's signature of the Defend Trade Secrets Act in 2016 is also a recent indicator the executive branch has no interest in the breach of trade secrets. It would be astonishingly difficult for a trial judge to say, "you know, I think the public has an overriding, vested interest in knowing the internal details of Google's technologies."

https://en.wikipedia.org/wiki/Defend_Trade_Secrets_Act
I’m relatively new to this site. Why is this post popular? For me it links to the Bitwarden front page.
1-2 drinks 1-3 times per week. Everything else is drug abuse. Maybe the abuse is minor.
But as a tech worker I can expect, screw that, demand at least 320k for a junior role! Otherwise I will be poooooor! /s

Sometimes the VC-backed bubble entitlement is nothing short of stunning.
And I can’t imagine they have to pair the back glass to the CPU.
Some of the patients grew horns after the treatment, but those are easy to surgically remove so the clinical trial may go ahead.
Oh, there’s one that’s worse: The totalitarianism that’s coming from the general consensus of everybody around you.
Haha. Good suggestion. Maybe a infographic video?
Thanks, then this all seems to be much ado about nothing. Cheers!
Broken Arrow [video]
> only air-conditioned train that runs through the central section of London.

What about the district, metropolitan, Hammersmith and city and circle lines? And Thameslink of course!
I don't think so — the world of the C64 is gone, the expectations of the machines is radically different — but it might be this generations BBC or Acorn/RISC OS school computers.

Also, don't let the number on the sticker fool you: The C64 introductory price was $595… in 1982, which is $1800 today.
I’ve been using Claude for months now, as has my dev team and a number of other people I know, and we don’t have this problem at all. In my experience is hallucinates less. This is compared to ChatGPT with GPT4. Anecdotal evidence is worthless it seem.
Author here. The benchmark part could be clearer; I acknowledge that.

Interestingly, when working with a limited number of threads, the thread approach is actually faster in that benchmark. So in practical applications, the differences are marginal and likely lean towards threads.

But even if this weren't the case, context matters. A 10ms discrepancy in a web request might be acceptable. However, in a high-performance networking application - which, let's be honest, isn't a common project for most - it could be significant.
Hilarious, Space grade titanium and the thing cracks like an egg.
There are many times when the start order doesn’t really matter, and the additional sorting overhead isn’t worth it. In those cases people will still tend to refer to the entity holding the jobs to be processed as a queue despite the fact that it doesn’t strictly follow FIFO order.

If they are being technically precise, queue isn’t the correct term, but language changes with context and time. Either way the implementation isn’t wrong if strict start order has been considered and isn’t important.
Check every division.
As someone who much prefers bootstrapping businesses, this seems like a just insane amount of money to raise.

If you had a growing popular product like this, why on earth would you raise that amount of money? This isn't a rhetorical question btw! I would honestly like to know the rationale here?!
I had to check it. Yes, those are the ones at every IKEA.
For that, you need to duct those onlyfans!
Yes. The bounds from the std::string are used to create a read-mask which is used in a masked load that does not fault on lanes outside the mask.

If the length had been unknown (say, a C-style null-terminated string) then the code would have needed to be more complex. You would either have to find the length before-hand or done only aligned loads.
BTW. ARM's SVE and RISC-V's Vector extension have special "first fault" load-instructions that make that case simpler: they instead modify the vector's mask/length to the lowest-numbered lane that would have faulted.
It is imperative to make progress. The more progress we make the more we can pressure the rest of the world. This is true for all countries.

There is theater around the environment and individual and collection action, but reducing carbon release into the atmosphere is imperative. We should not strive for net zero. We should strive for net -10x.
Yeah no fair enough, I guess it's just an odd statement really. It's a Spanish language News outlet though, and given the amount of countries that speak Spanish natively just seemed an out of place comment.
Not sure why you're downvoted. This is indeed nonsense. I love async Rust but I don't understand we have to revisit this topic as if there's some dire hangup or something every few months.
PET is just not a good material for brick toys. They deform quite easily and that goes against LEGO brand. I wonder why they didn’t use HDPE which Green Toys utilizes. Perhaps not enough recycled materials for LEGO scale.
> So you LITERALLY

I was using the collective “we”.

My family had a yard and had kids playing outside. We eventually just moved to somewhere not doing any of the restrictions.

BUT where I was living did restrict severely for a prolonged period.
Yes, in that Postgres still
uses oldest-to-newest tuple ordering, and its MVCC hasn’t changed, so you can still cause the issues listed.

Careful monitoring and tuning of parameters mentioned by the sibling comment to you can help mitigate this, though.

Ultimately at scale, no, RDBMS shouldn’t be a queue. But most have a long way to go before they hit that point.
In the absence of government intervention, wealth is more likely to tend toward the center. The issue is that any democratic form of government featuring any kind of legislature reliant on voting will be bought. First, large companies will want small little advantages like a new road to their factory. Overtime, it becomes massive like immunity from prosecution from drugs that kill people like opioids. Over time, these companies receiving benefits become indistinguishable from the government itself and drive nearly all policy like Boeing, Raytheon, Lockheed, JP Morgan, Goldman, etc. Generally, all attempts to stop this are subverted and used to the benefit of these megacorporations via riders on any such bill introduced by politicians who’re on the take. Further, the agencies tasked with enforcement of any regulation usually have people who previously worked at these companies or who hope to work at them in the future on their staff.

Humans respond to incentives, and all incentives line up toward the merger of corporation and state in a democracy. I’d like to see a free market democracy that lacks corporate personhood to see if that changes the structure, but a human life isn’t long enough to really witness such a thing.
Thank you, and other people, for mentioning Vaultwarden. I’ll check that out. This is, however, a separate software package, coming from different people, so not related to my question.

Bitwarden is not free as in speech, as it requires me to register with Bitwarden, Inc and get a license key to be able to self host. Also, then it uses some closed cloud services.

As for the free as in beer - this is more nuanced, but I still think it is far from free. For individuals - hosting something that requires 2-4 GB of RAM [1] is definitely not free. For companies - hosting something that doesn’t include SSO is pointless. The Bitwarden source available license, that includes SSO, does not allow production use [2], and requires a paid subscription instead.

BTW I completely understand the reasons to not open source everything. What I don’t understand is: why not use the source available Bitwarden license for the entire server codebase?

[1]: https://bitwarden.com/help/install-on-premise-linux/

[2]: https://github.com/bitwarden/server/blob/master/LICENSE_FAQ....
You're making quite a number of faulty assumptions.

> Medical bills, sure, but they have always been around.

Prices for medical care have increased disproportionately in the last few decades[0].

> Investing giant sums in defending Ukraine's border.

It's barely 1% of your budget. It's 3% or so of your military budget. That doesn't move the needle. I mean sure; you're spending too much on the military, no doubt about that. But that doesn't have anything to do with Ukraine.

> We need a system that works, not a system that doesn't work with a heavy-handed thumb on the scale.

You already have that. Currently it is heavily biased in favor or the upper 10% of the population.

> The actual obvious candidate is not punishing people who create so much value they have a load of money,

That's assuming that people that "have a load of money" necessarily created that value. Given the current socio-economic conditions, I doubt that is usually the case. [1]

[0] https://www.in2013dollars.com/Medical-care/price-inflation

[1] https://www.weforum.org/agenda/2020/09/social-mobility-upwar...
The USB-C port on my iPad was faulty when the product arrived and they wanted £600 to repair it.
here, might help ya

https://cloud.google.com/apis/design

https://learn.microsoft.com/en-us/azure/architecture/best-pr...

https://opensource.zalando.com/restful-api-guidelines/
It depends. If the point of the VC money is to go after enterprise customers and to expand into other enterprisey software security products, then $100M seems reasonable to me, especially for the time when the investment happened. The VC market seems to have cooled quite a bit from when Bitwarden took that investment, so times change and maybe they were just striking while the iron was hot?

The $10/year individual plan wouldn't warrant $100M investment. But going after big companies who are going to commit to $X/year/employee or similar kinds of pricing packages might, especially if Bitwarden integrates with existing corporate directory systems and such for delegating and managing accounts.
It depends if the goal is to satisfy the public that courts are treating this case fairly, or cases in general fairly.

One might imagine that if any unfairness is discovered, laws and processes are adjusted for future cases, but past cases will not be re-reviewed.
Excited to introduce HacktoberShield, a GitHub Action designed to protect your repositories from spammy and low-quality Pull Requests, especially during Hacktoberfest.

Why HacktoberShield?

Automated Flags: Instantly identifies and flags suspicious PRs, keeping your repo clean.
Diff Checks: Provides a comprehensive view of every change in incoming PRs.
Easy Setup: Just add a few lines to your workflow YAML and you're set.

We're eager to hear your thoughts and feedback! Collaboration is more than appreciated :)
My mom was homeless for years, thankfully she got stable housing right before covid took off.

- in shelters/churches-with-cots there would be crazed drug-users, she was threatened numerous times in them and the shelter can't do anything

- I wasn't financially able to help her much but managed to buy her a "clunker" of a car which she later slept in before getting housing

- she's entirely dependent on getting social security, for food, housing, etc. she fears any politician that even talks about going after it

- she's 70 and is currently looking for work :( currently looking for jobs as a substitute teacher, for which I'm scared to death for her given all the videos online of kids beating up teachers and getting away with it, but what else can be done?

- I bought her a new (used) car recently, a tiny SUV -- when we were on the lot looking at it she wanted to see how the seats go down so that she could try laying down in it to make sure she fits, in case it ever happens again
afaik this site is for showing interesting things and discussing them. this post is to show the bitwarden password manager, nothing more to it.
These are Lego compatible bricks made from wood, hugely more expensive, but an interesting idea:

https://www.kinderspel.net/en/wooden-bricks-compatible-with-...
Yeah but the argument from Google isn't on trade secrets. They literally argued it's nothing more than clickbait.

Everyone knows they already breach anti trust by paying Apple $2B, for example. The contents of the documents detail how they got there
Gotcha, apologies for responding without reading!
You can implement a carbon tax/tariff upon import from those economies if they are unwilling to sacrifice some of their rapid growth for the common good like the west is doing.
That's why i call it a veneer.

Just have a look at the blackout of New York https://en.wikipedia.org/wiki/New_York_City_blackout_of_1977... , and how much crime it led to, just because the veneer is torn off. People are only civil because they fear the threat of punishment.

As soon as this threat is removed, or is evident that it's unenforceable, you tell me what "natural rights" exist?
I know the subreddits you're referring to (which now exist off-site), and that wasn't my experience of them. I considered these to be a supportful space for people, mostly women, to discuss and critique this recent ideological shift towards women and men being redefined as a 'gender identity' rather than a material biological reality, and the harmful effects this belief system has when implemented in law and policy.

One person who I feel exemplifies the sensible middle ground here is JK Rowling. She wrote a very thoughtful essay on this topic which I think is well worth reading, if you haven't already: https://www.jkrowling.com/opinions/j-k-rowling-writes-about-....
Any company that forces a return to office is going to lose some of their best employees, as those are the ones who will have the easiest time finding a better job. RTO is basically just a backdoor layoff, only they end up losing the people they should be desperate to keep. What's worse is there's no good reason for it, it's just a power play by execs who are kind of bad at their jobs.