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

The law of supply and demand is not an enacting force, it's an observation of behaviour. Just like the law of universal gravitation does not determine gravity, the law of supply and demand does not determine price. People (or other animals, I suppose) determine price.

When you get into the meat of it, what the previous commenter is trying to say is that rent is quite inelastic and thus people will happily pay a lot more than is necessary when you can employ some clever marketing tricks. But the strange wording has it going all over the place.

comment 2y ago · link · parent

The law of supply and demand observes that when price rises, people (and other animals!) tend to have more willingness to sell a good or service and less willingness to buy said good or service.

But you seem to be suggesting the opposite: As price rises, landlords are less willing to sell a lease, and tenants more willing to buy a lease.

comment 2y ago · link · parent

That's true, but a codebase without unit tests is apt to be deemed poor quality by professionals due to the time factor. Being able to release fast is an important quality of business software. Professionals don't look for perfect artistry, they want to see painter's tape in the right places to get the job done efficiently.

comment 2y ago · link · parent

> since it had no unit test

But aren't unit tests the half-assed solution? They are a wonderful help if you want to deliver something fast, but if you had more time you'd probably do something else.

comment 2y ago · link · parent

You've repeated yourself for a third time, but have yet to explain yourself. Pointers are unnecessary in every language, but there is nothing to suggest that a language with them is low level. Clearly there is nothing about pointers that make them low level.

I'd ask again, but it is apparent you don't even know what you meant by it.

comment 2y ago · link · parent

Yes, you've repeated yourself twice now, but haven't explained yourself. What is low level about Go's pointers that would suggest that might suggest it is a low level language? There is nothing low level about them.

comment 2y ago · link · parent

What is low level about Go's pointers? You can't assign an arbitrary memory location. You can't do arithmetic. You can't do much of anything with them other than reference a value. I can't think of any language considered high level that doesn't have the ability to reference a value.

comment 2y ago · link · parent

You said systems, which implies a converse of scripts. There is nothing else in the category. If something is not a systems language, it is necessarily a scripting language.

The vast majority of low level tasks are systems in nature (obviously; hence why a low level scripting language would be mostly pointless), so you're not wrong, but you're not telling the whole story.

comment 2y ago · link · parent

> There are plenty of good languages which offer better expressiveness and performance: C#, Swift, Rust, Zig, D, Nim.

If we're sharing random tangents, I hear a lot of people like ice cream.

> The biggest lie is Go looks like a low-level-ish language

In what way does it look low level? I don't see it. Its closest language analog is Python, which I don't think anyone would see as being low level. Also, I assume this is meant to be in response to the "systems" bit. Systems are not defined by how "low level" they are. You most definitely could create a "low level" scripting language. You probably wouldn't, for various reasons, but you could.

comment 2y ago · link · parent

> Do you have numbers for any of these on hand?

If 19ns is critical to my existence, I'm certainly not going to spend hours of it finding out if a handful of ns might be shaved off by using another implementation.

> which is inadequate at systems programming

Implying that Go is a scripting language?

comment 2y ago · link · parent

What tools or primitives are missing that you wouldn't also need in the "happy path"? It is not like error handling is any different than any other type of handling from a programming point of view. It's the "business" challenges that makes it interesting. Most everyone has already figured out how to deal with success, but few want to think about failure, leaving all kinds of interesting problems to solve.

comment 2y ago · link · parent

For gc. The was no attempt to benchmark under gccgo, tinygo, etc. so we don’t really know how Go fares. Go is, by explicit design, multi-implementation.

comment 2y ago · link · parent

Regardless of language, error handling is my favourite part of programming. It’s where the most interesting problems lie.

What motivates the “happy path only” programmer?

comment 2y ago · link · parent

> Sometimes they are the same

Your understanding otherwise seems on point, but I'm not sure they can ever be the same. An exception is the representation of programmer fault. An error, on the other hand, is the representation of faults outside of the programmer's control.

Like you point out, operating on a missing table is a mistake made by the programmer. This fault could have been avoided when the code was written. The table not being there is not within the control of the developer (with some assumptions of what table is meant to mean here) and no amount of perfect coding could have avoided the situation.

> Most failures in JavaScript are exceptions

Idiomatic Javascript suggests handling errors using its exception handling mechanism, but the payload is still error in nature. In fact, the base object the idioms suggest you use to hold error data, passed using the exception handler, is literally called Error.

Javascript may be confused by having no official "Exception" type. Although arguably it does not need one as you can simply throw a string, which is all you need for an exception. The exception handler will tack on the rest of the information you need to know automatically. Java takes a different opinion, though, having two different, albeit poorly named, built-in classes for errors (Exception) and exceptions (RuntimeException).

comment 2y ago · link · parent

Yes, it seems most products that gain a reputation for reliability end up taking on a "masculine persona", of sorts. Which I guess stands to reason as in popular culture reliability is what defines the "manly man".

comment 2y ago · link · parent

> It's surprising to me that people would want to make a major financial decision like a car without knowing about its reliability history.

Some people will always be surprising, but it is pretty clear that the pickup truck is the most purchased type of vehicle (in North America) exactly because they have a much better reliability track record as compared to most cars. This idea doesn't escape the typical buyer.

comment 2y ago · link · parent

> Again this is a matter of where you draw your boundaries.

Just as with the boundaries of what shape the earth is. If you want to consider it flat, good on you. But if you want to talk about the law of universal gravitation, you'd better be prepared to accept that the earth is approximately a sphere (at very least, toroidal). Otherwise you are contradicting yourself.

> Latent demand is still demand which exists just demand withheld from the market (ie priced out).

It exists in the world where the price is lower. It does not exist in the world where the price is higher. That divide is what supply and demand observes.

The law of supply and demand says: When the price of a good or service falls, there tends be less willingness to sell said thing (decrease in supply) and when the price of a good or service rises, there tends to be less willingness to buy said thing (decrease in demand). Likewise, when the price of a good or service rises, there tends to be more willingness to sell said thing (increase in supply) and when the price of a good or service falls, there tends to be more willingness to buy said thing (increase in demand).

That's it. Not exactly groundbreaking. If you've ever stepped outside, even if only in Soviet-era Russia, you probably already reached the same independent observation. Why you think you need a "competitive free market" for that to stand is a head scratcher.

> But it is still supply which exists, just supply which is withheld from the market

It is something that still exists, but it is not supply as the law of supply and demand considers it. If "supply" was all things out there in the world, and equally "demand" every last wish someone has for something, we couldn't talk about supply and demand. It fundamentally could not be a concept. So what is it that you do think we are talking about?

comment 2y ago · link · parent

Because I do not believe that HOAs are magic. What makes you think that they are?

comment 2y ago · link · parent

But then said community will overthrow the HOA, so, again, no reason to leave. The earlier suggestion of leaving was based on a situation where you don't find the community you need. Escaping the social ties was the sole reason for leaving. Why would escaping a community that you don't fit into be the same limiting factor that keeps you there? That doesn't make any sense.

comment 2y ago · link · parent

> Not necessarily, someone can just hand me a dollar for nothing in return.

Value is certainly subjective. While it is possible you might find someone seeing a dollar as being worthless, just as they might give you a house for nothing in return, I don't expect you will find that to be scalable. If you have a thirst for all the dollars you can get your hands on, you are bound to go thirsty relying on this.

> Agreed, that limit is what total supply is.

There is a limit on supply, but also a limit on demand. That's why we call it "supply and demand", not just "supply". In a "normally functioning" market, demand actors start to drop out of the market as price rises.

In fact, you can see this happening in the housing market. A lot of people can't afford a house, so they are no longer participants in the housing market. They may still wish to own a house, but that's not demand, that's dreaming (or what you might call latent demand).

