skysight-inc/HackerNews huggingface dataset:
Your example has a globally defined function sendEmail. Big OOP languages such as java or C# do not permit that style. You must define all functions as a method of an object if you want to follow the OOP style. You are illustrating a hybrid style of procedural and OO.

User : NamedTuple[user: str, email: str, group: str]

func anExampleFilterFunction(any_Tuple_including_User: NamedTuple[str,...]) -> bool

func filterByAFunction(iterable: List[NamedTuple[str,...]], filter_func: func) -> List[NamedTuple[str,...]]

func getValuesFromTupleByName(name: str, List[NamedTuple[str,..]]) -> List[str]

func sendEmails(email_list: List[str], msg: str, subject: str)

Less lines, less cruft, more modular and No objects.

A bit off topic but note that... anExampleFilterFunction can be implemented to filter off of a User and a group at the same time or it can filter off of the email address itself. I could also compose filterByAFunction with itself in an innumerable amount of ways to produce any amount of custom filters:

//a, b, c are different filter functions.
filteredUsers: User = filterByAFunction(filterByAFunction(filterByAFunction(x, a), b), c)
//or
filterdUsers: User = filterByAFunction(x, func(y){ return a(y) && b(y) && c(y)})

The tricks(s) above cannot be done if I had everything encapsulated in objects. Objects are not compose-able. You cannot combine User or Group to create a UserAndGroup filter without explicitly defining a whole new class. Also in the end all a program really is doing is calling functions. Classes are just layers of cruft that have no meaning during execution.
If you want me to swap from SMS two-factor you need to come up with something that’s as easy to use and restore when I drop my phone in the toilet, change my email and what other silly user mistakes I’ve lost my f2as to.
Levi’s will use lasers to ethically create the finishes on all of its jeans
A free market only ideally represents the needs of people if people in fact express their needs. Aggregating user data and using it without consent does not fit that model. There is no obvious reason to believe tracking users "represents the needs of people".
Lets say you own a business. You need someone to clean at night.

If you hire a cleaner directly you don't want to have to go through the hassle of hiring a new cleaner every few months so you pay them well so they will stay. Since they are your employee you probably include them in other items you give to other full time employees, such as profit sharing and vacation.

If, instead of hiring directly, you pay "Acme Cleaning Services" you know someone will show up every night to clean, even if it isn't the same person. The cleaner is no longer "part of the team." Acme Cleaning Services treats their employees like replaceable cogs in a machine, all they do is hire lots of low skilled labor and keeping pay low lets the company get more business.
This is undeniably true, but I understand that the micro-nutrient density is now lower than before, so that to get a given amount of a micro-nutrient you need to eat more calories. It is speculated that this is one of the reasons behind the obesity epidemic of the Western World.
The Suave-Fable-Elmish stack (Made popular under the "SAFE-stack" name) is very nice. https://safe-stack.github.io/

It has the drawback of the frontend language not being as tiny as Elm is, but it has the benefit (which I think is no little benefit) of having the same statically typed language (F#) on both front and back end.

Whether it's "Relatively popular" is hard to say. It's tiny as far as web stacks popularity goes, but in completely functional web stacks it probably has taken a bite already.
This is a great project but it sounds a little ambitious. I suggest stripping down to the bare minimum to make your kid have fun and adding new things over time. I am going through a similar line of development for my kid but I started with a cheap power wheels and decided to forego remote control to let him drive. I started putting him in the car at 13 months and he was able to control steering and acceleration himself and direct himself where to go at about 16 months.

In time order my mods have been:
1. Soft start (R/C circuit, heat sunk MOSFET)

2. Replace lead acid with 18650 batteries

3. Reverse switch (they make these for big fancy power wheels, they just reverse the polarity to the motor)

4. Bluetooth remote kill switch (Lazybone - I don't recommend it, the ios app is crap)

5. Turbo button, adds a 18650 in series with the 2 other when the button is pressed

6. 2 batteries in the turbo button for a total of ~16v

He drives very well himself now, with 2 big issues - it is hard to get him to pay attention to what's in front of him at all times and go slowly around pedestrians (that's where the remote stop comes in), and it's so fast now that I need to figure out how to add brakes (maybe I'll just move him to a real go kart with rubber wheels and mechanical brakes). But he's an excellent driver at just over 2 years old and people are always very impressed. Kids are capable of a lot more than we give them credit for.
something similar..

