It’s easy to write a test that doesn’t provide useful information across time. Harder to write a test that does.
14,676 karma · joined September 16, 2009
Email: erik@snowedin.net
It’s easy to write a test that doesn’t provide useful information across time. Harder to write a test that does.
If the answer is “they’re all implicit in the application layer code” then that’s not really acceptable. I still need some way to query for relations, or keep relation views up to date, or something like that.
I don’t mind if relations are not core to your persistence model, but they have to be implemented _somewhere_ in your data layer, and I’m not seeing any mention of that here.
I have the same issue with Firestore, everyone does relations _somehow_ but it’s all just spaghetti application code which isn’t scalable.
To be fair, isn’t that kind of the bar for CEOs? Their job is to hire and fire senior people, ensure they have a mountain of cash, and put out fires.
It’s not an operational position and so I wouldn’t expect a CEO to have deep operational knowledge.
Maybe I’m misunderstanding the division of labor though?
I’m trying to think of other frontend technologies that were truly dominant that went away. Maybe SCSS? But TBH if you’re still using SCSS with React today that’s not a bad stack. There’s no consensus on what the successor to SCSS is, Tailwind is a wild experiment. The styled components model is still being refined.
Things like Next, Radix, MUI, etc… these are probably all best skipped. They are highly experimental, and I’ve used all of them in production on major web apps and they’re half baked. I avoid them.
It’s easy to get sucked into the trends… I love Vite for example, but anyone who ahas stuck with Webpack made the right call… Vite is still working out key points of integration like Jest.
If you take JavaScript Twitter seriously, you’d think you HAVE to learn React Server Components. But it’s not even out of beta yet, and debates are raging about whether it’s even a good separation of concerns.
The key is: wait until things are _actually_ dominant before jumping ship. If you do that, you’ll be fine.
The moddability is a deliberate strategy by Valve, and I don’t see it as an inevitable move for every PC-centered company, Microsoft being the prime counterexample.
They’re expensive, but given the nutrient density it’s worth it for me.
Insurance companies are usually quite happy to take your money as long as the premiums will cover their expenses.
I wouldn’t advocate you get a prescription for antipsychotics from your orthopedist, but SSRIs from a GP is probably pretty safe.
Obviously, it depends on the doctor and the symptoms. But a good GP will also refer you out to a specialist when needed. That’s a big part of their job: assessing when to call in a specialist.
This is especially true if you are at risk for withdrawal, they will want to prevent that.
I basically don’t use those elements for UI components, and in the rare cases where I would want to, I could just do a one-off to override them. Or, more likely I’d just do something like <div role="heading" aria-level="1">
I find in applications you eventually need some little places where you have some basic document styles: paragraphs, headings, bullets, and it’s nice to be able to use those basic semantic tags for that stuff.
Don’t push devDependencies.
I honestly don’t understand why devDependencies come with the package. Most packages don’t distribute their source files, so what use are the dev dependencies?
If you want to do dev, clone the got repo and get everything. To me `npm publish` is for distributing the production library, plus source maps and types—that’s it.
To me, Vitalik’s brain is like 50 years ahead of the rest of us. I also trust him to speak as plainly and concisely as possible. I get the same rush from reading these posts as watching a great sci-fi film, except it’s not fiction. It’s (mostly) real.
Working a typical volume the letter “e” will appear hundreds of times and be identical, so there should be lots of data to help resolve ambiguities in the poorer parts of images.
Not to mention data that can be used across volumes.
I think people can be allowed one song they are tired of.
If you did everything in canvas you’d just have to reimplement something like flexbox to center, align, stretch, and animate all your icons text, boxes, buttons, etc.
Why not just stay in HTML and use a layout engine that’s already implemented, and highly optimized for literally every platform.?
Modern offline-first applications include a local backend every bit as complex and demanding as a server-based backend.
Most of the time, a blocking review should contain information that the coder didn’t have, which changes their own perception about the readiness of the code: a bug they didn’t notice, a pattern in the codebase they didn’t know about, etc.
If there is any debate about whether a change is necessary it should probably be a “nit” with an approving review.
The point of “request changes” is to flag branches that everyone can agree need changes.
But I’m not sad at all if they’re not read. It’s there if people want/need it. If they don’t then it’s easily skipped. I’m also not mad if someone asks me a question that could’ve been answered by reading a comment… different people have different ways of learning and I am happy to show up in whatever mode they find convenient.
If a specific colleague is frequently missing info that was available in comments maybe that’s a growth opportunity for them to up their pace, and I might drop something in their suggestion box, but we’re all learning.
But I wonder if they are trying to wrap domains that are too big to wrap, and should just be left to a programming language.
<button on:click={incrementCount}>
Specifically, what is on:click? It doesn’t look like JavaScript, and it doesn’t look like the DOM. It looks like a new language which is specific to Svelte.Or what about this… is this JavaScript?
$: doubled = count * 2;
Or… {#if user.loggedIn}
<button on:click={toggle}> Log out </button>
{/if}
Or… <button on:click|once={handleClick}> Click me </button>
I am willing to believe that all of that is ergonomic in some way, but it doesn’t appear to me at first blush as very JavaScript-y, or explicit. I see a lot of black box stuff controlled by a declarative API.I wonder about this. Sometimes I think that is the job of a CEO: to put on a good face and keep and maintain “The Plan Is Gonna Work” vibes.
Every CEO I’ve worked under—no matter how compassionate they were on a personal level—has had a policy of absolutely crushing voices of dissent. Maybe not immediately, but within a couple quarters. At least when the dissent was regarding things that the CEO felt were not something they could address on the current roadmap.
I’ve come to appreciate that this attitude may be necessary… that companies (with headcounts in the 50-500 range at least) cannot afford to have some of their people pulling in a different direction than their roadmap. And that people who will do that must be excised.
But your comment makes me wonder… is that the only way? I think maybe a company like Valve lets their employees pull in different directions, and also then just allows them to be starved of resources. Which maybe is effectively the same? Or maybe is an innovation on the standard CEO model?
Not sure if that’s a Japanese design, or where it came from.