Hence why a shortage occurs when price is unable to rise. When price is unable to rise, there is no price-based mechanism to see that people leave the market, creating a situation where "demand exceeds supply". Which is why you will typically see alternate mechanisms step in instead, such as a lottery, or offering on the basis of first-come, first-served, to force people out some other way. A medical doctor with an ethical, and often legal, obligation to not allow price to rise is apt to use a needs-based mechanism, serving the patients in most need of care ahead of the richest patients with the common cold. That's certainly not the case in the housing market, though. Price is most definitely able to rise – demonstrably so.

> But notice it's possible to withhold something from being traded.

Of course – at which point it ceases to be supply. Just like, as above, it is possible to withhold on the other side of the transaction, at which point that ceases to be demand. This is exactly what the law of supply and demand describes.

comment 2y ago · link · parent

> Seems to me I can still have demand for more dollars.

Only to the maximum capacity of your ability to fulfill the wishes of other people. A dollar is, after all, an IOU. For someone to willingly give you an IOU, you have to give them something first. While a single dollar may not satisfy you, there is an eventual limit to how much you can meaningfully give. Of course, as IOUs can be traded, the value is also subject to the properties of supply and demand.

> The difference matters when it comes to determining prices.

That's fine. The law of supply and demand isn't some kind of enacting force. It is not a law in the legal sense, if that is where you confusion lies? It is an observational law. The observation does not concern itself with the exact mechanics of how the price is determined, it merely notices the relationship of price as a function of supply and demand.

> the government typically sets commodity prices regardless of the supply or demand conditions.

And you will notice that the law of supply and demand still holds.

comment 2y ago · link · parent

What do you mean? Per the discussion, escaping social ties is the whole point of wanting to leave. If you fit into the community, what reason would there be to leave?

comment 2y ago · link · parent

Using it as a poor man’s SQL was addressed, but using it that way doesn’t mean that’s what it is for.

comment 2y ago · link · parent

If you go back to the early stuff coming out of Facebook about GraphQL, it was designed to roll up all the REST services (or similar) into a single request for high latency clients. Occupying what has become known as the backends for frontends (BFF) layer.

In theory, it should be just as obvious either way as your actual services are going to be REST (or similar) either way. I recognize that some people have started using it as a poor man's SQL, but that's not really what it is for.

comment 2y ago · link · parent

> It doesn't if it's sitting there, with no one really occupying it, and priced out of the free market's reach

It does. Reiterating: Supply and demand, not just supply. When someone builds a house and keeps it for themselves, occupied or not, that is "one less demand" for a different house. Not even banks want to own an infinite number of houses.

> price is not really being determined by a competitive free market.

What difference does that make? Supply and demand says nothing about competitive free markets. Hell, supply and demand is just as applicable to socialist command economies and everything else you can imagine. Supply and demand is even observable in animal populations. It is considered a law, and not in the legal sense, for good reason.

comment 2y ago · link · parent

A comment is a nice addition, but the very least is to ensure that your test suite properly covers cases where changing one and not the other will introduce a problem. This not only ensures that both are changed, but that both are changed in the way they need to be. A comment alone may prompt you to change both (if you ever read it - I bet a lot of developers don't), but you may not notice when you fail to change them in the same way, which is no better than not changing one.

comment 2y ago · link · parent

Knuth says forget about small efficiencies in 97% of your code. Indeed, the `i++` optimization isn't apt to make more than a small difference, even with the most naive compiler, but other decisions could lead to larger chasms. It seems he is still in favour of optimizing for the big wins across the entire codebase, even if it doesn't really matter in practice.

But it's your life to live. Who cares what someone else thinks?

comment 2y ago · link · parent

Someone has to build it, but as long as you are using a popular DMBS the work is no doubt already done. All you need to do is stick your application-y bits in the middle – same as you have to do with GraphQL. Computers aren't exactly magic. It's all just 1s and 0s at the end of the day. You can do just about anything and make it work. But there are tradeoffs to different approaches. If GraphQL is the best choice for working with databases, why don't DMBSes use it natively?
1
444546
256