HNHacker News
TopNewBestAskShowJobs

shortcake27

1,543 karma · joined November 21, 2022

submissionscomments
shortcake27··on Armed with traffic cones, protesters are immobilizing driverless cars
You speak as if criminals don’t already exist; as if it isn’t currently possible to rob a house, or someone on the street, or a car stopped at traffic lights.

If someone wants to commit a robbery there are already plenty of ways they can do it. I fail to see how autonomous vehicles would increase the rate of crime.

shortcake27··on Skiplagging: The travel hack hated by airlines is now the subject of a lawsuit
The airline probably sets pricing based on a model that predicts the maximum amount of profit based on supply/demand, popularity etc.

Similar reason I can get a flight from London to Rome for £20, yet Sydney to Queenstown is a minimum of $300.

shortcake27··on A man who can talk backwards (2017)
I don’t think they mean reversing the spelling and pronouncing that as a new word. I think they mean taking the pronounced word and reversing the waveform. Ie what you would hear if you were playing an audio recording in reverse.
shortcake27··on Cruise will reduce robotaxi fleet by 50% in San Francisco
Using this logic, nobody should be allowed to learn to drive because inexperienced drivers have a higher incident rate.

Of course, this is absurd. Instead, we slap on some caveats (time/passenger restrictions) and accept the risk with the knowledge the driver will improve with time.

This is exactly the same for self driving vehicles. The only way to make them safer for public roads is to drive them on public roads. So if we slap on some caveats, such as a reduced fleet, we can make them safer while keeping incidents down.

shortcake27··on New book considers the impact of electronic logging devices on drivers
This argument is often cited in gun control debate. “Criminals will just buy guns illegally and law abiding citizens will be left defenceless”.

And yet, in countries with gun controls, there is significantly less gun crime.

I daresay this is the case for most laws. Yeah, there will be always be some people skirting the law, but implying laws have no effect is ridiculous and untrue.

shortcake27··on We reduced the size of our JavaScript bundles by 33%
It depends on your needs. I primarily used Dropbox as a backup destination for a range of directories on my computer.

About a decade ago, this worked great. All I had to do was create a symlink within my Dropbox and the directories were backed up.

Then a few years ago, Dropbox stopped supporting symlinks because they “caused problems”. It’s unclear what problems exactly because I’ve never actually heard of anyone who experienced any issues. Nonetheless, the solution was to move the real directories into Dropbox and put a symlink in their original location. This _did_ cause problems, including needing to disable SIP, and breaking navigation in Finder which treats symlinks like shortcuts.

Finally, the latest update completely broke backups for me. Admittedly this was not Dropbox’s fault; they were forced by Apple to use a new API which doesn’t allow the Photos library to be backed up.

I moved my backups to Backblaze B2 and cancelled my Dropbox subscription. Now I use rsync to back up my machine, and utilise Dropbox’s free tier for the small amount of cloud storage I actually need.

Oh, and for the amount of data I back up, B2 is almost an order of magnitude cheaper.

shortcake27··on E-bike companies are fighting to stop riders from repairing their electric bikes
> What am I missing ?

That vendor lockin and difficult-to-replace parts were a significant driving force behind right to repair, yet ebike manufacturers have successfully used artificial difficulty as a reason to exclude their products from the law.

shortcake27··on E-bike companies are fighting to stop riders from repairing their electric bikes
I think you may have missed my point, but that’s my fault because I was being facetious.

When I need to replace the battery in my car, I don’t open up the battery to replace the plates and acid. I buy a new battery (from a brand and store of my choosing) and recycle the old one.

Why are ebikes different? Why are people having to replace the cells in the pack? Because the manufacturer has made it impossible to get a aftermarket replacement battery pack.

So I’m saying the solution is for manufacturers to build their products in a way that makes it easy and safe to replace the battery (without lockin), instead of intentionally building products that are difficult/unsafe to repair and using that to claim the product needs to be excluded from right to repair.

shortcake27··on Just how hot was July? Hotter than anything on record
> I have a hard time understanding how we extrapolate out things like 1 degree increase in temp means we're cooking the planet and there's no turning back.

https://en.m.wikipedia.org/wiki/Tipping_points_in_the_climat...

Although I don’t believe you’ve never heard of runaway. It’s not as if this is some niche argument; it’s a well-understood mechanic that underpins most arguments about climate change. If this is new to you, I daresay you’ve been wearing some extremely heavy duty blinkers.

shortcake27··on E-bike companies are fighting to stop riders from repairing their electric bikes
> But complicated and potentially dangerous components like lithium-ion batteries – which require special tools, skills and experience to operate on correctly – are another matter.

