Readit News logoReadit News
lpedrosa commented on Kratos - Cloud native Auth0 open-source alternative (self-hosted)   github.com/ory/kratos... · Posted by u/curtistyr
nja · 3 months ago
I've used [Keycloak](https://www.keycloak.org/) in the past for "open-source Auth0" -- though I'm not sure it has ever described itself that way.

Keycloak ended up being quite extensible and powerful, but the UI and data model both sometimes made things more difficult than they had to be... this could be an interesting project to look at.

One bonus (for us) for Keycloak was that it was JVM-based, meaning it was easier to integrate our existing JVM libraries. Though its use of Hibernate was frustrating at times, heh

lpedrosa · 3 months ago
Tbh, I much prefer ORY's API first approach. I looked into Keycloak when I was trying to have a multi-purpose auth server that allowed me to peek into the auth flows.

The sheer complexity of Keycloak's configuration and deployment vs. something like ORY's Hydra was night and day.

And the fact that I could intercept the auth flow through a callback and use their RESTful API to drive it was amazing. No more "package this JAR" and hope that it works. Hydra would run on its own and I don't have to touch it, except when I have to upgrade it.

lpedrosa commented on How much do electric car batteries degrade?   sustainabilitybynumbers.c... · Posted by u/xnx
geoffeg · 6 months ago
Don't forget that internal combustions engines lose power and efficiency over their lifetimes. Bearings, piston rings and other components wear, injectors and valves get dirty, surfaces develop varnish, etc. My last ICE car started needing a quart of oil every few months and that was with very good maintenance and not being driven hard.

I've been curious about how the degradation compares to EVs. I'm aware it's different kind of wear and that there's different ways to mitigate and repair EVs vs ICE, but they both have their own lifetimes and loss of performance.

lpedrosa · 6 months ago
I believe the difference between ICE degradation and EV degradation is that the EV one actually affects the car's range.

While it is true that your car might consume more oil, and some other component might need replacing, its range, assuming it has been serviced properly, should be similar to what you could get out of it new.

I do wonder if the sum of the costs of getting the ICE car back to mint condition will be the same as getting some cells replaced so you get full range again.

lpedrosa commented on Overtourism in Japan, and how it hurts small businesses   craigmod.com/ridgeline/21... · Posted by u/speckx
umanwizard · 7 months ago
Telling someone “just speak Japanese and blend in!” is sort of an absurd suggestion. That is impossible if you’re not East Asian and even if you are, it would take years of study.
lpedrosa · 7 months ago
Then you don't go "off the beaten path" and instead stick to the tourist friendly places.

Demanding the locals to accommodate your lazyness is basically shouting "I'm entitled".

lpedrosa commented on Show HN: Bagels – TUI expense tracker   github.com/EnhancedJax/Ba... · Posted by u/EnhancedJax
oneeyedpigeon · a year ago
It looks great, but I don't feel enthusiastic about installing yet another package manager. Are there really enough benefits from uv to justify it as the only option?
lpedrosa · a year ago
> Are there really enough benefits from uv to justify it as the only option?

The author probably really likes uv, thus the biased instructions.

I also think uv is great, but I wouldn't mention it in the user facing installation instructions. People are used to pip/pipx, thus asking them to install yet another tool might drive potential users away.

The usual pip or pipx command should work fine. It's listed on PyPI: https://pypi.org/project/Bagels

I would only mention uv in the Development Setup section (https://github.com/EnhancedJax/Bagels?tab=readme-ov-file#dev...)

lpedrosa commented on HTML Web Components   blog.jim-nielsen.com/2023... · Posted by u/goranmoomin
lpedrosa · 2 years ago
> This feature of web components encourages a design of composability.

I am not a React, Vue (and friends dev) at all. Heck, I haven't done front-end or full stack for a long time now.

However, taking React as an example, where does it not encourage composability?

I like Web Components. I even spent the last couple of weeks playing only with the vanilla APIs (no Lit, etc.) just to see what is like:

https://lpedrosa.github.io/blog/web-components-part-3/

https://github.com/lpedrosa/webcomponents-blog-examples

Like many other people have pointed out in this post, it is great that you can leverage the platform. All the things you will learn e.g. DOM APIs, native elements and events, etc., are things you can carry over to React and Vue.

However, I believe articles like this fail to acknowledge the contribution React and friends brought to developer experience.

Building complex desktop like UIs was no longer impossible to maintain. You can easily make components and compose them, customise them, etc.

The general complaint is more around "you don't need Next.js" to build a news/marketing/blog website. The pendulum is swinging, especially with things like HTMX gaining traction.

IMO, people do it because:

- It's easier to hire developers that know the framework du jour

- Custom Elements are very flexible, so it's hard to enforce a particular style

- There aren't enough examples of people using vanilla Web Components (and I mean vanilla, not Lit and friends), so why use a web component framework when I can use a react based one?

Write more about how we can combine things like Custom Elements and "traditional" server side templating.

Write more about how a native element reacts to changes to its attributes or how it communicates user interaction and how that helps building a good custom element.

Or how building a good custom element is similar to building a good React component, and where it differs.

Antagonising existing knowledge or even the status quo is not constructive, and leads to poor discussions e.g. "Web Components is a failed technology" or articles like OP

lpedrosa commented on HTML Web Components   blog.jim-nielsen.com/2023... · Posted by u/goranmoomin
toasted-subs · 2 years ago
I don't understand why people use the shadow Dom. Why not edit the Dom directly?
lpedrosa · 2 years ago
You are correct. You don't have to use the shadow DOM, when you create a new Custom Element.

The shadow DOM provides two things:

- style encapsulation (as well as `id` attributes)

- ability to use `<slot>` for templating

You should use it if you require one of the above or both.

lpedrosa commented on Moore’s Law is dead – Long live the chiplet   semiwiki.com/chiplet/3188... · Posted by u/chclau
Ma8ee · 3 years ago
But the inefficiencies you sometimes see today can’t even be explained with any bad choice of language. You can create more than fast enough programs with interpreted languages with garbage collection. But then of course you need to know at least a little bit about data structures and not doing dozens of REST calls anytime anyone taps the screen.
lpedrosa · 3 years ago
What if doing dozens of REST calls is effectively the product?
lpedrosa commented on Millet, a Language Server for SML   azdavis.net/posts/millet/... · Posted by u/todsacerdoti
sideeffffect · 3 years ago
SML comes with many implementations/compilers, but it is one standardized language (with formalized and verified semantics, IIRC).

Does that mean that there is one repository with modules (like PyPI or Maven Central) which all the implementations can use? Is there even a single build tool that can work with all (or at least some) of them (like Maven, etc.)?

lpedrosa · 3 years ago
I think there was something like a package manager.

Tbh, I wish we lived in an alternative reality where SML won over JS and we had it running on every major browser.

lpedrosa commented on Millet, a Language Server for SML   azdavis.net/posts/millet/... · Posted by u/todsacerdoti
azdavis · 3 years ago
Author here, hope you like it!
lpedrosa · 3 years ago
This is great. I wanted to create something like this for quite some time! I definitely try it.

Well done!

u/lpedrosa

KarmaCake day41June 26, 2015View Original