HN user

antris

1,512 karma
Posts12
Comments519
View on HN
Turtletoy 8 months ago

I wish you could export these in higher res and 16:9, would make good background images

How "ugly" a trivial "Hello, World!" does not really matter much and isn't a good indication of anything about the language's ability to handle more than "Hello, World!"

Sure, but for beginner programmers who don't have the discipline down yet, it's unnecessarily hard. I bought a Java programming book as a kid and got stuck because of a typo that produced an error message I couldn't understand. This was the time before StackOverflow and Reddit. In retrospect, this delayed my programming journey by at least a year.

Longer Hello Worlds make frustration and getting stuck like this more likely.

Signal Secure Backups 11 months ago

Seriously, why is the migration protocol completely different on the two platforms?

Because they don't want to make jumping to the competitor too easy.

Well, considering that the US considers some political beliefs and journalism crimes, "don't go there with incriminating devices" implies restrictions on free speech and journalistic freedom. Also, privacy is not only for hiding crimes. Equating privacy with criminality is a great way to get undermine people's rights further. It's perfectly ok to think that some random TSA agent shouldn't be seeing my family photos etc. when I have done nothing wrong.

If you believe these rights are not important, that's your own opinion. But I think it's perfectly valid to criticize attacks on human rights.

Democratic party and Biden (liberals) when running against republicans (fascists): "Democracy is at stake" https://www.cbsnews.com/news/president-biden-speaks-on-stake...

Biden, when Trump arrives at White House: "Welcome home" https://www.yahoo.com/news/welcome-home-joe-biden-greets-160...

Also, in Germany the Nazi Party never got more than 43,91% of the votes in free elections. https://en.wikipedia.org/wiki/Nazi_Party_election_results Hitler rose to power through the support of the "moderate" or "liberal" right wing. https://en.wikipedia.org/wiki/Adolf_Hitler%27s_rise_to_power

Jobs didn't believe in cancer treatment https://www.forbes.com/sites/alicegwalton/2011/10/24/steve-j...

I'm pretty sure he'd have fell in line to the fascist insanity just like all other billionaires. He lived at the time of the height of neoliberal ideology, when most people believed in the conjured public images that the tech bro CEOs gave out in PR. Behind the scenes, things were quite different. Jobs has been reported to be petty, insulting and belittling of his employees

"A pure function which transforms the entire input into the entire output" is obviously the simplest possible architecture for many programs, but people hesitate to use that architecture because of performance concerns. In practice, the baseline performance is often faster than they expect, and it can be made much, much faster using strategies like memoisation and fine-grained reactivity.

But before React came along, you just couldn't do this without major UX breaking bugs, because of how the DOM worked.

Say you have a form that you want to change depending on the state of the app. If the user is typing in a form field while an update to the app state comes, and a pure function that transforms (app state -> DOM/HTML output) resets the form (meaning removing the old out of state DOM and replacing it with the new DOM), the user loses focus on the form. So you have to add some kind of logic where the app remembers what form input the user was focused on, where in the field the focus was, etc. The more complex your app is, the more complex the DOM reset logic became, and you cannot abstract your way out of it with pure functions, because the DOM that relies on mutation slowly creeps into your pure functions anyway.

React changed this, because it gives you a pure function interface, but resets the DOM using mutation functions i.e. native DOM methods, surgically. This is achieved with the VDOM (Virtual DOM), by diffing VDOM states and then reflecting that to the actual DOM. This means when the DOM resets, there's no problem with elements getting removed and added back in, and the focus states etc. don't get thrown away with the DOM. Before React, nothing like this existed.

US is literally sending weapons to the perpetrators of a genocide. Genocides do not make the world more stable, just the opposite.

Yeah, we are very close to losing video as a source of truth.

I think this way of thinking is distracted. No type of media has ever been a source of truth in itself. Videos have been edited convincingly for a long time, and people can lie about their context or cut them in a way that flips their meaning.

Text is the easiest media to lie on, you can freely just make stuff up as you go, yet we don't say "we cannot trust written text anymore".

Well yeah duh, you can trust no type of media just because it is formatted in a certain way. We arrive at the truth by using multiple sources and judging the sources' track records of the past. AI is not going to change how sourcing works. It might be easier to fool people who have no media literacy, but those people have always been a problem for society.

Of course I would call a pirated movie free, because that's what it is.

Free isn't a synonym for good or legal.

I mean, you're not saying that this project is "closed source" either, right?

So what is it if not "open source" on the scale between closed and open? "Half-open source"? "Leaked source" only refers to the way the source has initially began to be distributed, not whether it's open/closed right now.

Well that's the difference between "open source" and "free software", no? "Open source", meaning that anyone can see/copy the source code, and "free software" meaning code that is licensed accordingly.

I always thought that "open source" has nothing to do with what's legal and what isn't, it just means that anyone can materially access the code.

The most straightforward solution I can think of is to split date inputs by context. Create an `<input type="dob">` that is tailored for picking a date of birth from 1900-today. "date" is too vague of a context to create an UX that works well in all the different contexts. It'll always be bad in some contexts, if it's trying to solve all the use cases.

I've done several projects rebase-only with limited resources and time constraints. In fact, it saved resources and time when we did it.

You have been repaid the time investment spent learning rebase commands, after once being able to avoid a really bad merge conflict.