HN user

DecoPerson

1,372 karma

Ex-game designer

Posts4
Comments249
View on HN

My 76 old Dad loves checking the TOTP on his phone and asking me to verbally read it out when I need him to accept a 2FA push notification to let me log into his bank or government accounts so I can do something for him.

He says it “feels like 007 stuff.” “AI will never trick me!”

We also have a duress code word, listed in the notes of that KeePass(ium) entry with the TOTP.

Claude Design 3 months ago

For us, Claude Design wrote one html file and a bunch of jsx files. What it built was quite functional. We used the “export” button to download the project as a zip file and I placed the contents into a directory in my monorepo. Then I wrote an about 5 paragraph prompt for Claude Code, sent it with bypass permissions (CC is running as a different, non-root user with no LAN network access), and went to bed. The next day, viola, it turned prototype jsx into tsx (+ server-side ts) that mostly conformed with my existing stack.

I’ve been trying to find a good way to let my Dad keep tweaking the new version but haven’t so far. For now he continues to work (using CD) on the jsx prototype. I can do another export later and CC could use git diff to see what changed and realise those same changes in the “real” version. But there has to be a better way.

Claude Design 3 months ago

This isn’t going to replace Figma. It’s going to replace the people who use Figma.

My 76yo Dad just used Claude Design to make a simple commercial tenancy/lease management CRUD app. We handed what he built to Claude Code to implement within my existing business tech stack. It perfectly followed my coding & testing playbooks (basically a multi-file CLAUDE.md with prompt & command hooks to evaluate conformance). It works… exactly as my Dad imagined.

Now, mind you, my Dad had some outdated UI expectations (he asked Claude Design to style use a Windows 98 aesthetic!), but my point is: we just built a fully-functional, deeply tested, domain-expert-designed app, in less than a day.

(I’m not a Teardown dev!)

I tried this on a local project. It looks very jank and the math falls apart quickly. Unfortunately, using a fixed axis-aligned grid for rotating reference frames is not practical.

One to thing I wanted to try but didn’t, was to use dynamic axes. So once an entity is created (that is, a group of voxels not attached to the world grid), it gets its own grid that can rotate relative to the world grid. The challenge would be collision detection between two unaligned grids of voxels. Converting the group to a mesh, like Teardown does, would probably be the easiest and most effective way, unless you want to invent some new game-physics math!

I think the word “solve” is better than “hide” here.

Fusion 360’s heuristics are so good that I rarely run into these problems. When I do, it’s usually because it was a drastic change to a previous feature in the timeline and I’m expecting to encounter issues because it’s a really fundamental change.

I wonder, is Microsoft doing “outsider trading”, where they covertly pipe analytical data to the executives’ independently-owned stock trading houses as “tips”? They’ve had access to so many corporate internal emails for so long, with MS365, but Copilot is the perfect way to mask such analysis. Also Copilot would be good at analysing emails and providing useful “tips”.

Just my whacky conspiracy theory of the day!

I know little about stocks, but I've heard China doesn't allow shorting stocks and many other "advanced" stock products/instruments. You can buy, sell and trade stocks, and nothing else. They also audit to ensure stocks are not oversold/traded (e.g.: selling stock you don’t own in the hopes you’ll obtain some in time to fulfil an order).

Maybe that's why they behave differently?

Go with WebView.

As you’re a solo dev, one of your most important resources is your mental capacity. Native platforms & their dev stacks are a world of their own.

Going with WebView allows you to spend your time on other things that matter more. It also helps you prototype quickly and get a feel for what works.

Later, after you have a better, more solid idea of what your game is, if performance is an issue, then you can convert parts of it (or all of it) to native.

(By the time your game is done, I suspect the mobile app dev landscape is going to be quite different than what it is now.)

Try Zed. Open-source (GPL+Apache), reliable, fast, not bloated at all, decently configurable, amazing remote-host support, Vim mode, AI stuff totally optional, extensions/lang-servers available for many languages, and... well overall I find it very neat and polished!

