News for hackers. Stuff that matters.

ts0000

Re:Vim is touch-typing on steroids on Friday January 13, 2023 @05:34AM (#34366035)
For anyone not understanding why (neo)vim exists, or why some developers prefer it to IDEs, I suggest watching "PDE: A different take on editing code" [1]. It reframes (neo)vim as a "Personalized Development Environment".

I've been using (neo)vim for years, and don't want to use anything else. It isn't just about productivity (I would probably be as productive in an IDE). It's because its _mine_. It's a highly customized environment, catered to my needs.

[1] https://www.youtube.com/watch?v=QMVIJhC9Veg&

Re:DevDash: A highly configurable terminal dashboard on Tuesday August 09, 2022 @05:10AM (#32395687)
Re:DevDash: A highly configurable terminal dashboard on Tuesday August 09, 2022 @04:53AM (#32395619)
How does this compare to https://github.com/wtfutil/wtf/?

/edit: I wish these kind of projects would add a compatibility layer to pre-existing modules of competing libraries. That would jump-start adoption, instead of having to re-invent every single module again.

Re:My favorite Erlang Program (2013) on Tuesday June 07, 2022 @06:53AM (#31652323)
Comment section.
Re:Zq: An easier and faster alternative to jq on Tuesday April 26, 2022 @11:41AM (#31168893)
Interesting, for me it's the exact opposite.

I've tried a couple of times to get into awk, but still find the syntax arcane.

Re:Software estimation is hard – do it anyway on Wednesday June 30, 2021 @08:05AM (#27687481)
One alternative to estimations are projections via (for example) Monte Carlo simulations. I've been happily using https://getnave.com/ for that. The results seem to be in the same ball-park as my old estimations, but with less stress overall.
Re:Nvidia Canvas on Friday June 25, 2021 @02:42AM (#27627810)
Concept art for games, movies, perhaps.
Re:Vim Modes Transition Diagram on Tuesday May 25, 2021 @04:57AM (#27274535)
A violin is the pure opposite of user-friendly design, and yet, there are millions of people playing it.
Agree, I intentionally didn't change the names to mirror the other examples in sibling comments as I meant to focus on the "named parameters" bit.
In addition to the other TypeScript examples, here's one that I would actually use. Now, it's not encoding the types not as positional, but named arguments via objects. Allows me to destructure them, for added clarity.

  type Circle = {x: number; y: number; r: number};
  type Rectangle = {x: number; y: number; w: number; h: number};
  
  type Shape = <T>(xs: {
      circle: (args: Circle) => T;
      rectangle: (args: Rectangle) => T;
  }) => T;
  
  function Circle(x: Circle): Shape {
      return ({circle}) => circle(x);
  }
  
  function Rectangle(x: Rectangle): Shape {
      return ({rectangle}) => rectangle(x);
  }
  
  const exampleCircle = Circle({x: 2, y: 1.4, r: 4.5});
  const exampleRectangle = Rectangle({x: 1.3, y: 3.1, w: 10.3, h: 7.7});
  
  const area = (shape: Shape): number =>
      shape({
          circle: ({r}: Circle) => Math.PI * r * r,
          rectangle: ({w, h}: Rectangle) => w * h,
      });
  
  console.log(area(exampleCircle));
  console.log(area(exampleRectangle));
/edit: Fixed formatting. /edit: Clarify something.
Re:Lambda School is the biggest mistake I made this year on Monday December 14, 2020 @04:55AM (#25415198)
Why not link to the actual reddit thread directly? https://old.reddit.com/r/LambdaSchool/comments/kb87od/lambda...
Re:Microservices Considered Harmful (2019) on Sunday June 07, 2020 @02:54PM (#23449637)
While I agree with the notion of treating microservices with caution, I found the article a bit too shallow, barely supporting the claim. Especially the second "fallacy" reads like a draft and it overall ends abruptly.
Re:Wim Hof: 'Inject me with the coronavirus' on Tuesday April 07, 2020 @06:40AM (#22802016)
I have been doing the Wim Hof method (cold showers, breathing exercise) for two weeks and it surprisingly effective in alleviating anxiety and depression. I also feel more awake.

For context, supposedly there have been done a couple of studies [1] that show benefits for strengthening the immune system.

[1] https://www.wimhofmethod.com/science

Re:The Cost of Avoiding Sensitive Questions on Monday December 16, 2019 @04:26AM (#21801856)
> A while after someone (which I can’t trace back) made an interesting (and equally brilliant) observation - there is a fourth option - unknown knowns

Gary Bernhardt uses this in his "Ideology"[1] talk.

[1] https://www.destroyallsoftware.com/talks/ideology

Re:Why I Prefer Functional Programming on Thursday September 19, 2019 @02:44PM (#21019242)
As someone strongly favoring a functional or even purely functional approach, I strongly dislike the flood of pro-functional-programming blog posts that attack the straw man of "imperative programming wrapped in classes". I don't want to believe that is what experts of the paradigm consider object-oriented programming. I would love to read an honest comparison of both, judging benefits and cost.
Re:It's Cold in the Information Age on Monday June 10, 2019 @03:36AM (#20144618)
I believe WordPress, at least the admin interface, is essentially an SPA.