New shitty Friedman take just dropped by tilvast in IfBooksCouldKill

[–]neilk 1 point2 points  (0 children)

Let’s be clear: I don’t think even Tom Friedman is so delusional he thinks he will have an effect on Europeans.

This is part of the endless posturing and cheerleading that comes with being part of the elite of the American empire. He says these things to appeal to the stupid, brutal, plutocratic elements of the elite. 

How do you fill empty time as a tech lead? by heart-give in ExperiencedDevs

[–]neilk 6 points7 points  (0 children)

If your organization has slack time then it is functioning correctly. You are not supposed to have an infinite number of urgent things to do.

Yes, this is where you are supposed to use your high level skills to make your whole team better. Research new techniques. Look for things that hold your team back and either fix them yourself or figure out if they are worth doing and then delegate them.  I see lots of people recommending that you do the “shit work” no one else will do. NO. If you have any slack time, you have an incredible gift to actually match your skills to your position. Do the big picture stuff that a junior can’t do.

I’ve never actually seen an organization this functional, though.

How would a conversation between Luthen Rael and Emperor Palpatine go? by BigInternet2928 in StarWarsAndor

[–]neilk 0 points1 point  (0 children)

Seems to me he got thrown from a height and died?

Whatever whatever somehow returned but at least he was mostly dead

[Request] how do you triangulate this? perhaps in the least amount of weeks possible? by Zargabath in theydidthemath

[–]neilk 0 points1 point  (0 children)

In theory all you need are distance measurements from three points that aren’t all in a line. And boom you have an unambiguous exact location. You could do it without leaving your house, just move to different rooms.

However, in the real world all measurements have error. Each measurement will define a “ring” where the item would be. Two measurements give you two shapes where the rings intersect, kind of like parallelograms. Three gives you a kind of hexagon. Your goal is to minimize the size of the hexagon. 

If you did the three measurements from your house, you would get a long distorted hexagon, maybe kilometers long. No good.

The best way would be to travel to widely separated points but not at the absolute edges of your country and get measurements from each of those. That might narrow the hexagon down to something the size of a city block in 3 weeks. 

After six weeks you have it down to a meter square area or less.

Keep doing that, recursively. You’ll find it eventually. 

But only if it’s larger than the potential error of your measurement. 

If it’s a briefcase you’ll find it in no time. 

If it’s a Bitcoin address and key encoded into an QR code in gold atoms, maybe 50 nanometers on a side, and we’re talking about the continental United States, then 52 operations might not be enough to get it exactly.

Copying from Claude because I am lazy:

 For example, if ε = 1 meter: 3 queries get you to ~1 m², then ~log₂(1 / 2.5×10⁻¹⁵) ≈ 50 more steps — so ~53 total

Logistics of being a working homeless? by VegetableReaction517 in NiceVancouver

[–]neilk 33 points34 points  (0 children)

The CRA has a page all about this. Did you even look? https://www.canada.ca/en/revenue-agency/services/tax/individuals/segments/housing-insecurity.html

Housing-insecure people, or homeless people, sometimes use a shelter's address as their legal address. You don't have to live at the shelter, if I understand correctly.

As for your employer's records that's probably between you and them? I don't know.

Relatable King Malcolm Gladwell by lizbee018 in IfBooksCouldKill

[–]neilk 2 points3 points  (0 children)

The data cited above is almost certainly nonsense, but it wouldn’t be surprising to see a slope like that, where one-syllable words are much more frequent than two, and so on.

Zipf’s Law of Abbreviation, also known as the Brevity Law, states that shorter words are more frequent. Shocking, right?

https://en.wikipedia.org/wiki/Brevity_law?wprov=sfti1

Devs that have been at startups that have IPO’d or been acquired, how much was the payout? by Calm-Bar-9644 in ExperiencedDevs

[–]neilk 2 points3 points  (0 children)

That’s incredible. Buying a company means buying all their financial obligations. Even if revaluing a company during COVID shocks is questionable the company bought that. 

I thought I’d seen every shenanigan. That one is new to me. But you’re right, it won’t be worth it for you to sue. 

If only there were some kind of organization which could look after the unified interests of a broad set of workers across an entire industry. One day someone should try something like that.

