HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ts0000

no profile record

Submissions

An Apache Cassandra Breakthrough: Acid Transactions at Scale

thenewstack.io
1 points·by ts0000·4 years ago·0 comments

comments

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