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

> Growing up in a BC suburb, it seemed like we were always 5-10 years behind the US on things like home computers, the Internet, cell phones, and e-commerce.

That's interesting. Growing up in rural Ontario, we didn't know any different at the time, but in hindsight we were way ahead of the curve. For example, I didn't know anyone who didn't have a computer at home by the early-to-mid 80s, even families that were, looking back, quite poor. Apparently that would have been unthinkable for our American counterparts. We had high speed internet to the farm by the year 2000, and in the early 2010s fibre was installed to the farm. That was (and still largely is) unheard of stateside.

Similarly, programming was taught in schools not only during my time, but also my parents' time. They recount writing programs on punch cards in high school. My generation was writing BASIC already in elementary school. Meanwhile, our friends to the south were still desperately trying to get programming into the classrooms just a few years ago!

Suburbs are stereotypically where you find boring people, so perhaps the disinterest in technology that you experienced was simply down to that stereotype playing out? The people around me have always seemed quite excited about technology. Perhaps B.C. was/is behind the curve, but I'm not sure that is telling about the country as a whole. I don't see that being the case at all further east.

> Canada also doesn't have much of an engineering/technology culture.

I posit that Canada's situation is that it is primarily focused on engineering/technology culture at the cost of not being focused on business culture. Canada is quite strong in engineering (and in producing engineers), but as you allude to, since the business culture is lacking the engineering and engineers go to where there is a business culture (i.e. the USA). Engineering for engineering's sake does not stand on its own. You also need business to prop it up. And that's where Canada fails.

comment 2y ago · link · parent

> largely due to our non-proportional electoral system.

There are a few exceptions, but the majority of ridings are of roughly the same size. For all intents and purposes the electoral system is about as proportional as is reasonably possible. People move around so it can never be perfect. But it really is close enough.

Perhaps you are referring to to the fact that the constituents seem to prefer to hire based on the MP/MPP/MLA's labour union affiliation instead of whom will actually represent them, with the representative often being more likely to work for the union instead of the employer, leaving discorporate favour in government towards the unions instead of the employer? That's definitely a thing, but that is not really the electoral system's fault. That's just abject stupidity on the electorate's behalf. They could vote for non-union members who are actually willing to work for the employer, restoring proportionality. There is nothing about the electoral system that stops them. They simply choose not to...

...I expect because they like the union party scapegoat. It allows a place to defer blame. The Westminster system places a lot of onus on the public at large to be involved and the public at large doesn't like that. The public at large doesn't want to be involved at all. Let's face it, the majority don't want to think about it to any degree, while a smaller segment are willing to pick a dictatorial ruler every four years, but nobody wants to embrace the Westminster system as it is meant to be, which leads to all kinds of weirdness – Yet, interestingly, nobody ever suggests getting rid of the Westminster system despite not wanting to use it. It is always only wanting to change how the representatives are chosen, which doesn't actually fix the problem of the Westminster system expecting people to be involved where the people don't want to be.

comment 2y ago · link · parent

> The testing/quick package is frozen and is not accepting new features.

Indeed. And respect to software that knows when it is complete, but is there some relevance to this here?

> Also: https://news.ycombinator.com/item?id=30385195

While the distinction between fuzzing and PBT is, er, fuzzy, what is unquestionable is that PBT is not meant to be coverage driven. It is a means to document behaviour for other developers in a way that is, in some cases, more descriptive than providing a fixed set of examples or other "traditional" ways of providing such documentation. Seeking coverage and "interesting" cases, rather than providing documentation, is decidedly the role of fuzzing.

comment 2y ago · link · parent

For those of us who live in a bubble, what AI hype is out there?

I recently had a problem cross my desk which the stakeholders thought might be solvable with an LLM, which may have been true, but ultimately was more easily solved using plain old boring programming techniques. Is that the hype?

While the final solution didn't need to involve LLMs or anything of that nature, I don't think said stakeholders would have been able to even envision the possibility of trying to solve said problem had semi-recent technological developments that has taken on the AI moniker not enabled them to think more creatively about what machines might be able to do. Without that, there is little chance I would have become aware of the problem someone faced.

If that's the AI hype, I'm game. Being able to get computers to do things others didn't think was possible is what brings me to the world of software development.

comment 2y ago · link · parent

> does a successful test mean successful code

A successful test implies that the documentation is true. That is, after all, why you are writing tests: Documentation – To explain to future developers the intent and usage behind the code you wrote. You could just as well write the documentation in Word instead, but then you'd lose the ability to perform machine verification of the documentation, which is a huge boon to moving codebases where the documentation and code are likely to fall out of sync if one is not incredibly careful (although perhaps LLMs will some day bridge that gap?).

The documentation being true does not imply that the documentation is useful, of course. Writing useful documentation is still an art.

comment 2y ago · link · parent

> What should I (we?) be building on top of Go's fuzzer to make it easier to construct property-based tests?

What's the intent behind building on top of Go's fuzzer as opposed to an approach like testing/quick takes?

comment 2y ago · link · parent

> a human making the final call on top of a given option would need to explain and rationally explain its decision.

To who? What you describe does not seem much different than the representation governments most of us here are accustomed to, other than the algorithm eases some day-to-day work required of the constituents. Already nobody cares, and no doubt would care even less if they could let an algorithm let them be even less involved.

comment 2y ago · link · parent

Once you get beyond the cities, there is still plenty of open FM spectrum. Getting a frequency isn't the real hurdle. Human effort and licensing are the much greater challenges.

