skysight-inc/HackerNews huggingface dataset:
You have a top-level component whose render function retrieves the current URL, checks it against a bunch of regexes, and based on that decides which "page" to actually render. The regexes capture "parameters" in the URL with capture groups, and they're passed as props.

You also have a few (single-digit) lines of code to wire up the history API so that the back button works.

You have a tiny helper function that uses the history API to directly navigate to a URL inside your application.

You have a tiny Component that renders an <a>...</a> whose onClick calls that helper function.

I'm sure React Router does a lot more than this. I mean, it'd have to, right? It's so complicated. But I don't know what those things are, because until I'm forced to, I'm not going to bother with it.

Similarly: I appreciate flux and think Redux is a reasonable implementation of it, but at this point, after doing a couple applications with it, I'm going to get as far as I can with a simple EventEmitter and hierarchical state before I bring it into a project. For straightforward applications --- really, a pretty big chunk of the apps I see are fundamentally straightforward --- I don't think it's a win.
But Google and Facebook are constrained and bounded by the popular will of the users.
Cringey long-winded ass kissing pile of Apple worship. He sure loves his Apple products, they touch him on a deeply emotional level.

He elevates 'Sir Jonathan Ive' beyond mere human to a realm where normal human behaviour is worth writing about...

"As Jony posed for our cover shot against a scrim, the photographer, a friend of his, made a few jokes. Jony laughed. Not because he had to, but because he thought they were funny."

Apple fanatics are getting worse.
Advice like this is similar to telling a depressed person to just be happier.
The problem is it affects two way communication. You might be okay with the trade off, I am not. But you may subject me to it.

While a few niche businesses will make news stating they'll reject robo call based appointment scheduling because they care about their actual human employees, most will just accept it. The employees won't have a choice and will just be subjected to this.

Same for email. I want to hear from people, not Google. I'm perfectly content just purging people out of my contacts who let Google do the talking.
So from a podcast I listened to from a few years ago of this same guy in software engineering daily, their base services were still in java, while the services that were closer to the user experience were being transitioned to nodejs. He even said that probably completely new back-end services would still be done in Java if they were not really tied to the UX. I don’t know if this is still true today though.
That was a response to your statement that the relevant research has been done.

I don't think it has. We still have to figure out ways to lower the cost of storage.

You're saying it is cheap enough that we can now mandate it?

It should be cheap enough when purely green energy is superior to any other source. Solar alone is cheap, but not solar + storage.
The article says it will add $10k to the home. On a 30 year fixed rate mortgage at current rates that's $50/month. Subtract out the savings on the electric bill, and it probably won't be reducing affordability much, or even at all.
Correction, this was done on CentOS 7.3.x (not CentOS 6 as I had incorrectly first noted), and the following versions of bash and grep:

"GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)"

"grep (GNU grep) 2.20"

So where $data is a newline delimited list of items/patterns:

grep "${data}"

..will indeed match each item/pattern individually and grep over each, eg, just as grep -f does against a file with a list of patterns. It doesn't work without the double quotes, and putting the echo in front was obvious derp in hindsight. See my comment where I replied to uraza and demonstrated this.
> From a certain point of view, they were strong armed thru by activist judges and politicians who were violating the popular will.

Not just "from a certain point of view", Obi-Wan: The whole point of a constitutional system is to check the majority, to say that some laws are impermissible, no matter how much the majority wants them, because they violate some principle we regard as more important than majority rule.
He never figured out how to use bookmarks.
Yes, of course, having younger siblings is exactly the same as being a full-time live-in babysitter.

Did you know older siblings don't even get paid for the work they do?
Show HN: Kosmos – Homework Help Chat
Hi all,

We're committed to making it easier for students to get help with all school-related things (mostly homework). We launched a text-based tutoring service in January (called Humbot).

We've learned some things since then:

- Tutoring is not something students want; it's mostly something their parents want

- Therefore, it's a shitty experience for students

- The need for tutoring is a consequence of students falling behind in school (part of which is caused by not being able to do homework). We want to fix the cause, not the symptom.

- We thought homework help is also tutoring (which it is in theory), but students don't see it as tutoring

- They need instant help when they are stuck with homework

- Paying is usually not an option (even small amounts) for teens

- Teens don't really care if an MIT grad tutor helps them or some random, as long as it's instant and free (and makes sense to them)

- The interaction of a chat is a game-changer compared to "static" homework help forums, where there are almost never follow-up questions because it's just not dynamic enough

With these learnings, we launched our new app, Kosmos last week. It's available for iPhone and Android. It kind of feels like a Slack for homework help, however currently it's more a chat-based Reddit (with only one community and but subject-related channels). Or, if you're feeling nostalgic: A chat website with chatrooms :-)

Since launching last week, we already have ~600 downloads and ~60 daily active users.

It's pretty basic feature-wise, but we wanted to launch quickly. We're adding more features every week, and in general, our goal is to make it easier to post and discuss questions. Obvious things are a whiteboard feature and a graphing tool. However, threading, etc. will also be important.

Check it out: https://kosmosapp.io

Curious to know what you think.
Well I can...but how can I prove that to you?
Considering that everyone's text forms a unique signature given a couple of sentences, having the option (nobody is forcing you to use it) to have a bot compose emails for me seems like a sort of anonymity gain.
I tried to fill out the NCTUE freeze page several times, it keeps claiming there is a reCAPTCHA error despite me clicking it out correctly and getting the green check.

Seems to be intentionally broken to avoid people freezing.
Wage Stagnation in Nine Charts
The reason is that "the market" is made up multiple exchanges and to make a trade you need to do it on a specific exchange, but stocks are spread across all of the exchanges so if you need to make a big trade you have to send the trade order to several exchanges at once.

The problem is that HFT firms will see the trade hit the closest exchange (in terms of network latency), and then rush out to buy out all of the remaining shares of that stock at that price on the other exchanges (beating you because they HFT better) and relisting them at a higher price.

HFT firms will tell you that this is perfectly acceptable behavior because if you then buy the stock from them that the original person simply wasn't charging enough for it. They will also tell you that it improves liquidity, but that doesn't make sense either. It's not like they're sitting on the shares keeping the markets moving. All it does is add a tax to trades.

IEX delays the transactions just enough that the nanosecond advantages that HFT enjoys can't be used to front run trades.
Why can't they just wrap it into Electron or Meteor and go full circle desktop-web-desktop, all in C++, just eating a few more gigabytes for V8? It's so super enjoyable to see Chrome header, buttons etc. on top of any desktop app, really!

Something in our industry went horribly wrong, investments going to self-serving "innovations" instead of needed areas.

This is probably an attempt to turn a full-blown desktop app into a SaaS-bound, remotely-delivered app without much concern for users. I guess we will have to get used to it; next is likely going to be Photoshop & co.
That's fantastic. “dictated not read.” means "I didn't have time to check that this is correct, please speed extra of your unimportant time to proofread for me." What a birthday gift!

To be fair, though, if the message was nice, dictation is t
really an alternative to a telephone message which is also dictated but not so derided.
What Earth Tells Us About Life, Intelligence and the Universe (2013)
This comment already seems quaint after having seen the Duplex demo.
Thoughts about picture "The APMs at a social event in Napa"?

The lady is kind of left out. Not sure if it's american hover-hand culture, but to me it looks one of the problems.
There is a large category of users, for whom effortless access through a browser offers great value. For example, in the AEC industry there are lot of roles where one needs to access the 3D model for review purposes and not modeling itself. For these roles a webapp that is quick to open offers actual value (and is not just a cheap gimmick from the vendor).
https://i.huffpost.com/gen/2271298/thumbs/o-ROBOT-HUGS-570.j...
Some time ago we moved into a new office and I placed myself next to the only girl in our tean. Shortly after I felt a little creepy but she actually seemed to appreciate it, also because she mostly got non-technical tasks. So I also thought some technical collaboration would be possible, in fact we once talked about that.

