Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

> Then I asked Gemini to stop doing that / tried specifying racial backgrounds... Gemini refused.

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

> Also, are there any agricultural billionaires?

Many. But maybe you mean only those getting their hands dirty in the field? Howard Buffet, perhaps. Some sources claim he is a billionaire.

comment 2y ago · link · parent

> Anyone with a basic understanding of economics knows that this is economically equivalent to making the farmers pay for the recycling.

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

The Go standard library's net/http package doesn't yet compile due to some dependency issues, but tinygo provides its own net/http package to stand in as a replacement[1].

[1] https://pkg.go.dev/tinygo.org/x/drivers/net/http

comment 2y ago · link · parent

Probably not. I live in a parallel universe where `npx tsc` does nothing except spit out available arguments. I can first `npx tsc --init`, after which `npx tsc` converts the TS files into corresponding JS files, but that puts you no further ahead. You still need tooling to do anything with those files. In a universe where `npx tsc` knows what tool you need every time you run it – something completely incomprehensible in this universe – it is undoubtedly also impossible for those in that understand what we go through in this one.

comment 2y ago · link · parent

> I'm sure there are some good reasons why they exist under the hood.

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 does Go fit in here?

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

Especially when you can `go run that/project/over/there@latest`

Although, with slight modification, you can `go run -C ~/that/project/over/there .`

comment 2y ago · link · parent

I expect the consumer would much prefer to keep up with friends than some random performer. But friends don't want to create content anymore. It's a production problem. People don't want you, a casual onlooker, to know what is going on in their life. When they do, they will invite you into a private space. This is why Facebook moved to allow most activity to happen in private (chat, groups, etc.).

comment 2y ago · link · parent

Nobody on the other side of the fence wants those things, though. In the beginning the implications of allowing others to take a look into your life weren't well understood, but it soon became creepy knowing that others are taking a look into your life, hence why Facebook had to change gears and focus on more private spaces and lean on 'professional' content creators who are happy to let others watch them fill the void.

comment 2y ago · link · parent

> people had few concerns that basic needs like housing and food would be taken care of.

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

Conway might find some correlation, but strictly speaking, no. A service is not bound to any particular deployment pattern. Consider services in the macro economy. Each individual business providing a service is bound to do things differently. As micro services are merely emulation of macro services in the micro, each team is equally free to do things however they wish.

comment 2y ago · link · parent

Micro services is a team organization pattern, emulating the software service model, except within a micro economy (i.e. a single business). In practice, this means that teams limit communication to the sharing of documentation and established API contracts, allowing people to scale without getting bogged down in meetings.

comment 2y ago · link · parent

That's just it, you're not saying anything.

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

But the question asked why you would bother, not why someone who has been married for 40 years would bother. You don't need to know anything about anyone else to answer the question.

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

> this is all just a defensive mechanism to try and dismiss the point.

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

> Except people continue to move to cities outside the U.S.

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 always strange when someone on a discussion forum defers to someone else for their thoughts. Why even bother?

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

Which language is that?

Context would suggest you are referring to Go, but Go has exceptions. It even has exception handlers. As do all of the other languages mentioned.

comment 2y ago · link · parent

Pretty much. Central to the YAGNI message is ensuring that your design brings test coverage to help you build the things you need when you need it. Kent Beck is credited with having invented TDD, so of course that's at the heart of their theorem.

You need those extension points to keep your tests sane. They come naturally as part of the testing process.

comment 2y ago · link · parent

goroutines do not give the programmer control over suspension points, though, so they differ from coroutines as most people are apt to think of them. There was consideration for adding coroutine[1] support for the rangefunc experiment, but it didn't make the cut for 1.22, opting for a simpler model.

[1] https://research.swtch.com/coro

comment 2y ago · link · parent

Also, "exceptions" and "exception handlers".

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

While I accept your definition, because, hey, programmer's can't agree on definitions at the best of times, that is not the definition that was used earlier. And is not the definition presented by the XP gang.

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

> I never said I was looking specifically for an average woman.

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

> YAGNI is more about design than implementation

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

If you subscribe to "You Are Gonna Need It", how do you ever get around to shipping software if you are always implementing the things that are fun, but unnecessary, and not focusing on the things that are needed to progress?

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

Developers aren't great at sharing nomenclature, but by what seems to be the most common definition, YAGNI refers to not going off and implementing something that is more fun to implement, but isn't needed right away (if ever). Focus on what you actually need to get your project to a desirable state.

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.

1
636465
256