Readit News logoReadit News
krebby commented on I drank every cocktail   aaronson.org/blog/i-drank... · Posted by u/colinprince
krebby · a month ago
Such a sweet story! My friend actually went to the author's Borg party a few weeks ago and I'm second-guessing my choices that night after reading this. Funny to see it on Hacker News!

If you guys like reading about this kind of thing I recommend Cocktail Codex from the people behind Death & Co (referenced in the article). It's a great way to think about cocktails as a remixable grammar and the purpose behind all the mixing, muddling, and stirring.

krebby commented on Code-GUI bidirectional editing via LSP   jamesbvaughan.com/bidirec... · Posted by u/jamesbvaughan
adastra22 · 2 months ago
Any examples?
krebby · 2 months ago
Grasshopper for Rhino is a big one, or VisualCAD/CAM. Blender, Houdini, or Unreal Blueprints are others. It gives you the exploration benefits of a UI plus the procedural benefits of code. Inputs tend to be auto-bound which makes exploration much, much faster.

I'm working on one for web map data visualization: https://youtu.be/GJ0ftFB8r4I?t=871

krebby commented on Code-GUI bidirectional editing via LSP   jamesbvaughan.com/bidirec... · Posted by u/jamesbvaughan
ttoinou · 2 months ago
I think we’re a lot of developers who are frustrated by constantly needing to choose between code or GUI… both have their use case, but I feel like there must be a system that combines both.
krebby · 2 months ago
How about a visual programming language? Plenty of 3D and CAD software uses a VPL for procedural design, which helps a ton to bring out the benefits of both
krebby commented on The time is right for a DOM templating API   justinfagnani.com/2025/06... · Posted by u/mdhb
ericyd · 2 months ago
> React doesn't provide a way to explicitly bind to properties and events of DOM elements, or provide directives that apply to an element.

I didn't understand this part, can anyone shed light? What is different between what's being described here and what React does with event listeners, etc?

krebby · 2 months ago
I think this is referring to the fact that React uses synthetic event listeners - it's cheaper to bind an event listener once at the root and do your own element matching than it is to continuously bind and unbind listeners.

https://react.dev/reference/react-dom/components/common#reac...

krebby commented on Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed   github.com/zumerlab/snapd... · Posted by u/tinchox6
streptomycin · 4 months ago
Looks cool, somebody should make a package that puts a nice API around it. However seems that those APIs are only in Chrome now, not Firefox or Safari.
krebby · 4 months ago
IMO it's simple enough to just write directly without library code.

For most cases, the Element Capture or Region Capture API should be sufficient: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capt...

Demos: https://mdn.github.io/dom-examples/screen-capture-api/elemen... https://mdn.github.io/dom-examples/screen-capture-api/region...

If you need cross-browser compatibility (and can't just use a canvas) then yeah html2canvas is the way to go

krebby commented on Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed   github.com/zumerlab/snapd... · Posted by u/tinchox6
tinchox6 · 4 months ago
Hi! Insaw this API when I was starting to work on snapDOM but I thought it was not ok for my needs so I discarded it. Regarding other API it would be great if View Transitions API could exposed the old view in a future
krebby · 4 months ago
What were your needs that the API didn't meet?
krebby commented on Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed   github.com/zumerlab/snapd... · Posted by u/tinchox6
krebby · 4 months ago
How does this compare to something like the the Media Capture API? Looks like this uses `canvas.toDataURL()` which can be slow to serialize compared to `toBlob` or `canvas.captureStream(0).getVideoTracks()`

I've been using CropTarget.fromElement with a CaptureController: https://gist.github.com/akre54/e93ab2ce27999aecb109e38085f2e...

krebby commented on Nice things with SVG   fuma-nama.vercel.app/blog... · Posted by u/fmerian
chentastic · 4 months ago
Was always fascinated by SVG art. How good are LLMs in generating SVGs?
krebby commented on Volkswagen seeks to counter rivals with budget EV model   ttnews.com/articles/vw-in... · Posted by u/herbertl
smcleod · 6 months ago
Oh, sorry what do they/you call them? (The storage above the rear axil at the rear for the car)
krebby · 6 months ago
Trunk
krebby commented on MTA Open Data Challenge   new.mta.info/article/mta-... · Posted by u/oftenwrong
krebby · a year ago

u/krebby

KarmaCake day510December 14, 2012
About
https://github.com/akre54
View Original