Anyways, a week later the rest of our team moved in, placing themselves at the other end of the room from where we were sitting. So the other day my boss approached me and said: hey look, why are you sitting here? Move to us. Yay, now I'm sitting in the corner and I can talk to nobody!

Long story short, WTF. Other people make sure you feel creepy, if don't do already.
You are going to produce more as you get older and more efficient, not less!
What is this phenomenon called? I've seen it plenty of times; there must be some research etc on this.
> I just don’t see how that could be.

I'm not sure what you mean? Why would the women be inherently attractive as lab partners?

Many men in the lab would probably think that the women would be weaker, or wouldn't know how to interact with them, so wouldn't want them as lab partners.

And the men may have a higher chance of knowing each other already from outside the class in sports teams and fraternities, so they would team up with people they already know rather than someone they didn't.
Now they are ready to port the WebAssembly to run in Electron.
Which also corresponded to home PCs and gaming consoles becoming common. So computers became more about a hobby with often limited social interaction as opposed to being solely about something that college students and adults pursuing computing as a profession did.

Which arguably also led to this idea that if you haven’t been doing computing recreationally since you were a kid you obviously are not
Passionate enough to join $disruptive_startup.
From within Python, all objects are supported by default. If you can parse it, you can glom it. You can even register additional behaviors for specific types to keep your specs tight: http://glom.readthedocs.io/en/latest/api.html#setup-and-regi... (example: http://glom.readthedocs.io/en/latest/snippets.html#automatic...)

The CLI is in a pretty preliminary state, usable but not as robust as it will be in a few weeks. It only supports built-in parsers (JSON and Python literals) What formats are you thinking? YAML?
Wouldn't it be valuable to know if your trade actually occurred?
I simply mean having a contract indemnifying the company against GDPR, e.g. the user giving consent, to simply use the site.

Same as the cookie situation Europe has, but more so.
Because the free market gave us a ~2°C increase in average global temperatures.
I have about 20k bookmarks.
Solar panels are vastly more effective than a shade tree for keeping a home cool.

The geometry of trees and solar panels changes with latitude, but in California you can still have tall trees fairly close to your house while using solar panels. Further, roof panels can also shade your roof though with proper insulation that should not be significant.
>Any language in the area of discourse is a Turing-complete language. Therefore you can do anything you'd like to in any language.

Well with that argument, learning brainf*ck in depth should give you all the programming experience you need to solve problems efficiently :P

Learning even the basics of a functional programming language for example (Haskell in my case) lead me to understand why things are the way they are in a few other languages. Sure you can write some solution in a few nested for loops, but why not use a list comprehension if it's more clear and less error prone for the situation? Specializing in one or two languages isn't a bad thing, but I would argue that learning even just the basics of other languages is beneficial. Understanding what tools are out there and what they're best suited to is a good thing if you ask me.
I'm a homeowner in southern California. I've looked into it and a solar system would cost me about $15k and it would pay itself off after about 8 years.

However that assumes constant price conditions. If there's a glut of solar installations, prices for daytime generation may fall to where it no longer offsets all evening/night consumption. Once that happens you're forced to either invest in extremely expensive battery storage, or the breakeven date gets radically extended out into the future.

Overall, it seems like a pretty "meh" investment. The people doing it are the environmental True Believers(tm). I'd rather put the money into a new bathroom at this point.
A computer is a bicycle of the mind: Steve Jobs
Mithril is conceptually very close to React (it was released a bit after, but developed independently), and it comes with less cultural baggage.

It can be used productively with plain ES5, thought it also supports JSX and ES6 constructs (or even TypeScript) if you like it. I'd recommend TypeScript for large apps, actually.