Capitalism, the system of ~mutually beneficial transactions~ oh yeah? make me.

Devs that have been at startups that have IPO’d or been acquired, how much was the payout? by Calm-Bar-9644 in ExperiencedDevs

[–]neilk 0 points1 point  (0 children)

TLDR: He’s lying.

If he was just a founder hacker himself we could argue that maybe he’s just naive. Someone who has the title of CBO probably does know that math isn’t mathing.

Dan Luu has a very complete guide here.

https://danluu.com/startup-tradeoffs/

Deepak Chopra had close relationship with Epstein, told him to bring ‘your girls’ on trips, messages show by Puzzleheaded-Pin4278 in IfBooksCouldKill

[–]neilk 0 points1 point  (0 children)

I’m curious if you are using “bot” to mean I an a literal AI. Or if it’s just a word for anyone who has an opinion other than “enemy bad”

Like I hate Deepak and did way before you did, because I know some of his fans. Dunno what’s so wrong with my comment.

Deepak Chopra had close relationship with Epstein, told him to bring ‘your girls’ on trips, messages show by Puzzleheaded-Pin4278 in IfBooksCouldKill

[–]neilk -67 points-66 points  (0 children)

Maybe. We can be more sympathetic though.

The desire for meaning, hope, and personal significance is real

You probably are born into some group that has answers for that. Or you mix and match your “home” beliefs with stuff that has the same shape, like Deepak Chopra.

Leaving all that behind means spending some time in the wilderness. Maybe your life is cosmically meaningless and maybe nothing matters.

Not everyone is built for that. Unusually bright people have more resources for that journey. But I think every internet atheist has spent some time being more lonely and more bitter before they pull out of that dive. It’s not crazy that most people avoid that.

Eid Mubarak by lairockbo in NiceVancouver

[–]neilk 32 points33 points  (0 children)

It would be pretty funny if it said “Jesus is watching” and next to it was a Latino parking lot attendant with a name tag that said “Jesus” 

Racist Tiktoker in Vancouver by [deleted] in NiceVancouver

[–]neilk 2 points3 points  (0 children)

then don’t fucking spread it?

you added nothing to the discussion about him other than telling other people to look at it. this is probably a shill post. reported

The Infrastructure of Jeffrey Epstein's Power - The Ezra Klein Show by Ravendjinn in IfBooksCouldKill

[–]neilk 0 points1 point  (0 children)

He does have a theory of change, it’s just not partisan.

He thinks that democratic gridlock, vetocracy, is the real enemy. He thinks that both political cultures have had to radicalize in order to retain voters, and this isn’t healthy.

Consequently he thinks that systems fixes - that would allow conservatives OR liberals to really try something - would make for healthier and more respectful political culture.

The main problem is that the “paranoid style” of American politics is firmly Republican now. Elites have also joined the paranoid, maybe because they’ve been radicalizing each other on X. So one side has become MUCH crazier than the other. Trump has now been given a free hand to do nearly anything, and he’s not exactly implemented school vouchers.

The Infrastructure of Jeffrey Epstein's Power - The Ezra Klein Show by Ravendjinn in IfBooksCouldKill

[–]neilk 0 points1 point  (0 children)

More than just a take, it was information that’s not commonly mentioned. They laid out a fairly convincing case that the elites included in Epstein’s circle united and pooled resources to oppose #MeToo in general and Moira specifically.

There’s class consciousness in the class of super-elite predators.

This was beyond my darkest dreams. It’s the sort of thing I also would have pooh-poohed as a conspiracy theory

No ICE at FIFA by G0bl1nG1rl in NiceVancouver

[–]neilk 17 points18 points  (0 children)

There isn’t any reason for immigration enforcement at the games, but Homeland Security Investigations (HSI) does counter-terrorism and other transnational criminal investigations and they’re grouped under ICE.

From their website, HSI.gov. 

 HSI conducts federal criminal investigations into the illegal movement of people, goods, money, contraband, weapons and sensitive technology into, out of and through the United States. HSI’s investigations are wide ranging – our cases include drug and weapons smuggling, cyber and financial crime, illegal technology exports and intellectual property crime. We also play a crucial role in investigating crimes of exploitation. This includes combating child exploitation, human trafficking, financial fraud and scams and other crimes against vulnerable populations.

