HNHacker News
TopNewBestAskShowJobs

on_and_off

3,296 karma · joined July 5, 2014

submissionscomments
on_and_off··on What ‘less lethal’ weapons do
The methods that are used right now are KNOWN to do not work.

When there is a protest, having the police to show up in large numbers riot gear is just going to escalate the tensions and increase the chances of violence.

(I am not saying that there is no need for riot gear .. if anything the boogaloos could use some violence applied to them)

US Police should have a lot more incentive to do not resort to violence for every situation. As well as ending qualified immunity and not having cops investigate cops when there is abuse.

to do not work if the objective is to avoid violence and riots. Sadly it seems that this is not the objective of many police departments

on_and_off··on What ‘less lethal’ weapons do
we will/would have to stop fucking over black people in America at all the corners for the social contract to have any meaning for them.

(and we definitely need to do that)

on_and_off··on Executive order expected to suspend H-1B, other visas until end of year
How is it not philanthropy when there are already skilled workers they could hire right now ?
on_and_off··on Executive order expected to suspend H-1B, other visas until end of year
1 - I am the first one to complain about our broken hiring practices, but just because you get a first interview does not mean you are qualified for the job.

2/3/4 -> FAANG have a ton of money but no incentive at all to spend it on philanthropy. I wish it was not the case, but their only job is to make their investors happy.

3 - is it dishonest ? For sure there are some kids in SV, LA,etc that could work in tech if they got the education but the thing is, they didn't. Also, local talent is never going to compare to the global one.

I would love to see laws pushing FAANG and co to invest in philanthropic causes. Heck, I would not even mind if this was based on taxation. But cutting H1B is not going to solve any of these problems.

on_and_off··on Executive order expected to suspend H-1B, other visas until end of year
>America does not lack people, it has good universities

I am not american so not 100% certain, but from what I can see, the public education system in the USA is not that great and universities are way too costly compared with the rest of the world.

I 100% agree that there is a huge diversity in tech problem.

