HNHacker News
TopNewBestAskShowJobs

Flimm

3,484 karma · joined October 24, 2011

I use tildes to denote sarcasm, like this:

> We all realise that that would be ~so much better~.

If tildes are omitted, then I have not intended to be sarcastic.

If you're looking at my profile to see which gender you should use to refer to me, go ahead and use the male gender.

submissionscomments
Flimm··on JavaScript Is Weird
I agree. I think a high level programming language like JavaScript should default to the more "correct" (least surprising) behaviour, and let the programmer opt in to floating point numbers when needed for performance.

In modern JavaScript, you can use BigInt literals by suffixing an n, like this:

  const maxPlusOne = 9007199254740992n;
If I could magically redesign the language, I would make all integer literals be effectively BigInt values, and I would make all decimal literals be effectively decimal values so that 0.1 + 0.2 === 0.3. I would reserve the letter suffixes for more performant types like 64-bit floating point numbers that have surprising behaviour.
Flimm··on Temporal: Getting started with JavaScript's new date time API
In Javascript's Date API, the month number is 0-based (January is 0), but the day number is 1-based (the first day of January is 1, not 0). That inconsistency is unexpected and makes it harder to use.

I'm glad most modern date APIs use 1-based numbers to represent the month and the day (not to mention the year from 1 AD onwards).

Flimm··on GitHub blocks FLoC across all of GitHub Pages
(5) they don't want to help other competing websites to steal their customers using targetted ads
Flimm··on GitHub blocks FLoC across all of GitHub Pages
Even if we only consider the direct self-interest of website owners, website owners may want to disable FLoC in order to prevent competing websites and adversaries from being able to target that website's visitors with ads. The more effective those ads are, the more they are taking away business from the websites that have not disabled FLoC.
Flimm··on Ask HN: How to say no to be on-call?
I think there is another factor missing from both equations. If someone is willing to be available for overtime, that is valuable in and of itself, even if that person is never asked to do overtime. The company has the option of asking for overtime with employee x, and not with employee y, and could be persuaded by employee x to pay for that optionality.
Flimm··on I can’t work the hours I did in 2020 again yet struggling to see how to avoid it
By default, a user's Slack notifications are paused at night, unless I am misremembering.
Flimm··on Ask HN: What's a side project you built to make money that hasn't?
There might be a baby boom after Covid-19, but right now, we are expecting a baby bust. Economic uncertainty is leading people to delay having children, at least in certain countries.
Flimm··on Ask HN: What are some recent less known innovations in UI/UX
Sadly, it hasn't been updated in a few years.
Flimm··on Ask HN: What are some recent less known innovations in UI/UX
You can still recover a deleted email from the bin.
Flimm··on Self-host your fonts for better performance
I just checked on a website I maintain, and it's looks like Google Fonts behaviour has changed. It definitely used to prioritise local fonts, and now it doesn't. In a way, I understand, because local fonts aren't always identical to the online ones, leading to weird bugs that might not be noticed at first (especially in languages that don't use Latin characters). Fonts also get updated over time.

When you select fonts on Google Fonts, the website instructs you to link to CSS hosted by Google, which is simple to implement, but not performant. Really, you would want to load that CSS asynchronously, so that the rendering of the whole website doesn't wait for Google Fonts. (Here's how you load CSS asynchronously, by the way: https://stackoverflow.com/q/32759272/247696 ) Or even better, host the fonts yourself.

Flimm··on This is Real, That's Not
Is it possible to watch this movie outside of the USA?
Flimm··on Ask HN: Which domain name registrars allow you to share admin access?
To answer my own question, these are the domain registrars that I have found support multi-user access:

- https://domains.google.com

- https://namesilo.com

- https://namecheap.com

- https://gandi.net

Flimm··on Ask HN: Which domain name registrars allow you to share admin access?
Yes. Interestingly, this actually depends on the TLD. Some TLDs do not support changing the nameservers to be in a foreign country, which limits your choices. I learnt that the hard way.
Flimm··on Case-Insensitive Ext4
Yes, I would quite like to see Linux filesystems require that file names be in valid UTF-8, with no new lines, at the very least. Normalisation would be a bonus but I'd want to do it a way that is helpful for compatibility with macOS and Windows.
Flimm··on Chrome, Firefox extension that blocks NSFW images using TensorFlow JS
If porn needs to be filtered then it needs to be filtered regardless of attitudes towards of depictions of violence, and if it doesn't, it doesn't. We shouldn't choose as a baseline depictions of violence.

