skysight-inc/HackerNews huggingface dataset:
>URL rewriting in nginx for PHP is about copying 5 lines from a google search.

So is setting up a `proxy_pass` to a locally running container that exposes a port to localhost (https://nginx.org/en/docs/http/ngx_http_proxy_module.html#pr...).

Literally, just start `docker run` with a proper restart policy, set up a proxy_pass on nginx and you're good to go (unless the app requires external services, databases, etc., but you have the same problem with PHP).

Plus you don't have to worry about things like "do I have the correct PHP version for all my apps?" or "do I have the necessary PHP extensions installed in the system-global PHP?

>And surely you must be joking when comparing Kubernetes' complex configuration to anything else.

Setting up a Kubernetes cluster is indeed complex. Installing apps into an already configured cluster (e.g. ordered as a service from someone) is not (unless the app itself is complex of course).

I was comparing it to the automation tools that "traditional" webhosts have for installing and managing application deployment, replying to a comment above ("They had to write an installer ecosystem..."). If you just want to have one VPS with nginx on port 80/443 and run apps there, you don't need any of that stuff. The container images are the same either way.
Ghost blogging platform servers hacked and infected with crypto-miner
X sometimes stands for problems above technical problem, such as:

- Existing team is comfortable with using PHP
- Existing project is tightly coupled PHP monolith
- Existing project cannot be migrated to other language fast enough if needed

All are valid and justifiable reasons. Learning new language is not the easiest and we should think of the people.

I must emphasis though, all party must not freeze in time. They should learn to adapt. PHP is getting smaller. The decline is slow enough to let people migrate or jump ship but fast enough that it is recognizable.

Demands are growing for languages and environments which provide more than PHP, simplest examples would be granular websocket connection control, explicit process control, whitelist-by-default security, rise of cloud and edge computing, and of course, trends, "cool new stuffs" which is not always good for everybody, but always exciting especially for the naives.

There might be a day Java is getting replaced due its huge memory usage or its tendency to be verbose and hard to read. Golang is a contender for the memory usage side of the spectrum, NodeJS is the contender for the ease of use side of the spectrum.

There might be a day C++ is getting replaced due to its "harder to write secure code". C++20 is quite cool, but there's a new cool kid Rust where you most probably won't write bad code, can be actually faster than C++ / C in some cases, and can run on browsers.

May all programmers of old languages survive and thrive and in the new world.
MuchSkills – Your Strengths Visualized
I wonder if most developers that trash on PHP for trivial issues like seen in this thread haven't been using it for many years, or had a bad experience (e.g. maintaining a legacy app).

Some developers live in a kind of technical vacuum where, I guess they assume, the technical features of their programming language are what makes the difference in the value of the business they're building.

In reality, the difference is in how easy it is to hire developers, the package library, overall ecosystem and developer experience, or: how can I make a great product.
I've seen 'Developer evangelist' as a job title.
The hospitals are filling up with cases of viral pneumonia every year, at the beginning there would have been nothing to suggest that this was anything more than a bad flu season.
Spitfire's Fatal Flaw Fixed
Working on commons as a developer for France's state startups incubator as a freelance, without the burden of the internal HR, was a blessing for me after my private startup experience.
Thats hot patching, not reloading as I've come to know it in the web development world.

Hot reloading works the same for all languages I know, which is a hardcoded port pushing notifications to clients that they should reload the browser.

The client is mostly a js library or a browser plugins. Either works.

I know it's also used differently in some contexts, but they wouldn't apply here as far as I can tell. There aren't any long running processes that need to reload the code after all. It's only read when is actually executed. Which is never unless you use the hot reloading I was talking about earlier... Or trigger it manually, making it a regular reload.
music videos are like the one medium that barely evolved over the decades. and why bother? enough people are content with boiler-plate booty-shaking or simply showing the band playing.
And what stops one from doing that today? It's not like anyone really knows more than a couple dozen or so people. Just stop taking in any information from outside your circle or town... The approach has got downsides, but damn the peace of mind might be worth it.
How to Use Command/Ctrl Key Shortcuts in Terminal Vim or Neovim
archive encodes these files upon upload. you can click the torrent link and download the files it's only ~9GB. consider seeding it for a day or 2 so others can access it quickly too.
I guess they do eat it though, and then improve the recipe for next time by adjusting what they like. More like an AI approach in that case :D

At least they are 'dogfooding' it and not just letting others eat it I hope :)
Although there are no perfect solutions, there are systems which willingly connect to and distribute contact data to government servers, and there are systems which do not.
Hot on the Heels of Mellanox, Nvidia Snaps Up Cumulus Networks
> And last, people compare it to languages like Rust or Go since they consider those are "innovative". I hope everyone understands that a language is fit for a certain type of task. PHP was created for website development, and in that area neither Go or Rust are even close to matching it in terms of maturity.

I'm not disagreeing with you, but "website development" is a very broad category. For example, if you definitely need a website with server-side logic and database connections, yes, that's where PHP will shine. However, if you need a more or less static website for your restaurant or portfolio, is it really as straightforward to say "PHP is for website development, write your website in PHP"?

I want to be very clear that I'm differentiating between use cases here, but for something like a technical documentation website, a status page or something similar that does not require server-side logic and databases, I would much prefer using Hugo or some other type of static site generator, and not because PHP is bad but because we're still talking about "website development" but just not necessarily the kind of website that PHP was made to build.

That being said, there are of course static site generators in PHP as well (and probably every other language out there), but Hugo has a special place in my heart just because of the speed of it.
Strategy Pattern Implementation with TypeScript and Angular
Freshly prepared food is more expensive for all sorts of reasons than shelf-stable, highly-processed junk food. To buy fresh vegetables, you need to be able to shop frequently. To prepare fresh food, you need the time and energy to cook plus the skills and equipment plus a kitchen.
What is the problem of admitting PHP solves the problem of quickly deploying web sites?
If we were to outlaw NDA's and dramatically beef up whistleblower protections for corporate whistleblowers, that might work. But those are wildly implausible proposals! And while people are bad at keeping nefarious conspiracies secret, they're quite capable of keeping quiet in general - which happens to protect the less egregious but more relevant kind of grey-area, pushing the boundaries that slowly evolves. Just look at all kinds of corporate and governmental malfeasance stories to see that it's pretty normal for ethically dubious behavior to go on for years if not decades before it comes out. Most of it probably never comes out.

People can't keep crazy conspiracies secret very well, but are completely capable of keeping eroding standards quiet.
> being able to ship a single binary, such as what Rust and Go can provide, is really nice

Unless you're distributing your binary to 3rd parties, why?

If you really don't want to deploy changes to e.g. a single/small number of controller or template files as independent file changes, build your PHP app into a .phar archive, and deploy that.

I don't specifically think PHP, when run (IMO) the best way it can be, is "easier to deploy" but I also don't think it's harder either.

I'm going to ignore your other comments because they're personal opinions and while you express them as facts, I realise you probably mean them as statements of opinion.

But the last part, I just don't understand:

> I really wish PHP would just die. Continuing to drag it along like the dead carcass it is wastes so much human effort. The longer it exists, the longer we have to support it.

Who is the "we" in this statement? You clearly don't like it personally, so why does it affect you, at all? I'm not a huge fan of Java, but I don't go around claiming that it should "die" or that humanity is somehow worse off because it exists.

There's no such thing as a client-side PHP application, so it doesn't even compare to e.g. genuine concern over tech choices that are 'forced' upon users of a website (e.g. Flash, SilverLight, ActiveX, javacript bloat, etc). If the backend part of the system does what it needs to do, the language/framework/runtime it's written in/with is meaningless.
Highly depends on the test, some are very susceptible to false positives from other coronaviruses.

PCR tests have high false negative rates, but low false positive.
Some specific sysctls are already tied to other namespaces, e.g. ip_unprivileged_port_start is per network namespace[0]. There also are a few per userns sysctls for resource limits.

[0] https://www.kernel.org/doc/Documentation/networking/ip-sysct...
Maybe this is a good place to start: https://dotnet.microsoft.com/learn

Most can be done via de command line but an editor like VisualStudioCode could be handy. Personally I use Jetbrain's Rider as IDE on Ubuntu.

Deploying can be done via the `dotnet publish` command. But tools like Teamcity can also be very useful. When you built a webapp it includes the Kestrel webserver. So it is just a matter of running the app and navigating to the port it listens to.

.NET core is a complete set of tools to create console apps, (web)APIs and webApps. This includes the .NET framework.
Maybe there's a partial solution though: drive your car manually to the next onramp from where on it drives automatically until you arrive in the vicinity of your workplace from where on you'll have to drive manually again for a bit. So sort of like the dedicated bus lanes we already have nowadays. If your car doesn't have autopilot, you're not allowed to use them. If your car has autopilot and detects a car without it in front of it, your car falls back to manual mode...
why would it be for rebroadcast purposes? not OP but I want to have such things streamed to my TV in my own home.
UK Covid-19 vaccine candidate mouse study results
Full title: Self-amplifying RNA SARS-CoV-2 lipid nanoparticle vaccine induces equivalent preclinical antibody titers and viral neutralization to recovered COVID-19 patients
India’s Glance tops 100M daily active users in 21 months
Logicboard – In-browser collaborative IDE for remote interviews
Is it possible to write long-running processes well in PHP today? Is the memory management of PHP up to the task? Or is it all a *cgi-based execution model? This question still is what makes it hard to place PHP. Basically all "high perf"/"high load" applications of it I know about run under PHP-FPM or webserver modules or uwsgi.
> Would I use PHP if I was starting out today? Unlikely, but I know PHP inside out and can wield it to my wicked ends with ease so won't be dropping it anytime soon.

So just out of curiosity, if you hypothetically did start learning web development today from scratch, what would you spend time learning instead of PHP?
This.
I was using TypeScript for anything that looked like I'll be the sole maintainer but for something that could last for 10+ years, I started it out as PHP as I may not be the only maintainer one day and can't ask the client to look for more specialized talents for no good reason.
Tradeistic.com+and+more+for+sale+
This seems like a really useful service in the accessibility realm. I'm not sure whether targeting "grandparents" specifically is the best move. I can see myself using a service such as this in another country, where I have bad internet connectivity. I could set up the airport to hotel connection previously and then trigger the pickup with a call once I've arrived and get the driver's details.
(Also, the popups in the lower left corner of the website with 'X recently signed up' do the opposite of inspire confidence in the service for me.)
Here, in Central Asia (hence my name), we have growing concern with poor handling of the situation by WHO. For example, the WHO inspector for Tajikistan kept saying that everything is all right down there, for the whole month of April, but every other country in the region knew they have cases, and suddenly, it turned out the have indeed. They also are engaging in covering up the situation in Turkmenistan. Although they have cases down there, the inspector says that there is no at all.
TripAdvisor Redesign
Here's an article on why that figure might be overblown (tl;dr - sampling bias): https://towardsdatascience.com/were-21-of-new-york-city-resi...
If putting a job/event into a queue, or writing a log entry is taking so long that you need a separate thread just to enqueue/log that entry, something is dreadfully wrong with your application.
Perhaps you're right, but perhaps DMCA takedowns are a preferred alternative to what the MPAA does in other situations, like the Kim Dotcom raid in NZ.
UBI is only sustainable if those who elect to receive it cannot vote or have children. Otherwise they will continually vote for greater payments, and have an excess of children, and the UBI population will eventually subsume the productive population.

Instead of UBI we should guarantee housing (ie. by building it) and also targeting a fixed population maximum, by restricting immigration, which will also reduce housing prices and increase wages.
If the "valid until ruled otherwise" interpretation was correct, then why does the law have provisions that clearly anticipate that service providers may choose to decide for themselves that a purported DMCA takedown notice they have received is invalid? Those provisions offer significant protections to service providers, so the law seems to encourage rather than discourage providers to ignore deficient takedown notices based on their own judgement of how the notice measures up to the statutory requirements.

Plus, GitHub apparently rejected the first version of this notice that was sent back in March, and only acted upon this amended version. So they clearly feel that it is within their power to decide what is or isn't a valid notice without needing a court to rule on the matter to make it certain and official.
I am a PHP dev with 12 years of experience. I think I have been unemployed 1 week total.
As soon as you hit a certain level of complexity in your solution/software/whatever, you will be using multiple languages. You'll have scripts written in Bash, front-ends using PHP, back-ends using C or whatever. You are definitely correct that there is no black and white here, all software just needs to be "good enough" to actually solve a problem and be worth paying for.

If PHP being slow stops you from being "good enough" then it's very likely that you can just isolate the part where PHP isn't doing a good job, re-write that in another language and keep the parts where PHP is working fine.
How would we not tell 50% excess mortality?

BTW, that 50% is for national level and with a shutdown in place.

Regions hardly hit by the virus have a much higher excess mortality (Bergamo province 450%, NYC 390%, Madrid 250%, Manaus 250%) [1]

[1] https://twitter.com/jburnmurdoch/status/1256312094334619648
> The thing I dont understand is, if you for some reason do not like to use a specific language or tech, why bother trying to convince others not to use it?

Because, if others use it, I have a higher chance of also having to use it.

I do not use Java and JS at work because of my like or dislike of these languages; I use them at work because, many years ago, whoever started the project I'm working at chose these languages. Had they chosen Python or Ruby or C# or anything else, I would have to use these languages. And it does not apply only to work: if I want to contribute to the Linux kernel, I have to do it in C; if I want to contribute to LibreOffice, I have to do it in C++; if I want to contribute to MediaWiki, I have to do it in PHP; and so on.

Convincing others to not use a poor language reduces the chance of myself having to deal with it later.
Flourish | Senior Developer | Full-time | REMOTE (UK) | https://flourish.studio/jobs/senior-developer

Flourish is an online tool for creating beautiful data graphics, presentations and other interactive content without coding. Launched in 2018, we have grown quickly and are used by some of the world’s largest companies and news organisations.

We’re looking for a senior developer to join our team, reporting to the head of software development. You'll be developing new features for Flourish; maintaining standards for web performance, security and accessibility; building automated tests and improving the observability of the codebase; mentoring and supporting more junior developers.

