Better HN
topnewbestaskshowjobs
Log inSign up

lastofus

720 karma · joined Jan 14, 2014 (12y ago) · 330 submissions

Submissions

comment 1w ago · link · parent

While not wrong, the professor being quoted was serving in government on the CDC's Advisory Committee on Immunization Practices until the committee was disbanded by RFK Jr. last year.

comment 4w ago · link · parent

Latinx appears to be on the way out now as well, to be replaced by Latine, for exactly the situation you described. "Latinx" didn't come out of the broader community of native speakers, and was seemingly rejected due to that fact.

comment 4w ago · link · parent

Loan calls have filled out my voicemail inbox to full. I get anywhere from 1-5 a day. I've considered disconnecting my phone service at this point.

comment 1mo ago · link · parent

I've read the Murderbot series through a few times now. It's basically easy-to-consume comfort food.

comment 1mo ago · link · parent

There's no sure fire option for making sure you don't run out of money, as nothing can 100% predict the future. The best we have is the assumption that the future will look kinda like the past over long periods of time.

If you acknowledge that assumption, then you have to choose what model of the historical market you want to use a predictor for the future.

You can use exact market data, test retiring out at every single possible year at every possible asset allocation and see what happens. This is the basis of the 4% rule from Bill Bingham.

You can pull random years out of history and string them together a bunch of times and see what happens with a given asset allocation. This is a naive Monte Carlo simulation.

You can pull blocks of years and string them together, to acknowledge that there are repeating trends in years (what happens in one years influences the next) and do a Monte Carlo simulation which is a bit less naive.

There are more esoteric models overly smart people have constructed, each of which will give you slightly different answers for a safe withdraw rate.

At the end of the day though we are all just crossing our fingers, and hoping for a black swan catastrophe to not happen.

comment 4mo ago · link · parent

Snarkiness aside, this is hardly a static type check. This appears to be a runtime argument check, somewhat akin to the following python:

  def foo(*, a, b): return a+b
which errors out at runtime if `a` or `b` are omitted, despite being keyword arguments which are usually optional.

comment 8mo ago · link · parent

As a long time Django user that wants to start using typing, can you elaborate on why mypy is still the way to go?

comment 1y ago · link · parent

Decoupled Django usually means that you are providing a client SPA with a API, such as a DRF powered REST API.

If you are using something like token auth (you mentioned JWT), then you are not using cookies, at which point CSRF is not needed. This is because the user's browser isn't automatically sending the cooking containing a session ID on every request to the server.

That said, you can implement session auth with DRF REST APIs, which accept a session cookie on requests. For this, I believe you would receive/send CSRF tokens via HTTP headers.

XSS is not something you would worry too much about in an API endpoint. It is something you should worry a lot about in your client side SPA though. If using something like React, your templates will be auto-escaped, and thus you have to go out of your way to make it a problem.

comment 2y ago · link · parent

It's a bit apples to oranges to compare mean to median? Or at least Honeycrisp to Gala...

comment 2y ago · link · parent

This is one of my favorite software development books of all time. It's the book that finally offered straight forward guidance and wisdom on how to properly utilize OOP language features.

I'm very happy to see it out for Python!

comment 2y ago · link · parent

Other languages do sometimes implement this at the library level. Clojure's core.async comes to mind (though there are subtle differences). There's downsides to this approach though.

The data going into each "mailbox" either needs to be immutable, or deep copied to be thread safe. This obviously comes at a cost. Sometimes you just have a huge amount of state that different threads need to work on, and the above solution isn't viable. Erlang has ets/dets to help deal with this. You will notice ets/dets looks nothing like the mailbox/process pattern.

Erlang is great, but it is hardly the "one true way". As with most things, tradeoffs are a thing, and usually the right solution comes down to "it depends".

comment 2y ago · link · parent

QQQ has done great the last decade, but that's no guarantee it will outperform the next decade. Make sure you understand what you are getting yourself into by overweighting in the tech sector, and that it's a plan you can stick with during the hard times.

comment 2y ago · link · parent

I don't quite see what the outbox pattern has to do with the two generals problem.

The point of the outbox pattern is that a durable record of the need to send an event is stored in the DB as part of the DB txn, taking advantage of ACID guarantees.

