Better HN
topnewbestaskshowjobs
Log inSign up

spfzero

1,412 karma · joined Jul 21, 2020 (6y ago) · 688 submissions

Submissions

comment 5y ago · link · parent

Haven't used Perl but they're in a lot of languages, Lisps, Python ("""), Ruby, PHP etc. but C# does at least have the verbatim-type of strings which would be good enough. Don't use the interpolation features though, use the @params and let the SQL driver do the replacements.

comment 5y ago · link · parent

True about the params. I guess I've always put the queries in as "here" strings, so they do look out of place in the sense that the structure is different. In most cases the sql was in a file with a bunch of other "lowest" level db calls, so I kind of got used to that being the look of those particular source files.

Looked at the Hangfire code and the last two methods there look a lot like what I used to do in the old C# days. Except I'd have whole files of db stuff like that, and other files for the C# code that called them.

comment 5y ago · link · parent

Ah, got it.

comment 5y ago · link · parent

One thing I learned when climbing up that ladder. Not only do you not get to start making strategic decisions, the person above you is also not doing that, nor is the person above them.

Everyone, no matter how many "executives" or "vices" in their title, is simply reacting to what the person above them is on about that day. Everyone is reacting. No one is planning, unless they've just been asked for a plan to present "next week". Then they will have a portion of the plan to assign you, but it will already be narrowly defined per what the boss's boss has already indicated they're expecting to see. And you'll need to complete it in two days, so there are a few days to make changes. I was never privy to any long range planning, and I came to realize that's because if there was any of that happening (I'm very skeptical) it had to be happening at the board of directors level.

comment 5y ago · link · parent

Wow, I read that and thought I hope he's not working in finance!

He could easily handle the promotion aspect by framing it this way:

"As a promotion, I now don't have to drive 2 hours a day, and I still get the same pay!" That's a nice promotion, two prime hours of waking life 5 times a week. Not to mention the stress and gas/maintenance.

Any time you can exchange money for time, do it.

comment 5y ago · link · parent

Nice work!

comment 5y ago · link · parent

Strings do give you the ability to copy them right into your code from the SQL console after testing.

comment 5y ago · link · parent

Its really worth taking the time to learn well. Any library that abstracts that for you, is using some rules to create sql underneath, so knowing what its (probably) doing can give you a lot of insight when tracking down performance problems or bugs. And, suggest changes you can make to the schema, or stored procedures if necessary to improve performance as well.

comment 5y ago · link · parent

Right, OOP is sometimes not the best paradigm for the given problem. If you're using C# or Java, sure, ORMs fit right in. Ruby and Python, not to mention Lisp etc., offer a multi-paradigm palette where forcing objects in, just to access relational data, just obscures things.

comment 5y ago · link · parent

What might actually qualify as hubris, is thinking you've discovered the best solution for everyone else's future problems.

comment 5y ago · link · parent

Like you, never use it. I do try to get a tan starting in the spring. A tan is the best sunscreen. Plus, blocking UV-B means blocking vitamin D3 production in the skin.

https://ods.od.nih.gov/factsheets/Vitamin%20D-HealthProfessi...

I'm lucky in that my skin type is tannable, I know for some people that's not an option.

It is over-hyped and overused. I see people out for a half-hour run at 7 AM (UV index=0), wearing sunscreen.

comment 5y ago · link · parent

If I'm understanding you correctly, are you asking whether parents are required to tell their adoptive children that they are adopted? In the US definitely not, and I think that's probably the case most places.

Whether or not the parents had a paternity test performed wouldn't have any bearing on it.

comment 5y ago · link · parent

Except that they will be in situations different from a person in their home defending against an invader. They will need accuracy and effect at 50 meters, you only need 5. They will be laying down cover fire to allow repositioning etc.

As far as accuracy goes, a rifle’s size might be an issue in close quarters. And once you’ve fired off a few rounds, even if you missed, the intruder now knows you have a loaded gun, you might land the next shot, and the neighbors are allready calling the police.

comment 5y ago · link · parent

They do mention activity to inhibit Cytokines, which is an important inflammation cause in Covid. The paper said nothing about inflammation from CBD itself. Since CBD is a medicine for the treatment of epilepsy many people take it already. The paper mentioned only mild side effects.

comment 5y ago · link · parent

Logging takes the healthiest and largest trees. The ones most likely to survive a fire. While leaving behind all of the fuel. Doesn’t seem like it would help much.

comment 5y ago · link · parent

The article mentions that climate change only has a small effect, and that with or without it, natural management works to improve forest ecology as well as reduce the impact of fires.

comment 5y ago · link · parent

There are a lot of small private holdings within public lands. They should receive some property tax relief, in exchange for understanding that the forest around them is going to be managed naturally.

That doesn’t mean that their property won’t be defended as much as possible, just that stopping the entire fire itself won’t be the goal.

comment 5y ago · link · parent

I note that the blog post includes this quote:

<... Lisp’s performance is comparable to or better than C++ in execution speed ... it also has significantly lower variability, which translates into reduced project risk.

Furthermore, development time is significantly lower and less variable than either C++ or Java.>

Then, towards the end of the article, the author says:

<Quite unexpectedly, Common Lisp was the best language overall,...>

How was that unexpected?

comment 5y ago · link · parent

This is so right on. If you care about the remuneration, then you'd best do something highly valued. If you care about doing something you "love" instead, that's manifestly not highly valued, then don't complain about the money.

comment 5y ago · link · parent

I don't think you can state that the vaccines provide a stronger immune response. There is a lot of evidence to the contrary, including this OP. They may provide a stronger single-antibody response as measured at some point in time, but there's no evidence that that results in "better" immunity.

To measure immunity you need to see who gets re-infected and how seriously. Of what I've seen, those studies either show no difference or an advantage for natural immunity.

I don't think the information that natural immunity might be better, is all that helpful. But the growing evidence that it is (at least) as good, is very relevant, since it means vaccines can be prioritized to those who have not yet had Covid-19.

And people who have had it, should certainly not be discriminated against in any way.

comment 5y ago · link · parent

Thanks, that was what I keyed into reading the OP as well.

comment 5y ago · link · parent

The larvae hatch in water, then molt at the surface which takes a while (during which they can not yet fly). That's probably where the chickens find them.

comment 5y ago · link · parent

It seems like it would be a lot of work to keep up with the annual deluge of new APIs and OS features in MacOS that application developers will incorporate pretty quickly.

To really keep the promise of source-code compatibility, it seems like you'd need to quickly absorb all of the new APIs, plus, figure out how to implement them at the lower levels, on a different OS (MacOS is mach-based.)

Of course, the project has doubtless thought much more about this than I have, and maybe have an awesome plan, too.

comment 5y ago · link · parent

It did not require native Americans, lighting could do it just fine.

What was the thinking of these native Americans you speak of? Were they thinking "we should start wildfires because it will be better for the forest over a period of centuries"? Because...?

I agree that the practice of trying to stop these fires results in larger fires later. What I'd like is more information on why native Americans were able to realize and act on this. I'm willing to believe it, but not without some explanation.

comment 5y ago · link · parent

If this is money paid to a person that spends significant time performing a specific service, how is this different from earning money by working? Why are they calling it "universal income"? It's a very confusing idea.

There is already a way to give money to people doing something of value. Just call it a job.

comment 5y ago · link · parent

Salt is something regulated well in all higher organisms. Probably dating from when we evolved in a salt-water ocean. That said, in a modern diet with lots of sodium, but also lots less of other important minerals like magnesium, potassium, etc., who knows?

Probably depends on the totality of the diet, for instance if you are getting a lot of salt "artificially", and eating an otherwise nutrient-poor diet, maybe lowering salt intake is a good thing. But if you are eating a varied and mostly natural diet, so that you're getting a wide variety of vitamins, minerals, sun-exposure etc., your absolute sodium intake may not matter much.

comment 5y ago · link · parent

Keep in mind that when evaluating a research proposal, Facebook will have zero interest in evaluating the "good faith"-ness, or "well-reviewed"-ness of the proposal. And to be fair they are probably not qualified to do that, and would have no incentive to become qualified.

As a business, making a business decision, they'll want know "can this come back to bite us" (and they will miss many of the ways that might happen), and, how much will this benefit us either in money or in facilitating new ways of making money with the new information.

comment 5y ago · link · parent

This looks cool, especially hint mode. Wondering what scroll mode adds though, compared to just using the existing Mac OS shortcuts (or Pg Up/Pg Dn)

comment 5y ago · link · parent

This is what I'm thinking: One day this might be a business. Someone has to pay to remove debris, and I'm just wondering who will pay enough?

Even here on the surface there are places with debris not cleaned up, because the cost is too high.

I think the services aspect is the way to go. Forget about debris. Yes that's a big problem, but it doesn't seem to have a sufficiently motivated customer.

comment 5y ago · link · parent

They shouldn't be that tired working only 30 hours per week. Lots of people work 50-60 hours a week. I would even say, if you could only get 30 hours that frees you up for a second job, assuming the commute is reasonable (which I'm aware it might not be, except it seems these jobs are everywhere.)

You do need to be a person who views working productively to better themselves, as net positive quality of life.

And to be fair, they need a place to shower and wash clothes. Those services should be provided, and certainly in LA and SF plenty of money has been set aside to provide that.

1
121314
23