skysight-inc/HackerNews huggingface dataset:
>PHP was meant to be a simple templating language for HTML, and it failed miserably at that

I would argue that it was too good at that, instead. It was so good at being a real language that people didn't just use it as a templating language and it grew way, way bigger than initially intended.

When I see PHP templating libraries, they are all focused on restricting the programmer from doing supposedly stupid things. They try to prevent logic from leaking into the templates and utterly fail at it.
I highly doubt this is a off the shelf Wordpress install. In fact, a standard WP is not > 1gb of data, which the post describes.

There will be a massive amount of customization, so revealing source code probably is a security risk. I’m willing to bet a competent code auditor could find secondary vulns in that code.
> Also if you don't care about students giving praise/negative reviews to a friend, that kind of says something.

Note I didn’t say I didn’t care what those reviews were. Honestly, they’re probably more nuanced than student Evans and thus more useful in choosing classes.
"The US has rapidly transitioned towards becoming quite anti-capitalist."

What you're describing is distinctly capitalist.

"Pure capitalism is defined as a system wherein all of the means of production (physical capital) are privately owned and run by the capitalist class for a profit, while most other people are workers who work for a salary or wage (and who do not own the capital or the product)."

This has nothing to do with how easy it is for someone to acquire capital in the ways you're describing. In fact that it is difficult to enter the capitalist class only emphasises that there is a difference between them and the worker class (i.e. capitalism).
Google Plus played less with people's emotions, that's why it sucked as a social media but was quite okay to follow content makers and to manage/participate in groups.
This is nice in theory, but you need to design everything to work dependency injection style (or really have a setter for everything) to achieve this. Using a random number? Store the generator. Opening a file? Use a "FooOpener". ...

Sometimes it's easier just to stub what you want.
Monitoring a Golang application with Supervisor
>Just this week, a public memo written by current Google staff urged that Dragonfly should be dropped because it “aids the powerful in oppressing the vulnerable.”
20th century rhetoric aside, I can see no way to massively censor the internet that will not be adopted shortly in its own flavor by every other country hand wringing over the latest overblown 'social crisis'.
""...can't you just make us a general purpose computer that runs all the programs, except the ones that scare and anger us? Can't you just make us an Internet that transmits any message over any protocol between any two points, unless it upsets us?"" - Cory Doctorow
"Can't you make a search engine that will allow access to any information located on the web, unless it's something naughty in the eyes of the government?"
This argument is repeated over and over again as if Google is magical and the Chinese government is incompetent.

Technogy does not create democracies and free societies. China's belt and road project is going to create further economic freedom. Western values aren't needed when you have job opportunities, can send your kids to great schools, take a vacation, and buy a nice house.
Did he actually need to download all of their source code to prove the vulnerability though? It seemed that he could have simply stopped when he extracted ref HEAD. It is this extra exploitation that gets researchers into trouble.
Dunkin’ Donuts says customer data may have been compromised
MIT Replicates Paintings with 3D Printing and Deep Learning
I wonder if Return of the Obra Dinn, despite its graphics, couldn't be considered a form of hyper-radio. Because to be honest, it felt more like an interactive radio play, with the graphics mostly existing to supplement the audio.
Isn't that the _potential_ to be burned, as opposed to being burned?

To be fair, there are many threats in the world we can all be worried about, but largely ignore in our daily lives, to no meaningful detriment in most cases.
I had the pleasure of taking to a French high-school professor who worked there for 10 years. He basically said what you said.
The legislation outlined is pretty weak. A whole lot of Amazon engineers would be exempt. The penalties are a pittance. And there’s no provision for requiring severance.
It's insane that companies are allowed to say "yes there was a security hole, but no we don't have logs, therefore nothing was stolen, so stop asking."

Their refusal to give the number of exposed accoundlts makes it seem like it's pretty bad.
C/assembly are great starters because they teach you how computers actually work.

Even a simple function in JS taking one variable abstracts a good deal of that away from you because it handles things like memory allocation for you.

A lot of modern hopeful programmers that make it into our interviews can barely explain what the new keyword of a OOP language actually does, and way too many have no idea what a stack is.

This isn’t useful when you write CRUD web-applications for a few thousands users, which is arguably a lot of modern programming is, but it’s extremely useful if you ever want to build something original.

Which is actually the key issue. You seem to think building a water pump isn’t a beginner project, but why isn’t it? It’s one of the most basic programs you could write. In fact it’s so basic that you could solve it mechanically, without the use of programming, if you have running water to power the timed open close mechanism of the pump and pull the water.

By contrast, a web site is infinitely more complex. Only you think it isn’t, because other programmers have build most of your tools for you. Which is great, you should stand on the shoulder if giants every time you can. What isn’t going to be great is when you’re tasked with solving a problem no one has solved for you first.
Oh, I experienced this too. Once as the remote worker, once as the manager handling the remote workers.

IMO, it has to be a 100% commitment to remote work, where even the bosses are remote. First problem is communication - half of the team will rely on Slack, Jira, etc, while the other half rely on face to face. The tools that are used to handle remote work are abandoned by the team. The proper processes for handling remote work is never set in place.

The other big problem is that the non-remote workers get salty or distrustful. I find that they (consciously or not) try to sabotage remote workers. I find people can build even stronger relationships purely online than offline, but it has to be inclusive. They form cliques otherwise.
Theoretically, if you grade students several times throughout the course, you can correct those who are on course for a poor grade (due to misunderstanding the content, or misunderstanding how much studying they need to do) while there's still time for feedback to improve their grade.