Once you have that durable record in your DB, you can essentially treat your DB as a queue (there's lot of great articles on how to do this with Postgres for instance) for some worker processes to later process the queue records, and send the events.

The worker processes in turn can decide if they want to attempt at least once, or at most once delivery of the message. Of course if you choose the later, then maybe your event is never sent, and perhaps that was the point you were trying to make to the interviewer.

They key takeaway though is that you are no longer reliant on the original process that stores the DB txn to also send the event, which can fail for any number of reasons, and may have no path to recovery. In other words, at least once delivery is now an option on the table.

comment 2y ago · link · parent

The killer feature for me that Slack has over Discord is the ability to hide images, so I'm not stuck being distracted by some random person's obnoxious animated meme.

comment 2y ago · link · parent

Not judging here, but that’s some serious consequence tax fraud if caught.

comment 2y ago · link · parent

There are extensions to hide the Shorts. I’ve been using one for a month now and it’s been great.

comment 3y ago · link · parent

There's some arguments behind why you might want to not lay blame plainly (and especially publicly) on an individual, within a business team setting.

- Laying direct blame on someone may lead them to trying to hide problems to avoid the pain/shame in the future.

- Related - everyone makes honest mistakes. Creating and environment where people feel ok admitting to these is a lot more ideal than the alternative.

- Teams should be encouraged to take collective ownership, such that if someone who works with xyzelement sees them failing to prioritize, they need to do something about it, even if it's just raising a concern early in the project with those who need to hear said concern.

That all said, sometimes people do need direct feedback (in private), especially when they are struggling in general with their job.

comment 3y ago · link · parent

Wagtail first shipped 9 years ago in 2014. It's already old/boring, and great!

comment 3y ago · link · parent

One of my favorite free online books is https://internetingishard.netlify.app/

It does a great job at explaining intermediate/advanced caveats and gotchas along the way.

comment 3y ago · link · parent

Doesn't encrypting your data before insertion make your data unable to be indexed/searched easily?

comment 3y ago · link · parent

2020 m1 Air w/ 16GB user here.

For web development, it's more than powerful enough for anything I need (Python/Django/PostgreSQL work).

I'd probably be annoyed if doing anything CPU intensive (e.g. compiling C++ all day, ML, etc). Memory has never been a limiting factor as I don't run VMs.

comment 3y ago · link · parent

Drug use was decriminalized in Portland OR by ballot measure, and it is not going well. Open air drug use, coupled with an increase in violence and crime have made being in large parts of downtown quite unbearable.

Filling prisons with drug users is probably not the answer, but just letting people do as they please because they are addicts with issues doesn't guarantee great outcomes either.

comment 3y ago · link · parent

Outside of my personal network and own business, LinkedIn + recruiters have found me all of the work I've done in the past decade.

comment 3y ago · link · parent

>Also, what was the reason not to go with Gevent?

The biggest downside of Gevent IMO is that it enables the magic of turning sync code into async code via monkey patching things like the socket lib. This lack of explicitness can make things a bit difficult to reason about, without a good mental model of what Gevent is doing underneath the hood.

comment 3y ago · link · parent

I’m not sure if it is still an option today, but I have chosen paid SaaS Sentry over self hosted Sentry in the past.

comment 3y ago · link · parent

> I've started in the last year or so to turn to the church (Roman Catholic) and theism, both to find answers to some of life's mysteries, such as the origin of the Universe...

Accepting God created the universe just moves the big questions one level of indirection upward: Why does God exist? Why does God exist with the characteristics that he does (e.g. why is God X instead of Y)?

It's unclear how this is more satisfying on an intellectual level. It's only more satisfying on an emotional level, as it usually comes with the belief of a personal God that loves and wants the best for you, not to mention an afterlife.

comment 3y ago · link · parent

In my experience, Ansible is fantastic for provisioning a machine from bare Linux VM to running service.

OTOH it's quite slow when used for deployments. There's no way you would be getting 5 second deployments with it.

My favorite middle ground between shell scripts and Ansible is Fabric (https://www.fabfile.org/).

comment 3y ago · link · parent

I've been fully remote on and off since 2010. I've never been able to really connect with coworkers without in-person time spent, and usually lots of it. This has led me to taking in-office jobs on occasion just to fulfill that need for human connection.

Human's are social creatures - do whatever it takes to get some face time in with someone near by.

Something which may or may not apply to you, is that in the past, I also felt quite empty, simply because software development had become my entire life from sunrise to sundown. Once you realize your entire identity is based around one thing, specifically work, it's quite jarring to realize and hollow that is.

comment 3y ago · link · parent

Out of curiosity, which cultures have this strong sense of informal community? It sounds kind of great.

comment 3y ago · link · parent

I don't think it was that long ago that communities of humans were quite small, and the number of peers your age around you would easily fall into the 20-750 range.
12345
11