155 karma · joined Feb 25, 2015 (11y ago) · 42 submissions
comment 7mo ago · link · parent
I was quite literally asked to implement an in-memory cache to avoid a "full table scan" caused by a join to a small DB table recently. Our architect saw "full table scans" in our database stats and assumed that must mean a performance problem. I feel like he thought he was making a data-driven profiling decision, but seemed to misunderstand that a full-table scan is faster for a small table than a lookup. That whole table is in RAM in the DB already.
So now we have a complex Redis PubSub cache invalidation strategy to save maybe a ms or two.
I would believe that we have performance problems in this chunk of code, and it's possible an in-memory cache may "fix" the issue, but if it does, then the root of the problem was more likely an N+1 query (that an in-memory cache bandaids over). But by focusing on this cache, suddenly we have a much more complex chunk of code that needs to be maintained than if we had just tracked down the N+1 query and fixed _that_
comment 8mo ago · link · parent
There are piles of money just sitting around waiting for someone to pick them up. Unfortunately it's really hard to do because the piles are scattered around and hard for any one person to pick up.
So the best way to coordinate picking up all of these piles of money is to figure out how to convince a bunch of people with autism spectrum disorder to program machines to do it for you.
In this analogy you can get rich by doing one of a few jobs:
* Finding the piles of money (sales)
* Coding robots to pick up the piles of money (engineering)
* Coordinating the above two in come capacity (management)
AI certainly makes it less lucrative to pick up some of these piles because there will be more people picking them up. But will probably also be the case that it will let us pick up piles of money we didn't even know existed before. Or ones that we knew about but were hidden deep inside of sprawling caves that were intractable to search before.
If it turns out that we don't need any coordination to pick up these piles any more, then pretty much everyone is out of a job. Not just software engineers, but pretty much every white collar job. Once that's done it'll only be a matter of time before they can automate away the blue collar jobs, too.
I guess I'm just skeptical that we'll actually automate away all of the white collar jobs.
comment 1y ago · link · parent
"Antifa" is less of an organization than even some loose collective like "anonymous"
Are there left-wing agitators? Sure, black bloc and other "direct action" protestors have been around since at least the world trade protests in the 90s.
But to the best of my knowledge there isn't really a formal "antifa" organization to dismantle or anything.
comment 1y ago · link · parent
As a recent example of this, I was recently curious about how the heart gets the oxygen depleted blood back to the heart. Pumping blood out made sense to me, but the return path was less obvious.
So I asked chatgpt whether the heart sucks in the blood from veins.
It told me that the heart does not suck in the blood, it creates a negative pressure zone that causes the blood to flow into it ... :facepalm:
Sure, my language was non-technical/imprecise, but I bet if I asked a cardiologist about this they would have said something like "That's not the language I would have used, but basically."
I don't know why, but lately I've been getting a lot of cases where these models contradicts themself even within the same response. I'm working out a lot (debating a triathlon) and it told me to swim and do upper body weight lifting on the same day to "avoid working out the same muscle group in the same day". Similarly it told me to run and do leg workouts on the same day.
> i do like it as a bit of a glorified google, but looking at what code it outputs my confidence it its findings lessens every prompt
I'm having the exact same reaction. I'm finding they are still more useful than google, even with an error rate close to 70%, but I am quickly learning that you can't trust anything they output and should double check everything.
comment 3y ago · link · parent
I'm not saying that people shouldn't be doing tickets that have been assigned to them or whatever, but I am saying that if people took 30 minutes to step back and look at the big picture objectives more often - or if their managers spent more time clearly communicating such things - they'd stop wasting a lot of time on things that seem important in the very myopic context of the task they just completed.
comment 3y ago · link · parent
It's stupid, but it works. At least for me. I think it comes down to 2 different types of positive reinforcement:
1. It feels good to mark a task done. 2. It feels good to look at a list of all of the things I did that day, even if they were the size of taking out the trash.
comment 3y ago · link · parent
Those tests should be as small as possible to verify that everything is still wired together correctly.
Everything else should be either unit tests or narrow integration tests between a small handful of components. And as you said, they should live in the repository of the software they test.
comment 3y ago · link · parent
It's actually a bit of a problem now that the power plants are starting to shut down.
comment 4y ago · link · parent
I agree with you 95%. This comment is really just wanting to explain that 5%.
I have found that a little extra money goes a long way, and that a lot of money doesn't ever go far enough.
My bullet journal "daily caries" are:
* Apica CD 5mm grid notebook - $14.00 (one per year)
* Pilot Metropolitan fountain pen - $17.00 (one time purchase)
* Disposable black refills for the fountain pen - $5.00 per 20 (maybe twice a year)
In the realm of fancy pens/notebooks these are pretty cheap, but I really enjoy them. I feel like they are at a very nice sweet spot where they're cheap enough that I could lose them, but not "too good to use".
Maybe I'm lying to myself, but I feel like I journal more often because of how much I like them. It's just nice to use nice things.
comment 4y ago · link · parent
I manage my own personal budget as well a joint budget for myself and my fiance.
Here's my takeaway:
* The YNAB model to budgeting is how I want all future budgeting tools I use to work. They call the framework "The Four Rules" (https://www.youneedabudget.com/the-four-rules/) and they are a very pragmatic way to think about budgeting.
* Specifically, I like to be able to have my budget cover multiple months into the future. I have fairly bursty and somewhat unpredictable income. I like to have a reserve of 6 months of expenses covered just to make sure that I can handle any ebb and flow of my income.
* I have successfully convinced my partner to use YNAB and they find it valuable. It really is super useful software that is pretty straight forward to use and that makes budgeting very quick and easy.
* Sharing budgets with a partner doesn't really work the way you'd want it to. You would need to share a single set of credentials, and there isn't really any fine grained access controls.
* YNAB has been raising their prices lately, and I think it's reasonable to assume that they are going to be raising them again in the future. I am not convinced that I, personally, am getting value out of the things they say they are improving. While I have a lot of my financial history with them, I'm definitely investigating competitors to see if they would fit my needs. So far, none have but I'm going to keep looking because honestly I'm not sure YNAB is worth $100/yr ($200/yr between my partner and I is fucking crazy).
Overall, would I recommend YNAB? Yeah, probably. I would bet that if you haven't been budgeting before and started using YNAB at the current price that you would probably make at least $100 worth of better financial decisions in the first year. But there's a huge asterisk next to the price.
I remember paying $30 for YNAB4 and being happy with it. They introduced the SaaS version that would sync to import your transactions at $50/yr and I remember thinking that was kinda pricy. You could always import the transactions from your bank by downloading the Quicken files, but I understand they need a subscription model to sustain an actual business around the product.
I am not convinced that the recent price hikes have been justified by an increase in the value of the product.
comment 5y ago · link · parent
I mean... do _you_ have any ideas about how to fix this sort of thing that would survive being published for the world to see?
I don't mean to offend you or anything, I just want to point out that the second you go public with your rules about how these things are detected, the people you are targeting will adjust their behavior to evade them.
I think that the secrecy is unfortunately a hard requirement until perhaps we could all coordinate into a global "behavioral score" system. And to be honest, that sort of shit is terrifying, so we should probably never do it.
comment 5y ago · link · parent
I think at the very core of the issue is that mechanical watches are really art pieces at this point. Quartz watches are just cheaper and more reliable. So, if you wanting a watch for the pure utility of it all that's what you should be going for.
comment 7y ago · link · parent
> Fundamentally, I should not have to explain why I would desire immediate access to my own cash reserves at a moment's notice to excuse broken financial infrastructure.
Yes, if you are investing in less-liquid assets to get a better RoI then you absolutely do. If you don't like the terms then you are free to keep your cash in your checking account.
comment 7y ago · link · parent
Personally, if I'm expecting to make a large cash purchase I have more than a few days notice.
comment 7y ago · link · parent
That seems like a perfect use case for using a credit card to cover the expense and then pay yourself back when your money moves out of the savings account.
I have trouble imagining a case outside of a hostage situation where you would need access to your emergency fund same day.
comment 8y ago · link · parent
Corporations are made up of people, yes, but giving them personhood is a pretty dangerous idea. Should they get to vote? Obviously, the answer has to be "no" or else people will register companies to rig elections.
If they can't vote, are they really people?