(At my school many teachers were slow to mark and return assignments, so this benefit wasn't really achieved - but it might have been had feedback been more timely)
For every employee that is upset about this there is probably another one that is proud about it and 5 that really don't care.
There are businesses that virtue signal their values. Patagonia just donated a tax break ($10 million) to global warming groups.

https://www.bloomberg.com/news/articles/2018-11-28/patagonia...

Should Patagonia fire their CEO? It's kind of outrageous that they aren't out to make as much money as possible, right?
Wrt JVM, not a port, but a JNI interface.
Just want to point out - Zircon is their microkernel, while Fuchsia is the operating system on top of Zircon. Both are open source though.
PHP has also its upsides:

- High-quality packages (e.g. FlySystem or anything by https://thephpleague.com/)

- Very nice and mature frameworks such as Laravel.

- Pretty good OOP features

- No concurrency / async, which makes thinking about the code way easier than sometimes in Node.js
You can run NetBSD's pkgsrc on OpenBSD if you need something like that.
This misinterpretation is all over this thread.

"Capitalism is an economic system based on the private ownership of the means of production and their operation for profit."

I wish people would do some cursory research before trying to argue about it.
The USA put a lot of Nazi's to use after the war.

1,600 of them went off to be part of the CIA. We can see how successful that integration went ..

EDIT: Yes, I know, it makes you feel uncomfortable, Americans. But it is an uncomfortable truth that has to be confronted sooner or later - Nazi's helped build the CIA.

https://www.democracynow.org/2014/10/31/the_nazis_next_door_...
That was just Cthulhu snoring. When He wakes up, seismometers will start spelling words in ancient alphabets.
> Tons of gendered expectations in language.

That would make for a rather interesting study if they look at gender expectations overall for teachers. From Swedish studies it has been clear that male teachers leave the professions significant more and earlier than female teachers, and same with male students for the teacher master program in higher education. The numbers is very similar if not almost identical to master programs in STEM except for the genders being reversed, a fact that is rather unexplored in gender studies but noted in a somewhat recent government study.

Just looking at evaluations, I wonder how height, build and wealth symbols (expensive car, clothing, jewelry) impact the rating for male teachers. Do a non-typical male traits contribute more negatively to the score for male teachers than non-typical female traits do for female teachers? Same question for typical male traits and female traits. Is it correlated to leaving the profession, and is there a difference in abuse tolerance?
The true cost of 24/7 hustle culture
Some of these are good points, but the error reporting ones are a bit pedantic.

Sure stuff like "T_PAAMAYIM_NEKUDOTAYIM" is confusing the first time you encounter it, but after your first week of PHP you're going to have seen it and know what it means. PHP has many flaws, but for me, error reporting isn't one of them.
Commentary from a hacker in the financial sector:

"[...] certified emails guarantee the validity of a sender’s identity, as well as the date and time of sending and receiving the email, giving them a clear legal status. This is a major hack and very important for it undermines the legal status of government emails. The repercussions can be extremely significant. This calls into question ALL legal emails from the government regarding taxes." [1]

This is very bad. Non-repudiable emails from a government that has been in economic turmoil recently.

[1] https://www.armstrongeconomics.com/world-news/technology-wor...
Hey, this sounds like exactly why I'm working on moving out of (secondary) teaching. I didn't mind the pay, being single on a low CoL area and the benefits were good... But the bullshit is killing me, as is the lack of respect from parents in a highly anti-intellectual county (I never realized how bad it was until I returned as a teacher) who demand that Little Johnny pass when he just wants to play Fortnite all class period and never turn in work.
My guess is that the house is inhabited, the owners are probably poor, but have lived there for probably many decades, and have no intention of leaving. Their heirs won't have enough money to fix it up either, unless they emigrated to Luxembourg or something, and may very well keep living there, since they can't afford anything closer to Lisbon.

The problem with Portugal is quite often just a simple one: lack of capital.

By the way, the lower walls may be stone, but the rest is often just brick with terrible cement slapped on top. Water infiltration issues are rampant, especially in a humid area like Sintra. Mold is certainly an issue, and the solution often requires removing all the cement and reapplying it, which ain't that cheap.
Maybe give chromebooks a spin? Or pair up an ipad with a portable keyboard.
I agree that unfamiliarity should not awful a code base make.

However, there are degrees, and probably thresholds. If your code to manage web site users is using string theory, despite the assumedly concise, elegant and refined code, it would make it awful to all programmers, but the two in the world who master both programming, web site user management and string theory.

Otherwise, bad design patterns and bad coding practices definitely characterize awful code bases.

But the worst, is when it’s so bad that you can hardly refactorize it.
The Reed Trombone – mixing brass and woodwind mouthpieces [video]
China's belt and road project is going to project Chinese power and values over Eurasia.

I'm sure a lot of companies,like Google, will want to help them do that in exchange for some profits.

https://en.wikipedia.org/wiki/Belt_and_Road_Initiative
It's very relevant if the OP read the article or not. Makes his/her argument stronger/weaker because the articles are used as basis for the argument. So 'Did you even read the article?' is a valid question.
I think the idea in Fuchsia is that directories can be passed as resources to children processes, which can then move freely around in that directory structure. If the parent passes a child "/foo/bar/", the child sees "bar/" and it's contents, which might be "bar/baz/bingo/". The child can then move to "/bar/baz/bingo/" do work there, and then recurse up the hierarchy. It simply cannot ".." out of "foo/".

Hope that makes sense.
The same way you're supposed to know if a bike is stolen. If the given market is grey/shady and the price is excessively low, and you really want to know, you ask (for starters).
Kasparov did not say Carlsen improves w shorter time formats. He said that the degredation of his play at faster times was smaller than everyone else. This is still impressive, but definitely not an improvement.
I bet he still made a lot.
Generally speaking, if you expect the world to (as a first class principle) cater to your personal desires you will always be sad.

I didn't read the whole thing, but I'd be interested if anyone found any issue that doesn't have a workaround or can't be polyfilled to cater to this guy's expectations.

Edit: "reasonable" expectations. Requiring semicolon at end of line? smh Write your own editor plugin that inserts your semicolon (or write a preparser). PHP folks only wrote an entire language for the world to use for free. The least you could do (if it's really that big of a deal) is write a preparser.
That name is one for errors. I liked it since it was Googleable. Unique names have benefits.
Yoruba tribe makes top 5 in List of Highly famous African tribes
If every $1 becomes $3 ~ $4 in profit, makes no sense at all to "save" for equipment.

The progression with only investing in ads, each cycle multiply by tree your profit:

$1 -> $3 -> $9 -> $27 -> $81 -> $243 -> $729 -> $2187

The progression with "saving" the money

$1 -> $2 -> $3 -> $4 -> $5 -> $6 -> $7 -> $8
Nowadays I do mainly PHP7.x / Symfony projects and of all this list I would say only "ternary operator associativity" could potentially be a day to day concern, and yes, empty() has gotchas.

Nothing listed is false, sure, and I'm sure there's people doing complicated things with clever code like "declaring a function called __lambda_func() (which) completely breaks create_function()" but I have not encountered it in the wild, or not for a long time.

Frankly I have more problems with Composer memory allocation in VM/containers than anything on this list.
Agreed, here is another one to file under "not a big deal": http://phpsadness.com/sad/46
Apple and Amazon have a history of supoorting governments that oppress women and LGBT folks. I guess that's okay because some employees at those companies don't care about women and gays in, say, Saudi Arabia and think they are delivering some really cool products!
Let us your language of use... My guess is that there is sadness there too
Obviously. For 70 years now, the number of programmers has been doubling every 5 years. In consequence, on averge, half the programmers have less than 5 years of experience. Therefore almost all the code will be produced in a awful way, using awful new reinvented programming language-du-jour, and new reinvented configuration-and-build-system-du-jour.
One can sort out a lot of PHP parameter order inconsistencies remembering that if $haystack is an array then it's the second parameter after $needle. For string it's the opposite.

array_exists($needle, $haystack);

But

substr($haystack, $needle);
Wasn't their shitty bios rewriting parts of windows? Vanilla OS images won't save you there.
That's 50% of what I use my mostly abandoned Twitter account for. Doesn't work as great as I would like it to, though. Most marketing people at larger companies mastered the art of slick 'n' slimy vague communication.
Think about the things that were too difficult for everyone to do in your job. Deliberate on how you can make them easier. This is a good strategy that potentially will help you come up with some sort of disruptive product. Recall the guys from Robinhood app. They were selling trading software and then realized how they can make investing millenial-friendly.

My team also comes from a fintech background. So, we decided to build a user-friendly trading platform for crypto markets applying our existing finance knowledge. You can check it out here: http://kattana.trade
You could apply the same low price is stolen goods argument during black Friday too.
Interesting enough Yahoo Japan was/is always a distinct company from Yahoo itself. Japan is special from a silicon valley perspective I guess...
One that was missed is the change in the way that the count function operates on a null value, its breaking backwards compatibility.

The only way to solve it is to write your own count function and call it everywhere instead.

Another problem is, if for example you are checking for a url variable to see if it exists, there's more than one way to do it - and only one of those ways is performant. Why have a special function that checks if a key exists when its slower than just checking if the entire variable exists?

I've since moved on to C++ and go, but the ubiquity of php on web hosting will bring me back to it again.
A 96-year-old artist who saved a village
Best Smartphone Overall in the Gadgets Market
Both are synonyms
Fintech needs a voice to counter aggressive lobbying from banks
Sibelius, what not to do as a user experience designer [video]
Ultracold Quantum Mix
This is something I don't understand. How can it be illegal to expose vulnerability without telling someone the real issue in the digital world, while having no responsibility if let's say you call a shop owner's attention that the patio's parasol might be causing injury in the physical world?
Using national language in code bases is indeed bad, if you want tomhave them sold to foreign companies or contributed to by the international community.
On the other hand, it may be good if you want to avoid this. I guess, not a lot of the sources developped in China is hacked on by non-chinese, or easily spied on by foreign powers...
Hmm... in my country it'd only be affordable not cheap (The Netherlands). We're pretty populated over here and the government has every square meter planned out. We have a name for it in Dutch "bestemmingsplan" (literally: destination plan or purpose plan).
Same here. Yet, as I'm gonna be job hunting soon, I feel that investing in learning more in Elixir/OTP won't land me a job (let alone a remote one). Too few jobs asking it. It seems that the vast majority is all about microservices/java (still), k8s, nodejs and the like.
That's cool :)

We have a private leaderboard going at work, but IIRC the limit is 200 users on a board.

If you haven't tried it yet, give AoC a try this year. It's actually really fun!
Not too sure what you're getting at, but the only part of Britain's rail network that runs acceptably is TFL which isn't privatised.
Even though I haven't taken it out for a spin just yet, I've gotten a good impression of nim. Anybody out there who has tested that can say if my hunch is right or not?
Well, if the code base is awful, it won’t have test to begin with... what do you test when you only have the bad code, no doc, no specs...
Advent of Code is a really fun event in general and an excellent problem-solving exercise, I remember how /g/ won last year's global leaderboard. I'll definitely going participate this year as well.
Electric vehicles send real-time data to Chinese government
Another example of Milton Friedman being a hack.
How Uber’s New Driver App Overcomes Network Lag
I would like to have a GAN brush in Photoshop. Let me pick a color, brush size, etc like usual, but gently interpret what I paint in the direction of the GAN output, similar to the effect of a textured brush.
It's definitely not "logical", because while a better gun can give a man advantage over another man, an army gains advantage over other armies via logistics. If you oppose the military as an instrument of violence and death, then it's important to realize that this instrument is built on JP-8 and paper forms and SharePoint, not on guns and ships.
Hmm... I was too lazy to do the Google search, sorry about that. I figured the average HN type would prefer to do a DYOR Google search anyway. I happened to have seen it on a Dutch program (a Dutch couple moved to Italy).
You can't use those to cache requests.

You can store an Elixir task but you can only await it once. You can `.then` a JavaScript promise as often as you want which makes a promise an excellent primitive for caching things that take time (eg network requests) without triggering the same request twice.
- There are high quality packages in every language.

- Likewise with mature frameworks.

- All mainstream languages have pretty good OOP features nowadays.

Thankfully yes, there is no concurrency.
> Click-baity title with the obvious answer in the first line of the article

Is this just a complaint about the title rather than the article? Conditional on click-bait title, having the answer on the first line is the best outcome. Teasing an answer would make it a bad article.
They kind of did with the SPL.
Pythran as a bridge between fast prototyping and code deployment
Ahh, nothing like a bit of language shaming.
Towards usable checksums: automating the integrity verification of web downloads
It's more like telling a shop owner that you were able to open their doors when the shop was closed by simply getting the key from under the doormat. It actually seems tricky to design law sensibly around cases like those.
> This type of use case (long open file waits with concurrent access) are a nightmare with any shared filesystem. Most approaches dealing with possibly stale content are shoulder shrugs.

Well, it is possible to handle correctly, e.g. Lustre. Lustre, however, is very complex compared to NFS, so there's absolutely a price to be paid.

NFS implements close-to-open consistency, which is much weaker than full cache coherency (again, e.g. Lustre).
I’d be interested in beta testing this. Sounds great
Actually /g/ was where I found out a bit nim, maybe it's really popular in that community for some reason?
This very much depends on how big you are and how much you're willing to spend. At a medium-size all-Microsoft shop with 100+ MSDN licensees, I found a bug in WINCE7's handling of "structured exceptions", and eventually got them to acknowledge it but they never fixed it.

(I got as far as disassembling their DLLs to point to the exact problem)
Isn't this a bit late? Surely everything incriminating has been burned by now?

And also, how much is even stored locally on paper these days? I wonder how much sense these kinds of razzias still make.
Not to take anything away from this post because PHP is a mess, but yesterday I dragged and dropped some PHP files onto a server with FileZilla, opened the right URL in a browser and it worked. No bundler, no docker, no kubernetes.

That was some PHP Happiness right there.