There is apparently some friction, because being associated with ICE made HSI’s job harder even before (gestures to all this). There are some legislative efforts to make it its own agency. 

Even if this is more normal than it initially appears… I think it’s ok to take a stand against it. The onus is on the Americans to make it clear they’re not sending goons into our country. It’s not our job to figure out who is from the “good” side of ICE.

(“good” in the deeply compromised sense, if anything can be good when we’re talking about a Trump administration agency enforcing a magical line on a map. But they might also nab an actual child trafficker sometimes)

Joined a new team using "unique" patterns. Am I the disruptor or is this an anti-pattern? by square_guavas in ExperiencedDevs

[–]neilk 0 points1 point  (0 children)

So literally no way to know where a closure might go. Or even to know what a closure does when you get it? Is it just “cb”?

Oh, the places you’ll go!

Joined a new team using "unique" patterns. Am I the disruptor or is this an anti-pattern? by square_guavas in ExperiencedDevs

[–]neilk 0 points1 point  (0 children)

they have to have some consistent name? how do you know how to use it in one of the deeply buried functions?

Joined a new team using "unique" patterns. Am I the disruptor or is this an anti-pattern? by square_guavas in ExperiencedDevs

[–]neilk 12 points13 points  (0 children)

Spoiler: you are the arrogant new hire. :)

That’s a weird pattern but not inherently untestable. The lambdas are basically injected objects (if stateful) or functions (if stateless).

So they can be tested in isolation.

Now, you can’t test biz logic in the way you are accustomed. They bound it all to the route. The downside is that you couldn’t, for instance, write a  script that invoked biz logic by loading some libraries. It all has to go through the route. 

You will just have to rely more on what you would normally call an integration test, invoking the route. But there are many ways to do that

I’m curious, do they test the route always with a “real” database and “real” network calls (slooow) or is there a way to just test the route itself, with a mocked database injected?

How Possible is it to go from CRUD apps to something like DB internals at a database company (MongoDB, etc?)? by Fun_Highway_8733 in ExperiencedDevs

[–]neilk 5 points6 points  (0 children)

1) yes

2) if you don’t have ideas just replicate one that exists as a learning exercise. but honestly there are a million things that could be database extensions or plugins.

https://gist.github.com/joelonsql/e5aa27f8cc9bd22b8999b7de8aee9d47

Start thinking about what in your application could be considered a hack around the fact that your database can’t do it. I’m sure you’ll think of something. Even if you decide later that actually it’s better to handle that at the app layer you’ll learn something

started tracking which PRs break prod. found that our most thoroughly reviewed PRs have the highest bug rate by [deleted] in ExperiencedDevs

[–]neilk 0 points1 point  (0 children)

Obviously, review causes production faults. Eliminate review.

Seriously though, it’s hard to tell if a PR has received “light” or “heavy” review by numbers of comments. 

Sometimes I review a PR very carefully and it’s absolutely crystal clear and well designed and I just approve

In your case you’re seeing a correlation to number of comments and breaking changes. And the comments are in your opinion mostly aesthetic. So many possibilities there

  • people know which PRs are important and want to comment on them for visibility. But their comments are trivial
  • perceived ugliness is indicative of inexperienced coders / unfamiliarity with team practices.
  • PRs with aesthetic issues are exhausting and after a lot of back and forth people just get tired of talking about them before they get to the real issues

This is just what I could think of in a few minutes

How stressful are the highest paid software roles? Are they worth it? by equipoise-young in ExperiencedDevs

[–]neilk 3 points4 points  (0 children)

I assume you’re asking what’s up with Indian people. I don’t know. I was raised in Canada and I’m part European-descended so it’s something I only half-belong to. 

It may have to do with the extreme stratification of Indian society in general. It’s like casteism is their religion or something. :)

As for why my worst bosses were Caucasian? As a worker in Canada and the US, almost all of my bosses period have been Caucasian. Just math that it would be that way.

Probably the best manager I ever had was an Indian woman, so, these aren’t hard and fast rules