HNHacker News
TopNewBestAskShowJobs

ts0000

63 karma · joined June 10, 2019

submissionscomments
ts0000··on Vim is touch-typing on steroids
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&

ts0000··on DevDash: A highly configurable terminal dashboard
Looks like https://wtfutil.com/modules/azure_devops/ has that.
ts0000··on DevDash: A highly configurable terminal dashboard
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.

ts0000··on My favorite Erlang Program (2013)
Comment section.
ts0000··on Zq: An easier and faster alternative to jq
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.

ts0000··on Software estimation is hard – do it anyway
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.
ts0000··on Nvidia Canvas
Concept art for games, movies, perhaps.
ts0000··on Vim Modes Transition Diagram
A violin is the pure opposite of user-friendly design, and yet, there are millions of people playing it.
ts0000··on The visitor pattern is essentially the same thing as Church encoding
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.
ts0000··on The visitor pattern is essentially the same thing as Church encoding
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.
ts0000··on Lambda School is the biggest mistake I made this year
Why not link to the actual reddit thread directly? https://old.reddit.com/r/LambdaSchool/comments/kb87od/lambda...
ts0000··on Microservices Considered Harmful (2019)
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.
ts0000··on Rust Analyzer: Next few years
https://langserver.org/

via

https://github.com/neoclide/coc.nvim

and

https://github.com/fannheyward/coc-rust-analyzer

ts0000··on [dead]
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

ts0000··on The Cost of Avoiding Sensitive Questions
> 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

ts0000··on Why I Prefer Functional Programming
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.
ts0000··on It's Cold in the Information Age
I believe WordPress, at least the admin interface, is essentially an SPA.