Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
631.
▲
by
dgb23
3y ago
I like the second one better. In programming, it’s useful to have namespaces for overall organization and conflict resolution. But it’s a trade off: you are nudged into a hierarchical ontology, with all the implied issues. Wikipedia titles
632.
▲
by
dgb23
3y ago
That's fine, but it's also a relatively easy to understand pattern that most can follow. You can explain it trivially in text. But even in a simple case like this: if the user makes a mistake, say inserts a character that doesn&#x
633.
▲
by
dgb23
3y ago
CSS is great until it isn't. The abstraction layer it provides is clever and useful, but also incomplete, opaque and so idiosyncratic that getting better at using and understanding it provides you with close to zero transferable skills
634.
▲
by
dgb23
3y ago
The point of these types of libraries and patterns isn't necessarily that, although that might be a nice side-effect. It's to provide a simpler, less bloated alternative to trending JS UI patterns and libraries by leaning more int
635.
▲
by
dgb23
3y ago
In terms of form validation: Those things are all useful, but also trivial, scoped to a single element and in some cases near useless from a UI/UX perspective on its own. Again, client side form validation is all about guiding the user
636.
▲
by
dgb23
3y ago
HTMX is a JS library that perfectly illustrates how HTML is too limited and unfinished.
637.
▲
by
dgb23
3y ago
That’s because HTML is severely neglected. Aside from forms being essentially broken and too limited from a UI perspective, it doesn’t even support all the basic HTTP methods. Form validation on the client (helping the user to understand wh
638.
▲
by
dgb23
3y ago
Perhaps there are better methods for that, like email. Another one is to require a paid subscription to comment. It’s a filter for low effort spam.
639.
▲
by
dgb23
3y ago
Writing a toy version of a program is a great way to understand the big boy version.
640.
▲
by
dgb23
3y ago
All good things do come to an end. There’s no argument here. But I think we’re in a different situation when people are willing to pay monthly for search. There is also exactly 0 risk involved here for a consumer. If this product stops bein
641.
▲
by
dgb23
3y ago
Yes people are. And it’s the least technically literate people with “outdated” machines and bad connections that slug through the web like this. They don’t know what to trust and often fall prey to deceptive tactics.
642.
▲
by
dgb23
3y ago
An alternative is to think of the browser as a distributed managed cache. Browsers have a cache API that can be used directly or in service/webworkers. A managed cache comes with significant upsides, such as complete control, but costs
643.
▲
by
dgb23
3y ago
This is a good signal. Ambitious OS projects have been lifting up entire software fields and provide a stable foundation.
644.
▲
by
dgb23
3y ago
That’s not easy to answer, because it’s not quite an apples to apples comparison if you start factoring in libraries, frameworks and the specific workload. My rule of thumbs: Python has similar performance characteristics as Ruby. With Java
645.
▲
by
dgb23
3y ago
I fully agree. It’s an interesting trade off that is worth thinking about.
646.
▲
by
dgb23
3y ago
That's the point!
647.
▲
by
dgb23
3y ago
I'm still in the honeymoon phase with this language and learning, but I agree it's a trade off. For example your LSP isn't going to help you as much while you edit code. However being able to express arbitrary compile time co
648.
▲
by
dgb23
3y ago
Zig provides tools to avoid memory related bugs, but it doesn't enforce it via compile time checked RAII/burrow checking etc. Nullability (and error handling) is compile time checked though.
649.
▲
by
dgb23
3y ago
The point is that Zig basically circumvents issues surrounding that, by introducing "comptime", where you can just write regular Zig to achieve the same things. The article showcases a nice example of having this very direct power
650.
▲
by
dgb23
3y ago
If you’re interested in programming and building things on your own, but want a starting point where you can immediately draw stuff to the screen, then take a look at raylib or LÖVE. They have super straightforward APIs with very minimal ce
651.
▲
by
dgb23
3y ago
Hopefully new and better ways of doing politics will arise and replace the old. It would be depressing if not. But instead of telling people what that future has to look like, we should maybe give them the tools to figure this out themselve
652.
▲
by
dgb23
3y ago
The trend for big software is to charge more and more, while locking you in. Payments become more granular and gradual rather than predictable and discrete. Are the technical requirements driving these monetization schemes or is it the othe
653.
▲
by
dgb23
3y ago
Inheritance is not necessary for code reuse. All you really need for that is named procedures. A way to combine modules and different files certainly helps too. Type hierarchies can even hinder code reuse, because you can’t just pick the st
654.
▲
by
dgb23
3y ago
To me this seems shameless and of poor taste.
655.
▲
by
dgb23
3y ago
More often than not, open source licenses are given for very practical reasons that aren’t directly tied to extracting money directly. Foundational libraries, tools, frameworks etc. is often open sourced so people don’t have to “reinvent th
656.
▲
by
dgb23
3y ago
Unity has a large asset and plugin ecosystem.
657.
▲
by
dgb23
3y ago
What you say about in terms of comparing download size: This very much depends on the site. It might be that you're right in terms of trends. I haven't seen any statistical evidence, but from my personal experience a typical websi
658.
▲
by
dgb23
3y ago
We do this too and believe me, it’s not to reduce the server workload. It’s just progressive enhancement: The browsers that support a format get the lighter version, the ones that don’t, get a heavier fallback.
659.
▲
by
dgb23
3y ago
The performance metrics in pagespeed/lighthouse etc. are not really assessing performance directly. You can have a slow, bloated website but great metrics, because you’re doing the “right” things. However lazy loading images that are n
660.
▲
by
dgb23
3y ago
It's a very common language to embed in video games as a modding and configuration tool.
More ›