HN user

aabbcc1241

852 karma

[ my public key: https://keybase.io/beenotung; my proof: https://keybase.io/beenotung/sigs/CLB3i0aTqbycgeZ3_nslWRZkfvmr0-lJ-ym9Hqkq2Nk ]

Posts107
Comments620
View on HN
news.ycombinator.com 4mo ago

Ask HN: AI companies' bots are making my server slow, what do you do?

aabbcc1241
3pts4
gist.github.com 6mo ago

Show HN: Workaround for YouTube's "Save to Watch Later" Broken in Firefox

aabbcc1241
2pts3
gen-ts-type.surge.sh 1y ago

Show HN: Gen-ts-type – Code Generate TS Type from JSON data with collapsed field

aabbcc1241
1pts0
ruben.verborgh.org 1y ago

Paradigm shifts for the decentralized Web (2017)

aabbcc1241
1pts0
news.ycombinator.com 1y ago

Ask HN: Do you prefer tailing or leading comma?

aabbcc1241
1pts4
allrgb.com 1y ago

AllRGB – use each RGB values once to make images

aabbcc1241
2pts1
news.ycombinator.com 1y ago

Ask HN: Is there a way to ensure one-person-one-account at all?

aabbcc1241
2pts24
res-index.hkit.cc 2y ago

Show HN: Resource Index – FOSS Git Repository and NPM Package Index

aabbcc1241
14pts4
susam.net 2y ago

Against URL-Based Content Rendering

aabbcc1241
3pts0
devblogs.microsoft.com 2y ago

TypeScript 5.4 Beta

aabbcc1241
4pts1
github.com 2y ago

Semi-Automatic Dark Mode for most website

aabbcc1241
2pts1
www.youtube.com 2y ago

Page transition API for browser that behavior like native mobile app [video]

aabbcc1241
2pts0
caddyserver.com 2y ago

Caddy is the first and only web server to use HTTPS automatically and by default

aabbcc1241
161pts182
remix.run 2y ago

A respectful comparison: Remix vs. Next.js (2022)

aabbcc1241
2pts0
news.ycombinator.com 2y ago

Ask HN: How do you work with dynamic type programming language

aabbcc1241
10pts5
unshorten.respects.cc 2y ago

Show HN: A privacy-friendly url unshorten service made with ts-liveview

aabbcc1241
1pts0
max.engineer 2y ago

Don’t build a general purpose API to power your own front end (2021)

aabbcc1241
266pts283
roy.gbiv.com 2y ago

REST APIs must be hypertext-driven (2008)

aabbcc1241
1pts0
www.researchgate.net 3y ago

Visualisation of Live Code (2010)

aabbcc1241
1pts0
news.ycombinator.com 3y ago

Ask HN: How do you determine the popularity of a NPM package?

aabbcc1241
1pts0
blainehansen.me 3y ago

Macro-ts: TypeScript compiler with typesafe syntactic macros (2022)

aabbcc1241
96pts43
jakearchibald.com 3y ago

Fun hacks for faster content in the web (2016)

aabbcc1241
2pts0
adamsilver.io 3y ago

The problem with web components and Ajax (2019)

aabbcc1241
2pts0
www.npmjs.com 3y ago

Ts-morph – programmatically manipulate TypeScript source code with TypeScript

aabbcc1241
43pts21
medium.com 3y ago

Why Web3’s Shared Data Across Applications Doesn’t Matter (2021)

aabbcc1241
2pts2
reken.dev 3y ago

Create fast, reactive, HTML compliant web pages without VDOM nor build tools

aabbcc1241
3pts0
devblogs.microsoft.com 3y ago

TypeScript team released an explorer for performance tuning

aabbcc1241
111pts41
kalavox.medium.com 3y ago

Jive – an architecture for semi-native apps

aabbcc1241
3pts1
techbeacon.com 3y ago

Mutation testing: auto test your tests

aabbcc1241
1pts1
github.com 3y ago

Show HN: DOM-proxy: declarative UI with automatic dependecy tracking

aabbcc1241
2pts1
TypeScript 7 7 days ago

I've not figure out how to run typescript script directly with type-checking (in dev mode) with typescript 7.

ts-node cannot be used with typescript@7.

although node@24 can directly run typescript file, but stripe the types, without type-checking, also it require changing the import path with .ts, and it doesn't support import .tsx files.

Snow Simulation Toy 6 months ago

I like the website, sharing interesting creation, and linking to other interesting websites made by the peers.

Is there a neural/positive term to describe this kind of website? (beside call it "old school" or "good old day"?)

I made my own Git 6 months ago

Interesting take. I'm using btrfs (instead of ext4) with compression enabled (using zstd), so most of the files are compressed "transparently" - the files appear as normal files to the applications, but on disk it is compressed, and the application don't need to do the compress/decompress.

I found that it is caused by a userscript running below code.

    // version 1
    let body = document.createElement('body')
    body.innerHTML = document.body.innerHTML

    // version 2
    let body = document.body.cloneNode(true)
Either version can trigger the bug of the pop up menu now showing up. The menu is able to show up if doing early return to skip that code.

This is wired, that code should not be mutating existing DOM.

Update: Below version of sandboxed clone doesn't break the youtube popup menu.

    // version 3
    let parser = new DOMParser()
    let doc = parser.parseFromString(document.body.outerHTML, 'text/html')
    let body = doc.body

Instead of not letting the students to use AI, how about we adjust the assessment method, and learning objective, to let the students do something that AI along cannot do, so that they can do it w/wo AI but still build up their own skill.

In the workplace, we're using AI anyway.

I'm not sure if this direction is suitable for kids, like we still learn to do calculation even when we have calculator (which is needed for some cases, but for complex math, we opt for tools)

Hey, thanks for sharing "JSX Over the Wire"! As the creator of ts-liveview, I’m thrilled to see Dan’s ideas on server-side JSX rendering and minimal client updates—they mesh so well with my work.

ts-liveview is a TypeScript framework I built (grab it as a starter project on GitHub[1]) for real-time, server-rendered apps. It uses JSX/TSX to render HTML server-side and, in WebSocket mode, updates the DOM by targeting specific CSS selectors (document.querySelector) over WebSockets or HTTP/2 streaming. This keeps client-side JavaScript light, delivering fast, SEO-friendly pages and reactive UIs, much like Dan’s “JSX over the wire” vision.

What’s your take on this server-driven approach? Could it shake up how we build apps compared to heavy client-side frameworks? Curious if you’ve tried ts-liveview yet—it’s been a fun project to dig into these ideas!

[1] https://github.com/beenotung/ts-liveview

The key takeaway is to use a public reverse proxy to tunnel the traffic to local server, which is agnostic to any server language or framework.

The proxy introduced is pinggy

ssh -p 443 -R0:localhost:8000 qr@a.pinggy.io

Noise 2 years ago

It doesn't work on firefox (no error message in console) and it works on chrome.

If it's not a project that others rely on, you should feel free to do it anytime or spawn new projects. To finish it or not doesn't matter much, enjoy the journey and learn from the experience is a value in itself.

If you had reason to switch the backend tech, you might also have reason to switch the database tech.

It seems a viable alternative but not necessarily eliminating the problem discussed at the beginning.