Many people say they are negatively affected by porn addiction (whether consumers, or partners of consumers, or parents, or people who feel objectified, even some people in the industry), and they feel strongly about it. Just because sex is a good part of human nature doesn't invalidate that in their eyes. In fact, it is precisely because some consider sex to be good and precious that they want to be much more careful about viewing it or depicting it, and I agree with that.

The number of societies that don't want censored sexuality is near zero. It is not just "some societies". And there are plenty of societies that desire that more than western ones.

Flimm··on The cost of 1GB of mobile data in 228 countries (Feb 2020)
Nitpick: 1Gb is only an eighth of 1GB and I think you meant the latter.
Flimm··on Google resumes its attack on the URL bar, hides full addresses on Chrome 86
Yes, it has been doing it for ages, both on macOS and iOS.
Flimm··on We Can Do Better Than SQL
jOOQ and SQLAlchemy are libraries for Java and Python respectively. You can't take your knowledge of those libraries and use them in a different programming language. And you still need to know SQL well in order to do any debugging, because the database is still receiving an SQL query string.

What I am wishing for is for the language to be more like JSON, something that matches closely to commonly found structures in programming languanges (like lists, objects, numbers, strings and booleans), and that the database can support natively.

Flimm··on We Can Do Better Than SQL
Yes, SQL has flaws, and the article forgot to mention one of them: you need to build a string to build an SQL query, rather than a more structured object, leading to flaws like SQL injection vulnerabilities, and difficulties adjusting the query.

Let's say you're building a CRUD app with search and filtering capabilities. Unless you are using an ORM (which has problems of its own), you might be tempted to build the SQL query string like this:

  conditions = " AND ".join(filter_key + " = '" + filter_value + "'" for kilter_key, filter_value in filter.items())
  order_by = column_name + " DESC"
  query = "SELECT col1 FROM tablename WHERE " + conditions + " ORDER BY " + order_by

But this has multiple SQL injection vulnerabilities. Doing it correctly is not just a matter of using SQL parameters, because column names need to be escaped differently than string literals. Linters can't distinguish between correctly escaped queries and incorrectly escape queries in non-trivial cases. Also, the query will throw a syntax error if the number of filters is zero, since you can't have an empty WHERE clause.

I don't think a new query language solves this problem.

Flimm··on Ten modern layouts in one line of CSS
People read emails on their small screen devices, and I think it would challenging to read an email on a small screen made with tables.
Flimm··on Twitter is at its best when verified accounts can’t tweet
(I like HN's design as well, except when I am using a touchscreen.)
Flimm··on Show HN: Is It Worth the Cost?
This looks really cool. I put in some numbers for a service that I am considering, and the answer was the opposite of what I was intuitively expecting, which proves the need for something like this.

Some feedback:

- s/(one person)/(per person)/g - The "cover costs" section doesn't really make sense to me. For example, in one example, the breakdown says that I will burn $10000 extra, but that I will also cover costs with 23 hours of use. How does it know how much use it will take to cover costs? How does it know how much profit is generated per hour of use? Am I misunderstanding something? - It would be nice if the formula used was displayed in small text or in a tooltip or something.

Flimm··on Show HN: Reclaim – an adaptive calendar app that plans time for your routines
Goals in Google Calendar can only be created from Android or iOS, and not from the web, for some reason. I presume Reclaim doesn't have this limitation.
Flimm··on Intel Engineer Explains Why Apple Switched to ARM
Title needs to start with: "Former Intel engineer..."
Flimm··on Pwned Passwords, Version 6
Some breaches are marked as "sensitive". HIBP won't tell you if an email is in one of the sensitive breaches unless you prove ownership of the email address by clicking on a verification link.
Flimm··on Basecamp's video tour of their new email service HEY
Watching this, I felt like I was watching the mother of all email demos. I am really liking the thought that they put into common email workflow problems. I haven't tried it yet, has anyone else?
Flimm··on Google Is Not God of the Web
Not all websites are going to improve their performance, even with Google's incentive. If Google ranks fast websites better than slow ones, that gives Google an advantage over any competitor that doesn't, as long as slow websites still exist.
Flimm··on Show HN: Print a WiFi Login Card
Nice! I didn't realise that iOS supports QR codes out of the box now.
Flimm··on Show HN: Print a WiFi Login Card
Do all Android and iOS devices support this feature?
Flimm··on The Fastest Google Fonts
I completely agree. System fonts render Arabic very differently on Windows, on Chrome OS and on Ubuntu, for instance, so differently that you feel you need to adjust the font size depending on the font being used.
← PreviousPage 8 of 27Next →