Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

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

Submissions

comment 4y ago · link · parent

Then the statement resolves to "If we still use math 100 years from now, we'll still use math.", which is a rather silly statement. SQL and Western notation are interesting to compare in that they are the dominant, but not exclusive, languages used to describe their respective mathematical domains.

comment 4y ago · link · parent

> If we still use math 100 years from now, we'll still use SQL.

Those are incongruent. Do you mean Western notation?

> It's a fine way to query relational data

It's quirky, but good enough for ad-hoc queries that I think it will be hard to overcome the momentum in that area.

It's not fine for application work, where you need things like composition. We've tried to solve those problems with ORMs, but the ORM is starting to fall out of fashion due to a number of problems of its own. SQL is not a great compiler target. I do eventually see something lower level built for programmers, not data analysts, rising up here. If SQL is compared to Javascript, something akin to WASM, perhaps.

comment 4y ago · link · parent

> SQL is around since the dawn of relational database

There was a decent amount of competition back then, though. It seems the industry eventually settled on SQL to be compatible with Oracle's dominance. Postgres didn't gain SQL support until about a decade in.

comment 4y ago · link · parent

Isn't social order ultimately just a proxy for access to energy?

In pre-industrial times, and even modern times, those who were able to compel (or force) people to work for them – i.e. provide them energy – were those considered to have a higher social standing. Those who provided the energy were of lower social standing.

comment 4y ago · link · parent

> You talk as if a union is formed, then strikes indefinitely and hurts profits, then the business fails.

The original claim replied to was that profit would decline, not disappear... Talk about a bad take.

> enough labor protections in place.

That's the remainder of the story. Because labour laws have appeared over the decades and centuries, one doesn't have to forego financial stability to save their life like people once had to. Workers now become de facto members of the government union which has already negotiated minimum standards for all. That wasn't always the case.

Those who are in a position to be able to walk away from an income for months at a time may hold on to eek out an ounce more, but it's simply not worth it to low paid workers who rely on a regular paycheque. The cost of losing a home and going hungry greatly outweighs any potential returns.

comment 4y ago · link · parent

To downtime. The one and only lever a union brings is a withdrawal of services – i.e. strike. An employer won't take a union seriously until it has demonstrated that it will strike, so if it is more than a bluff among workers a strike is inevitable.

This is also why unions have largely fallen out of fashion except in industries where the workers are well off. Unless you are wealthy enough to burden several months, if not years, without work striking isn't an option and thus the union becomes toothless.

comment 4y ago · link · parent

Perhaps it could be expanded upon with: Don't estimate, solve the problem.

Solving the problem may involve estimating, but blindly being asked "How long will this take?" without exploring the entire solution space, often without even being aware of what problem needs to be solved with that information, is when you get failed results. A time estimate may not even be the right tool to solve the particular problem.

If you are the one asking "How long will this take?" you have already recognized that you don't have a satisfactory solution yourself and need to defer to the experts, so why obscure useful context from those you are deferring to? While there may be some sense of pride in being the one to come up with the solution, such emotions aren't suitable for the workplace. It's okay to give someone else the 'glory' if they have the solution and you don't.

comment 4y ago · link · parent

In a sufficiently large organization, managers are hired to have technical (or legal, or financial) knowhow and to use that expertise to provide information to the CEO to not take time from those doing the work. Likewise, those doing the work often aren't even permitted to communicate with the CEO.

In a small organization, the reality is that many hats must be worn. That may mean developers play manager to some degree, but also the CEO must be prepared to step into the trenches.

comment 4y ago · link · parent

The right hardship is likely to pay. But only in hindsight can we look back and say what the right hardship was, and that's the tricky part. However, enduring the exact same hardships your earlier generations endured because it worked for them has never paid. Fortune has always favoured those who do something new and different.

comment 4y ago · link · parent

> The reason I say this is to try and dissuade anyone from rejecting SQL as "yet another tech moving so fast it's barely worth learning".

What's fast moving about Javascript? It has certainly picked up some features along the way, and compatibility across implementations has improved, but the code I remember writing 25 years ago would still work just fine. Overall, it's quite stable and slow moving.

