2,800 karma · joined Mar 14, 2015 (11y ago) · 772 submissions
comment 5y ago · link · parent
A lot of people are probably soured on redux forever (that's how these things tend to work) but they've done a really great job with their hooks based API and especially the redux toolkit/RTK Query. Getting started today using the toolkit is so much more straightforward and easier to understand that it feels like a totally new library. If you're still living in the old school redux world of trying to explain containers vs components, mapStateToProps, how to build reducers from scratch, how to organize ducks, etc., you really should take a look at the newer tooling.
comment 5y ago · link · parent
Gotta disagree with this part. If you're making a web app package updates really need to be done on a regular cadence, ideally every quarter, but twice a year at minimum IMO. In the .Net world at least it feels like most responsible open source maintainers make it relatively painless to upgrade between incremental major versions (e.g. v4 -> v5). If you put off upgrades until someone holds a gun to your head so that your dependencies are years out of date, you're much more likely to experience painful upgrades that require a lot of work.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
with u as (
update organizations
set last_external_id = last_external_id + 1
where id = 123
returning last_external_id
)
insert into incidents (organization_id, external_id, title)
select 123, last_external_id, 'Blah blah blah'
from u;
The risk here of course is running into lock contention around the organization table there's a high volume of incident creation for the same organization, but considering the context (incident management) that seems pretty low risk.comment 5y ago · link · parent
Source: built a new PC a few weeks ago and naively assumed they'd just give me a product key or ask how I wanted to receive it.
comment 5y ago · link · parent
I'm not trying to brag, but a single person making six figures should be doing quite well anywhere in the US. I really suggest sitting down and carefully tracking how you spend money for a month or two to find out where it's going.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
It may feel like you don’t have enough money to give more to the church on top of the demands of your life. It might feel like it’s irresponsible. But that’s just god testing your faith. By opening your wallet to the church you’re demonstrating your faith and showing that you’re worthy to receive the financial gifts and success that god _wants_ to give you.
comment 5y ago · link · parent
All of a sudden with an EV you most likely need to plan your route around charging stations and allow for charging time. This isn't to say that EV's are bad or that they should be avoided - simply that most people don't think about these things in advance and may be surprised the first time they take a long trip with an EV.
comment 5y ago · link · parent
comment 5y ago · link · parent
In C# structs are value types, and they've been with .Net since the beginning IIRC. I assume maybe you're referring to System.ValueTuple? It was added in C# 7 and allowed tuples to be value types along with significantly better syntax for working with them.
comment 5y ago · link · parent
> From [Tolkien's] works one could deduce the Christianity but not perhaps the Roman Catholicism, except that one critic related invocations the Elbereth and Galadriel's character to Catholic devotion to Mary. Another saw lembas, which fed the will and became more potent when fasting, as derived from the Eucharist.
comment 5y ago · link · parent
I'm fairly certain that Tolkien actually stated that lembas is a reference to the Eucharist. No doubt he had experience with hardtack, but IRL hardtack isn't really known for being nutritious or pleasant to eat.
comment 5y ago · link · parent
comment 5y ago · link · parent
I would assume miners keep these cards pegged at 100% 24/7. By comparison very few games actually push graphics cards to 100% utilization, especially when you're talking about top of the line cards like the nVidia 3000 series, and on top of that very few people play games for more than a couple hours per day. A card in the hands of a gamer probably consumes only a small fraction of the power that same card would in the hands of miners.
comment 5y ago · link · parent
That's mostly the camera angle. The F/A-18 and F-35 cockpit shows have the camera positioned about where the pilot's head would be (looking straight ahead through the HUD) whereas the Harrier photo has the camera positioned higher looking down into the cockpit.
comment 5y ago · link · parent
This used to be the case, but the commercial/enterprise cloud version of MBAM (required by my company) is godawful. It seems to call out to its cloud back end every time an executable launches, and it murders performance. It's most obvious in terminals when it causes a simple command that should run in < 1 second to take 4-5 seconds.
comment 5y ago · link · parent