Better HN
topnewbestaskshowjobs
Log inSign up

ts0000

63 karma · joined Jun 10, 2019 (7y ago) · 20 submissions

Submissions

comment 3y ago · link · parent

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&

2.

An Apache Cassandra Breakthrough: Acid Transactions at Scale(thenewstack.io ↗)

1 points · by ts0000 · 3y ago · discuss

comment 4y ago · link · parent

Looks like https://wtfutil.com/modules/azure_devops/ has that.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Comment section.

comment 4y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Concept art for games, movies, perhaps.

comment 5y ago · link · parent

A violin is the pure opposite of user-friendly design, and yet, there are millions of people playing it.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Why not link to the actual reddit thread directly? https://old.reddit.com/r/LambdaSchool/comments/kb87od/lambda...

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

https://langserver.org/

via

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

and

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

comment 6y ago · link · parent

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

comment 6y ago · link · parent

> 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

17.

Unit, Functional, Integration? You are doing it wrong(blog.7mind.io ↗)

7 points · by ts0000 · 7y ago · discuss

18.

Why I No Longer Use Haskell(skillsmatter.com ↗)

5 points · by ts0000 · 7y ago · discuss

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

I believe WordPress, at least the admin interface, is essentially an SPA.