Readit News logoReadit News
dngit commented on JSON5 – JSON for Humans   json5.org/... · Posted by u/rickcarlino
leptons · 9 months ago
>The lack of comments in package.json is one of the biggest complaints of this format, and it's certainly not just me

Well then you and plenty of other people have some wrong ideas about package.json. That isn't surprising.

package.json gets rewritten for all kinds of things, which is not really compatible with adding comments wherever you want. Adding "why this dependency is here" comments may seem like a good idea to add to package.json, but you're kind of missing the point. If you need that level of documentation, trying to shoehorn it into package.json is just the wrong place for it. Soon enough your package.json looks like a graffiti wall.

>To be blunt, then, I can't believe you've ever written any code in a business (i.e. with multiple developers) in the Node/NPM ecosystem.

Then you'll be astonished that I have been working with nodejs for about 14 years professionally. Sure I have wanted to put comments into package.json, but I was naive and now I'm fine not doing that. I haven't wanted to in many years. I document things in other ways and it has served us all very well. YMMV.

dngit · 9 months ago
> if you need that level of documentation, trying to shoehorn it into package.json is just the wrong place for it. Soon enough your package.json looks like a graffiti wall.

So the right place is to make a graffiti out of another place, instead of in the place where people actually declare the dependencies?

I find it bizarre when people believe in one true way of doing things. I mean, you can declare your dependencies how you like, but if others do it differently, then they're clueless?

dngit commented on Ask HN: Why aren't more apps using WebP format?    · Posted by u/dngit
carlosjobim · 10 months ago
Because you also want to sell to customers who have older devices, which can't display WebP. People who are not computer enthusiasts can keep a machine around for a decade or more. The gains from using WebP are negligible, the downside when they break are significant.
dngit · 10 months ago
I would argue that the gain is more than "negligible" in some cases. I'm building an app involving storing and serving images and I'm surprised that for the same images with the same resolution/quality, WebP is often 3x-4x smaller than PNG, which translates to lower storage cost, faster serving time, and happier users. You made a good point that people with older devices wouldn't be able to use apps like mine. But for me, the gain is so significant that I might just accept that.
dngit commented on Ask HN: What are you working on? (October 2024)    · Posted by u/david927
aantix · 10 months ago
A new YouTube app/player, for my kids.

It allows us to control the algorithm. It’s all LLM translating to YouTube search queries under the hood.

Visually it looks the same.

The suggested videos come from predefined buckets on topics they love.

E.g. 33% fun math, 33% DIY engineering, 33% creative activities.

Video recommendations that have a banned word in the title/desc don't get displayed e.g. MrBeast, anything with Minecraft in it, never gets surfaced.

For anyone interested in using it, send me an email.

jim.jones1@gmail.com

dngit · 10 months ago
Would an app like this work with TV? Would be super cool if it would.
dngit commented on Ask HN: What are you working on? (October 2024)    · Posted by u/david927
carlos-menezes · 10 months ago
I'm working on a passwordless authentication SaaS.
dngit · 10 months ago
Care to expand? Is it alternative to magic link / OAuth?
dngit commented on Typeset: An HTML pre-proces­sor for web ty­pog­ra­phy   typeset.lllllllllllllllll... · Posted by u/todsacerdoti
swiftcoder · 10 months ago
The website is nearly a decade old. presumably folks did still care about IE5 in that time period.
dngit · 10 months ago
Ah, sorry, I didn't notice the website itself was that old.
dngit commented on Ask HN: What are you working on? (October 2024)    · Posted by u/david927
dngit · 10 months ago
I'm working on Pictera [1], an AI product where users can upload their photos (like selfies) to create high-quality, hyper-realistic images of themselves in just about any style they want.

Originally, I built Pictera for myself to use because I couldn’t find any service that produced decent photos. Besides, I was very concerned that popular products in this space included broad terms allowing them to keep and use users' photos indefinitely for any purposes, including marketing [2]. But I've been enjoying working on the product so much that I've put way more time into polishing it and thought others would find it useful too.

Would love any feedback from folks!

[1] https://pictera.ai [2] https://pictera.ai/about

dngit commented on Typeset: An HTML pre-proces­sor for web ty­pog­ra­phy   typeset.lllllllllllllllll... · Posted by u/todsacerdoti
dngit · 10 months ago
Now, it's been a very long time since I see a mention of "Internet Explore 5". Kudos for highlighting the support for it but does it matter, who in the world are still using Internet Explorer 5?
dngit commented on Canvas Fingerprinting   browserleaks.com/canvas... · Posted by u/janandonly
galad87 · 10 months ago
Safari adds some noise to canvas. So the website above will say it's unique, but each time Safari swaps its web process (when you load a different website or a new window or a new tab) it will change to a different one.
dngit · 10 months ago
Wish all browsers, at least the big ones, would do this by default. It would save regular users like us from fumbling around trying to figure out what works.
dngit commented on Canvas Fingerprinting   browserleaks.com/canvas... · Posted by u/janandonly
begueradj · 10 months ago
dngit · 10 months ago
Tor's great if you're okay with browsing the web at "stealth mode" speed! Have you found it practical for everyday use?

u/dngit

KarmaCake day19March 26, 2021
About
Just another coder Building Pictera (https://pictera.ai)
View Original