http://www.bit-planner.com/

its a lego calendar synced to a digital calendar
I'm not sure what the point of this article is, but given that the largest cities in the world are still the most desirable place to live for young people (despite the high cost of living), I don't think the status quo will change anytime soon.
I'd love to work there..
To the Monte team, erights.org is an archeological dig site. We rely heavily on it for historical context and to learn the lessons of our predecessors, but it hasn't aged at all; it's a snapshot into those who came before.
Exactly due to need for availability of variety of fruit and vegetables are where we are today in terms of nutrition and GMO food.
Seems pretty inconvenient that the library you want to use isn't allowed in elm's package repo.

edit: FYI, you have a typo:

> This is represented in Maybe‘s definition: type Maybe = Just a | Nothing.

Maybe's type is type Maybe a = Just a | Nothing
Which patter requires config object and client object for send mail functionality? I read a lot about them and there is none. So, unless you can name it, you are making stuff up.

It is not even about abstraction. I can write func send_mail(msg: str, subject: str, address: str, from: str, server: str, port: num, <following 20 config variables>) and have procedural code with same functionality.

Writing test for every getter and setter will not give you safety at all. This sort of test is completely pointless.
A demographic reckoning for higher ed
The comment on code signing is always a good one to remember: "You could verify that the signature is truly Satan's, but proof that it came from Satan is not proof that it is safe."
Because they mostly go slow and you can simply walk up to the car and stop it. It's not until people modify it to go fast that a kill switch is needed.
> are the valley companies worse then the old gatekeepers of information

Yes, primarily because the regulations regarding media, news, and other traditional entities haven't been applied to tech companies. That is slowly changing as the law is starting to catch up.

It took more than a decade to states to finally start taxing internet purchases across state lines (closing the "nexus loophole"). It will likely take years before we see meaningful regulation affecting google / amazon / fb
Nothing you read in the media can be trusted at all. Everything is grossly wrong or propaganda. This is likely propaganda for the organic food industry. Whole Foods was just bought by Amazon and organic is higher margin, so expect a lot more now that Amazon's muscle is behind convincing higher earning people to spend more on food.
Much of Glasser’s emotional problems seemed to be because he was abused as a child rather than because he has ADHD.

Praising children for proper behavior instead of just punishing bad behavior is good and what schools are moving towards (search for PBIS) but it’s not the same as teaching coping skills to people with reduced executive functioning. Having ADHD isn’t the same as having emotional troubles to work through.
I appreciate that it's quick, and to the point, but still interesting.
I've seen personal stories here about those farmers market people stopping by Walmart before hand... probably can get a nice discount on dirty fruit.
If he was still in the military at that point, then wouldn’t that be an accurate description?
Wow, those images are gorgeous.

"We were warned by our NASA escort to not touch our faces after handling equipment coated in the solid rocket exhaust and to wash our hands ASAP after arriving back at the KSC Press Site."

Next picture: touches exhaust residue with bare hands. Please, use gloves!

"Using a glass filter triples the area that dew can form prior to liftoff."

A-ha, it is time to start building heated glass filters for rocket photography enthusiasts!
It was my understanding that nutrient absorption took time and the use of fertilizers to rapidly grow multiple crops during a season was the primary factor behind the decline in nutrient density in crops.
do you have a link to these lights by any chance?
It's not so much the variety, but the way it's grown. If you grow one tomato in circumstances with insufficient light (or light of certain wavelengths) with lots of nitrogen but insufficient minerals, and planted at the wrong time of the year (something to do with the length of the days and radiant heat - so this varies by location), you'll get different nutritional content from that same seed if it were grown under better circumstances.

