Readit News logoReadit News
digitaltrees commented on Ruby 4.0.0   ruby-lang.org/en/news/202... · Posted by u/FBISurveillance
tasuki · 3 days ago
> Ruby can meta program like nothing else.

Have you heard about Lisp?

digitaltrees · 2 days ago
(((((((Heard)))))))

I might have forgotten a (

Ruby is clean. Which I love.

Loading parent story...

Loading comment...

digitaltrees commented on Ruby 4.0.0   ruby-lang.org/en/news/202... · Posted by u/FBISurveillance
mierz00 · 4 days ago
Curious to hear more about this, do you have any examples?
digitaltrees · 3 days ago
We might release it as a framework of gems.

We created an Abstract controller that handles all of the typical behavior for a resource, auth, filtering, pagination, tenancy, import/export, serialization etc.

Then we expanded rails generators to cover ALL typical behavior. And the markdown file calls the generators.

It was a bit complicated to model polymorphic behavior but we got it working thanks to Ruby/Rails.

But the basic premise that made this work is: Use only restful actions; don’t turn it into RPC. Recognize that most RPC/graphql functions are state changes that could have been a patch request. So instead of /clients/activate its /clients with a status attribute for “activate” or “archive”. Then most nested routes aren’t needed, use accepts nested attributes for and return child ids in the show action. There’s more to it that this but by strictly following conventions and modeling the data for rest, the api ends up Super simple.

Our standard controller only whitelists strong params. All other behavior is automatic.

digitaltrees commented on Alzheimer’s disease can be reversed in animal models? Study   case.edu/news/new-study-s... · Posted by u/thunderbong
chasil · 4 days ago
There appears to be some danger in using NAD+ without the supervision of an experienced physician.

"Pieper emphasized that current over-the-counter NAD+-precursors have been shown in animal models to raise cellular NAD+ to dangerously high levels that promote cancer."

digitaltrees · 4 days ago
Most people with Alzheimer’s are older and would probably trade having their cognitive abilities back even with increased risk of cancer
digitaltrees commented on Ruby 4.0.0   ruby-lang.org/en/news/202... · Posted by u/FBISurveillance
digitaltrees · 4 days ago
Ruby is amazing. I recently built a layer on top of Rails that can generate an API from a single markdown file. I did the same thing in python but it was much harder and JavaScript would have been a beast. Ruby can meta program like nothing else.
digitaltrees commented on Some Epstein file redactions are being undone   theguardian.com/us-news/2... · Posted by u/vinni2
wahnfrieden · 5 days ago
Not the only thing hack means now, or the most common usage anymore. See "life hack" - it means unexpected technique.
digitaltrees · 5 days ago
But this isn’t an unexpected technique it’s literally the core design of the pdf format. It’s a layered format that preserves the layers on any machine. Adobe has a redaction feature to overcome the default behavior that each layer can be accessed even if there is a top layer in front.

Loading parent story...

Loading comment...

Loading parent story...

Loading comment...

digitaltrees commented on Some Epstein file redactions are being undone   theguardian.com/us-news/2... · Posted by u/vinni2
weird-eye-issue · 5 days ago
If I open your laptop and guess your password then that counts as hacking you in both legal and security terms

You don't need to do some sophisticated thing for it to be considered hacking

digitaltrees · 5 days ago
You guessing my password is not the same as a know and expected behavior of a program. Adobe has a specific feature to redact. PDF is a format known to have layers. Lawyers are trained on day one not to make this mistake. (I am a recovering lawyer). This is either incompetence or deliberate disclosure.
digitaltrees commented on Some Epstein file redactions are being undone   theguardian.com/us-news/2... · Posted by u/vinni2
themafia · 5 days ago
It's being "undone with the lamest hack known to mankind."

Still technically a hack.

digitaltrees · 5 days ago
It’s not a hack. It’s known, expected behavior of the program. Adobe has a specific feature to redact. Color filled boxes is not it.

u/digitaltrees

KarmaCake day1934June 17, 2015View Original