mozey

Joined 12 years ago

Karma
368
Submissions
157
Member since
Apr 21
[ my public key: https://keybase.io/mozey; my proof: https://keybase.io/mozey/sigs/xSF9tMAMKCKz4u2waGjej5krzW2F1NYoUojccHAavIY ]
View on Hacker News

Recent submissions

Comment · 18 days ago
> or croweggs

You can totally be friends with a chicken, and still eat chicken eggs, they don't mind. Most chickens have been bred to have little interest in incubating the eggs. Not sure how a crow would react...

Side note, I saved a few Guinea Fowl chicks from the road the other day. When I put them down next to the parents and the other chicks, one of the parents launched at me and tried to claw out my eyes. My eyes survived intact, but I had a few scratches on my ears and arms

Comment · 1 year ago
What is the benefit of writing Go to generate HTML?

1. With go-app

  func (h *hello) Render() app.UI { 
    return app.Div().Body(app.Text(fmt.Sprintf("Hello %s", h.name))) 
  }
2. Compared to using templ

  templ Hello(name string) { 
    <div>Hello, { name }</div> 
  }
For me personally, the latter seems nicer

- I can see at a glance the structure of the HTML

- Completion on the HTML tags, attributes, etc

- Completion on CSS (TailwindCSS LSP for VSCode)

- Logic can still be shared with other types of UIs (e.g. CLI, Native Apps, Webkit, gRPC)

If what you want is option 1, isn't this solution incomplete. That is, the fully realised vision would be a native component / widgets API (e.g. Fyne, QT, GTK), and then generate HTML from the components?

However, "since Dagger Cloud is built as a PWA, it can be installed as a desktop or a mobile application. This makes it possible to launch Dagger Cloud like a native application and get a full-screen experience without needing to open a browser first, or just have a dedicated icon in your desktop taskbar/dock", so it sounds like the "Native App" is using a Webkit (e.g. Wails, Tauri, Electron)

Anyway, congrats on having commercial users building stuff with your project!

Comment · 2 years ago
Some people used to have a little putty stuck to the middle their CRTs
Comment · 2 years ago
Comment · 2 years ago
I'm working on a server/backend for htmx that's intended to run as a local service beside the browser. In theory you could do this with any server stack that is self host-able. My goal is to produce a single binary with no external service dependancies. I'm using Go, and a lot of the components are readily available, e.g. self updating local service, replicated database, etc. It's easy to cross-compile for different target OS and architectures. As an alternative to building everything into the browser, and assuming you're able to run a separate process, this approach makes a lot of sense to me. It would be great if Go had something similar to Deno's permission management though...
Comment · 2 years ago
Comment · 2 years ago
Been renovating an old house with a large garden for almost ten years now. I tell myself this is better than building something from scratch, but it definitely doesn't always feel more efficient. It helps that I didn't have the option back then, but now maybe I do? Sometimes it's also hard to tell, in the moment, which things to keep and what to rip out.
Comment · 3 years ago
Touch typing is something I should've invested in much earlier, can't imagine how I ever coped without this ability. Another thing that really helped me is the "Alternative finger positioning" described here: https://typingsoft.com/typing.htm It feel much more natural not having to bend your wrists. Is anyone else also doing this? Whenever people ask me how to learn touch typing I look for native Linux or macOS app that teach this technique, but I haven't found any yet...
Comment · 3 years ago
Actually, just remembered why I haven't used it. Although it "Ships with IDE autocompletion", last time I checked that's only on the Go code, not the HTML. Usually I keep my templates as .html files, and find the IDE autocompletion and linter on the HTML more valuable
Comment · 3 years ago
Comment · 3 years ago
I applied for a UK visa from South-Africa about a year ago. To start my application I had to submit a form on this domain. The navigation to the form was obscured by a giant banner about the Ukraine invasion and a message about how service levels might be reduced due to refugees... no matter how I resized my browser window I couldn't get to the part of the page behind the banner. Eventually I opened up the Dev Tools and added some CSS to hide the banner. The link was revealed and I could continue with my application
Comment · 3 years ago
CORS policy usually requires that the port must match. This issue potentially applies to all web apps, not only those hosted on localhost

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton