skysight-inc/HackerNews huggingface dataset:
I cut my teeth as a developer on PHP, back in the 4.3 days before they'd really placed their bets on OOP, and we were dealing with mysql_real_escape_string, needles and haystacks, and haystacks and needles. No PDO, XSS and SQL injections up the wazoo.

I can't say I enjoyed working on any of those projects compared to the kind of stuff I do now (and how much I've learned since), but I've been remarkably surprised by some more recent codebases, despite the architecture sometimes feeling a little over-engineered (Symfony 2, for an outdated example).

It's not the style of code I enjoy writing at all but I've seen some incredibly clean stuff that would put a lot of Rails apps to shame. And I'd take that PHP over a badly maintained Rails app any day.

I wouldn't use PHP by choice still, but I no longer care to be snobbish about it. People are doing some good stuff in it, just the same as has happened with JS.
Oldest man in the world, Russian, Appaz Iliev dies at 123
The electric passenger vehicle most important to cities is actually... elevators.

Press a button to call a ride. Press a button to select a destination. 24-hour automated operation, and free-to-use for passengers with hand-carried items.

Compared with an elevator, a street-driven electric car is a bit of a nightmare. The closest horizontal analog is commuter trains on electrified rails, and even those are shaped by car culture.

If a city were planned like a building, and horizontal movement given over to externally-powered single-car on-demand vehicles that move exclusively on dedicated trackways, there wouldn't be so much space and energy wasted on cars.
I think this probably needs a proper analysis either way, but Oxfam (I realise not a source everyone agrees with) claims 50% of emissions come from the top 10% (this wouldn't just be the "West" - Middle East oil states, rich Asian countries, and rich people worldwide generally all contribute and some in the West probably maintain relatively low carbon lifestyles).

https://theconversation.com/emissions-inequality-there-is-a-... has the Oxfam discussion.

There would be an impact on poor people as you say, but this depends on the exact policies adopted. A study such as the one summarised and linked here: http://bruegel.org/2018/11/distributional-effects-of-climate... would be needed to confirm either way - their conclusion is that climate change mitigation efforts are potentially but not necessarily regressive with respect to wealth distribution.
How do we know what is cause and effect? What if cities naturally happen to attract people at a higher risk of depression, anxiety and schizophrenia?
I wasn't aware of this. This sounds excellent, as it means I can avoid AMP by spoofing my user agent string.
You could create a free one page website with markdown
on https://freepage.io
> We can solve climate change with a cocktail of existing tech

No. We cannot. We most definitely cannot.

It seems that everyone commenting on this subject on HN is working off preconceived notions or decade+ old information. We know better now. And the picture isn't pretty. And, no, you can cover this planet with solar panels and wind farms and you are NOT going to reverse things at all, in fact, atmospheric CO2 concentration will continue to rise exponentially.

This is surprising to me because the HN audience is --at least this is my perception-- supposed to be technically sophisticated and striving to be up to date with research and technology. None of the comments I have read so far on this subject in this thread and older ones showcase an understanding of what we know now.

I have written about this in the past. I just wrote about it again on this thread:

https://news.ycombinator.com/item?id=19922099

If you don't read what I wrote, I beg you to at least read this paper. The conclusion, paraphrasing, is: Even if we deployed the most optimal forms of all renewable energy sources globally, atmospheric CO2 concentration would continue to increase exponentially.

https://storage.googleapis.com/pub-tools-public-publication-...

Read it. It will open your eyes to reality. It was done by Google Research and they were brave enough to publish their conclusion, even when it collided with their preconceived notions on the subject.
The macOS team still does a great job at making features that demo well. For the past few years, everything below the surface layer is becoming increasingly flakey.

- I upgraded to 10.13, and my stock graphics cards would slow, freeze, and then crash window server, logging me out. I spent the money to buy a hot new GPU from Apple's latest recommendation list, and it no longer crashes (though I'm having trouble getting both of my Apple displays to work, since apparently most of the "DisplayPort to dual-link DVI" adapters in the world are actually single-link).