(I'm not associated with Zed, just a happy user looking to share the goodness.)

Russia Bans Roblox 8 months ago

Or maybe Roblox is causing harm to children and nationalist governments are the fastest to both recognise and respond to the issue.

We can speculate all day, but we should try to analyse these sorts of things from a learning perspective. What can we learn from Russia, China, etc? How are they better?

Ha, interesting. Using Claude Code in Zed, I never encountered any of these defects.

I just open a Claude Code Thread, tell it what I want, bypass permissions (my remote is a container), and let it work. And it works wonderfully!

I guess the “integrated” part of IDE is pretty important.

Native escape hatch, for when you need native capability. For example, my app uses the Zebra DataWedge API on Zebra Android devices.

Native experience for users, where the app appears in their app drawer/library. The app doesn’t disappear randomly like shortcuts do on iOS (maybe this is fixed now?).

Better DX for certain features, like notifications, storage, control of caching, local network device access, etc.

I just rolled my own. I always find frameworks bring too many “weird errors” that waste my time trying to figure them out. Also, they’re just another thing that needs upgrading eventually, and they love to COMPLETELY change their APIs between each major version. (“FrungisFactory is deprecated! Try the new async-fibre-layout BloopisGrid now before we completely delete that thing that worked perfectly for you!”)

The platforms provide more than enough capability to build basic WebView apps with minimal effort, and usually the DX is good.

You can still have native views that appear over the WebView for certain tasks. I think you can also provide your own rendering context for <canvas> elements, so you could roll your own <video> element for showing the current camera view. Either way, you can still have full native camera control without having a 100% native app.

I did this and never looked back.

It’s called a “WebView app” and you can get a really good experience on all platforms using them. Just:

- don’t make any crazy decisions on your fundamental UI components, like breadcrumbs, select dropdowns, etc

- add a few platform-specific specialisations to those same components, to make them feel a bit more familiar, such as button styling, or using a self-simplifying back-stack on Android

- test to make sure your webview matches the native browser’s behaviour where it matters. For example, sliding up the view when the keyboard is opened on mobile, navigating back & forth with edge-swipes on iOS, etc

I also went the extra step and got service workers working, for a basic offline experience, and added a native auto network diagnostic tool that runs on app startup and checks “Can reach local network” “Can reach internet (1.1.1.1)” “Can resolve our app’s domain” etc etc, so users can share where it failed to get quicker support. But this is an app for small-to-medium businesses, not consumer-facing, and the HTML5 part is served from the server and cached. I haven’t thought much about what you might need to do additionally for a consumer app, or a local-first app.

WebSockets are the secret ingredient to amazing low- to medium-user-count software. If you practice using them enough and build a few abstractions over them, you can produce incredible “live” features that REST-designs struggle with.

Having used WebSockets a lot, I’ve realised that it’s not the simple fact that WebSockets are duplex or that it’s more efficient than using HTTP long-polling or SSEs or something else… No, the real benefit is that once you have a “socket” object in your hands, and this object lives beyond the normal “request->response” lifecycle, you realise that your users DESERVE a persistent presence on your server.

You start letting your route handlers run longer, so that you can send the result of an action, rather than telling the user to “refresh the page” with a 5-second refresh timer.

You start connecting events/pubsub messages to your users and forwarding relevant updates over the socket you already hold. (Trying to build a delta update system for polling is complicated enough that the developers of most bespoke business software I’ve seen do not go to the effort of building such things… But with WebSockets it’s easy, as you just subscribe before starting the initial DB query and send all broadcasted updates events for your set of objects on the fly.)

You start wanting to output the progress of a route handler to the user as it happens (“Fetching payroll details…”, “Fetching timesheets…”, “Correlating timesheets and clock in/out data…”, “Making payments…”).

Suddenly, as a developer, you can get live debug log output IN THE UI as it happens. This is amazing.

AND THEN YOU WANT TO CANCEL SOMETHING because you realise you accidentally put in the actual payroll system API key. And that gets you thinking… can I add a cancel button in the UI?

Yes, you can! Just make a ‘ctx.progress()’ method. When called, if the user has cancelled the current RPC, then throw a RPCCancelled error that’s caught by the route handling system. There’s an optional first argument for a progress message to the end user. Maybe add a “no-cancel” flag too for critical sections.

And then you think about live collaboration for a bit… that’s a fun rabbit hole to dive down. I usually just do “this is locked for editing” or check the per-document incrementing version number and say “someone else edited this before you started editing, your changes will be lost — please reload”. Figma cracked live collaboration, but it was very difficult based on what they’ve shared on their blog.

And then… one day… the big one hits… where you have a multistep process and you want Y/N confirmation from the user or some other kind of selection. The sockets are duplex! You can send a message BACK to the RPC client, and have it handled by the initiating code! You just need to make it so devs can add event listeners on the RPC call handle on the client! Then, your server-side route handler can just “await” a response! No need to break up the handler into multiple functions. No need to pack state into the DB for resumability. Just await (and make sure the Promise is rejected if the RPC is cancelled).

If you have a very complex UI page with live-updating pieces, and you want parts of it to be filterable or searchable… This is when you add “nested RPCs”. And if the parent RPC is cancelled (because the user closes that tab, or navigates away, or such) then that RPC and all of its children RPCs are cancelled. The server-side route handler is a function closure, that holds a bunch of state that can be used by any of the sub-RPC handlers (they can be added with ‘ctx.addSubMethod’ or such).

The end result is: while building out any feature of any “non-web-scale” app, you can easily add levels of polish that are simply too annoying to obtain when stuck in a REST point of view. Sure, it’s possible to do the same thing there, but you’ll get frustrated (and so development of such features will not be prioritised). Also, perf-wise, REST is good for “web scale” / high-user-counts, but you will hit weird latency issues if you try to use for live, duplex comms.

WebSockets (and soon HTTP3 transport API) are game-changing. I highly recommend trying some of these things.

Good stuff, but this has triggered my pet peeve! The title should be:

    How to Write in Cuneiform, the Oldest Known Writing System in the World
The added word being: KNOWN

You can argue that, "well, obviously!" but correctness and exactness are what makes science, history, journalism, etc good, and allowing incorrectness like this is a step backwards.

I read a history book when I was a teenager (can't remember which one, unfortunately), and the author wrote a preface that said something along the lines of "Everything in this book is based on the published information I could discover during my research period of April to September 1999. I have chosen to write in absolutes--stating many things as certain and clear--but in reality there is still much we do not know about this time period. No history author should say their writing is fact and any good historian will make it clear that their work is composed of assumptions layered on assumptions. Please read these works with this in mind."

If you don't have a preface like that, you should add "known" to your title/sentence! I will argue with someone all day over this! I will die on this hill!

Without the resources to do a study to see if the quality is actually better or worse than other options, these open-TTS models must be judged by what you think of their output. (That is, do your own study.)

I've found some of them to be surprisingly good. I keep a list of them, as I have future project ideas that might need a good one, and each has its own merits.

I'm yet to find one that does good spoken informal Chinese. I'd appreciate if anyone can suggest one!

I agree. Making deals with laptop manufacturers to put their trademark on keyboards is an unhealthy-for-society abuse of their market power and should be treated as such in every jurisdiction that they trade in.

However, I've had no issue remapping it to the Context Menu key on the Chinese Lenovo Xiao Xin laptop I bought recently. It shows up in the PowerToys keyboard remapper tool as an F23 key. (Yes, there are more than 12 F key codes! I believe there is 24 in Windows.)

Other OSes will not even be able to say things like "Press your Copilot key to open FEDORA SEARCH" or whatever without being cease'n'desisted to high heaven.

Terrible.

I'm not sure about this particular project, but while riding on their high speed trains between various cities, I witnessed a great quantity of tunnels of a variety of lengths. Some of them were very, very long.

China is doing a lot of drilling, based on what I've seen first-hand.

Old websites still run very well.

Is there any reason to believe that a major new browser tech, WASM, will ever have support dropped for its early versions?

Even if the old versions are not as loved (i.e.: engine optimized for it and immediately ready to be executed) as the old versions, emulation methods work wonders and could easily be downloaded on-demand by browsers needing to run "old WASM".

I'm quite optimistic for the forwards-compatibility proposed here.

The syntax highlighter not understanding GStrings (heh) doesn't help here.

It's obvious once you release that whatever is inside a GString is simply an expression.

    def expr = foo."${baz}"
    println("Bar value: ${expr}")
This makes sense.

But this, or any of the other variations...

    def expr = foo." + baz + "
    println("Bar value: ${expr}")
...does not make sense.

If the syntax highlighter understood GStrings, then this would be obvious.

Let S be string colour and _ be non-string colour:

    println("Bar value: ${foo."${baz}"}")
    ________SSSSSSSSSSSSSS____SSS___SSSS_

They seem to classify users in a way that puts technically-proficient users in a separate class to regular users.

One class receives a more traditional experience.

The other receives whatever they're currently pushing. For example, my Dad's Gmail has a much higher "ad email" : "real email" ratio than mine. Also, the styling of an "ad email" line is far more subtle than what I receive.

I checked with my technical friends. They all receive similar experiences to what I do. But my parents and other people I help with their personal tech receive the ad-heavy version.

My conspiracy theory is that they're trying to detect journalists, lawmakers, regulators, and more, in an attempt to avoid being forced to push ads less aggressively.

AussieBroadband (who use Optus wholesale). I love 'em, and literally my only complaints after years of using them are:

- lack of eSIM support

- invoice/statement layout hard to read

- businesses can use the residential NBN plans but they don't display correctly on their Carbon business portal

- some advanced mobile service control codes to configure message bank, call forwarding, etc, don't seem to work

Everything else about them has been perfect. Great service, reasonable prices, perfect reliability (zero downtime AFAIK!), and Australian-owned.

(Gonna chuck my AussieBroaband referral code here in case this convinces someone to switch! 13610811)