The 'ORMs' of the Javascript world, to stick with the analogy, have a reputation of being replaced every few months, but that's a different topic entirely. ORMs of the SQL world aren't much better. All the more reason to focus on the core language in both cases.

comment 4y ago · link · parent

> However, as an industry we don't have a great way to know what is or isn't reliable.

I'm not sure it matters. You can assume it will be as reliable as your own buggy code that you wrote yourself. The more important question is how maintainable or replaceable is it. Once you include a dependency it becomes your code to maintain, so it had better be something that you're comfortable jumping in and getting your hands dirty with if need be.

comment 4y ago · link · parent

How would you begin to understand programming (or anything for that matter) without first starting with a massive undertaking and breaking it down into smaller chunks that can be discovered? Give someone a for-loop in isolation and it means nothing. They will never really understand it because it doesn't relate to anything. Given something massive they will have to break it down, and in that it will dawn on them "Huh, I need to do this same thing over and over again. I wonder how I might do that?" at which point they will discover loops, and then it will make perfect sense.

comment 4y ago · link · parent

The simple answer is that it was announced as one.

The more complicated answer is that, traditionally, systems programming languages were those which are not scripting or assembler languages. If you listen to Pike for more than a few seconds you'll soon notice that he's a bit of a language purist, so whatever modern interpretation you might have for a term is unlikely to match what he is communicating.

More specifically, it was announced as a systems programming language designed for things like web servers and systems of that nature, with more control than Java in some areas. Even with conflicting definitions of systems, there should have been no illusions about it being designed to be in roughly the same space as Java with that context. It was very much suggested from the onset that it was meant to compete with Java.

But, ultimately the game of telephone truncated the context that would have helped with finding the right definition of systems and, I expect exacerbate things, there was Rust coming onto the scene juicing the situation with its fans often claiming that "Go isn't a systems language, Rust is!" leaving some revisionism about people believing that Go was a systems language (in the modern sense).

comment 4y ago · link · parent

> It's intended for people who have different fashion tastes, tastes that approximate political positions that I don't hold.

As a Canadian living in the heart of supply management (i.e. state ownership of the means of production) country, where supplies are provided by the so named and literal Co-op (i.e. community ownership of the means of production), trucks are very popular. In part because they are useful tools in carrying out the business within that socialist system, but also because outsiders emulate to try and convey similar social standing.

If there is a political statement to be found in there, which may be a stretch, to me it would be that trucks = socialism. But when I look beyond my bubble, I'm left with the impression that trucks are, if anything, especially stateside, a statement at the compete opposite end of the spectrum.

What approximate political position do you believe is inbuilt into the design of modern trucks?

comment 4y ago · link · parent

Regionality in fashion is significant, clothing included, but in this part of the world trucks are definitely fashion. People largely drive trucks because they like the way they look in them, not because they have some secret political statement that nobody is picking up on.

