HNHacker News
TopNewBestAskShowJobs

lakpan

319 karma · joined November 4, 2023

submissionscomments
lakpan··on Oxlint – JavaScript linter written in Rust
I don’t think that’s practical at all.

IMO oxlint currently only fits the niche “I’m starting a new project and I don’t want to install 100 dependencies and configure eslint”.

Without ts-eslint and unicorn rules this is DOA for me otherwise (but I’m hopeful)

lakpan··on Oxlint – JavaScript linter written in Rust
Anyone who picks and chooses from the entire list of rules is doing it wrong.

Pick a config that roughly matches your ideals and just use it. On older projects you’ll have to customize it a bit, on new ones you’ll probably just adapt to it.

I’ve been using eslint-config-xo-typescript for several years, plus some plugins with their “recommended” presets.

lakpan··on Location history data in Google Maps will soon be stored on user devices
> As long as the data on my device is synced to iCloud storage

But is it though? That’s the major catch. Something as important as Google Authenticator is not backed up, so you must enable sync to your account to ensure you don’t lose it (which wasn’t a thing at all until recently)

lakpan··on Location history data in Google Maps will soon be stored on user devices
Tangential: Is anyone else getting burned out from having to transfer data between phones?

Let me explain. I’ve been rocking the same iPhone backup since 2010 and I never lost anything… but now if I lose my phone I will lose my eSIMs, as well as any non-passkey 2FA. What next?

Just recently I was unable to reinstall my eSIM for an hour and my headache was growing stronger as I imagined what all the services that (still) relied on SMS 2FA, all of which would not be activatable without it.

Switching to a new phone now requires me going through my long app list to determine which apps “probably” need to be reactivated on the new phone, while still having access to the old phone.

Back on topic: now I also have to worry about my location history being lost forever should I need to uninstall a buggy Google Maps (happens just about yearly)

lakpan··on WebP is so great except it's not (2021)
I want to believe.

Having an immediate upgrade path to all pictures from the past is too good an opportunity to pass up.

We rarely get a free “compress losslessly” button for our archives.

lakpan··on Nikon makes firmware for astronauts to block cosmic rays in photos
> minor inconvenience

Do you have software that automatically fixes this issue in all the pictures at once? Because as a non-professional I can only think of a very manual approach.

On my old phone, dust made its way into one of the cameras and now all of those photos are forever ruined (or until I find a way to somewhat automate this fixing)

lakpan··on Google calls Drive data loss "fixed," locks forum threads saying otherwise
I never said they used the same password. If anything, having 4 different passwords to data you access exceptionally, you’re likely to have a bad time. Do you also store the passwords 4 times in 4 separate places?
lakpan··on Goodbye, clean code (2020)
The example in the linked blog is easy to detect, but often duplicate code exists across files, often unrelated. Just today I deleted several React components that literally only varied by name and were intentionally copy-pasted. I only realized because I the one I edited was imported by the same file as others.
lakpan··on Goodbye, clean code (2020)
> I'd love for them to tag me

That’s generally what I like too, but often in teams my suggestions are either approved with zero comments, ignored or followed by wasteful reviews by people who don’t know the language they use every day, and don’t bother to google their answers.

lakpan··on Nikon makes firmware for astronauts to block cosmic rays in photos
So, wait. The camera can fix dead pixels but only does so once a month? Dead pixels are dead easy to detect by the sensor, why don’t they do it immediately? Way to ruin a bunch of photos between cleanups…
lakpan··on Goodbye, clean code (2020)
> tagging the author

Sounds like trouble to me.

“Hey I rewrote what you wrote because it sucked. Got problems with that?”

I suppose the best solution to this problem would be a “late review” asking for an explanation, offering a solution, and hoping it doesn’t just get ignored, which is the easiest thing to do for the author.

lakpan··on Goodbye, clean code (2020)
The changing part is not time consuming, is having to fix the same bug over and over because you didn’t realize this same function was copy-pasted in 7 different files. It really gets worse when you realize this a year after the first bugfix, still dealing with a stupid bug you fixed a year prior, if it wasn’t for copy-pasted code.