Some of the technologies we use include Node.js, Express; Postgres, Redis; Handlebars, Sass; AWS; Cypress; GitHub, CircleCI, Sentry. We don’t expect you to have worked with all of these, but any you have are a plus.

More details here: https://flourish.studio/jobs/senior-developer/
Our abstractions become the basis of our imagination - do we want developers to think and experience joy? Do we want their minds to spark and innovate and solve and embrace the full power of computing? Can anything compare with the illuminating glow of a powerful abstraction that reveals a new technique - perhaps not 'world changing' - that improves our software and our programmatic structures?

I guess we don't, actually. Oh well. :').
You make a perfectly reasonable business point.
A lot of people, me included, would argue that the state, as inefficient as it is, is doing much better than private charity would, and has historically done.

Also, "we have an idea that could in theory replace them" is not the same as "we have the structures in place and shown capable to replace them".
In that case it really doesn't matter where you work.
"hey, how are you" in he middle of an email after a request is very strange. Asking for something and finishing with the non committal "let's get together soon" is also a red flag that you might want something from me from a business perspective but are only feigning interesting from a personal perspective.
That’s what my bot said.
I not expecting 100 % reliability.

but when we get a 503 response it should be considered an an error and acknowledged by the provider that it's an error.

in my use case, we were using a CDN which was configured to pull files from B2. When B2 responds with a 503/500 I have no control on the retry mechanism.

The error rate was around 5-10%
If I'm not mistaken it was Marx who said that people would be alienated from their product as they could not own the product created by their labor.

So yeah, well before 'digitalization' but after industrialization I suppose. Hence we'd have to go back in time quite a bit (at least in Europe) to be pre-industrialized to not be distant from the product of labor.
The MPA is not even claiming copyright on any of the files in the repository; it just complaining about the "extensive copyright infringement of motion pictures and television programs that is occurring by virtue of the operation and further development of the Popcorn Time repositories".

Then it links some files as kind of "proof".

I'm not even sure what this is supposed to be.
That is patently false. The CDC head was briefed by the Chinese "around New Year's Day" 2020 (https://www.nytimes.com/2020/03/28/us/testing-coronavirus-pa...). By Jan 7, 2020 the CDC had already setup a task force to deal with the COVID threat. I certainly don't want to defend the Chinese government. I'm sure there are a lot of things they did wrong (on top of all the horrendous human rights abuses they commit on a daily basis), but the whole narrative of blaming China for COVID seems like an obvious ploy to shit blame away from our own incompetent response. The fact of the matter is that we saw this coming in slow motion and comprehensively failed to respond in a way that could have prevented this human tragedy.
> Even with PHP7, PHP still feels like it is playing catch up. There is nothing new or revolutionary in PHP7, just adopting features present in other major languages.

Of the first programming languages that cater to novices to some degree (which is important to project health, because excessive gatekeeping is toxic), PHP was the first to make Curve25519 and Argon2id widely available (through the sodium extension). (7.2)

Even with the "just use FFI" mindset of other languages, the experience is janky at best.

For example: Before sodium-plus [1] came along (which was something I created, so I'm removing it from the table for my criticism of the JS crypto ecosystem), JavaScript required knowing which of the following packages to install: [2] [3] [4]

There was no guidance available anywhere. Some of these APIs were suitable for browsers, others for mobile devices, and still others for server-side JavaScript. And their APIs were subtly incompatible with each other.

Java's in a similar situation [5] today.

> Java (Java Native Access): libsodium-jna

> Java (Android): Lazysodium for Android

> Java (Android): Libstodium

> Java (Android): Robosodium

> Java (Android): libsodium-JNI

> Java: Apache Tuweni (crypto module)

> Java: Lazysodium for Java

> Java: jsodium

> Java: Kalium

Yikes.

With PHP7, you just had to update to the latest version (and make sure your OS package vendor isn't huffing or eating glue, which was rare but still existent) and you had it.

There are probably still languages and runtimes today that make using modern cryptography (Ed25519, X25519, etc.) a miserable experience.

Miserable experiences moving to modern cryptography keep peoples' projects trapped in an early 2000's RSA-PKCS#1v1.5 + AES-CBC hellscape reminiscent of SSLv3 but somehow worse.

Thus, I would argue that what PHP did with libsodium counts as revolutionary.

Your move, $languagesThatHackerNewsFindSexierThanPHP

[1]: https://github.com/paragonie/sodium-plus

[2]: https://www.npmjs.com/package/libsodium-wrappers

[3]: https://github.com/sodium-friends/sodium-native

[4]: https://www.npmjs.com/package/sodium

[5]: https://libsodium.gitbook.io/doc/bindings_for_other_language...