Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

3,224 karma · joined Jun 14, 2019 (7y ago) · 4,047 submissions

Submissions

comment 2y ago · link · parent

His ad-tech DSP example is horrible. In reality, advertisers care about (in order of importance)

- Target audience reach (measured in millions of people)

- Cost of engagement (CPA, CPM, etc)

- Engagement metrics for verification (clicks, views, etc; so you can send bills to your clients and not worry about claims and lawyers)

The junk he listed is probably the least interesting information to an advertiser. All of it is technical details that affect your margins as an intermediary, something your clients couldn't care less about.

comment 2y ago · link · parent

Do I read that correctly? A significant percentage of Slack/Salesforce's employees were doing literally zero work?

comment 2y ago · link · parent

"Environment with specified build configurations" is a fractal rabbit hole that unpacks into a myriad of recursive problems.

There is no turnkey solution for this, but there is a way out and a way to (eventually) tame the complexity.

comment 2y ago · link · parent

Indeed a tricky point, but like I said - move these objects to another garbage collection thread and call close() there.

(You probably want to do this regardless, because close() is not actually always an instanteneous syscall and can take a long time.)

comment 2y ago · link · parent

The article is kinda useless, to be honest. Seems to be some sort of advanced blog spam and not somebody speaking from real experience.

Anyways, pthread_cancel can be of two types - asynchronous or deferred. Deferred is when cancellation happens only during a system call. It's the default and what you want. (You don't want the asynchronous mode.)

Under the hood thread cancellation is a C++ exception, so you still get RAII, etc.

comment 2y ago · link · parent

Thread cancellation works fine in C++.

You just need to make sure cancellable syscalls do not happen in destructors. (Which you probably want to do anyways, since cancellable syscalls can cause errors that are difficult to handle in destructors.)

Good practice is to move destructed objects to a "garbage collection" thread which calls the real destructors and cannot be cancelled.

comment 2y ago · link · parent

> fuzzy finding, LSP, VCS

Unironically get one of those horrid IDE's if you want that crap.

(That said, Emacs has git support out of the box. I don't really use it though.)

comment 2y ago · link · parent

In 2024 pretty much every country has a scooter rental service. (Including very northern countries with seasons much more pronounced than any in the U.S.)

I don't think weather is the problem here.

comment 2y ago · link · parent

I don't think anything changed in this respect since the 90's.

(Well, except we have more of the nu-style "expose all ports to the Internet and protect them with an HTML form and a q1w2e3 password, #yolo" corporate networks.)

comment 2y ago · link · parent

Yes, they do have something better. It's a cutting edge technology - "disable cookies for everyone but enable them for google.com"

comment 2y ago · link · parent

Spoiler:

> it is an Electron app

Saved you a download.

comment 2y ago · link · parent

> genocide

Citation, as they say, needed.

comment 2y ago · link · parent

Ants don't have overlords. From the standpoint of genetics, one ant colony is a single organism. The queen mates only once in her life, before starting a colony. All the subsequent individual ants are from the genetic material of that foundational mating.

When ants from different colonies meet (with different genetics lineages) they fight wars of total annihilation. Ant colonies do not cooperate.

comment 2y ago · link · parent

> but I'd never get in an aircraft where a 'C' compiler was used for anything

Enjoy walking, I guess.

comment 2y ago · link · parent

Depends on what you mean by "low code".

Does Node Red count?

comment 2y ago · link · parent

Technically true, but irrelevant - practically nobody used painting for that purpose throughout history. (People didn't care about "realism" at all, that is a recent 20th century fixation.)

comment 2y ago · link · parent

Painting was always first and foremost for spiritual and religious purposes, not for documenting things.

Secular painting became a thing only very recently, two or three hundred years ago. And even then, it was always used to whitewash or vilify something or someone. Bias was (and is!) its primary purpose.

comment 2y ago · link · parent

Yes, and I still stand by my "terrifying and absolutely nuts" opinion.

Also, there is a huge difference of category here - the things you listed are interchangeable commodities. You can always use some other storage mechanism instead of a misbehaving SSD. Software like Oracle or Db2 aren't, once you're locked into them, you can't leave.

comment 2y ago · link · parent

Painting never aimed to be photorealistic. Paintings always present a fictional unrealistic visual that tricks the mind into perceiving it as "real".

That is the true measure of an artist's skill - to make the unreal seem real.

comment 2y ago · link · parent

DNS allows for graceful failover and balancing, using standard and platform-independent tools.

(You don't want L3 failover, trust me when I say it won't work as you expect.)

comment 2y ago · link · parent

> I would use an open source db for payments

The idea that you're using something for mission-critical things and can't even look at the source code seems terrifying and absolutely nuts to me.

comment 2y ago · link · parent

The upper reaches of Venus' atmosphere is the most accessible and Earth-like environment in the Solar System. That would be the obvious first step.

And for second steps you'd probably want someplace that is more useful in resources, like some of Jupiter's moons. Mars is probably the last place you'd want to go.

comment 2y ago · link · parent

Mars is the least useful planetary body in the Solar System.

Anybody that is trying to sell you on Mars colonization is selling you a children's cartoon, not a serious project.

comment 2y ago · link · parent

Nah, some of it is an heirloom.

comment 2y ago · link · parent

> Is it really superior in anything?

Yes, its replication support out of the box is decades ahead of Postgres.

(Mongodb has an even better replication story than Myqsl, but Mongo isn't a real database.)

comment 2y ago · link · parent

> Nationalism is one hell of a drug.

I completely agree. Slava Ukraini!

comment 2y ago · link · parent

All Google code is a huge antipattern and an example of enterprise coding gone insane.

comment 2y ago · link · parent

Prohibiting exceptions is a toxic antipattern. Once you have more than one thread you want to propagate fatal errors in a sane way. ("Just crash the whole program, #yolo" is not a sane way.)

comment 2y ago · link · parent

> direct costs

> vs ""modern tech"" FOMO

Very tough decision, I'll need two MBA degrees to figure this out.

1
676869
135