The API is also closer to the plain DOM (e.g. no synthetic events). More advanced uses of the lib will lead to learn common Web standards (JS/DOM) rather than framework-specific idioms.
It’s hard but eventually clicks.

Create-react-app has made it infinitely easier to learn.
Substantial? Not really compared to truck transport or even cars. Or especially not when compared to electricity generation.

Two cans of soda take more energy to make. (Because metals are extremely energy intensive to refine and recycle.)

The main environmental killers are still means of transport. A car is a ton of metal... Housing also demands plenty of energy in materials.
The hardware is cheap nowadays compared to the software. Any sub-1k dollar/euro PC will handle most things one would use Autocad for. It's the software that is expensive.
Do you think your mom reads more than the CEO? Orperhap CEOs have other obligations so they don't have time to read a whole document in depth. If CEO could do everything alone, there would be no employees. If your mom can do everything alone, she should start a company and get rich off cost savings.
Also notice that even though she had the option, she didn't approach anyone to try an secure a lab partner. She posted her own position opening and waited until all spots were taken. She could very well have clicked on anyones post and that would have been the end of it.
It's a chicken and egg question. People don't know they want it, but they can't find out they want it either. I don't mind javascript or ads per se, but the bandwidth and processing requirements of modern ad-heavy web pages are becoming unmanageable for me. My breaking point is where, even using WiFi at home all the time, I am still going over 1GB a month for my cell usage away from home. And equally as important, pages are infuriatingly slow on both laptop and phone, even though I have a relatively recent and high powered phone.
I've had autocomplete seem to deliberately try to break me up with my girlfriend. I don't have time to dig up the most egregious of those. Here's one that happened just yesterday with my wife:

Wife: Thank you. Love you too.
Me: Are you going to be honest nary?
Me: Hungry
Me: Darn spell check!

My wife, having grown up in China, still didn't understand and I had some 'splainin to do when I got home.

It's absolutely terrible when I've typed exactly what I want, but then the autocorrect substitution happens just before I press send. There's something that seems infuriatingly patronizing about this.
Why would you borrow money to get a car? It's a depreciating asset. If you have to borrow money to get a car, you're buying too much car.

A house, you probably will need leverage for, but at least there's a reasonable chance it will appreciate in value.
They wouldn't call the cops, they would call the FCC. If you keep doing it they will catch you.
I think Design Pickle does this?
Apple Watch was the initial reason for me to switch to iPhone.

Android watches were all obscenely huge and bulky (I have little tiny wrists) Apple came out with a good looking watch in a smaller size. I've been with iPhone/Apple Watch since.
I have a hard time believing your anecdotal data point about a third person is enough to claim a person exposing their own experiences is wrong.
They don't need to be short. They just don't need to be long.
I have a blog. It's a set of static pages, generated offline and served via Nginx. There's nothing dynamic there and the content is perfectly readable in lynx.

Once in a blue moon, I want to add a screenshot or other image to a post. Such images are of various sizes, mostly larger than the (max)width of the content. I use CSS to scale them down to fit with the text, but sometimes images displayed like that are too tiny to be legible. For a long time I handled this case by wrapping <img> with <a>, basically like this:

<a href="$IMG_SRC"><img src="$IMG_SRC" alt="" /></a>

It works, and I like it, but it has a couple of drawbacks, most important being that it's kind of intrusive - by clicking it, you change the current url, and when you get back, even if your browser scrolls the page correctly, you need to find the place where you stopped reading.

At some point, I gave up and included a bit of JavaScript, which enlarges the image while you stay on the same page. I used some kind of fancybox derivative - a jQuery plugin.

Now tell me that I should've used React.
I know the feeling.

Something society doesn't accept that attraction plays a huge role in social development at a young age. An "ugly" person is not likely to develop the experience needed to feel comfortable befriending a member of the opposite sex at a young age. The other person can't help but be uncomfortable with the idea that you might be romantically interested in them.

