Readit News logoReadit News
REDS1736 commented on LabPlot: Free, open source and cross-platform Data Visualization and Analysis   labplot.org/... · Posted by u/turrini
MostlyStable · 4 months ago
I'm someone who enjoys figuring out the details of making a nice looking plot (in base R, I can't stand ggplot), but even as someone who enjoys it, LLMs are pretty much good enough that if I explain to them how I want the plot to look and how my data is structured, they can generate code that works first shot. It seems to me that, at this point, if you are already doing some coding in one of the above languages but either don't like or aren't comfortable making the plots using them, that LLMs can solve it for you. Unless they are significantly worse in the non-R options (which could be the case, It wouldn't surprise me if R has more plotting examples in the training set than the other languages).
REDS1736 · 4 months ago
Sorry for the off-topic question but would you mind to elaborate on why you can't stand ggplot? I personally haven't spent too much time with the r base functions but have come to absolutely adore ggplot for graphing and am thus very interested in learning about potential reasons to use r base plotting functions instead!
REDS1736 commented on My favourite computer ergonomics hack   blog.jacobvosmaer.nl/0036... · Posted by u/vortex_ape
petesergeant · a year ago
interestingly I was all-in on Vim when it was at its worst!
REDS1736 · a year ago
Maybe your keyboard was a contributing factor? I had wrist pain typing in vim on a "regular" (Keychron C1) Keyboard. The wrist pain is gone since i use a split keyboard (Ergodox EZ) which allows me to rotate both halves of the keyboard in order to match the "incoming angle" of my forearm which removes the need to constantly bend my wrists outwards.
REDS1736 commented on The useful use of cat   mrmr.io/cat... · Posted by u/LorenDB
Arcuru · a year ago
Using `cat file.txt | ...` has always felt more natural to me, so I still use it.

If I need to build a long command I've been using the excellent `up` tool to do it, e.g. `cat file.txt | up`

https://github.com/akavel/up

REDS1736 · a year ago
Wow that looks amazing, thanks for telling me about this!
REDS1736 commented on Tetris shows promise in reducing PTSD symptoms   legalreader.com/tetris-ga... · Posted by u/giuliomagnifico
mdp2021 · a year ago
Article says rotation is a crucial operation to the purpose.
REDS1736 · a year ago
The hypothesis is that mental rotation as one way to induce high cognitive load hinders my brain from plaguing me with intrusions. As my sibling commenter already stated, this mechanism's evidence level is "unproven hypothesis" but on top of that, the hypothesis does not explicitly assume mental rotation to be the only effective task for this use case because there are a lot of other very brain-consuming tasks.
REDS1736 commented on Tetris shows promise in reducing PTSD symptoms   legalreader.com/tetris-ga... · Posted by u/giuliomagnifico
johnmaguire · a year ago
From your link:

> There is debate about how the therapy works and whether it is more effective than other established treatments.[3][9] The eye movements have been criticized as having no scientific basis.[10] The founder promoted the therapy for the treatment of PTSD, and proponents employed untestable hypotheses to explain negative results in controlled studies.[11] EMDR has been characterized as a pseudoscientific purple hat therapy (i.e., only as effective as its underlying therapeutic methods without any contribution from its distinctive add-ons).[12]

I always assumed EMDR's effectiveness had nothing to do with eye movements.

REDS1736 · a year ago
I support your assumption. The mechanisms of how EDMR affects the PTSD symptoms are still debated, but indeed a quite prevalent opinion (which i also subscribe to) is that EMDR is not at all about the eye movements but about the exposition therapy happening concurrently. Exposition has been robustly proven to be effective at PTDS treatment and as far as i know, there is no rigorous evidence for EMDR having more effect than standalone exposition, highly suggesting that the exposition part is what makes EMDR work.
REDS1736 commented on 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup   stroustrup.com/programmin... · Posted by u/jrepinc
KptMarchewa · 2 years ago
I just wish to _not_ work with Python.
REDS1736 · 2 years ago
Why is that? I'm genuinely curious. Also, what languages / environments do you prefer?
REDS1736 commented on Bell Labs: An Institute of Creative Technology (2015)   sts10.github.io/2015/09/1... · Posted by u/Hooke
lokimedes · 2 years ago
Too young to have been there, and too young not to take that type of progress that came from Bell Labs for granted, - I now realize that 20th century progress came, not from natural competition, but from the strong forcing function of utility-guided free research.

After 20 years of hoping for a Bell Labs to magically show up again, I now work to emulate this culture but with a focus on energy systems that has the same characteristics as combustion engines but with 10x power/energy-density (and zero emissions).

If this resonates with anyone here, feel free to reach out.

REDS1736 · 2 years ago
Just a heads up; the "About Morten" page of your website is just lorem ipsum
REDS1736 commented on The case for a pipe assignment operator in R   hughjonesd.github.io/case... · Posted by u/dash2
REDS1736 · 2 years ago
I agree with you proposing this operator to simplify the specific (but not uncommon!) situation you describe. But i don't think, it exposes a problem to be solved but rather an antipattern to be avoided. Consider the following example in which mytransform is some function i want to apply to a part of the dataset:

  mydata <- read.csv('mydata.csv')
  mydata['score'] <- mytransform(mydata['score'])
This can be simplified with your proposed operator:

  mydata['score'] <|> mytransform()
An upgrade in elegance, i like it. But in R, a language which is commonly used switching between scripts and the REPL, with an IDE which by default captures your workspace so all your variables etc are restored the next time you resume the session, in this environment i feel like variables should be used as constants as much as possible. Mutating a variable (as in my example) creates room for confusion: Does mydata contain the raw csv data or the transformed data? Did i already evaluate this line in the REPL or did i not? What happens if i evaluate this line twice? Many people i know tend to "jump around" in their scripts, not following the written order of operations. This creates potentially irreproducible environments. My proposed solution is treating all variables (or at least as many as possible) like constants:

  mydata <- read.csv('mydata.csv')
  mydata_transformed <- transform(mydata)
Now i always know what a variable contains because each variable contains exactly the same value, independent of when i evaluate.

But nevertheless; i kinda went on a tangent here and strictly speaking, the problem i describe only arises from careless user behavior (which is quite prevalent in statistics though). Aside from this kind of behavior, i think this operator is an elegant idea!

u/REDS1736

KarmaCake day11December 30, 2023View Original