Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mozey
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
Large language models take the original politicalcompass.org test
(aipolcom.net)
3 points
by
mozey
19d ago
|
0 comments
2.
▲
by
mozey
2y 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
3.
▲
by
mozey
2y ago
Some people used to have a little putty stuck to the middle their CRTs
4.
▲
by
mozey
2y ago
Have to admit I've never used this code, and didn't know what it was about. Quickly read up about it. So ETag is a hash of the resource. You must provide it with requests that modify the resource. If your hash doesn't match t
5.
▲
by
mozey
3y 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 ex
6.
▲
by
mozey
3y ago
Yes it is, compared to gojq https://github.com/itchyny/gojq/blob/main/go.mod
7.
▲
by
mozey
3y 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 op
8.
▲
by
mozey
3y 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:
9.
▲
by
mozey
3y 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 aut
10.
▲
by
mozey
3y ago
Besides the built-in templates/html, there's also this https://github.com/a-h/templ Haven't used it yet, but seems promising
11.
▲
by
mozey
3y 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
12.
▲
by
mozey
3y ago
CORS policy usually requires that the port must match. This issue potentially applies to all web apps, not only those hosted on localhost
13.
▲
by
mozey
3y ago
Last time I checked it's not possible on iOS. On Android it's possible with some effort (e.g. you have to use Termux), not something you could expect a user to setup
14.
▲
by
mozey
3y ago
Instead of wrapping the application with something like Electron, why not install as a service and connect to a localhost port using your default browser? I know this is not the same UX as installing an app. But why isn't this techniqu
15.
▲
by
mozey
3y ago
> 5 seconds later, the thing I wanted appears Is this an intrinsic attribute of all web apps, or specific to an implementation?
16.
▲
by
mozey
3y ago
This default behaviour makes sense. If you're going to be using it for hosting in production, then read the documentation, and it's trivial to disable. If I recall, AWS has a similar default for some services. That is, access to t
17.
▲
by
mozey
3y ago
"This project attempts to push TypeScript's type system to its limits by actually implementing various functions and algorithms, purely on top of the type system... Please note that this project is meant to be used for fun and lea
18.
▲
by
mozey
3y ago
The hx-disable attribute can be used to disable htmx for parts of the DOM that load user generated content, is that what you're referring to? https://htmx.org/docs/#security
19.
▲
by
mozey
3y ago
> dynamically loaded modules, error boundaries In an MPA, modules https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid... can be included on the pages that require them with a script tag. Erro
20.
▲
by
mozey
3y ago
> by wrapping a vanilla lib to a component or an action, you’ve essentially created basic Svelte version of that lib This is the key to making framework churn go away. The DX of using vanilla JavaScript is getting better every day. And i
21.
▲
by
mozey
3y ago
> which might be scanned under different conditions, such as different light levels and resolutions This makes me think of your stereotypical pirate map to buried treasure
22.
▲
by
mozey
3y ago
> One thing this kind of pattern actually does is expose the conversation to more of YOUR psychology and perspectives. You expose it to more nerves to tickle, let’s say. Or in effect, you are giving the AI more of your brain’s surface ar
23.
▲
by
mozey
3y ago
The compilation step, and the resulting binary, is also very useful if you need to distribute your software. As opposed to creating a ZIP file. There are tools for creating stand-alone executables from PHP source code, but they're not
24.
▲
by
mozey
3y ago
Whisky can be incredible harmful and it's just a stronger version of wine... difference is the label clearly states the percentage alcohol
25.
▲
by
mozey
4y ago
On earth advancements in technology, education, and especially woman's rights quickly lead to reduced or even negative population growth. So maybe interstellar civilisation won't need that many space cities
26.
▲
by
mozey
4y ago
Modules are for organising your code, services are for organising processes on the OS, and micro-services are for organising teams of developers
27.
▲
by
mozey
4y ago
I built an example that uses separate select tags for year, month, day, and time. The benefits of doing this are: - Standard elements that work everywhere - Easy to refresh the available options after a date change - Mimics the "rolode
28.
▲
by
mozey
4y ago
Not using a framework doesn't automatically imply everything is built from scratch. Maybe I prefer calling libraries, instead of plugging my code into a framework. I could also implement patterns using the batteries included features o
29.
▲
by
mozey
4y ago
As a backend person that used to be a front end person, there has never been a better time for using VanillaJS (or TypeScript), HTML, and CSS? > someday pick one to learn in depth without worrying about it being replaced by the next hotn
30.
▲
by
mozey
4y ago
> In reality, a cashless society is a type of enclosure, in which the only form of money in society becomes digital bank chips (a bit like being stuck in a network of casinos where you can no longer exit) Quote from an interview with the
More ›