HackerTrans
トップ新着トレンドコメント過去質問紹介求人

ts0000

no profile record

投稿

An Apache Cassandra Breakthrough: Acid Transactions at Scale

thenewstack.io
1 ポイント·投稿者 ts0000·4 年前·0 コメント

コメント

ts0000
·4 年前·議論
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
·4 年前·議論
Looks like https://wtfutil.com/modules/azure_devops/ has that.
ts0000
·4 年前·議論
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
·4 年前·議論
Comment section.
ts0000
·4 年前·議論
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
·5 年前·議論
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
·5 年前·議論
Concept art for games, movies, perhaps.
ts0000
·5 年前·議論
A violin is the pure opposite of user-friendly design, and yet, there are millions of people playing it.
ts0000
·5 年前·議論
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
·5 年前·議論
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
·6 年前·議論
Why not link to the actual reddit thread directly? https://old.reddit.com/r/LambdaSchool/comments/kb87od/lambda...