What special tools, skills, and experience is required to unscrew a battery pack?

How is this a legit strategy, to artificially make a product difficult to repair then claim it needs to be excluded from the law? Didn’t right to repair gain traction from exactly this type of garbage? Ie John Deere, phones with heavily glued batteries that then show fake warnings in the OS etc.

shortcake27··on Do you avoid the news? You’re in growing company
Yes, my elderly mother can’t stop complaining about how much crime there is “these days”. Despite the fact crime per-capita has decreased, the news reports the absolute value. This in turn tricks people into believing something that is quite literally opposite from what is really happening.
shortcake27··on What comes after Zoom? (2020)
FaceTime is incredible.

Everything else I’ve used - Zoom, Meet, Slack etc, has insane lag/delay even when I’m having a one-on-one with someone in the same city.

Then I made a FaceTime call to the opposite side of the world and it was like we were sitting next to each other. No delay. No weird interruptions. No “sorry, you go”. And I was on shitty pub wifi.

I don’t know what the deal is. Do all these other services route through slow-ass servers in the US? Bad client-side processing? FaceTime proves the possibility of near-real-time communication across the globe, why is no one else even close?

shortcake27··on I do not use a debugger (2016)
> Like, are there devs using debuggers when they don't make sense? I don't often drop into a debugger just for fun.

Yes. Older developers tend to debug with console/echo/print etc. Somewhere along the line this was deemed “bad practice” and now there are devs who will exclusively use the debugger for everything because they were taught it’s the “correct” way.

People will do what they’re taught. I grew up with console/echo/print so that’s how I roll. I never use the debugger, to my detriment. Conversely, people who grew up exclusively using the debugger will use the debugger for everything even when it would be way faster to just dump some data.

shortcake27··on I do not use a debugger (2016)
To be fair, most people who don’t use debuggers have no reason other than habit because they didn’t learn to debug using the debugger.

I started writing JS/PHP over 20 years ago. Back then I debugged with console/echo/var_dump etc. This stuck with me and is still how I debug today. Every time I see someone use the JS debugger I’m impressed by its utility. Still, I always end up reverting to console logs. It works for me and I can’t find a reason to break the habit.

shortcake27··on IRS unveils 'paperless processing initiative' for taxpayers
In Australia, the ATO knows everything. Employment income for a start, but also bank account interest, dividends, health insurance payments, and a lot more. For the average person, the pre-fill is all you need and you can just submit the return as-is.

Not sure why the US isn’t able to do that. All employers and banks have your SSN, right? Sharing data with the IRS at the end of the tax year isn’t rocket science.

shortcake27··on Throw away your first draft of your code
In my experience, this is what actually happens. A developer makes a low-quality, low-effort prototype under the assumption it won’t ship. Someone sees it. It gets shipped. Everyone loses.
shortcake27··on Scientists hit with massive bills after speaking at COVID-19 ‘webinars’
Only physically though.

Many years ago, possessing the values on a passport constituted verification. This data was stored and after a significant number of leaks, this data alone was useless as it became public knowledge. The next step was requiring a photo of the document. The photos were stored, and after a significant number of leaks, the same thing happened. The next step was ID selfies. Then the same thing happened. Now it’s selfie videos with the ID. This too will become useless when those videos are leaked.

It’s a never ending battle. A passport is a physical document and should only be used physically.

Online, we need public/private key authentication. It’s the only way.

shortcake27··on Teaching Programming in the Age of ChatGPT
As an SWE, my problem isn’t boilerplate. It’s architecture and orchestration. I cancelled my Copilot subscription because it just doesn’t help with this. Let alone ChatGPT which has zero context about the application.

I would like an AI to tell me if I’m reinventing the wheel or if something similar can be abstracted. Whether what I’m doing aligns with existing patterns in the codebase. How the application as a whole could be refactored to improve maintainability, performance, or both.

This can all already be done by a human with experience and context, so it must be possible with AI. This will be the biggest game changer for me.

shortcake27··on Tiffin Tom: Fish, chips and a side of identity theft
Yeah that’s a good point. I’m actually in the UK at the moment and Wetherspoons is the only place where I’m ordering with my phone (also, the Wetherspoon app is a great example of mobile ordering done right - fast and no collection of PII).

Compared to Melbourne where half the pubs I visit tell me to order via the QR menu where I have to punch in my number and get an OTP before I can order anything.

shortcake27··on Tiffin Tom: Fish, chips and a side of identity theft
I actually like the concept when executed properly.

