HN user

realrocker

990 karma

github.com/adnaan badr.adnaan@gmail.com

Posts33
Comments306
View on HN
livefir.fly.dev 3y ago

Show HN: Build progressively enhanced reactive HTML apps using Go and Alpine.js

realrocker
127pts43
adnaan.badr.in 4y ago

Deno for Infrastructure as Code

realrocker
2pts0
adnaan.badr.in 4y ago

Deno for Infrastructure as Code

realrocker
5pts2
news.ycombinator.com 4y ago

Ask HN: How do folks distribute permissions in IAM(GCP, AWS) to developers?

realrocker
4pts0
news.ycombinator.com 5y ago

Ask HN: What are a few examples of developers tools which aren't control planes?

realrocker
2pts0
adnaan.badr.in 5y ago

The Reports of DevOps's death are greatly exaggerated

realrocker
3pts0
github.com 5y ago

Show HN: Build dynamic webapps quickly using Go,HTML/template and JavaScript

realrocker
5pts0
honestmusings.wordpress.com 5y ago

A-Z List of Software Product Epiphanies Everyone Has Every Other Second(2015)

realrocker
4pts1
github.com 5y ago

A modest way to build Go web apps using HTML/template, sveltejs and stimulusjs

realrocker
1pts0
medium.com 7y ago

Type-ahead suggestions based on the real-time search intent of a user

realrocker
6pts1
github.com 8y ago

Show HN: Golimit – Ringpop-based distributed and decentralized rate limiter

realrocker
53pts24
honestmusings.wordpress.com 8y ago

A-Z List of Software Product Epiphanies Everyone Has Every Other Second(2015)

realrocker
2pts0
medium.com 8y ago

Building Scalable Web Services in Golang

realrocker
2pts0
honestmusings.wordpress.com 11y ago

A-Z List of Software Product Epiphanies Everyone Has Every Other Second

realrocker
1pts0
honestmusings.wordpress.com 12y ago

An Ode to Sachin Tendulkar

realrocker
1pts0
learnxinyminutes.com 12y ago

Learn X in Y minutes where X = Go

realrocker
199pts88
m.timesofindia.com 12y ago

Indian Gov may ban Gmail for official comm.

realrocker
2pts0
www.thehindu.com 12y ago

Non-Indians have benefited most from patent regime in India

realrocker
56pts18
github.com 12y ago

Apropos from Square

realrocker
2pts0
honestmusings.wordpress.com 12y ago

I am Back

realrocker
2pts0
news.ycombinator.com 12y ago

Ask HN: List of Passive Income App Ideas

realrocker
1pts1
github.com 12y ago

Show HN: Hamster, A Backend as a Service written in Go

realrocker
5pts0
blog.traverik.com 13y ago

Why tour operators are needed?

realrocker
1pts0
www.catb.org 13y ago

The Jargon File

realrocker
3pts0
coderwall.com 13y ago

Go:Share Memory By Communicating

realrocker
1pts1
news.ycombinator.com 13y ago

Ask HN: How to ignore guilt while using open source code?

realrocker
7pts10
honestmusings.wordpress.com 13y ago

To Help US IT workers, Help Indian Start-ups

realrocker
1pts0
taskgram.com 13y ago

A New Email Paradigm. SignUp for Early Access.

realrocker
1pts0
news.ycombinator.com 13y ago

Ask HN: Why BaaS (for mobile development) using RDBMS datastores not around?

realrocker
1pts0
www.pluggd.in 13y ago

Grass-Roots Serial Innovator nominated for NASA award

realrocker
1pts0

I am working on speeding up the review-refine loop of LLM generated artefacts between me and the LLM. i run my coding agent (claude code) in auto / full-permission mode, so it doesn’t stop for accept/reject — by the time it’s done i’ve got a pile of generated code, docs, sometimes ui to review. and the slow part for me is to refine it before push it to remote. i would copy-paste snippets to point at what i wanted changed, screenshot the ui, describe where the problem was in prose, one message at a time. its cumbersome.