Other issues I've run into recently with new or revamped features:

- Dark mode works great sometimes, and other times it's an unreadable mess.

- Xcode 10's new text editor broke control-T, which has worked correctly in every text field since the earliest days of Mac OS X.

- The new security around contacts/calendars broke my app. It doesn't work like it used to, it doesn't work like the documentation says it should, and it doesn't log anything useful to help diagnose the problem.

- The recent documentation, overall, is a big step down. developer.apple.com used to have long-form articles describing how things were built. Now, it's mostly just HTML versions of header files, and half the descriptions are "No overview available."

- The new WKWebView teases improved performance (and not being deprecated, like WebView), but removed major features I was using, or planned to.

- Dragging toolbar items in Safari 12 seems completely broken.

- You can set almost any accessibility option via script, except menubar transparency, for no apparent reason.

It was no coincidence that Macs used to be simple. "Simplicity is prerequisite for reliability"! When you've got only one color scheme, you can make it 'just work' everywhere. Once you've got more than one color scheme, now you have to go check everything to make sure this doesn't happen: https://twitter.com/KenHatesSoftwar/status/11059512173713530... (which depends on the dark-mode setting, the reduce-contrast setting, the desktop wallpaper setting, ...)

Multiply this by every permutation of settings. I don't think it's feasible any more for single-developer Mac shops. There just aren't enough hours in the day to make everything work well. Even Apple is struggling.

My next project isn't another Mac app. It's a web app in Clojure. CSS is still terrible to work with, but (with grid and flex) it's slightly less awful than it used to be, and much more consistent. And Clojure is infinitely more pleasant than Swift.
I found this out some years ago and for some reason I felt a profound sense of betrayal. :D
But the article didn't lay down a lot of evidence: there's an observation by two sociologists limited by frames of Chicago's soul asylum in 1930s, and vague estimation of some Urban Design whatever, and finally a paper by a mental health researcher who essentially tells it's an emerging field, and more research needed.
A Study in Parallelising Clojure Tests
>the current generation of "smart speakers" are a joke when it comes to doing anything serious besides asking for the weather or toggling light switches.

The primary use of my Alexa devices is being a voice-controlled IP radio. I paid about $300 many years ago for Logitech/Slim Devices' crack at this, the Squeezebox, and I loved it.

Now, I get that same functionality for $40 shipped with more on top. Everything else is a bonus. including the smart home stuff - being able to turn the lights on with grocery bags in hand is damn futuristic.

Does it screw up sometimes? Sure. But it beats the hell out of a keyboard or dials for the use case.
We did some agency work Ad agency / sub contract) in NYC. I said to the agency we will deliver HTML/CSS/JS and its $12,500 for the site / pages. They came back with NO our budget is $25k and we will pay that. Im like ok wire be the bread, here is my ACH ( They did) I delivered the HTML/CSS/JS. They came back with but who is gonna do the API work with our back end guy. Seems they could not make a distinction connecting the front end to the back end. I can only do HTML/CSS i can't do the API stuff and i told them in writing very clearly. they had a back end guy we delivered the work to. I got played too many times NOT to get my money upfront and send a bill when I use up the time. They said sorry for the confusion , ok so how much for the api and will cut you a check from accounting. Accounting has no clue what marketing is buying.
Get going for a few of these simultaneously and you are set.
Very similar to gropë in Albanian which means hole
Gërrmoj - to dig a hole
Quick search indicates nowhere in the US is close to 30% car ownership, with NY coming at the lowest at 45% car ownership.

New York, NY 45.6%
Newark, NJ 59.7%
Washington, DC 62.9%
Jersey City, NJ 62.9%
Cambridge, MA 63.2%
Boston, MA 66.2%
Paterson, NJ 67.0%
Hartford, CT 67.4%
San Francisco, CA 70.1%
That's not my experience with rural areas at all. Instead, it's usually pretty noisy because of all the neighbors with barking dogs (yes, there are neighbors in rural areas; most people can't afford 40 acres all to themselves, so they live in little clusters), and it stinks because of the cow and horse manure. Just hope you're not located close to a pig farm. And of course there's all the noisy trucks everyone drives around in.

I don't know where people get this idea that rural America is some kind of idyllic, serene place. It really isn't, for the most part. If you want idyllic, you'll have to find some extremely remote place in the mountains of the western states.
I blame (perhaps unfairly) this idea that people write a lot of programming related articles and blogs as resume fodder, and not really for an audience beyond that.

I've run across so many "how to do" and it's the same example code and you can see where it has skewed over time... and evolved into something that the author really doesn't understand.

Same goes with some of the fundamentals and gee wiz "falsehoods" and such articles.

I appreciate the folks taking the time to write it but if they're not going to tell me why:

1.) I don't know if they even know / gave me the right idea.

2.) If I can't grok why then I'm not going to really understand it...
"People don't go to Twitter to feel good about themselves. People go to Twitter to fight."
"I can feel it Dave", except that it seems that Apple can't feel it. MacOS is like HAL oe one of those robots that you see in movies that wanders around doing things that no longer make sense. This appears true for hardware as well - I used to long for the latest MacBook and now I am relieved that my 2012 is hanging in there because I don't want to spend all that money for a bad keyboard. Think about that for a minute - 2012 vs 2019!

Apple should open source their OS. They would not longer have to waste their time and energy pretending that the MacBook market matters to them. Developers would be happy with them - its a win win situation!!
I am not trying to say PHP > TS, just wanted to let you know in case you still work with PHP codebase that you can get good enough type checks with PHPDoc, here is a good example for the case you mentioned , in Intellij the built in linter will mark as warnings when you use types wrong
https://i.imgur.com/NqlAsTd.png (zoom a bit out and sorry for the bad crop)

About the array issue don't we have same situation with JS and TS where you don't have dictionaries or hashmaps in the standard library and you have to use array or object ?

I like JSX too, maybe some PHP template would be made to copy JSX , but not all ages need to be that interactive and not all PHP code is rendering HTML, my current project uses angular1 for the frontend (it was something already created so there was no debate what tool to be used where I could have voiced an opinion).

As a personal opinion I prefer react to angular because I don't like the angular magic compile stuff, I like that react components are JS functions and I can breakpoint into a render functions. I also done some side toy projects with TS, I like it and I hope it gets more popular so new projects would use it but I am worried that we could get a wave of front end languages and we will not have a standard great language but many non standard languages.
> I wonder what happened if car companies tried to pull off that stunt.

YMMV

(sorry for the shorthand answer, but that acronym only exists because car companies are so very well acquainted with stunts like that)
I moved my newsletter[0] from Mailchimp to Buttondown[1] and have been very happy. The price is much cheaper, and Buttondown does exactly what I need it to do: manage my list of subscribers and send emails reliably.

As the cherries on top I can compose my emails in markdown and their public API is nice to use.

Highly recommended for personal newsletter needs!

[0]: https://mxstbr.com/thoughts

[1]: https://buttondown.email
You could create a free one page website with markdown
on https://freepage.io. Perfect for a blog or anything really
Not everybody gets the luxury to afford a good designer.
Frameworks like Bootstrap/Bumla help developers with poor aesthetic sense or simply not having time to deal with design nuances across different browsers a way to deliver better looking applications.
I can't believe people actually pay for mobile phones. They seem like a gimmick to me. My rotary phone works just as well.
Ask HN: AWS Uses Angular.js with React
It seems the AWS API Gateway console is built using Angular.js + React. Why would anyone do this?

https://twitter.com/tuhinkarmakartk/status/1128724672634187776?s=09
Russians and Chinese generally live long
https://www.youtube.com/watch?v=Y6Ev8GIlbxc&t=28m15s

Just saw this and might explain why Hadoop is out of the spotlight. In summary, Spark and Kafka seem to be better? I'm not sure as I'm just starting to enter this field.
Crowds, Power and Bitcoin
It's not to "better their bank accounts", it's to survive, because people need jobs to make money, and money to survive. Modern people can't support themselves on rural land any more, and even 100+ years ago ones who tried had short and unhappy lives (remember sharecropping?). There aren't enough jobs in rural areas to support the people there, so they leave.
I was a contractor - as a general rule I find companies expect contractors to be productive really quickly because they are paying more for them then they are for employees.
Not to be overly melodramatic or sardonic but life is damaging to mental health, urban, rural, or otherwise. And not just modern life, but rather it is, I believe, our human condition.

Too many of the people I meet are ground down, sliding by, holding on, grappling with their identity and place in the world, somewhere on the scale of mildly scarred to full blown post traumatic, anxiety ridden, and/or profoundly lost.

Religion has abjectly failed humanity as a primary means for grappling with and managing the crushing gears of life. The idea that our non-denominational “community” is supposed to fill in the gap is laughable. The dream that the Internet would somehow fill that role at scale has proven in many cases to do just the opposite.

It’s not that humanity is lost or without hope, but we destroy ourselves (and our planet) in the way we live, and I doubt strongly that our genetic predisposition / survival instincts will ever allow us to reach any form of widespread enlightenment.
Low-dose aspirin associated with increased risk of intracranial hemorrhage
I worked for a large company who wanted their public website re done to be "mobile friendly" (in 2015).

It's Drupal, with a custom theme. Everything that was actually "tricky" was de-scoped, so it wound up being something my university buddies and I would have charged $5k for back in the day, probably would have charged $30k these days.

That project cost well over $1mil.
For a Drupal site with a custom "Mobile friendly" theme.
News says he was a pentioner and still working, wow
People don't yell at each other in Mastodon precisely because so few people use it (besides, I've already seen Twitter-like behavior there, mainly on the mastodon.social instance). If mastodon had the same amount of users it would be the same, if not worse, because there's no centralized moderation to lean on.

Mastodon seems fixated on emulating Twitter without questioning if there's anything worth keeping.
Signup fee for an internet forum and the occasional over-moderation kept the userbase from really exploding. On the other hand had this theoretically has kept the level of the remaining discourse high for the remaining users.

There's a joke about one of these events.

One year the SomethingAwful.com forum moderators got annoyed at the annoying anime fans, so they banished them. 4chan was born, yadda yadda, Donald Trump is elected president.
Embattled New York Introduces New Marijuana Legalization Bill
I remember growing up and going to work with my Dad. There was like a 3 hour period where he had no work for me to do. He told me I'd only get half wages for the day (I was like 12) since the last few hours I did nothing. I felt betrayed. He empathized with me, saying 'It sometimes feels like more work to not have any work to do'. I completely agree.

In my current role, there is no real roadmap or trajectory for what I should be doing or how I should report on it, etc. I have felt at times that I was just collecting a check, and that felt really scary. I expected I would love to have a job where I could kind of just do whatever I wanted on my own time table. But I have learned it's actually very stressful, and at best very boring. Luckily I got a roadmap created and prioritized, so I feel better. But it is an odd experience.
Yes, but of course, you miss out on other browser-specific optimizations that way. Also, I believe this is only for Google search results.

You might consider a userscript instead, like https://github.com/bentasker/RemoveAMP.
I fairness to your bed time reading example, it’s very common for people to have bed side lights - even if they’re just little lamps that rest on a table. At least this is the norm in the UK. So for a great many of us, turning our reading light out would just be an extension of our arm.

My wife tends to prefer using the TV as her reading light. I find that rather bizarre but she likes the background noise. In any case, TVs have remote controls and sleep timers so that mitigates the need for voice control.

To be honest, I couldn’t think of a place I’d less want an Echo than the bedroom. Even the bathroom seems less inappropriate (eg you might want music when in the shower / bath).
I hope a bug doesn’t cause your assistant to accidentally record everything while it’s listening for your prompt.
For major games like PUBG and Fortnite this shouldn't be a problem at all. It might mean that it takes 60 seconds of matchmaking to join a new game instead of 6 seconds.

What you get in exchange is a stable and predictable competitive game. I, and many others, experienced endless frustration in PUBG due to players warping around corners and shots that were clear hits missing due to CSP. And I'm not one to complain about this kind of thing unnecessarily. It really sucked.

The PUBG people didn't even geolock their servers at all last time I played, so you could be playing with people with 300ms+ ping which is just miserable.

For less successful games maybe you have to increase the maximum ping from 40-60ms to 80-100ms or something but it should be kept as low as possible. The more players per city, the lower you can make the maximum ping.

I realize that this might make it more difficult for people in Australia (or whereever) to find a game but it seems even more wrong to make the experience bad for everyone all the time. And at least when they do find a game it will be a great experience instead of terrible.
It’s not funny. People who have bought in something have (1) to rationalize their choice and (2) cheer so the project remains alive and a major contender.
I was seeing that as well at first (with chat disabled as an option). Changing to the right account and revisiting the replacement key page in the same browser window was what brought me to the right page. Now I can't reproduce getting to that support page.
an always-on microphone sending data to the cloud.

This is a dishonest characterization of how every smart speaker in existence works. There is no continuous stream as this statement implies.

There is a continuous buffer of a couple of seconds for the device to locally catch a wake word. (You can verify this by disabling the device's internet connectivity - it will still catch the wake word and speak an apologetic message about not being able to connect). Also, changing the wake word requires a full restart, which says "firmware" to me.

After the wake word is spoken, that buffer and anything immediately after it is what gets sent up to the cloud for voice recognition.

The buffer serves a purpose in that it prevents an awkward pause between the wake word and the action reqeusted. (So you get to do "Alexa, turn on the lights" rather than "Alexa? bong Turn on the lights.")

The "user hostility" and "gimmick"-ness of this design is entirely subjective and quite overblown, in that "nobody will ever use Dropbox when they could just use rsync and a cronjob"-type bias that HN tends to have.

I'd say it beats the alternative from a pure functionality standpoint.
My argument is about hypocrisy, why do you think I should change my argument simply because you think it's wrong? This seems almost silly.

Hypocrisy is a character issue and I think I have hypocrisy's definition correct. If you are honest/moral/ethical, can you be a hypocrite? I don't think so, hypocrisy at it's core is dishonest. Therefore if you practice hypocrisy, you are a liar. Seems like a logical conclusion.

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

https://en.oxforddictionaries.com/definition/hypocrisy
uuhhhh bad name ?
That’s also my favorite theme! I love the simplicity. If only they had a slightly less contrasty version of it, I’d use it 100% of the time.
It's from "beton brut" meaning raw concrete.
Every decision about what to enforce and when has a set of competitors that benefit from that decision and a set of competitors that are disadvantaged from that decision.

And over time even a single, small benefit can be enough to guarantee a specific rational actor will win out over its competitors.

Certainly not in all cases, but if the issue you have is that individual decisions aren't enough to pick a winner, no matter how large/important, then change the last paragraph to

>>> And of course, every decision made for how to implement the kinds of issues outlined in the above paragraph is an opportunity to pick whom to give an advantage over their competitors, too.

And this doesn't even begin to consider the issue that since the mechanism for making and enforcing the rules exists within the system of rules it creates, both fostering competition and enforcing a free market give opportunities for competitors to buy rules and/or enforcement of rules that benefit them at the expense of competitors, either directly or indirectly.
Much of the land west of the Mississippi isn't arable land or livable in any way, unless you do what they did in Phoenix and pump the rivers dry. That isn't sustainable; it's an environmental disaster.
What sort of application shows a noticeable speedup if we manage to make bitset decoding, say, ten times faster?
Don't forget us devs who are required to use OSX as a matter of corporate policy. I'd much rather be on Linux
The last (originally a) land line phone number I had memorized in childhood was quietly lost last year when my grandmother passed away. That personally seemed to mark the end of the era where I'd ever remember a phone number that wasn't one I punch into random "rewards programs" kiosks as an ID of sorts.