As you venture out into the world you will also find trucks that are clear political statements. You might be right that an individual cannot own a truck for both fashion and political reasons (although I'm not sure I agree), but just because some people use trucks for political statements does not mean all trucks are political statements. Some trucks can be used for fashion without crossing those who use them political statements.

comment 4y ago · link · parent

> They're more fun to drive if you're driving for fun

I've always preferred a good CVT when it comes to fun. There's nothing like being snapped from 0-100 with no pause in the action. And the scream of a hydrostatic on a 30,000 pound combine is a treat. Manuals might be more fun than your average slush box, but in the grand scheme of things...

comment 4y ago · link · parent

> I hope some future SQL x.0 will fix these issues, but also be similar enough to present-day SQL that I don't have to learn a whole new language from scratch.

If SQL is to Javascript then something akin to WASM would be nice. Lower level primitives that allow query systems to be built. SQL could be one such system, but not limited to.

comment 4y ago · link · parent

> You need to be on John Galt's mountaintop to avoid these monopolies.

So be it. If we were talking about a governmental election, and "your team" lost, you would also have to disappear to the mountains if you wanted to avoid having to interface with the elected government that doesn't represent your interests. More likely you'll just suck up the loss. That's what elections entail... They are not about the individual.

> Sticking to a narrative where Google's monopoly/monopsony represents free choices between free people is idiotic.

In reality, Google wouldn't last long if a large swath had a problem with them. The fact of the matter is that they offer a compelling product that many people want to use. You might not want to, but your minority position means that you've lost the election. Suck it up or move to the mountains, I guess, because the vote isn't about you as an individual.

Monopolies of this sort can be problematic in that they can cause people to become blind to alternatives. If what Google offers is good enough, you're not compelled to look elsewhere. And when everyone has settled on the same good enough, there isn't someone else in your ear saying "You should check out X! It is even better than Google." This keeps the votes coming in for the incumbent.

But if Google were to become no longer good enough, people will quickly start to look for X and vote for something else. Google already had exactly that happen when they were coupling their product with "unsavoury" content, which scared away customers who didn't want to be associated with such content. They had to change their policy to win back the votes.

Voting works. That doesn't mean you will win.

comment 4y ago · link · parent

Most higher level regular programming languages will allow you to escape to C, and C allows you to escape to assembly, so that's not unusual.

In my experience when you need to escape to raw SQL there is still some kind of query builder employed, which too becomes another "compile to SQL" source.

comment 4y ago · link · parent

Yes, the infinite state is also implicitly found within the state set. Conveniently found at the infinity index.

comment 4y ago · link · parent

If no apples is the unusual state, like you expected to find an apple in your lunchbox but someone ate it without your knowledge, then certainly there would be reason to communicate the no apples state. It is ignored in communication when it does not provide useful information, but it is not forgotten. The 0th index is implicitly there.

comment 4y ago · link · parent

Not really. Perspective isn't scientific and often cultural. Koreans, for example, famously have a different take and use a different counting systems to accommodate.

I am assuming that the reader is biased towards the average HN user. That won't always work for everyone who will come across my comment, but close enough for an unpaid contribution. I'm not about to write a novel to make sure I catch every edge case.

comment 4y ago · link · parent

> Birthdays are anniversaries.

Indeed they are, which is why I literally said so in the previous comment. Did you forget to finish reading it?

> They do not include the event itself.

That is true because the event itself is implied information. There is no value in speaking of it. If you stand before us, we can be certain that you had a day of birth (your 0th anniversary). We don't necessarily know how many times you've gone around the sun following that, however, so that is where we find value in communicating additional information.

If you were counting apples, there is the state where you have no apples (index 0), the state where you have one apple (index 1), the state where you have two apples (index 2), etc. When counting you don't need to worry about index 0 because the no apple state is naturally implied. It only becomes interesting and worthy of communication when you have at least one apple to speak of, thus you start at 1. The state found at index 0 is still implicitly there, though.

comment 4y ago · link · parent

If you took a standard ruler, a measurer of distance and which has literal index marks painted on it, and placed items along it, the item found at the head of the ruler would be found at the 0th index. You're quite right that we think of birth and its anniversaries in the same way.

comment 4y ago · link · parent

Although, there is a fifth state in your example: When you are not in class. Which is different to an empty set that implies nothingness. When it comes to age, 0 being birth works well because there is truly is nothingness (from your perspective) before birth. When counting from 1 there is suggestion that there are variables that aren't worth speaking of because they are obvious.

comment 4y ago · link · parent

Yes, exactly. One of which carries an implicit zero indexing. The date of birth doesn't disappear just because you decided to use a different measuring device.

comment 4y ago · link · parent

And it turns out that 0 days, 0 months is 0 years.

comment 4y ago · link · parent

If we (speaking as a North American) count from 1, does that mean other cultures (e.g. Korean) count from 2?

comment 4y ago · link · parent

The moment you are born you are 0 years old (or perhaps 0.75 years old, but we don't usually recognize that). We count from zero in this case, at least implicitly.

In some cultures you are considered 1 the moment you are born, so the zero indexing isn't universal here, but typical in North America as noted earlier.

1
141142143
256