Some say there is a relationship between nutritional value and Brix readings of the juice of a plant/vegetable; Brix is essentially a measure of the amount of solids in a fluid. I can't find reliable literature confirming this, and the soil/plant/nutrition scientists I work with don't know either (but they don't dismiss it quackary either - it just seems there's not enough research). Either way, a Brix meter is cheap from Ali Express, and I can sort of (meaning: not properly verified, not sure how it would look when properly statistically analyzed) detect patterns in Brix readings from cheap supermarket lettuce, farmers market lettuce and home grown lettuce (and some other vegetables).

So if this is something you're in to, it's well worth it spending $15 on a refractometer and playing with it yourself. Oh and if you're going to make your own wine, you can use it for that, too :)
It doesn't look like sndio targets the application->application audio routing use-case, nor does it appear to prefer a lower latency audio pull-API. So, it does not look like by design it can be a jack replacement.
Do they? I mean minerals of course must come from the soil, but aren't vitamins and the macro-nutrients created in the plant itself? And can heavy farming really drain so much of the mineral content from the soil that future crops grown there will have fewer minerals? I know crops can drain nitrogen and other gases from the soil, but that's what fertilizer and tilling are for.
Absolutely -- In the end to even invalidate a JWT properly you have to either depend on time (so short-lived tokens + refresh token), or store some sort of blacklist (and then you're back to where you started anyway). The world is probably ready for a microservice that does this that everyone can use -- I saw one on HN a while ago but haven't seen it since.

The big benefit I saw from JWTs was the stateless nature, with the drawback of servers using the same key.

Thanks for the reply! Sleep well.
Why the Hell Is Facebook Surveying Users About Child Predators?
Google's reach as a platform is sufficiently large that it has to be held to certain standards that smaller platforms wouldn't.

Same goes for Facebook.
A more generous interpretation of the quotes around street is that the commenter thought the language on the show was inauthentic (i.e. not real street language).
Contractize – Beta Testers Needed
In what sense is it worse than nuclear bombs?
So much of KC still isn't available (metro, specifically), which is also a large problem.

I don't think most people care when their typical WiFi setup will only get them in the 100-150 real-world range.

As much as I'd love to sign up for Spectrum's 940 downloads, I can't even hit the 200 I'm limited to with any of my internet devices.
I remember reading a study in the NY Times maybe 5 years ago that found no difference in nutrients (between organic and conventional produce) but lower levels of pesticides in organic produce. So while not pesticide free, it is unfair to say they use "just as much if not more"
You forgot the <sarcasm/> tags, I think (I hope).
They also conveniently ignore that pretty much everything is transgenic, the viruses and such that Monsanto uses have existed for a few million (?) years and love to throw DNA around.
Lobbying as a term in the US is pretty synonymous with donating money. If there was a lobbying group that did not donate money you would have to specify that in conversation
Out of curiosity, why aluminum? Isn't steel much easier to work with?
Agreed with the easier comment. Any replacement has to be at least as easy as SMS. I honestly don't think that a replacement which requires an individual app on the phone is going to reach the same levels of use as SMS.

Google Auth style rolling OTPs get frustrating anytime there's a poor server implementation - where time drift is not well accounted for. I've had my company VPN reject valid tokens too frequently. 30 seconds, plus any drift in time (insert general rant about setting up VMs without ntpd), is just not always enough time.
My new best friend TypeScript
I have no idea what surf the voices mean. Or voices that we did not hear until recently. ¯\_(ツ)_/¯
Do you mean large, as in a large percentage of the whole population? Or a tiny fraction of the population, but which still makes up a large number of people because there are so many? It's hard to believe it's a large percentage of us are really that weak-minded.
Yeah, don't throw out that TV air antennae yet. If if you're networking is doing fine, major broadcasting stations still can't seem to get live streaming at scale right.
and the essential phone, that had a notch before it was cool
Imagining sinister ulterior motives behind an innocent question seems like something a conspiracy theorist would do.
No wonder, what with all the health problems us cube monkeys keep getting as well.
PetroChina was the first trillion dollar company : http://www.nbcnews.com/id/21635325/ns/business-world_busines...
> putting quotations around the word "street" implies a certain attitude about urban culture that I'm going to assume you don't actually wish to convey.

I read those quotes as simply indicating that they weren't sure if "street" was the most accurate way to convey what they meant (urban, etc.). It is common to use quotes around a word that is an approximation of the intended meaning.
Or another cool idea use .preinit_array for shared bins and .init_array for static bins and inject a .seccomp, .unshare, etc section that gets called in the preinit, init. This way you can support both shared and static bins with a tiny size increase.
What are the animals’ role? Fertilization?
Thank you for kind of psychoanalizing that.

The motivation behind attacking tech giants (at least in my case when I bash Google or whatever), is mostly to show others how ethic I am and consequently to feel good about my worldview. This is, virtue signaling in purest form.

Meanwhile, I'll stop my signalling hamster for a moment to say that Google has maybe been the single biggest net positive to the society among all corporations ever, mainly because of the ease of access to information that Search provides, that propelled Internet to became ubiquitous and grease many wheels of information storage and transfer that were mostly manual and hard to scale (this is, to broadcast to many people at once).

This new paradigm has his problems, disruption of previous model of society being one, but is the best way forward I know.
I use a lazybone bluetooth relay for my kid's power wheels. I would like to find one with a better iOS app, though, the lazybone app is very unreliable and crashes constantly.
I hope it's not too late to change the title. A yes/no question is against HN guidelines.
I'm not a stickler for "whom" and would probably get a lot of use cases technically incorrect, but "who do you trust" is one that definitely sounds wrong to me.
I see it not as a notch but some bonus bits of screen for the clock and signal/battery status.
This response misses the point. Shopping is not search, and refusing to carry an item in your marketplace is not repression of free speech.

Consider that Shopping does not carry something else controversial - pornography. Yet, you don't see conservatives get up in arms, demanding that Google start listing it on shopping. Odd, that.

Google is not interested in making money from selling pornography. That's a decision it has made. They could also make a decision to only make money from selling Kosher food, and you'd have no leg to stand on when criticising that.

A marketplace is not a town square. If a marketplace does not want to sell your product, it doesn't matter if the disagreement is political or economic. It's not censorship.

Just because someone can sell guns in America does not mean you are compelled to help them.

Just because you can participate in Nazi speech in America does not mean that it's a big controversy that Norderstrom or Goodwill refuses to carry Hitler Youth hoodies. Freedom of speech requires freedom from compelled speech.
Nobody got fat on carrots. This is silly.
pass for ios can do the google authentication role while being much easier to manage and secure
Of course, Trump is just the latest in a long line of folks who have put sectarian politics ahead of the long-term needs of the economy. As one of the people who would be directly affected by any sort of outage in the tunnel, I'm pretty well disgusted. The problem should have been solved long before Trump ever took office. But as the article points out, we largely have Chris Christie to blame.

If the Northeast Corridor fails, the amount of real wealth that would be destroyed is staggering. It would almost certainly put me underwater on my mortgage. I'd have to imagine default rates would skyrocket, railroad town economies would go into recession. I'm at least lucky that I can do my job just fine from home and that the PATH offers me an alternative route to the office.
CIOs insights on the role of microservices in their Enterprise mobile strategy?
Your son is going to get all the honeys.
I actually thought of doing something like this once upon a time.

Isn't it part of the law that you should have a record from where the person is? do you store that or sign such info in any way?
Wiby – the search engine for old school websites
> But how would you carry a model like that over to a place as big as the USA? Montana, Wyoming, Texas, Oklahoma, Kansas, and just about every state that isn't on the East/West coast would have an incredibly difficult time executing this kind of plan because of the distance between communities.

https://en.wikipedia.org/wiki/Rural_Electrification_Act

> I'm not saying that a similar model wouldn't be easy to implement in the boroughs of New York, Boston, SV, Austin, etc.

Oh please, the village I'm talking about is not a borough of a major metropolis, it's a small rural village, the closest thing which could be construed as a city has a population of under 50k and is 20km away.

Boston and Austin have metro populations in the millions, there's barely 6 cities in all of France which reach that.

> you still have 20% of Americans living in not-urban environments

Oh good point, let's check the percentage of rural population in france. Hey look, it's 20%. Wow, probably an outlier, let's check Germany. Oh, 24%. Maybe Spain? 20% again.

And these are highly urbanised countries mind, Ireland and Portugal are sitting at 36% rural population.

> The USA is just a very, very big place with populations, even urban, that sprawl and are not condensed like in London, Paris, Munich or other countries in the fiber fight.

None of London, Paris or Munich are countries, they're major/capital cities inside countries which have their own non-urban populations.
Maybe he changed his perspective over the years?
Some cheapest SoCs still don't have GPS receivers
>Rotation is important, but rotation with animals seems to give the very best results. It is the model that agriculture grew up on and something we have lost (somewhat) recently.

Again from a naive standpoint, it sounds like that's an issue that fertilization is supposed to supplant. Are there other observations outside of that you could point to?

I'm asking out of sincere curiosity at this point. Also what part of Ontario, if you don't mind me asking?
> I'd still say employers need to be held accountable for how they treat part time workers though.

Sure. I just think the best people for that job are the workers themselves. Making less of life dependent on full time employment will give employers less leverage over employees.

> ...even if things like benefits were fixed, holding two or three part time jobs can be extremely difficult.

It can be. But it can also be simple. You could work Mondays, Wednesdays, and Fridays for one boss and Saturdays for another. Or you could work on a mostly commission basis for two different bosses. The challenges are typically where bosses are getting away with getting something for nothing. There is no minimum wage for "be available these hours" or "get approval before taking on another job".
Indeed. And I hope the author has no intention of having children.

Because having children is a guaranteed path to missed opportunities, compromised goals, and a decreased bank account. It's what comes with raising kids - because it's not all about yourself anymore.
If you're going to rant about how the word has taken on new definitions at least be accurate about how it was used.

Pimping my son != Pimping my son's ride
Being a NJ resident close to NYC this whole tunnel debacle has been infuriating, but I can think of one positive that may come out of some catastrophic tunnel failure.

If one of the tunnels does eventually collapse or otherwise become unusable, companies may be forced to adopt a long term remote work policy for the huge number of NJ->NYC commuters that would be impacted, at least until a new tunnel is built or the existing ones are rehabilitated.

I want companies to be more flexibility in regards to working from home... I wouldn't want to work from home every day but honestly doing it 2 or 3 times per week would be glorious.
> People need to wake up and realize
Clearly you have considered their arguments and respectfully disagree...

> organic foods are not just about decreasing one's exposure to pesticides - its about saving the soil so our Earth can produce food!

Great - I love eating! But do you have any evidence that "organic" as a label actually supports saving the soil? I can find evidence that organic shoppers desire that result, and I can find claims that "natural" fertilizers and pesticides "are believed" to better for the soil, but not much evidence.

Like GMOs, the "organic" and "natural" labels are so broad as to be useless if you are trying to talk about common truths.

I support sustainability. I oppose animal cruelty. I support consumers being able to make informed buying decisions. I'm not convinced the labels we have now actually promotes those goals.
Why you need a coming soon website before you launch