I’m also against DRYing up unnecessarily, but if the code is a 100% match in intention and/ord behavior, then it’s going to be deleted.

lakpan··on Google calls Drive data loss "fixed," locks forum threads saying otherwise
On the other hand, if you you forget the password to all 4 copies, redundancy will fail.

Life is lossy

lakpan··on A Brainfuck interpreter written in PostScript
This is such a Brainfuck answer
lakpan··on A Brainfuck interpreter written in PostScript
How do you implement a compiler in 6 lines of code, let alone 6 lines of BF code?
lakpan··on YouTuber sentenced to 6 months in prison for obstructing probe into plane crash
I think it was deleted but you can find a reupload

https://www.youtube.com/watch?v=_2htaX92rRI

lakpan··on Judge: Amazon "cannot claim shock" that bathroom spycams were used as advertised
Ph-lease! You don’t need to be that damn close to “keep an eye on”, and actually I don’t think you’d really want to be that close.
lakpan··on Report Phone Spam – Shut down robocallers and text spammers
In America’s “receiver pays their part” system I wouldn’t be too sure. In the rest of the world, the caller/texter pays 100% of the charge, but in the US you’re charged per text and minutes received.

Once you add a “free call” entity on the other side (like Google Voice) then no one is charged to make the call.

Additionally, plenty of people “sell” their real number and there are android apps routing internet call through the victim’s real number. In this case, even if the person is charged, it’s not necessarily the spammer.

lakpan··on GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Text
I’m confident someone already did it, but honestly I would not trust an LLM with numbers (as important as money and specifically taxes)
lakpan··on Chrome's next weapon in the War on Ad Blockers: Slower extension updates
The only real part is that MV3 does not allow actual remote JS to be run on web pages. However you could still run it in a sandboxed iframe (not super helpful to adblockers though)

https://developer.chrome.com/docs/extensions/migrating/impro...

lakpan··on Chrome's next weapon in the War on Ad Blockers: Slower extension updates
Absolutely clickbait. Nothing in the article suggests that review times are increasing, they’ve always been “from a few minutes to a few days”.

Also filters do not depend on extension updates at all, they are plain text files that can be updated at any time. Not to mention that they can contain “scriptlets”, which make them quite literally “remotely hosted code” and still allowed by MV3 (because they’re not raw JavaScript)

lakpan··on Booking.com hackers increase attacks on customers
A lot of banks offer those nowadays. Wise has virtual cards and Revolut even has single-use cards, just to mention the most popular ones.
lakpan··on Booking.com hackers increase attacks on customers
Are you 100% positive on that? Because last time that I saw that number in my family’s old hotel I remember it being “a virtual number” rather than the customer’s real card.

https://partner.booking.com/en-us/help/policies-payments/pay...

The fact that it stores your card is pretty much an unescapable reality. Just like car rentals, they reserve the right to charge you before, during or after your stay, for the booking or for damages.

lakpan··on RavynOS Finesse of macOS. Freedom of FreeBSD
That’s right, En Oh Wizárd
lakpan··on RavynOS Finesse of macOS. Freedom of FreeBSD
a-aronOS
lakpan··on Ask HN: Those making $500/month on side projects in 2023 – Show and tell
How do you “buy solar farms”? Don’t you have to maintain them? From your comment makes it sound like it’s not a job in itself.
lakpan··on Adobe's buy of Figma is 'likely' bad for developers, rules UK regulator
Deserve in what way? Figma creators got a lot of zeros from Adobe.
lakpan··on JavaScript: Double Bitwise Not (~~) (2010)
Nothing compared to

, commas

, first

;

lakpan··on JavaScript: Double Bitwise Not (~~) (2010)
To be fair early JS development was full of “one weird tricks” that made code unreadable. Thankfully jslint came along and started cleaning up this sort of stuff. Now ESLint and its plugins target a lot more unreadable code, like the `no-array-reduce` rule.
lakpan··on The `hanging-punctuation property` in CSS
Are we looking at the same page? Where’s the contamination? It’s pure CSS applied to a basic `blockquote` element. There are no spans and no divs.
← PreviousPage 4 of 5Next →