Hacker News new | past | comments | ask | show | jobs | submit | ryathal's comments login

Dollar stores are generally more expensive in the long run than other stores. They make their money on higher per unit margins and/or vastly lower quality of products.


No. In rural areas dollar stores are the cheapest around. I guess you are not familiar with small town prices. In urban areas dollar stores are more expensive than Walmarts--but there is something to be said for getting in and out of a store in 5 minutes vs 20 minutes in a supercenter. But a Dollar General is still going to be cheaper than Walgreens.


I'm not sure I can agree with that. I think the top level of curling has reached a point that's boring to watch as too many shots are perfect. It leads to boring games of waiting for a missed shot. It's far more entertaining to watch the chaos of a mixed doubles match. That said I wish I could see more than just the Olympics.


A manager of developers should know how to code, but any formal expectation of them coding shouldn't exist. This holds for medium to large organizations. The managerial duties should be enough to require the vast majority of their attention. Expecting development on top of management is a way to add fake capacity to a team to help ensure burnout.


It's saying you don't need to be proud of your app that has multiple layers of abstractions to be immune to every possible change. There are hard problems, but the most complex solution is rarely good or best.


I think when you first start out as a programmer you’re impressed by complexity and complex solutions

But once you’re more experienced you realize complexity is arbitrary and anyone can make things more complex


I'd argue that's a poor way to say that, because "managing" complexity tends to mean "taming" or dealing with complexity in a good way.


I'd argue just making everything POST is the correct way to do a public Api too. REST tricks you into endpoints no one really wants, or you break it anyway to support functionality needed. SOAP was heavy with it's request/respone, but it was absolutely correct that just sending everything as POST across the wire is easier to work with.


Some of the AWS APIs work this way too. See for example the Cloudwatch API: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIRefer..., which is really JSON-RPC, not REST.


Yeah, I like doing this as well. And all the data goes in the request body. No query parameters.

Especially when the primary intended client is an SPA, where the URL shown is decoupled with the API URL.

Little bit of a memory jolt: I once built a (not for prod) backend in python as follows:

write a list of functions, one for each RPC, in a file `functions.py`

then write this generic function for flask:

  import server.functions as functions

  @server.post("/<method>")
  def api(method: str):
      data: Any = request.json if request.is_json else {}

      fn = lookup(functions, method)
      if fn is None:
          return {"error": "Method not found."}
      return fn(data)

And `lookup()` looks like:

  def lookup(module: ModuleType, method: str):
      md = module.__dict__
      mn = module.__name__
      is_present = method in md
      is_not_imported = md[method].__module__ == mn
      is_a_function = inspect.isfunction(md[method])

      if is_present and is_not_imported and is_a_function:
          return md[method]
      return None
So writing a new RPC is just writing a new function, and it all gets automatically wired up to `/api/function_name`. Quite nice.

The other nice feature there was automatic "docs" generation, from the python docstring of the function. You see, in python you can dynamically read the docstring of an object. So, I wrote this:

  def get_docs(module: ModuleType):
      md = module.__dict__
      mn = module.__name__
      docs = ""

      for name in md:
          if not inspect.isfunction(md[name]) or md[name].__module__ != mn:
              continue
          docs += md[name].__doc__ + "\n<br>\n"

      return docs[:-6]
Gives a simple text documentation which I served at an endpoint. Of course you could also write the docstring in openapi yaml format and serve it that way too.

Quite cursed overall, but hey, its python.

One of the worst footguns here is that you could accidentally expose helper functions, so you have to be sure to not write those in the functions file :P


Use a decorator to expose functions explicitly, otherwise sounds like security issue waiting to happen. All your decorator needs to do is add the function to an __exposed__ set, then when you’re looping over the dict, only expose keys who’s values are in the __exposed__ set


Good idea

Although I suppose using an approach like mine precludes any notion of a serious application.


Many states have similar laws and they don't see the same massive real estate costs. High property cost is almost entirely demand based.


I'm sorry. What other state has it so that taxes only reset upon sale?


Maine, New Hampshire, Tennessee, and Vermont are the only states that don't have any limits on the increase in property taxes. California may be on the low end at 3%, but most are limiting to less than 10% growth. You can read more here https://www.kiplinger.com/taxes/property-tax-cap-by-state


There's not a market for healthcare in America though, at least not accessible to the average person. There is a market for Companies and insurance providers, insurance providers and doctors, but essentially nothing for a person and a doctor. It's practically impossible to actually shop for most medical procedures, by price, service quality, outcome, or any other potential metric. It's a little better for prescription drugs as different companies offer different sets of discounted drugs, but consolidation has hurt that too. Using prescription coverage, the patient is once again far removed from any actual market.


Every major health plan now has an online price comparison tool that makes it easy for members to shop for elective medical treatments by price. Have you tried the one offered by your insurer?

https://www.cms.gov/healthplan-price-transparency/consumers

Service quality and outcomes are almost impossible to assess in a way that would be useful to consumers. Like if you see that a heart surgeon has a high rate of patient deaths then that could mean he's a quack, or it could mean he's extremely skilled and takes on the hardest cases that other surgeons won't even attempt. One thing consumers can do is check state public records for disciplinary actions.


Nothing a heart surgeon does is "elective". Nearly nothing "elective" is ever covered at all by insurance.


You appear to have confused elective with cosmetic. Most non-emergency procedures (including most heart surgeries) are classified as elective. There is some flexibility in choosing a provider and scheduling. These procedures are covered by insurance.


The vast majority of houses aren't rebuilt with any regularity in the US. The extreme high-end McMansions are commonly rebuilt, but that's an outlier. Much of the affordable housing is the luxury apartments of 40-80 years ago.


Inheritance rarely survives past the third generation, it's not really part of the problem.


???? so what is?


Separate rates and markets already exist. Commercial property is a totally different market than residential, and agricultural is yet another market. Investment into residential is different than primary residence in origination rules and pricing.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: