frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Tiny VM sandbox in C with apps in Rust, C and Zig

https://github.com/ringtailsoftware/uvm32
167•trj•17h ago•11 comments

Show HN: I made a spreadsheet where formulas also update backwards

https://victorpoughon.github.io/bidicalc/
179•fouronnes3•1d ago•85 comments

Show HN: Tripwire: A new anti evil maid defense

https://github.com/fr33-sh/Tripwire
78•DoctorFreeman•2d ago•47 comments

Show HN: Hands on tutorial for open source contribution

https://github.com/firstcontributions/first-contributions
3•promptmike•5h ago•0 comments

Show HN: A real-time 4D fractal explorer in the browser using WebGPU

https://bryanjj.github.io/nebula/
9•bryan0•1d ago•5 comments

Show HN: Autofix Bot – Hybrid static analysis and AI code review agent

35•sanketsaurav•1d ago•13 comments

Show HN: Local Privacy Firewall-blocks PII and secrets before ChatGPT sees them

https://github.com/privacyshield-ai/privacy-firewall
108•arnabkarsarkar•3d ago•54 comments

Show HN: Browser4 – an open-source browser engine for agents and concurrency

https://github.com/platonai/Browser4
6•galaxyeye•9h ago•2 comments

Show HN: Sim – Apache-2.0 n8n alternative

https://github.com/simstudioai/sim
230•waleedlatif1•1d ago•58 comments

Show HN: Ten Principles of Good Design

https://tonygaeta.com/labs/ten-principles-of-good-design
3•LightMorpheus•10h ago•0 comments

Show HN: Gemini Pro 3 imagines the HN front page 10 years from now

https://dosaygo-studio.github.io/hn-front-page-2035/news
3323•keepamovin•4d ago•960 comments

Show HN: Wirebrowser – A JavaScript debugger with breakpoint-driven heap search

https://github.com/fcavallarin/wirebrowser
68•fcavallarin•3d ago•15 comments

Show HN: Jottings; Anti-social microblog for your thoughts

https://jottings.me/
24•vishalvshekkar•1d ago•15 comments

Show HN: A 2-row, 16-key keyboard designed for smartphones

https://k-keyboard.com/Why-QWERTY-mini
81•QWERTYmini•2d ago•68 comments

Show HN: Automated license plate reader coverage in the USA

https://alpranalysis.com
238•sodality2•2d ago•146 comments

Show HN: An ASCII table that doesn't hurt your eyes

https://asciify.dev/
4•dklepenko•14h ago•1 comments

Show HN: Gotui – a modern Go terminal dashboard library

https://github.com/metaspartan/gotui
43•carsenk•1d ago•13 comments

Show HN: AlgoDrill – Interactive drills to stop forgetting LeetCode patterns

https://algodrill.io
177•henwfan•4d ago•106 comments

Show HN: GPULlama3.java Llama Compilied to PTX/OpenCL Now Integrated in Quarkus

23•mikepapadim•1d ago•5 comments

Show HN: I built a system for active note-taking in regular meetings like 1-1s

https://withdocket.com
175•davnicwil•4d ago•132 comments

Show HN: An endless scrolling word search game

https://endless-wordsearch.com
25•marcusdev•2d ago•16 comments

Show HN: EdgeVec – Sub-millisecond vector search in the browser (Rust/WASM)

https://github.com/matte1782/edgevec
6•matteo1782•16h ago•1 comments

Show HN: PharmVault – Secure Notes with Spring Boot and JWT

https://github.com/nifski/PharmVault
4•nifemi1234•16h ago•3 comments

Show HN: Epstein's emails reconstructed in a message-style UI (OCR and LLMs)

https://github.com/Toon-nooT/epsteins-phone-reconstructed
44•toon-noot•1d ago•8 comments

Show HN: I built a GitHub application that generates documentation automatically

https://codesummary.io
5•jerrodcodes•17h ago•2 comments

Show HN: Verani – Socket.io-like realtime SDK for Cloudflare

https://github.com/v0id-user/verani
6•v0id_user•18h ago•0 comments

Show HN: PhenixCode – Added admin dashboard for multi-server management

https://github.com/nesall/phenixcode
3•nesall•18h ago•0 comments

Show HN: Storyloom – Deterministic Storytelling Framework

https://jcpsimmons.github.io/storyloom/
4•joshcsimmons•19h ago•0 comments

Show HN: I'm building an open-source Amazon

https://openship.org
8•theturtletalks•20h ago•2 comments

Show HN: ESLint Plugin for styled-jsx

https://github.com/sushichan044/eslint-plugin-styled-jsx
4•sushichan044•20h ago•0 comments
Open in hackernews

Show HN: Making #regions actually useful in VSCode

https://github.com/alythobani/vscode-region-helper
13•alyt•7mo ago
Hey HN,

For anyone unfamiliar: you can use `#region My Region` and `#endregion` comments to organize your code into foldable "regions".

Before building this extension, I'd use regions as a last resort, e.g. for large test files or classes that aren't worth splitting up more, or code that can't be split at all. They'd help somewhat, but the lack of tooling made them pretty underwhelming to work with. So I built out Region Helper, which as of yesterday's release provides:

- Commands / hotkeys for jumping between / selecting regions

- Fuzzy search (like "Go to Symbol" but for regions)

- A "Regions" tree view (interactive: click to navigate, and auto-highlights cursor's active region)

- A "Full Outline" tree view: like the builtin Outline, but incorporates regions (also interactive)

- Diagnostics: blue squiggle warnings when you have unmatched #region / #endregion markers

- Builtin support for 49 languages, customizable via settings

- An API for accessing Region Helper's data, so devs can build their own region extensions without needing to re-parse regions

- (New) Expand/Collapse All tree actions and persisted tree item collapse state across sessions

It's also performant even on massive files, e.g. TypeScript's ~50K LOC `checker.ts`.

These days, I personally enjoy using regions way more, and also add them more often to my code, now that they also serve as quick-jump points while navigating a file. Still definitely important not to overuse them, but I don't find them to be nearly as much of a code smell as I might have before.

If you're extra curious, you can check out Region Helper's source code to see a few real examples of where I've used them while building out this extension.

P.S. if you didn't know, your VSCode settings files (e.g. `settings.json`) are JSONC and support `// #region` and `// #endregion` markers. Since they can't be split into multiple files, regions are a pretty convenient way to organize them.

Feel free to share your own thoughts on regions and whether or not you find them useful ever, always curious to hear others' opinions.

Comments

alyt•7mo ago
Btw, another extension I'd personally recommend is Region Highlighter by 'Wiensss', which makes regions easier to see in the editor itself by coloring them, and also provides a command for making regions (although it is limited in language support). I don't currently use any other region extensions.

Region Highlighter: https://marketplace.visualstudio.com/items?itemName=Wiensss....

badmonster•7mo ago
Is there any plan to support nested region collapsing/expanding directly from the editor, similar to how VSCode handles folding for functions or classes?
alyt•7mo ago
I might be misunderstanding what you're asking, but VSCode already makes regions foldable by default.

That said, my extension does support regions in more languages than VSCode currently supports, so maybe you're thinking of a particular language in which VSCode doesn't make regions foldable, that my extension could fill the gap for?