Not all of that problem is about hiring POCs either, a female friend of mine had to flee a job because none of her colleagues would accept to have a woman as their manager (that's in 2020 in the SV..)

>So why are the big tech corporations that are constantly virtue signalling about Black Lives Matter

You are answering yourself, virtue signaling is cheap. I can talk for my own company. They were happy enough to talk about the importance of BLM, but less interested in taking concrete steps.

I fully believe that companies should encourage their engineers to participate in mentorship programs. I highly doubt that it would magically solve systemic racism but it would be a relatively cheap way to find and hire junior engineers and good PR.

on_and_off··on Executive order expected to suspend H-1B, other visas until end of year
I can maybe help here.

Many SV companies are in constant need of more skilled engineers.

Since the H1B visa can be transferred, when I arrived in the USA, nothing would have prevented me from going door to door and find a better paying job. Especially in the SV where there are tons of companies hiring.

So companies have a good incentive to give you a fair salary.

This is not true for all visas. In particular there is one visa (sorry can't remember its name off the top of my head) that is an "international transfer visa" : you work for one year for the company in a foreign country and then you can move to the USA while continuing to work for that company. It is pretty easy to get that visa but it is also very hard to transfer it to another company afaik.

Hiring is also a bit broken in our industry. The thing is, it is often pretty hard to distinguish what makes a good or a bad engineer. This being said, there are just not enough skilled engineers in the USA.

It would absolutely be possible to hire more local engineers and train them on the job but that would cost a lot of time for uncertain results. Companies prefer to hire engineers that can already be pretty productive from day 1.

on_and_off··on Executive order expected to suspend H-1B, other visas until end of year
I came to the USA on an H1B visa 2 years ago.

On a high salary and with the promise of being sponsored for a green card.

I got my green card just before covid impacted the USA and still have a pretty high salary (in the same range of my US born colleagues).

I already had a great job in my home country, I was not going to come to the USA to be paid a pittance.

Yeah, there is abuse of the green card system but it is in place because there aren't enough skilled workers in the USA.

on_and_off··on Gameloft took down Marvel's SpiderMan trailer (11M views) with a copyright claim
As I understand it, and please correct me if I am wrong INAL, this system is only going to change when the legislation changes.
on_and_off··on Apple’s Rejection of Hey from the App Store for Not Using In-App Purchases
Been there.

I worked for a music streaming company.

We never had any problem with Google (admittedly, Google does not care about Google Music and does not know what to do with it, which is a shame) but oh boy, getting an update to come out on iOS was a pretty big challenge.

We were sometimes even months without being able to push an update.

on_and_off··on Google adds experimental setting to hide full URLs in Chrome 85 address bar
As long as you see the full url when you hover/click on the bar, I am all for it as well.

If find some of reactions on this ridiculously hyperbolic "biggest attack on the web in years" ? seriously ?

I get it, Google is a gigantic monster that does not necessarily act in its users best interests, but that does not mean we need to bring the pitchfork each time they launch an app update.

on_and_off··on Every year I fill out this survey from Apple, for Apple developers
I think we agree :) More to the point I believe that both models are necessary in a perfect world .. but not sure they will happen.

I too also have way too many mac steam games ... from the very brief period when gaming on a mac was thing. I haven't updated my personal MBP yet but I will have to bite the bullet sooner or later.

Fortunately I have moved on to consoles.. I better not update my mbp and look at my list of compatible games.

There could be another way though, looks like windows 10 still supports 32 bits software via WOW64 (32 bits emulator). In general the one good thing I can say about windows is that it managed to stay retro compatible with pretty much all the previous versions.

on_and_off··on Every year I fill out this survey from Apple, for Apple developers
> for everyone / my next app is an interior design / home control app.

That's a good point but really not "for everyone". Agreed that for a one shot app like this, pay once is the model that works. Although one could argue that you still held the customer data captive as soon as they get a new phone and the app is no longer compatible.

on_and_off··on Every year I fill out this survey from Apple, for Apple developers
Even something as simple as a weather app needs to pay recurring costs for its API, regardless of user data

And thinking about it .. hard to make a good weather app that does not collect your location. Good is relative here, for me a good weather app will automatically update to my current location wherever I go.

on_and_off··on Every year I fill out this survey from Apple, for Apple developers
that's how I remember it as well. The first app store on iOS was third party hacks to be able to install 3rd party apps.
on_and_off··on Every year I fill out this survey from Apple, for Apple developers
Strongly agree with most of the points, but not all.

Disagreements :

- App updates. I think that the subscription model would be pretty good for apps actually if you could have a micro transaction system. Great quality apps are constantly maintained and often have recurring costs (API, servers, etc). Selling apps for a one time fee does not fit that well in this model. A nominal fee for app updates kinda solves part of the problem .. you just hope that your users love the new feature enough to buy it. It feels a lot like for a lot of apps that would just lead to feature creep instead of good design. I have been hoping to see a micro-subscription model emerge for a very long time. Unfortunately I don't think customers want that and Apple/Google don't seem super interested in pushing it either (Google kinda has that with Google Play Pass, but in typical Google fashion this is dead on arrival).

- I don't think the web is in a significantly different than it has been for the entirety of iOS/Android existences : it has its place but is not going to replace native anytime soon, especially for the "high quality" apps the author talks about.

on_and_off··on Most tech content is bullshit
This is sadly too true.

I have seen new libraries becoming popular not because they solved their target problem better in a measurable way than the existing ones, but because they used [insert fancy tech that is hype right now].

I have seen articles reposted in tech newsletters that were completely bullshit. The last one was about manually cleaning up some weak references because that would magically help performances, without any data to back that up.

Performances in general is HARD. There are very few general truths that hold true and many rules of thumb that change rapidly as mobile platforms evolve. Most of the performance optimizations I used to make 5 years ago just don't matter anymore. Measuring the bottlenecks is not that hard but still very rarely made, even in performance articles.

on_and_off··on Slack Removed a Blog Post Showing How Police Use Its Tech
sure, let's frame everything in good vs bad, that's not limiting at all
on_and_off··on Slack Removed a Blog Post Showing How Police Use Its Tech
it is also not the job or the prerogative of cops to punish anybody FFS.

They have a VERY special role in society where they are authorized to use violence against other citizens. This role absolutely does not include any form of punishment or beating up people because they feel like it.

Unfortunately police needs way stricter rules, monitoring and accountability than what they have today in many countries.

on_and_off··on iMessage for Windows: A labor of love that will never see light of day (2018)
the state of messaging is quite depressing. You have apple doing its own thing and with apparently no intention to have its communication service on all the major platform.

Google doing what google does and running like an headless chicken creating a new service every minute instead of creating one good one.

Last time I tried to launch WeChat, you had to surrender to it a disgusting amount of personal information to even launch the app.

You have some outliers like Telegram or Signal, but good luck getting all your contacts on there.

As a result I just have a dozen of messaging apps installed on my devices.

on_and_off··on How to write a toy JVM
So why CAFEBABE ? it is a random hex value looking like words or intentional to say that ?

edit, found it : https://dzone.com/articles/the-magic-word-in-java-cafebabe

on_and_off··on Image Scrubber: tool for anonymizing photographs taken at protests
They tried kneeling and it was super effective!!
on_and_off··on Android Studio 4.0
I just skimmed https://guide.elm-lang.org/architecture/buttons.html .

It does sound very familiar ! Yeah there is nothing new there (and MVI on Android having been heavily influenced by what's going on on other platforms is readily acknowledged).

It is newish (it has been there for several years now) as far as "trendy" Android architecture patterns go.

We started with a bad implementation of MVC for several reasons :

- what Google ended with (which does not look like it fits what they initially intended, but I digress) with its god Activities has encouraged the community to go in that direction.

- when Android was first released, the smartphones of the time were heavily CPU and memory constrained. The way applications were built was to best fit these constraints (sometimes in naive ways).

And again, I am not advocating for all problems to use MVI or that it is the one architecture to rule them all. Just something interesting that was very likely not in gp mind 7 years ago.

on_and_off··on Fuchsia overview
agree on the issue but I don't think that Play Services is a great exemple.

It has always been closed source and can be replaced in any AOSP build. Google has no obligation to provide open sources apps and services on top of AOSP.

on_and_off··on Android Studio 4.0
to add on top of what lubonay wrote, this unidirectional data flow allows to solve a wide range of problem in how we handle state (and its changes).

so you have

- the state, only containing pure java/kotlin objects)

- reducers to handle state changes. Basically a reducer is a method that takes a state as input (and often another parameter, like e.g. an user input) and creates another state as output.

- and a model of your ui, that is created from each state.

This works very well to have fully testable business logic (which is where the no Android objects is nice, so tests can just run on the JVM) and think about how both state and view changes (both state and view states are immutable, and are altered by copy).

Again, not necessarily something I say that grandparent absolutely needs, but if they want to try something new, it is there.

on_and_off··on Android Studio 4.0
Download Android Studio,

read the kotlin koans (assuming you are not familiar with kotlin), they are the best way to get used to that language if you know java, and kotlin is much more pleasant to use than java

Best practices and tools might be harder, a LOT has changed in the past 7 years.

Maybe https://github.com/ZacSweers/CatchUp as a sample ?

After that, it depends whether your hobby is to write an android app, or if the resulting product is hobby.

if it is the former, Compose is lots of fun and will be a big leap in android development. You can already use the dev version.

MVI has also deeply changed how I code Android apps. Again, maybe not needed for the level of complexity of an hobby app unless you want to toy with something different.

on_and_off··on Android Studio 4.0
We are going to have the exact same issue on Android :(

Compose (Android's swift UI counterpart) also needs to be compiled to see how your change fare.

Even with its preview feature, you need to compile your Compose tree to see how your change look.

This new lib gets a lot of things right, but this one part is a big step back.

on_and_off··on Android Studio 4.0
emulator vs simulator just offer different drawbacks.

It would surely be nice to have the option but a good emulator is needed.

on_and_off··on How to Put More “Character” into Your NPCs
Interesting. I love Hollow Knight and all of its characters but I could never take any of the From Software ones seriously (I haven't played all their games though, currently finishing bloodborne).

The maniacal laugh almost sounds like a placeholder

on_and_off··on How to Put More “Character” into Your NPCs
FromSoft also made Armored core, so no.

Most often people call these soulslikes. Kind of a dumb name and it might artificially constrain new entries to fit into a Dark Souls shaped hole (for example all these games don't have to have basically the same minimalistic light vs dark story) but well, that's how we talked about doomslike for a while as well.

Not sure what other descriptive we could use, intentional games ? The combat being more focused on giving weight to your actions vs allowing you to interrupt and change course anytime is the biggest differentiator IMO.

GMTK made a great video on what this genra by the way : https://www.youtube.com/watch?v=Lx7BWayWu08

on_and_off··on GitHub reinstates Popcorn Time code
The complaint is that the content is getting split among these platforms.

Nobody would complain if a Netflix competitor emerged with a library at least as large.

← PreviousPage 4 of 34Next →