Hacker Newsnew | past | comments | ask | show | jobs | submit | sscarduzio's commentslogin

Would this help in case of air gapped environments? You just run the registry in the internal network and use the rewrite. Am I right? Any catch?


> Fuses API execution with SQL logic to provide an open, flexible platform (…)

But there’s a gigantic multi line string in your yaml. Full of Python.


The Python here is doing exactly what it should - extracting nested data and flattening it into proper relational tables. Most of the 'Python' is actually just the return statement defining table schemas. The schema can be defined separately and reused across API calls. With such reuse the Python part would be really compact. This is the right balance between declarative config and the flexibility needed for real-world API responses. I can confirm it from my experience developing many integrations with Sequor - this approach handles real-world complexity much better than pure declarative tools.


Scroll down and you’ll see the example with raw SQL.


what I would have naturally done without anticipating any flaw (and probably be just OK):

   cache_key = sha(sha(id + username) + bcrypt(pass))
with sha256 or something.


Why not a simple sha(id + username + bcrypt(pass))

Is there any security issues with that? I'm a "newb" in this area, so I'm genuinely curious about the flaws with the naive approach


This is exactly what I needed, but I need JS or Python backend. Any chance to make it work?


The JS side is made in StimulusJS. You can take it, it's MIT. I haven't worked with python and don't have plans to port it to React or anything else. If you do start work on it, I can guide you though the process if you need a hand...


If I was to build out a react integration, would you recommend:

A. Rebuild the stimulus portions in react B. Write a react wrapper around the stimulus

I use rails for everything I do, but like to use vite_rails on the front end for react. Excited to use this library!


Hmmm... My responsible developer gut tells me to redo it in React so you don't import StimulusJS just to render one editor. It's like having jQuery as a dependency in a React project.


Another question:

Does this integrate with action_text? Wasn’t that a big thing in rails 6/7, with like… trix?


In theory it does. The thing with ActionText is that it adds some HTML to the content, but in theory it should work.


Can Gov.uk become the new W3C? Pretty please?


You mean the new WHATWG.


Me too, I was devastated. The guy was a super expensive senior react dev. He literally went like: “Wdym multipart form data?”


Sadly, we now have a whole generation of web devs that don't know anything other than SPAs.


Don’t listen to the naysayers: this can be Dropbox all over again! I love Cursor but, it’s a pity it’s not OSS.

The success of Void is tied to how well you implement the part in which AI reasons about multiple files. This is where all the sauce is in Cursor at the moment imo.


Any beautifully reasonable, clever, optimal strategy for this kind of home-human interaction would meet the sledgehammer of my utterly unreasonable order freak partner (way before having any opportunity to explain any reasoning about it).

Good to see at least someone is able to enjoy even reasoning about these little things.


Is there even a need for a holding pen if there is an order freak in the house?


Doesn’t look the same tho? Didn’t see the code.


Which in a way is good because the hardware will more and more perform identically on Linux as on Windows.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: