Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lf-non
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
211.
▲
by
lf-non
5y ago
why not ? People are free to use their time & energy to develop interesting things in whatever language/toolchain/techstack they like and share with the community. That is how ecosystems evolve, expand, and new ecosystems emer
212.
▲
by
lf-non
5y ago
Yes, its an alternative. protobuf is a lower level specification that supports defining typed services. It does not dictate things like transport mechanism or other implementation details. There are multiple protobuf compatible RPC implemen
213.
▲
by
lf-non
5y ago
It works oob - the browser can directly talk to twirp service. I used it because I basically wanted end-to-end type-safety without any infrastructure overhead and additional decode-encode hops in betweeen.
214.
▲
by
lf-non
5y ago
Regarding django-admin style tools, there are solutions like zk [1] & apache isis [2] for java which are somewhat comparable, though more enterprise oriented. [1] https://www.zkoss.org/ [2] https://isis.apach
215.
▲
by
lf-non
5y ago
If you are considering protobuf for browser <-> server communication (as opposed to server <-> server) a good alternative is Twirp [1] by twitch. Like gRPC it uses protobuf for API schema, but unlike gRPC it works out of the box
216.
▲
by
lf-non
5y ago
Depends on how the components are used. If the content is part of rendered html and wrapped into webcomponents, crawers have no issues accessing that. If the content is loaded dynamically and injected into open mode shadow dom then js enabl
217.
▲
by
lf-non
5y ago
That is one of the nice things about being open source and using web components. Even if lit gets discontinued/deprecated/whatever, they can gradually switch to another library one component at a time. And the user's won'
218.
▲
by
lf-non
5y ago
Yes, but JSX is much more conservative in what it introduces to the language. Other than the XML syntax rest of js is mostly left untouched. In a svelte file, a lot of usual js constructs like labels, additions, assignments etc. have differ
219.
▲
by
lf-non
5y ago
Yeah, atleast last time I tried kotlin-js it took a minute or so for any change in IDE to actually end up in browser. I don't understand understand the js tooling setup completely (I mostly used kotlin on backend) but the gradle-webpac
220.
▲
by
lf-non
5y ago
Yes, that is precisely what annotations are - a common unified way to attach metadata that various tools can agree upon. KSP [1] is a new addition to the kotlin ecosystem that facilitates cross-platform annotation processing. Various annota
221.
▲
by
lf-non
5y ago
> you can always just... extend a class (or interface) with whatever function you want Not quite. Extension functions are statically resolved and abide by usual access modifiers. So within a class, I can have a private extension method f
222.
▲
by
lf-non
5y ago
Be that as it may, but a core benefit of kotlin (as a developer) is that it has actively sought out good design patterns (eg. builders, composition etc.) and codified them into the language. In Kotlin often the best approach is also the mos
223.
▲
by
lf-non
5y ago
A few things Kotlin does better: - The annotation support is just better. JS ecosystem has forever been debating on decorator spec, but kotlin annotations (esp. with addition of KSP) provide good mechanism for compile time code generation.
224.
▲
by
lf-non
5y ago
Yup, gradle is a huge barrier to entry - esp. with the whole disparity between kotlin dsl and gradle dsl. At its core, gradle as a task runner is pretty neat. But the layers of abstraction built upon it often make things superhard when you
225.
▲
by
lf-non
5y ago
Yeah, I briefly tried using nvim for csharp dev and discovered that even though csharp lsp is open source, the razor lsp integration is not (or was not at the time) and the vscode plugin downloads some proprietary binary.
226.
▲
by
lf-non
5y ago
A very lofi solution I have been using is tbls [1]. It is a native cli utility that generates documentation from db schema (and includes comments in the db as well). It can output in markdown with embedded svg diagrams (which is great for p
227.
▲
by
lf-non
5y ago
I am a bit skeptic about the no css bundle advantage. What about all the bloat that is now getting added in the html ? --- I spend 10-20% of my time writing css. I have tried pretty most of the popular css-in-js and atomic/utility css
228.
▲
by
lf-non
5y ago
I am not a big fan of the complex literate programming style involving code-generation which this article talks about. But I recently discovered that Google's zx [1] scripting utility supports executing scripts in markdown documents an
229.
▲
by
lf-non
5y ago
Those plugins primarily help with with runtime type validations - the static type checking is delegated to Flow/TS. The benefits around F# units of measure that the parent talks about are primarily focused on static type checking. If y
230.
▲
by
lf-non
5y ago
I don't see how you'd go about doing this. Babel doesn't have a type checker, and for type level features you'd need support from typescript. So you need a typescript plugin - however the typescript compiler api (which b
231.
▲
by
lf-non
5y ago
Yup, I have been using branded types in TS to avoid similar issues, and I still do miss F# units of measure. Even though branded types prevent assignment of values with invalid units, opaque types are inferior in that the compiler doesn
232.
▲
by
lf-non
5y ago
Serverless solutions are typically priced based on usage - in case of db you may be charged based on actual iops, storage used etc. as opposed to pre-provisioned reserved capacity and infrastructure. Depending on usage patterns the former c
233.
▲
by
lf-non
5y ago
I am looking at it for the first time but the built in mqtt integration (which extends to browsers) [1] and support for live templates [2] is interesting. It is also interesting that the support for live templates and realtime client server
234.
▲
by
lf-non
5y ago
I never quite understood why PDFs are considered to be fixed baked references. Plenty of software can edit pdfs. I have used affinity designer in past to fix up issues in PDFs received from designers. Seems like this can be better addressed
235.
▲
by
lf-non
5y ago
I am not a big fan of notion, but printing a document (even as a pdf) is an increasingly niche usecase in an increasingly digital-only world and I can totally understand if they don't put in much effort into it.
236.
▲
by
lf-non
5y ago
I tend to evaluate a service based on what the service provider advertises as selling points. In case of BookWyrm, the very first feature listed in the home page is that its Decentralized. As a user I'd want to understand how that is a
237.
▲
by
lf-non
5y ago
As someone who has occasionally dabbled with fediverse, but never quite dived in, I have always found federated applications to be confusing from UX pov. In this case, what does interoperability mean ? When I sign up for the service I see o
238.
▲
by
lf-non
5y ago
Yeah, I have been using httpie (which offers a better DX) in similar fashion. It also pairs well with (n)vim - I can just run :.!http whatever and have the response injected into a vim buffer where I can inspect or slice and dice the json w
239.
▲
by
lf-non
5y ago
I haven't used obsidian, but have been using Logseq [1] (which a lot of people have mentioned to be similar) for over a year now and super happy with it. The data is stored locally as md files, can be versioned using git which is a big
240.
▲
by
lf-non
5y ago
Not related to featureset/usability of the app, but this is super weird: https://github.com/notable/notable/blob/32b8e969e9a3f49f8352... If the app is not open-source why would I ever care about what lan
More ›