Feed aggregator
NetStruct – Open-Source Tool to Visualize and Manage Your Network Topology
Article URL: https://itfourall.com/netstruct.php
Comments URL: https://news.ycombinator.com/item?id=43651933
Points: 1
# Comments: 2
KIMI-VL (Efficient Open-Source Moe VLM) Techical Report
Article URL: https://arxiv.org/abs/2504.07491
Comments URL: https://news.ycombinator.com/item?id=43651912
Points: 1
# Comments: 0
What about a "preferred" keyword in TypeScript?
95% of the time these days, when I'm trying to figure out how to make some imported piece of code do what I need it to do, I'm relying on the IDE to jump my way through interfaces and types until I find what I need.
Wouldn't it be cool if instead of just public, protected and private, there was also a "preferred" keyword that told IDEs that this is a public method or attribute that was ALSO meant for people to use?
The concept of "public/private" is great for class inheritance. But not so great for building an API. So we resort to naming conventions: An API might have its own internally public methods, but name certain ones certain ways and block calls that try to access them. Wouldn't it be nice if you could say this method is "public" but not "open" to certain calls, or not "preferred" for someone hooking the API? A sprite might have an .x and an ._x, and we assume we should probably assign things to the .x or something weird might happen. But lots of codebases still make ._x public, for various reasons. I'm thinking here of Pixijs's Container.pivot._x. While the underscore is clearly a warning of some kind not to do things this way, there's nothing about public ._x that makes it stand out from public .set(x,y), besides that underscore. Wouldn't it be nice if the suggested methods were somehow, like, suggested by the IDE when you try to use another method to set something like that?
This could be as simple as adding a `preferred` keyword to a public method, and then sticking `prefer [method]` into the comments of another public method that refers to it. Your little light bulb in VSCode would say "You should prefer pivot.set() to directly assigning pivot._x". Or something like that.
Stray thought. Obviously, this is just a sugar concept, doesn't affect code relationships at all, but I feel like it would really help as a way to document code as you go along, especially when some methods do need to be exposed to internal code but really shouldn't be used externally.
Comments URL: https://news.ycombinator.com/item?id=43651911
Points: 2
# Comments: 2
Show HN: An app that applies the concept of Git to todos
Innovative Todo List with Git Concepts
Comments URL: https://news.ycombinator.com/item?id=43651886
Points: 2
# Comments: 0
How can we help America?
Article URL: https://cybershow.uk/blog/posts/usalove/
Comments URL: https://news.ycombinator.com/item?id=43651875
Points: 1
# Comments: 1
China strikes back with 125% tariffs on U.S. goods as trade war intensifies
Article URL: https://www.cnbc.com/2025/04/11/china-strikes-back-with-125percent-tariffs-on-us-goods-starting-april-12.html
Comments URL: https://news.ycombinator.com/item?id=43651871
Points: 3
# Comments: 2
Bulldozers to Move in on 'Scotland's Chenobyl' in Port Glasgow
Article URL: https://www.bbc.co.uk/news/articles/c337plzvnm1o
Comments URL: https://news.ycombinator.com/item?id=43651863
Points: 1
# Comments: 0
Regrets, the YouTube Moms Have a Few
Article URL: https://www.newyorker.com/culture/on-television/regrets-the-youtube-moms-have-a-few
Comments URL: https://news.ycombinator.com/item?id=43651860
Points: 1
# Comments: 0
BYDFi's Innovative Trading Approach
Article URL: https://www.bydfi.com/en
Comments URL: https://news.ycombinator.com/item?id=43651847
Points: 1
# Comments: 1
The Met Police is set deploy permanent live facial recognition cameras on street furniture in Croydon from summer 2025, but local councillors say the decision – which has taken place with no community input – will further contribute the over-policing...
Inside The Controversial Decision to Rid the UK of Its Plutonium Stores
Article URL: https://www.politicshome.com/news/article/inside-controversial-decision-rid-uk-plutonium-stores
Comments URL: https://news.ycombinator.com/item?id=43651632
Points: 1
# Comments: 0
Doge Suffers Another Setback, American Oversight Wins Court Order
Dial: A modern profiler for your Rails application
Article URL: https://github.com/joshuay03/dial
Comments URL: https://news.ycombinator.com/item?id=43651623
Points: 1
# Comments: 0
How The Pentagon is adapting to China's technological rise
Article URL: https://www.technologyreview.com/2025/04/07/1114242/kathleen-hicks-on-china/
Comments URL: https://news.ycombinator.com/item?id=43651608
Points: 2
# Comments: 0
I walked and ran without headphones for a year
Article URL: https://www.the-independent.com/life-style/headphones-public-running-earbuds-b2714323.html
Comments URL: https://news.ycombinator.com/item?id=43651591
Points: 1
# Comments: 0
Why I Program in Lisp
Article URL: http://funcall.blogspot.com/2025/04/why-i-program-in-lisp.html
Comments URL: https://news.ycombinator.com/item?id=43651576
Points: 2
# Comments: 0
Extractify: Extract and explore archives online, securely in browser
Article URL: https://extractify.zip
Comments URL: https://news.ycombinator.com/item?id=43651567
Points: 1
# Comments: 0
Summary: Imagining and Building Wise Machines
Article URL: https://www.lesswrong.com/posts/euAMyQAQWTYyWZW8Z/summary-imagining-and-building-wise-machines-the-centrality
Comments URL: https://news.ycombinator.com/item?id=43651560
Points: 1
# Comments: 1
The AI Transparency Gap: What Users Don't Know Can Hurt You
Article URL: https://www.vktr.com/ai-technology/the-ai-transparency-gap-what-users-dont-know-can-hurt-you/
Comments URL: https://news.ycombinator.com/item?id=43651554
Points: 1
# Comments: 0
The Case for WebComponents with Lit
Article URL: https://typescript.guru/the-case-for-web-components-with-lit/
Comments URL: https://news.ycombinator.com/item?id=43651549
Points: 1
# Comments: 0