If I’m eating out at a bar by myself, it means I don’t have to lose my table to get up and order. I also have social anxiety, if the bar is packed it’s a real problem for me. I’ll usually end up hovering while everyone else takes advantage and pushes in front of me.

The Wetherspoons app in the UK is a great example. Easy and fast to use, requires no account/PII just pay with Apple Pay.

shortcake27··on Ask HN: Anyone else notice that HN isn’t full of JavaScript frameworks lately?
Agreed, this is the correct approach. Overusing effects makes control flow difficult to understand and has many unintended consequences. The misuse of effects is so widespread the React team had to address it with Strict mode in React 18.
shortcake27··on Tachyons – A CSS Toolkit
> I like it and I don’t. I mean <b>bold</b> is a little simpler than <div class=“b”>bold</b>

Of course in this example, semantic HTML makes sense. How do you compose styles? Do you have a semantic element for every CSS property and every combination of every CSS property? Utility frameworks are used for much more than making text bold. The idea is to write as little CSS as possible, which reduces CSS bloat, collisions, specificity hell etc.

> More generally you really ought to be able to pull some HTML out of page A and transcode it into page B and that means copying the styles and a lack of namespaces for id(s) and class(es) gets in the way of that.

That is quite literally what tools such as tachyons/tailwind solve.

> or frameworks that work on the DOM more imaginatively than React does

I don’t really know what this means. But if you’re using React, you can leverage CSS Modules or one of the many CSS-in-JS frameworks. Both of these approaches solve your issue with namespacing.

shortcake27··on Tiffin Tom: Fish, chips and a side of identity theft
Tangential, but I wish companies like this didn’t force people to provide so much PII in the first place.

In Australia, I’m yet to use a QR menu that doesn’t force me to provide my phone number. Why is my phone number necessary to order a bowl of chips? Ah, I see, Liven needs my phone number so they can sell it, according to their Privacy Policy. Mr Yum apparently doesn’t sell it, but still forces me to provide it anyway.

shortcake27··on 17.1 Salesforce Towers worth of empty office space spread across SF
I’d rather have 5 of these around the world than a single property that has way too much space for me. I never open my curtains anyway.

But it just isn’t a thing. Surely the margins would be decent? The demand must be too low.

shortcake27··on Payment systems while working at a pizza place
I am in agreement with you.

I’m just saying that developers need to apply discretion rather than following arbitrary “rules” or “patterns”. When to store or derive depends on the use case, of which are infinite.

shortcake27··on Payment systems while working at a pizza place
I feel like this is one of those cases where people take a mantra too seriously.

Storing values that could otherwise be derived results in complexity and discrepancy.

This may lead people to the conclusion that all values which can be derived should be derived, but in the case of a receipt/invoice, this is not the right call. Discretion must be applied.

shortcake27··on Wix’s new tool can create entire websites from prompts
Not sure why this has been downvoted? Bubble is an impressive piece of kit. As an engineer I’d still much prefer to write code, but I get the value - I’ve witnessed non-engineers craft legit web applications. DB, workflows, client state - it’s powerful but also accessible.
shortcake27··on Ash HN: How can I make my idle CPU time useful to others?
> This won't meaningfully increase air quality or reduce emissions.

And using this argument inversely, those 100 watts also cannot meaningfully help others, which is what the OP wants to do.

So if you have two options - meaninglessly donate 100 watts or meaninglessly save 100 watts, what’s better?

If someone were in need of significant amounts processing power (which is what the OP is hinting at), obtaining it from idle consumer PCs is an incredibly inefficient method of using that power. Think on the lines of CPU mining - a totally useless waste of energy. Whatever this hypothetical person is trying to do, it would be much more efficiently achieved via specialised hardware, and the OP would be better off supporting that than donating their processing power.

shortcake27··on Zoom fatigue unpacked
It’s a catch 22 for me.

When it’s there, I can’t stop looking at it to ensure I look ok.

When it’s not there, I’m stressing because I don’t know how I look.

shortcake27··on CSS findings from the Threads app
I use relative units (ems/rems) for font sizes and absolute units (px etc) for everything else such as margins/paddings/borders. I also set the html font size to 62.5% which makes the math easy (1rem = 10px).

This ensures that if a user adjusts their browsers font size for accessibility purposes or uses dynamic type, only the text will scale. You don’t want margins/paddings to scale with font size (at least not linearly) otherwise the layout gets cramped/unusable very quickly.

As others have mentioned CSS pixels have nothing to do with hardware pixels. So there are no issues with the differences in screen densities between devices.

← PreviousPage 6 of 16Next →