so i built prereview to speed up that review-fix loop. you run it in your repo (or point it at a file, a dir, or a running dev server), click what’s wrong: a diff line, a markdown/html block, a region of an image, a box on a live site — and leave a comment. the comments go to a csv, your agent reads it and fixes things and tells you what it did via a comment or even posts suggestions which you can accept or reject. it ships with a claude code skill, but the handoff to llm is just an open csv protocol, so any llm cli can drive it. stuff that might interest people here: single static go binary, fully offline; it reviews docs/images/live ui as well as code; comments re-anchor when the file changes under them. it’s mit and still early but I use it everyday. Its here: https://github.com/livetemplate/prereview

I am using claude cli/tmux on a hetzner box and connecting to it via claude remote control. I have connected the box and my phone over telnet which allows me to view any UI work. Sometimes I do have to switch to my laptop for UI desktop layouts.

One gap which I kept running into on both mobile and desktop was refining the initial plan and then later refining the generated artifacts which involved lots of imprecise copy-paste. To scratch my own itch I built a review tool to improve the velocity of planning and refining generated artifacts. It has become my daily driver: https://github.com/livetemplate/prereview

:) We are all converging on the same problems and tooling to fix them.

Built this in the last couple days to review changes done by claude on a hetzner box(over tailscale on my phone) and leave comments before pushing to remote : https://github.com/livetemplate/prereview.

Runs everywhere and can has a claude skill: /prereview which starts a new instance for the current changes. Has a “Hand-off” button to signal claude to process the comments.

UI is responsive. I use it on my iphone with claude mobile app + /remote-control to leave comments before pushing.Still requires polish but core features work.

That is super cool. Sorry to be nitpicky but would really like to know your mental model: I didn’t understand from the blog why user waiting for a functional UI is a problem ? isn’t the partial streamed UI non-functional ?

I can see the value in early user verification and maybe interrupting the LLM to not proceed on an invalid path but I guess this is customer facing so not as valuable.

"In interactive assistants, that latency makes or breaks the experience." Why ? Because user might just jump off ?

(edited)

The (claimed) value proposition is leveraging block/template to decompose the html page and bind its computation to browser events over a pubsub channel. Its a toolkit and not a framework so one can still use their favourite framework. The Go library isn’t doing anything earth shattering but re-implementing the aforesaid design would still need to be done in any framework.

This example has most of the scenarios you have called out: https://github.com/livefir/fir/tree/main/examples/fira. Fir aims to limit itself to rendering templates on the server and making it available for all subscribers as a browser CustomEvent which is consumed by alpine.js for more complex interactivity. The expectation is the that the developer handles it via either alpine.js plugins or standard JS code.

[edit] This is still a work-in-progress so I will certainly add better guides and documentation moving forward. Although its good to get feedback that this approach might be interesting for at least some people.

An in-situ todo list in every tool I use. In slack: scheduled messages, email: todo folder, git: todo.txt and so on. I no longer fight context switching and focus on getting things done in an organised way every time I switch context to a new task.

To write complex code while I am procrastinating or context switching I have taken to writing in plain english what I want to achieve and then write code. It’s cheaper to get all the bad ideas out in plain english while making reasonable progress.

Like you said in another thread, there are two choices here. I took the other choice because I wanted to: 1. not build a new templating language 2. not maintain a custom server side renderer(v8). 3. Keep javascript to the minimum 4. Build for developers who know Go and maybe a little html/css. 5. No special html attributes. It should be just standard html/template i.e easy to delete the websocket stuff if it doesn’t work for you 6. Offer a view library instead of a framework. Go users are likely to be more open to adopting a library.

The approach is similar to hotwire except I only use stimulusjs and not use turbojs. turbojs doesn’t integrate well with html/template. In my approach, you can simply reuse the html templates you have already written with standard html/template package.

Sorry for the rambling, I haven’t gotten around to writing down all of it in a more structured way.

The more businesses move to SaaS models, automation takes a different shape as well, i.e automation scripts involving business objects within/outside the system.

Well put. I see this getting applied to cloud infrastructure too. Cloud providers are increasingly offering their products as pure software objects on which traditional software engineering principles can be applied. I have been experimenting with using typescript to define infra components for last 18 months and have seen higher code contributions from non-operators(most of them are typescript practitioners) w.r.t terrafrom or ansible.

[slightly shameless plug] Recently started using Deno + typescript and its even better. My thoughts on this here: https://adnaan.badr.in/blog/2021/11/20/deno-for-infrastructu...