Especially licensing. Even on commercial radio you can regularly catch them playing "10 second" clips of different songs, to stay within fair use, that they wish to play but cannot legally do so. The college stations are more brazen about it and will flat out tell you that they can't play different jobs for legal reasons.

Indeed, commercial radio does have to appeal to an audience, but that audience would unquestionably enjoy other music – at least within the same genre. But playing it for them opens up a huge legal minefield. It is a lot easier to pick a small catalog that you can properly audit and disallow anything beyond that.

comment 2y ago · link · parent

It ain't no 1999 party if you aren't using frameset to provide the shared page elements.

comment 2y ago · link · parent

I can't imagine writing a function that is nothing more than an identity function would be easy to write (unless it was explicitly intended to be an identity function, I suppose). There must be some terrible gut wrenching feeling that goes along with it, if nothing else? Frankly, I don't understand how this situation is possible in practice, but perhaps I misunderstand what is written?

comment 2y ago · link · parent

Imagine: Instead of three radio stations all playing the same song, you could have 100 stations all playing the same song!

comment 2y ago · link · parent

By using TDD, which promotes isolating the changeable surface area to a small area during discovery. That way you don't have to introduce the complexities of API changes across the rest of the application surface area, avoiding the churn spoken of earlier.

comment 2y ago · link · parent

The first box on the testing checklist states that the test should first fail. I wonder how they managed to not test anything while seeing the tests transition from failure to success.

comment 2y ago · link · parent

This is why I'm not sure more languages don't instil the idea of "public" and "private" tests like Go does.

Your "public" tests should document the API for future programmers. This is the concrete contract that should never change, no matter what happens to the implementation. If these tests break, you've done something wrong.

Your "private" tests are experiments that future programmers know can be removed if they no longer fit the direction of the application.

comment 2y ago · link · parent

> I've generally come to think that unit tests should be used to baseline something after it ships

In theory, but I've never seen anyone successfully write tests after something ships. By that time much of the context that should be documented in tests is forgotten.

comment 2y ago · link · parent

That's exactly what Beck described when he originally coined the term.

comment 2y ago · link · parent

> It's super easy to explain what unary means but it's often infinitely easier to use a standard industry term and not explain anything.

What's the standard term? While I agree that unary isn't widely known, I don't think I have ever heard of any other word used in its place.

> gRPC didn't need to be completely broken on HTTP/1.1.

It didn't need to per se (although you'd lose a lot of the reason for why it was created), but as gRPC was designed before HTTP/2 was finalized, it was still believed that everyone would want to start using HTTP/2. HTTP/1 support seemed unnecessary.

And as it was designed before HTTP/2 was finalized, it is not like it could have ridden on the coattails of libraries that have since figured out how to commingle HTTP/1 and HTTP/2. They had to write HTTP/2 from scratch in order to implement gRPC, so supporting HTTP/1 as well would have greatly ramped up the complexity.

Frankly, their assumption should have been right. It's a sorry state that they got it wrong.

comment 2y ago · link · parent

Multiplexing is a HTTP/2 feature. But as gRPC was based on an early HTTP/2 draft, it beat HTTP/2 to the punch. Thus it is likely that HTTP/2 didn't exist at the time the statement was made and therefore HTTP/1 would have been implied.

comment 2y ago · link · parent

So, wrong link?

comment 2y ago · link · parent

> Internally Google doesn't even use gRPC, they use something similar that has better internal support according to https://news.ycombinator.com/item?id=17690676

But that says that they do use gRPC internally on projects that are new enough to have been able to adopt it?

comment 2y ago · link · parent

gRPC was based on a HTTP draft that predated the standardization of HTTP/2, so presumably that statement was said about HTTP/1. HTTP/2 may not have existed at the time it was asserted.

comment 2y ago · link · parent

Codd was no fan of SQL.

comment 2y ago · link · parent

I assume the above is based on said package? Wherein lies the hassle?

    bmws = Cars.query().where( { brand: "BMW" }).groupBy('year').orderBy('year')
    bmwAvg = bmws.select(avg('price'))
    bmwMin = bmws.select(min('price'))
    bmwMax = bmws.select(max('price'))

comment 2y ago · link · parent

> Some people pretend that you shouldn't use any SQL-server today and instead use current-hipster-web-accessible-database.

More commonly, there are the people who use a SQL server at the lowest level, but then stick another database layer on top in order to provide a more friendly querying experience for the bulk of the users. The prevailing idea is absolutely that most people shouldn't have to use SQL, and most likely that they should use a hipster-web-accessible database, even if SQL exists somewhere inside of a black box.

Niche does not imply that something is nonexistent, but it does seem pretty clear that we go to great lengths to ensure that most people don't have to use SQL, limiting its use to a narrow set of developers who specialize in that niche, while everyone else uses higher level languages to communicate with the database.

Which is not at all what SQL envisioned in its infancy. It was supposed to be the language for all business people far and wide.

comment 2y ago · link · parent

You are right that those who start off being well paid in the working-class tend to buy capital with the differential in pay, and thus move into the middle-class upon doing so. But, as such, still realize the gains on the capital side, so the decline on the wage side is not the whole picture for them.

comment 2y ago · link · parent

I expect that if you look at all the users of sqlc, most of them are simply using it to transform SQL queries into a different query language (e.g. REST) for everyone else to use. That supports the idea that SQL is a niche skill.

comment 2y ago · link · parent

Data engineering is, indeed, a niche skill.
1
363738
256