I mean the M1 is nice but pretending that it can do in 110w what the 3090 does with 320w is Apple marketing nonsense. Like if your use case is playing games like cp2077, the 3090 will do 100fps in ultra ray tracing and an M4 Max will only do 30fps. Not to mention it’s trivial to undervolt nvidia cards and get 100% performance at 80% power. So 1/3 the power for 1/3 the performance? How is that smoking anything?
Indeed, like talking as if Apple mattered at all in server space, or digital workstations (studio is not a replacement for people willing to buy Mac Pros, which still keep being built with Intel Xeons).
Graphing calculators did, which is why in a lot of math classes they got banned. If your calculator can solve for x, you won’t spend time learning how to. The best math classes usually do without calculators focusing on concepts and skip numbers you’d need a calculator for.
This, I was allowed to use the grahpic mode to do integrals and differentials. It made high school easy, but in uni I had zero math skills it turned out. Had to switch studies..
The US unfortunately is unable to export its modern day activism. So while everyone in the US can live their authentic selves China says get back to work. You can’t build a foundry on DEI, but you can feel good about yourself as you virtue signal about straws as you buy fast fashion.
To have a conversation about the US government buying a stake in Intel, and the threats of China in that space, requires one to have a conversation about both politics and ideology. It’s disingenuous to claim anything else. And to point out the irony of the passing fad on straws but deep love of fast fashion highlights the hypocrisy of US society in general and why we are incapable of having nice things or getting anything meaningful done at a scale of other countries such as China, Taiwan or even South Korea. And love or hate DEI you also can’t say companies like Target jump on and off that band wagon at shareholder will, when they aren’t ever jumping on the “we should invest in R&D and the next generation” because why would they, we haven’t asked them to so why would any other company Intel included.
The purpose of HN is to discuss things in the spirit of intellectual curiosity. To respond to an article about chip manufacturing with such a generic ideological flamebait line as "You can’t build a foundry on DEI, but you can feel good about yourself as you virtue signal about straws as you buy fast fashion" is the opposite of intellectual curious discussion. If the topics of DEI, straws and fast fashion are mentioned in the article or are relevant to the content of the article, sure, write them into the comment in a way that is relevant to the content of the article. The way you've invoked these themes, without any clear relevance to the article's content, is just what we're trying to avoid on HN. This is not new or difficult; the guidelines have been in place for many years and make it clear what we're trying for here.
You can’t in good faith say the root article was an “article about chip making” unless you didn’t read the article. I will only agree my tone was off but it was very much on topic and anyone who actually read the article would realize it’s political. I’ve learned often what HN is going for, which is often shallow group think, and I agree HN is better when it posts articles that are “about chip making” but this wasn’t one of them. The silver lining is at least we can still comment on this without the “system” making a “decision” that just ends the discussion immediately.
Rich people have been paying off politicians forever, Trump isn’t the first, and he won’t be the last. Back the winner until the winner is the loser, then back the new winner, repeat. AKA the king is dead long live the king!
I feel too, at least in the US, people have backed themselves into a corner where they are unable to dole out punishment. Not just for violating or abusing taking their dogs everywhere, but literally everything. Should someone be punished for a prank gone wrong? Of course not, they didn’t mean it, it was just a prank! Should someone be punished for faking a therapy dog? Of course not, it’s just a dog! Should someone be punished for speeding? Of course not, it’s just speeding and all cops are bad! Should someone get in trouble for minor theft? Of course not, it’s just minor theft, capitalism is bad! Eventually though they end up on the side being taken advantage of and now they have no recourse because they are all in on the no consequences society. If they speak up, their peers who are also part of the no consequences society disown them, until it then also happens to them. I guess that’s an oversimplified version of it. If nothing is a crime then you can have no criminals, society is better already, and you all get A+, yeah for us!
I don’t think it’s entirely a mentality issue. I think North America created an environment where you wouldn’t want your 8 year old to navigate New York City. I would let my kids wander Tokyo before I would let them wander Chicago. Japan would not tolerate people spitting at and harassing children where Chicago does indeed tolerate that. I’d say ask me how I know but you could probably guess.
LA is full of those. Mostly junkies. My girlfriend often has such encounters when she takes the bus. It is awful. I am in Hungary and there is no such issues here. It is extremely safe in comparison. There was a stabbing (one in 30 years) and everyone rushed to help and to catch the perpetuator (who ended up stabbing himself anyways).
BTW I am a junkie myself, but I do not engage in such behaviors at all. And by "junkie" when referring to myself, I mean that I have an addictive personality, but I do take opiates ("only") for my mental and physical problems. I was never a safety hazard for anyone, including myself (there were times when I was, but had nothing to do with drugs). I do it at home (and before going out, too, due to its positive effects on my mobility and pain), and it makes me more emotionally stable. It sucks though, because when people think of opiates, what they picture is homeless people being unconscious on the streets with a needle coming out of their arm. No one could ever tell me that I was ever on opiates and this includes a lot of doctors. For one, it affects me differently (just like any other psychiatric medications and other drugs).
Anyways, yeah, junkies are an issue in LA and it pisses me off that my girlfriend has to always pay a lot of attention because one never knows what they might do. They are also loud, they create conflicts, and so forth.
Never trust google for anything important, because they will mess with it to get money or cancel it if they can’t get the money, regardless of anything they’ve claimed in the past.
ASUS Proart P16 with the 4070/64gb configuration. Has usb a and c, hdmi, sd card reader, and can be powered over usb c though if you are using the 4070 you’ll want the ac adapter. The build quality is only matched by the screen which is awesome. Battery life is also excellent. If I was to have a laptop for 6 years this is the one I’d invest in.
The idea that style and linting define the “craft” is bizarre. What it sounds like you are saying is that you prefer style over substance. Not a single developer I’ve ever revered cared about styling. It’s a means to an end for large teams because to make it easy to read you need commonality.
It’s kind of like what Bruce Lee said about punches. Before you know how to code, styling is just styling. When you become proficient in coding, styling is more than just styling. But when you’ve mastered coding, styling is just styling again. Be like water my friend.
The whole point of the mocking the database is to not test the database! If you need to test the database then test the database! Just like mocking an API can hide hidden issues with the API… which is again the exact point of mocking the API. This article should really be named “mocking your database isn’t testing your database” which seems like it should be obvious.
The point of mocking the database is to avoid the hassle of spinning up a database to test against. If we ignore that, why not test our use of the database? Are we disinterested in the schema and query errors we might catch?
Unit testing is useful because (a) it's easier to test all the code paths in a unit when that unit is isolated, and (b) unit tests don't need to be modified in response to changes in unrelated modules. But (a) is irrelevant since we can easily put dummy data in the DB, and (b) isn't a concern since the relevant DB schemas and queries are tightly coupled to the module in question anyway.
Primarily slowness and brittleness. Tests with side effects are much more likely to be flaky, and flaky tests are the worst. Especially if they're slow and hence hard to debug.
Of course, you do test your use of the database, but in a much smaller test suite. For the business logic tests you just spin up a copy of your app with fake adapters, and you're done. Quick, deterministic tests.
I agree that integrated tests tend to be brittle, but if we need database tests either way, the database harness can't be flaky. So any flakiness there is something that has to be fixed regardless. Slowness, I agree, but unless you're spinning up new containers for every test, the overhead of each query being real is going to be small.
If the database interactions are trivial, I agree—just use stubs. But if you've got non-trivial joins, then you'll need a separate database test suite anyway. And if there's stateful logic involving the database and you want to use fakes in unit tests, you need a whole extra set of tests to validate that the fakes behave the same way that the real database does.
I do actually prefer to avoid relying on the database for unit tests—it's cleaner, it's faster—but often testing with the database is simpler & reliable, and I can't justify the extra lines of code required for fully isolated unit tests. That's extra surface area for tech debt that could lead to stuff like fakes behaving differently from their production equivalent.
The point of mocking the DB isn’t to avoid hassle, it’s to not test your dependencies. Technically the calling code might not even know it’s a DB, and it might not even care, or it might be a DB sometimes or an API other times, or even a command line once in awhile. They are only tightly coupled if you write it that way. And yes, we would be disinterested in the schema and query errors we might catch because that’s not the point of the test.