133 karma · joined January 16, 2019
Your database (and its migrations) should be source controlled along with the rest of your code. Problem solved, now you can take advantage of some of the legitimate benefits stored procedures have to offer!
> Our sleep consultant's plan arrived as a PDF full of conditional logic: wake windows, nap caps, what to do when a nap fails
Every so often, you get a glimpse into a whole world you never knew existed.
And yet, insanely, they’re STILL the generation in power. Still breaking things even in their dotage.
That's the way conservatives have always framed affirmative action, DEI, etc. It sounds satisfying, but it's overly simplistic and lacks historical nuance.
The problem is that we've actively discriminated against people based on their race and gender for centuries. We haven't just refused to give them jobs, we've refused people the opportunity to better themselves -- shut them out of education, the housing market, etc.
That sort of broad exclusion from economic and social capital can't be reversed overnight. So that means it's not enough to just say "okay, we'll stop discriminating against you starting now." We should aim to redress past wrongs.
Does that mean "discriminating against employees who are the bad race"? I don't see it that way, although I understand that some people might. I don't think anyone is arguing that we should hire or promote unqualified people. But if a few candidates are similarly qualified? As a white man, I can understand that for the entirety of our country's history, _my_ race and gender would have entitled me to preferential treatment. Having to cede that advantage to others for a time seems only fair.
That's addressed at the bottom of the definition of a small business:
> Adjust these dollar figures for inflation according to the United States Bureau of Labor Statistics’ consumer price index for all urban consumers, United States city average, for all items, not seasonally adjusted, with 1982–1984=100 reference base.
The canary-002 says:
Status: All good
Release: 2021-06-13
Period: 2021-06-01 to 2021-12-31
Expiry: 2022-01-31
EDIT: Oh, the issue is just that they failed to update the wording of: "We plan to publish the next of these canary statements in the month of June 2021." Looks like a copy from canary-001.None of this is to deny the pain of the author's experiences, which is very real. My point is that this isn't the sort of thing we're talking about when we talk about racism in America; it's about the system as a whole.
BEGIN TRAN;
-- TODO: update statement
ROLLBACK;
Usually I'll run it with the ROLLBACK first, to confirm that it impacts the number of rows I'd expect, and only then change my ROLLBACK to a COMMIT.The worst of these also had a 20 character password limit (at least it wasn't 8!), along with several of these nonsense requirements that limit repeated characters. I couldn't manage to generate a password they would accept. Eventually I realized that not only did they allow only certain specific special characters, but their password length validation was wrong and would only accept 19 characters because they were testing for <= 20.
Wait, you need to have an account just to see their open jobs? That seems like more of an antipattern than anything you could put in a job description.
- git blame (who wrote this?)
- git show (look at the commit surfaced by blame)
I tried on and off to learn programming for years, and I was never able to get any traction until I started doing it as part of an actual job. I just have never been able to get myself to focus on manufactured projects whose only purpose is learning to code. I needed actual business problems to focus on, and an environment where I couldn't just abandon my project with no repercussions.
I started out small, and with tasks that were related to my (non-programming) job -- these made my life easier but weren't on anybody's radar at the business. I was selling mortgages at the time, and built myself a better mortgage calculator, slowing delving into Excel's Visual Basic for Applications when I wanted to do things Excel wouldn't let me do without code.
After getting comfortable with that, I found more opportunities to do light programming that helped make my job easier, in the few hours at a time when I didn't have critical tasks in my day-to-day work. I started using SQL and VBA in Microsoft Access, then moved on to SQL Server and C# by taking a few freelance jobs. They paid terribly, but I took them more because they forced me to solve real problems using "real" programming tools. Eventually I was able to turn that SQL Server and C# toolkit into my full-time job.
TL;DR: what I needed were real-world problems to solve. If you can, find some way to write some simple scripts to simplify your everyday life, and use that to build on.
So I think there's some good high-level advice here that applies across multiple flavors, but the specifics are really only applicable to PostgreSQL.