Hacker Newsnew | past | comments | ask | show | jobs | submit | goykasi's commentslogin

Ive never been a frontend guy, although I was a heavy user of jquery when I needed it. But I cant help but stick to my roots.... LONG LIVE PROTOYPE!

Prototype was great when it first landed but I found jQuery to be so much more elegant and fluid. For example, the overloaded $(...) which I'm pretty certain we have to thank for querySelectorAll.

This youtuber had an interesting approach: https://www.youtube.com/watch?v=pjJImfcQGjI

"Neuromuscular Cyborg Aim Assist"


During the beta, the only consistent HITs were to identify an album based on a picture and 4 or 5 choices (if Im remembering correctly). These paid pretty well since the workforce volume was very low and the service was brand new. Well, I noticed that the image link contained an ASIN. So, I wrote a greasemonkey script that would look it up on Amazon and highlight the most likely correct answer. I then turned around and shared it with the forum I frequented. It became extremely popular and spread to other forums before we moved it to a private forum. The damage was already done though.

People kept asking me to automate it, but I felt it was against the spirit of mTurk. So, another member would take my updates and add an auto-clicker. That lasted for a couple of weeks at most before the HIT volume dried up and very few would be released. I guess Amazon caught on to what was happening. But before that, several forum members made enough to get some high dollar items: laptops, speakers, etc. Eventually, I relented and created a wishlist. Thats how I ended up with the box sets for the first run of Futurama seasons.


That is mostly correct; immigrants account for about 3% of a total 123mil population. Your point does stand, but we are quite visible in Japan -- especially in Tokyo.

You are correct that we do not threaten jobs either. A large majority of the foreign population is working low/unskilled jobs. Generally, the native population is not wanting those jobs.


Those undesirable jobs can also be highly visible. Maybe the most frequent place Japanese notice visible minority immigrants is at convenience stores. So maybe it makes the population feel overrepresented. I see RWers post frequently about convenience store workers at least.


Did you have to choose? Or did you have the option? I would wager to bet that a significant amount of people in the US cant afford to move to another state.


Can you distinguish option and needing to choose here? Having an option would necessarily cause a need to choose.


I can confidently say yes. Choosing between working in two different countries separated by an entire ocean is an option. Moving to a different state is expensive for many, but moving to another continent is only afforded to a privileged minority.


Why is it relevant, though?


That is my underlying question, by trying to find out what the difference is in the posters mind.


Are you unemployed or just not trying? After 13 years, I think its the latter.


Is array_map and array_filter the common argument? One works against a single element, whereas the other works against multiple. What would you suggest a better param order? Do you know that array_walk exists?


array_map is variadic. It is actually (callback, ...arr)

One function works against a single element, whereas the other works against multiple. In that case, the parameter order is more meaningful. You can use array_walk if you want (arr, callback), but that only works against a single array -- similarly to array_filter.


But thats not correct. array_map is variadic. So it should actually be "Map over these arrays with this function."

When you use the correct verbiage, the parameter order makes sense.


In the early days of PHP, it relied heavily on wrapping the underlying C libraries and preserving their naming conventions.

https://news-web.php.net/php.internals/70950


And that was fine in the early days, absolutely.

We are not in the early days though, and in many other aspects PHP evolved greatly.


What are the benefits? Code completion, AI agents, etc will handle it for you. No one's life is falling apart because the param ordering is more similar to C than a blog article complaining about it decade ago. Php devs have had up 30 years to learn the difference. Are C devs complaining about this?

If we want to change the param order of str/array functions for php, I think we should start with fixing the C libraries. That seems like a better starting point. The impact will certainly be more beneficial to even more developers than just php.


Because it would be more predictable, easier to memorize, less verbose, easier to use for developers coming from other modern languages and more comfortable to work with.

The fact that they are chaotic since 30 years ago is not a valid reason for keeping them chaotic right now.

Also, I'm not even arguing they should change the existing functions, that would break all existing code for almost no reason.

I think they should "simply" support methods on primitives, and implement the main ones in a chainable way:

"test string"->trim()->upper()->limit(100);

[0,1,2]->filter(fn ($n) => $n % 2 === 0)->map(fn($n) => $n * 2);

I would love this so much


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: