Better HN
topnewbestaskshowjobs
Log inSign up

inanutshellus

2,950 karma · joined Apr 1, 2014 (12y ago) · 989 submissions

Submissions

comment 2y ago · link · parent

... and once you've switched to INNER JOIN, the next question is "when is it appropriate to add to the JOIN clause vs WHERE clause?"

as in

    join orders returns on returns.original_order_id = orders.order_id
    WHERE       <-------- Should order type be in the WHERE clause?
        returns.order_type = 'RETURN'
vs

    join orders returns on returns.original_order_id = orders.order_id
    AND       <-------- Should order type be in the JOIN clause?
        returns.order_type = 'RETURN'

One argument was that JOINs are specifically for tickling indexes and only for structural joins between tables, not for describing the table itself, so it should go in the WHERE clause. ("ALL context should be in the where clause.")

One argument was that sometimes a definition is limited by context, so strategically it makes sense to add to the JOIN clause. ("the `returns` alias MUST be limited to return orders, so it should be in the JOIN"; you'd have to adjust your indexes to account for the "order_type".)

comment 2y ago · link · parent

> unfair considering the global impact to yield

The Monsanto stigma is well-earned by its legal teams, much to the chagrin of its many Monsanto biochem employees that saw (and see) the company as a creator of good in the world.

comment 2y ago · link · parent

Any team replaced for cost savings is going to feel insulted and demeaned.

Them whinging is not them being entitled or intending to insult you, they're just defending their self worth, just like you're doing by defending the jobs having come to your area.

Imagine the team had been replaced by fresh college greenhorns using the same seats. The rhetoric would still be the same outrage and resentment.

comment 2y ago · link · parent

Remember the context of my quip is in reply to "I don't see the value in the ring, just buy a $1200 watch and phone combo and make sure you charge your watch while you're out living your life, not when you're asleep."

Still seems pretty clear as to why someone would find value in the ring. Another poster says he charges his ring while he showers. It's that quick. I'm not knocking smart-*, just reacting to the dismissive "why would anyone want this" attitude of GP.

comment 2y ago · link · parent

Everyone I know that has a smart watch charges it overnight. How do you propose using it to track sleep?

comment 2y ago · link · parent

"Before Present" seems foolish.

The document that uses it then has to then be dated.

e.g. "I warmed up dinner one minute before present" ---> said ??? minutes ago. --> is dinner still warm? who knows.

I get that "about 7,000 years ago" is still going to be "about 7,000 years" for a very long time.

Still. Seems shortsighted to communicate dates via a moving target, especially for something that's already supposed to be thinking in very long terms.

Archaeologists, you'd think, would expect their words to stick around a long, long time, why would they use a short-sighted dating mechanism?

comment 2y ago · link · parent

I'd like to see what you make! I see the value in the flow chart, especially the pie you linked.

Regarding the CfE multiple descendants problem, it's not really a problem.

    +-----+----------+-------+---...
    + Egg | separate | White | etc..
    +     |          |-------+---...
    +     |          | Yolk  | etc..
    +-----+----------+-------+---...
or you'd just start with "1 egg yolk" and "1 egg white" for your recipe. Or you'd say "See meringue below" or... some other answer that you like.

Whatever, we're humans, we roll with it.

If the recipe somehow gets too complicated, you make two separate tables, like they did for the recipe above.

comment 2y ago · link · parent

Very much reminds me of a Kids in the Hall skit from ages ago. Two guys are at a party, one says "hello", the other says -- in perfect English -- "Sorry I don't understand you, I don't speak English. please don't beat me up." The first guy assumes it's a joke and plays along until he gets annoyed at the perfect accent and responses ("no really, I don't understand what you're saying, nor what I'm saying, I've just practiced this conversation a lot. please don't beat me up.")

Eventually the first guy tires of being mocked by this guy claiming not to speak English and beats the guy up.

Totally hilarious example of what you experienced taken to an extreme.

comment 2y ago · link · parent

Every culinary professional I've ever met proudly proclaims their independence from measuring anything. It's all tasting and experience. "I add more until it looks right." Like ``it's not "3/4c of flour", it's "start with half a cup of flour then keep adding until it looks and feels right".``

As to cookbooks... it's tricky to both not insult the reader and also not waste folks' time.

Like HGTV used to smugly, proudly educate their viewers on how cool and easy it is to remove the pit from an avocado. Then at some point during their "next food network star" show a contestant did that and the hosts rolled their eyes. "Everyone that watches Food Network knows how to do that. Move on please."

comment 2y ago · link · parent

Tangent on representing recipes - Always loved the "Cooking for Engineers" guy's recipe notation (scroll down to just above the comments), they're so clever and concise:

https://www.cookingforengineers.com/recipe/168/Pecan-Coffee-...

comment 2y ago · link · parent

Coming soon: Let your mower recite your mother-in-law's name, followed by "Muahahahaha" and a sudden speed-burst to 40MPH. #badmovieideas

comment 2y ago · link · parent

The article doesn't explain what happens when it "sings", though.

The title made me imagine the engine revving such that you'd hear different notes but... this is not a normal mower, it's a smart mower with a mobile app; computer with a blade. It could probably play MP3s for all I know.

What does this actually do?

comment 2y ago · link · parent

I'm guessing a CSS file didn't load for you? It looks fine for me.

comment 2y ago · link · parent

Yep, I had a similar thing happen. I asked it to give me a set of regexes and after spending a couple minutes trying to correct it, I just wrote the script myself. It's neither useless nor the all-seeing eye. Instead, it's just a tool.

comment 2y ago · link · parent

Feel free to not use it, it's your time.

Some recent examples:

* "I installed windows and now I can't access my linux partition" * "I want to add an `in` variable to an existing pl/sql function, can it go on the end of the parameter list? (Answer: No, because...)" * "What size soccer ball does AYSO U10 use?" * "what is the name of that python library that handles command line arguments, and could you provide an example that demonstrates required flags?"

nothing earth shaking. not things that're impossible to find, but... instead of reading someone's blog post in which they work as hard as possible to belabor the point so you'll scroll through all 14... this thing just gives you the answer.

comment 2y ago · link · parent

Yes, we've all seen unhelpful help bots.

There being negative cases don't mean the prolific amount of positive cases don't tell me the world has shifted.

Seriously I was very skeptical of using ChatGPT, worried it'd give me bad advice but I keep not finding quality content in google searches ("Hey googz, what's the flag in a bash if statement that verifies a file does not exist? --> oh here's a page full of every possible thing bash can do") and i ask ChatGPT and it's just bam, the answer.

It helped me recover a crashed harddrive, verify how `in` and `out` variables work in pl/sql functions ("yes, all `in`s have to come before any `out`s")... it's just so right so concisely that, like it or not, it's here to stay.

comment 2y ago · link · parent

You're kidding, I assume? Or maybe you misread "workflow" to mean something like "work-life"?

For sure more than a single-digit percentage of people have tried a Q&A bot by now. Shoot, Windows just updated to insert Copilot into users' machines, with the icon right next to the Windows button. It can't not continue to grow. It's such an amazingly effective way to get information versus scouring through web pages.

comment 2y ago · link · parent

Sure. I've used `say` on macos (spd-say for linux) like so:

    mvn clean install ; say "Done"

It's great for those build times that're awkwardly long. Just long enough that you get bored waiting, too short to accomplish something else in the meantime. So you crank up the volume, load up HN, read an article and "DONE!" OH HOLY SHI--. Back to work.

that said it sucks to set up that flow when you /sometimes/ are around other people. it's pretty jarring if anyone can hear it, so you just wouldn't do it in a tight-collab area.

Usually though they're SUPER annoying so eventually I weeded them out of my workflow.

Would not recommend using sounds in development.

comment 2y ago · link · parent

Presumably because it's still providing value. It was originally about mass collecting voice data so they could train their speech-to-text capabilities with various dialects.

Dialects are always in flux and there are plenty of languages out there they haven't conquered, so ... I'd guess they're just leaving it running to detect new speech or languages or dialets or ... personal data gathering or... ?

comment 2y ago · link · parent

IIUC, you're not missing anything though your interpretation is off from mine*. He wasn't saying it'd be hard, he was saying it should be done.

* my understanding was simply that the regex would (A) recognize `[a-z][A-Z]` and inject optional _'s and -'s between... and (B) notice mid-word hyphens or underscores and switch them to search for both.

comment 2y ago · link · parent

Crisis inherently implies rarity. If every day for sixty years is a crisis, it's time to reevaluate bigger life choices. Feels like we're just having fun poking invented holes rather than arguing in good faith here.

comment 2y ago · link · parent

No the problem is overproduction. Storing grain would give you even more grain, further increasing the crisis (which is price, not availability).

comment 2y ago · link · parent

The intent was to strategically react to crises, as opposed to the existing perpetual (60 years and counting) bribe program.

Strategically/rarely buying and dumping excessively cheap grain would bolster farmers' livelihoods, prevent price collapse, and... some fish get fed one time.

comment 2y ago · link · parent

With the policy being active, non-stop, for 60 years (as opposed to temporary incentives to buoy farmers during a bad year) it's clearly politicking. Especially given the sleight-of-hand from the Abe administration (as mentioned in the article) where they claimed to kill the subsidy but actually only killed its limitations. In short - not sure why you've been downvoted.

comment 2y ago · link · parent

then... you could dump it in the ocean and feed fish to help the fishing industry (which arguably would be a wise thing anyway given Japan's love of seafood). IIRC the USA did (does?) that with corn.

comment 2y ago · link · parent

Yes but per the article, this policy has been active for 60 years. They're not temporarily buoying after a seasonal surplus, they're just paying farmers not to farm ..... for generations.

comment 2y ago · link · parent

I read a sci-fi book about this a while back. The protagonist's wife dies of some malady and so he has her cryogenically frozen. He then wants to freeze himself and have himself thawed once her malady could be cured, but realizes no one would ever wake him as-is. So he pivots his career into interviewing pop culture folk from all over the globe and publishes the interviews.

Eventually some rich guy thaws him out so he can learn more about his interviews and he goes on from there trying to cure-and-revive his wife.

IIRC he keeps freezing and thawing himself throughout millennia... can't recall the name of it though! Arg.

1
111213
33