8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
When I played with it, I was getting some really strange results. Almost like it generated an image full of Caucasian people and then tried to adjust the contrast of some of the characters to give them darker skin. The while people looked quite photorealistic, but the black people looked like it was someone's first day with Photoshop.
To which I told it "Don't worry about diversity" and it complied. The new images it produced looked much more natural.
comment 2y ago · link · parent
Which, in turn, is economically equivalent to food eaters paying the cost. There's no free lunch – figuratively and literally. Economically, it doesn't really matter all that much where you place the cost. Socially, though...
comment 2y ago · link · parent
comment 2y ago · link · parent
User expectation's, mainly. In fact, Google didn't even use the go tool internally, which I expect hasn't changed, using Google's build system à la Bazel instead. It was created only for the wider audience.
comment 2y ago · link · parent
Where you move past academic language discussion and start using the tooling. Typescript is a pretty nice language but the tooling around it is practically unusable. It's laughable how bad it is. Outside of browser work, you're going to pick Go – and still would even if they made the language 10x more flawed – over Typescript every time just to not have to deal with that ecosystem.
Granted, people are trying to make it better. Dahl going on his Go kick and wanting to copy its lessons in the Typescript world via Deno has lit a fire, but there is still a lot of work to do.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Interesting, as the US housing market crash came two years after Facebook's launch, the same year it opened to the public, and the food commodities boom followed a year later. Farm gate food prices were higher back then than they are now, even in nominal dollars!
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
The last coherent thought you had was an assertion that YAGNI may include not implementing extension points. But then DHH, while admittedly starting with a made up premise that made no sense, came along and obliterated that notion by the end, detailing how extension points – what he calls model, integration, and system – are necessary to keep tests sane.
And, since YANGI emphasizes testing, we can be assured it actually does include implementing integration points.
comment 2y ago · link · parent
It is recognized that you did answer the question. You said as a defence mechanism. That is understood. But the follow up is asking on deeper level: What needs to be defended against, exactly? What is that you think your ego going to do to you if you don't put up these defences?
comment 2y ago · link · parent
I figured.
> What's going to happen is that over time you'll eventually have the experience to understand what's being described here.
I've been around long enough to be aware of the surface level motivation – accepting the point without defensive dismissal would cause harm to your ego. I just don't get the appeal. Who cares about the ego? If you have no thoughts to share, why post anything? Surely if DHH wants to share his thoughts here, he can come here himself?
> Because it turns out there's a lot of things that young people find weird that they later understand.
Curiously, older people almost universally state that getting older means caring about the ego less and less. Maybe what you are trying to say here is that you are still too young to understand that? Fair enough.
comment 2y ago · link · parent
People also continue to move to cities in the United States. Some of those cities have more people leave than come, but people are still moving there.
What would be more interesting is seeing how the share of the population living in large cities has changed over time in the USA and abroad. On balance is it growing, shrinking, or staying the same?
In my country, cities are still seeing growth, but since 2010 a larger and growing share of the population are now living smaller communities, especially those with fewer than 30,000 people. I don't know if it is fair to call that an exodus as the cities haven't seen any real population decline (overall population is growing), but there does seem to be a change in preference.
> At least in the U.S. suburbs are almost entirely subsidized by their core cities.
More often, the core city invests in the suburbs, namely to see a flow of workers from those suburbs come into the city, increasing productivity.
Those who call it a subsidy hypothesize that if the city put up a wall, the suburbs would become unsustainable and the people would then move into the city centre, after which nothing would change for the city except the resources would stay within the city limits. But that is not a foregone conclusion. More likely the people would stay put, giving rise to economic opportunity in the suburbs. The work they were doing in the city is going to go somewhere.
Of course, if that were to happen, both the city and the suburbs would be worse off. Which is why the city is more than happy to invest in the suburbs.
comment 2y ago · link · parent
It's even stranger when the deferral isn't even relevant.
Stranger still, the premise appears to be made up. I can find no mention of "Code that's hard to test in isolation is poorly designed" anywhere on the internet other than that blog post and another blog that cites DHH.
Beck's insight with TDD, over the testing that came before it, was really just that if you write the test first then you have certainty that the test fails. If you are writing tests for code that you have already written, there is no way to know if your test passes because your code is conformant or because there is a bug in your test.
But, whether your write your tests first or last, you do need extension points to keep your tests sane. Rails is no exception. In fact, I would argue Rails' success was directly related to it leaning into testing and it showing developers what extension points are most relevant for web applications as a result. Before Rails came along, throwing MySQL calls haphazardly into the middle of the HTML was the norm.
comment 2y ago · link · parent
You need those extension points to keep your tests sane. They come naturally as part of the testing process.
comment 2y ago · link · parent
comment 2y ago · link · parent
Exceptions are merely the record of the programmer's mistake. Essentially an error, except an error that could have been caught at compile time given a sufficiently advanced compiler.
Exception handlers provide a control flow for dealing with exceptions, which may include unwinding.
Exception handlers, while primarily intended for use by exceptions, are not necessarily restricted to exceptions. Often programmers use them to move other things around, most notably errors.
comment 2y ago · link · parent
John Carmack of Doom fame seems to share your definition, suggesting that attempts to plan architecture in advance will only come to bite you, but I'm not sure he is an XP subscriber and he certainly wasn't involved in C3.
comment 2y ago · link · parent
Nothing suggested you were...?
> What I said is that it takes some time to show them.
To which I said that's on purpose, because that's not what people want to see. If they did, they'd just go outside. You don't need an app to find average people. The world is teaming with them. It's the quest for someone 'better' that draws people to these apps.
comment 2y ago · link · parent
Not as it seems to be usually defined, but I agree that programmers are bad for not sharing a common nomenclature. We can't even agree what something as simple as enums are. So, no doubt that there are camps who hold that perspective. enterprise_cog clearly comes from the "don't implement", not "don't design" definition, though.
comment 2y ago · link · parent
The "premature optimization" thing warned against making code hard to read/debug for the sake of performance in areas where performance is unlikely to ever be a concern. If you don't ship software, it is understandable this is isn't much of a problem.
Although I'm not sure how applicable that really is today anyway. The tools have changed dramatically. Often you want to make your code as readable/debuggable as possible as that also gives the best chance for the compiler to find the optimizations. These days, if you try to get fancy, you'll probably make the performance worse.
comment 2y ago · link · parent
It doesn't say you should not consider future considerations in your design. In fact, it suggests that you should design your software to be as accommodating as possible, most notably by ensuring testing is core to your design to assist you when the time for change comes. The other poster you refer to and YAGNI seem to be in alignment.