It gets better with age though. I've found that telling women I'm married makes them much, much more friendly and engaging.
Atmospheric seasons could signal alien life
- What [political figure] is doing is making ...

- I think [political issue] should be ...

- Children must learn that it is always ok to ...

- Society should be ...

- The best thing to do with protestors is to ...

- [ethnicity] are always ...

Serious question. What is supposed to happen for these cases?
Fair enough. I'm not particularly qualified to speak about React Native, having only done toy apps.
I just want an airflow that runs reliably. My experience with it is extremely unreliable results.
https://en.wikipedia.org/wiki/Bretton_Woods_system

45-72 was bretton woods era which was still fixed price to gold.

It was only after 1972 that the value was allowed to be free floating, not tied to an amount of gold https://en.wikipedia.org/wiki/Nixon_shock
I remember students in my class barely passing comprehensive reading tests. I find it hard to believe that they've improved without the pressure that school/university puts on them.
I found the web version unusable and had to revert to the desktop app. Buggy user interaction was a deal-breaker.
This is the most influential book I have read in my SE career. It's not a LISP book. It's a book about programming fundamentals. E.g. Objects are covered as well. They even build a register machine at the end.

I think a translation to a more modern language (lua!) would boost adoption quite a bit.
There are lots of opportunities for outreach, if you look for them. From the article:

"Include her, ask her for advice, introduce her, learn about her work and her life in the same way you would with any male friend or coworker. If you’re an investor, professor, journalist, or manager, take it on yourself to sponsor a young woman’s career."

I've done a number of those things over many years, and found it very rewarding -- both in the interactions with my individual colleagues, and in how it affected the wider teams.
On top of individual expression, I'm also curious what the longterm effect of all of these 'handy tools' is going to be on our cognitive abilities. There was study from Microsoft indicating that our average attention span has decreased some 33% just since 2000. And 'Google Brain' - where individuals have ever increasing difficulty recalling information, instead supplanted with where to find things, has also been academically confirmed. [1]

These are some pretty serious effects for things that are less than a 2 decades old. And it's likely that we've only scratched the surface of conveniences to come. I'm not sure if we're headed towards the Borg (or more accurately the Bynars for any other TNG fans) or Idiocracy.

[1] - http://scholar.harvard.edu/files/dwegner/files/sparrow_et_al...
Just in case anyone was curious (I was)
$1500 in 1983 is
$3758.34 in 2018
If I know anything about college psych experiments, the woman was an actor and the study was about your reaction to seeing her cry.
Ya. You reminded me that any Excel clone (or interop) has to reproduce Excel's bugs too.

No fun.

Ages ago, I was buddies with a guy (Dale?) who reverse engineered DWG, which I think became the code dump for the Open DWG Alliance, which may be this group today https://en.wikipedia.org/wiki/Open_Design_Alliance, though I don't see McNeel & Assoc listed (Rhino3D).

Dale worked for a graphics card company, Appian?, writing drivers and file viewers. He'd reversed DWG to write a wicked fast viewer. Just like those guys from Atlanta (don't remember their names).

I now dimly recall that Dale's team had to also reproduce AutoCAD's rendering bugs.
I like (1) The unix programming environment

It's very old and underrated. Many people have problems getting started with the command line and basic UNIX tools.
This is _THE_ place to learn about this.
Don't use Redux if you don't need it... Context objects are really easy now, and create-react-app hides the complexity of Webpack.
It seems to me with relatively minor tweaks there should be a sustainable product. Like maybe you can't repeat the same move within a week or something. Because for the vast majority of movies there's a lot of empty seats and empty seats mean no overpriced snack sales.
Then there's Elon Musk...who is apparently thinking about a new company to sell bricks made from the mud from his tunnel boring company.
Well, yeah, clearly they GOT to fix/replace them. I have no idea what the budget for that would be, but seems plausibly outside of _easy_ fix.
There's also mobx which imo is even better.