HNHacker News
TopNewBestAskShowJobs

wawhal

581 karma · joined September 26, 2017

https://rishi.monster
submissionscomments
wawhal··on Show HN: Json2graphql – From a JSON file to Postgres-backed realtime GraphQL
It works with circular references. For example, this works:

  {
    "user": [
          { "id": 456, "name": "Sita K", "user_id": 123 },
          { "id": 123, "name": "John Doe", "user_id": 123  }
    ]
  }
Do you have anything else in mind?

PS: Co-author here

wawhal··on Big ol’ ball o’ JavaScript
I think the point being made was:

"Logic programming is considered superior to HTML/CSS even though it isn't. Just like one gender thinks that they are superior to others even though they aren't."

wawhal··on Big ol’ ball o’ JavaScript
> Also it's useful to have utility players who can fill in gaps in any position

You end up in the "width vs depth" debate if you go along these lines. It is debatable whether it is better to know 60% of all worlds or >95% of one world. (Assumption: It is extremely rare finding people who know >95% of all worlds).

However, I agree with your point that full-stack is the way to go if you are limited on resources (small orgs).

wawhal··on Big ol’ ball o’ JavaScript
Why is alienation a problem? As far as every part of the system is being worked upon by somebody who specializes in that part, the system should do well.
wawhal··on Things I Don’t Know as of 2018
There is more to writing than just the content. The history and the background of the author plays a significant role. Let me give some reasons WRT this article:

1. In this article, the author says that he does not know streams. Now, when he learns it well, he can write about "How he learned about streams", and a beginner would empathize more with this article rather than some expert ranting about it in their blog. 2. It is inspiring for the readers. It sends a message: "If you master one skill and master it well, you can still add a lot of value to the world. Knowing everything in the field is not really important". 3. Many people write not just for others, but also for themselves. Making your insecurities public is a good way to acknowledge and face them.

wawhal··on Things I Don’t Know as of 2018
Redux, IMO is a beautiful state management library.

Were you following Dan’s tutorial on Redux? Because that is a beautifully made tutorial as well. (https://egghead.io/redux)

If you have tried to build a substantially big app with React alone, you will find yourself lost in passing down the props and callbacks and hoisting variables and what not. You definitely need a state management library where you can CRUD from all your React components. Thats where Redux/Mobx comes into picture, unless you want to write a new one.

I agree that Redux needs a lot of boilerplate though.

wawhal··on Things I Don’t Know as of 2018
A software should be judged only based on how functional and performant it is. Judging a software based on the author’s biodata is firstly, not fair and secondly, too presumptuous.
wawhal··on The popularity of the Squatty Potty
[http://www.naturesplatform.com/health_benefits.html]

You can go through this book that references several research papers.

wawhal··on The popularity of the Squatty Potty
> I think the biggest advantage of squat toilets is that the users end up developing strong legs and balance

On the contrary, they kill your knees. Sure one can feel nice about them in their youth, but it is pretty hard to use squat toilets in and after your late 60s.

wawhal··on The popularity of the Squatty Potty
Yes there is a significant advantage in bowel movement if you use squatty potty.

Moving to a normal chair toilet from a squat toilet (https://en.wikipedia.org/wiki/Squat_toilet) was a hell for me. Chair toilets just don't feel right and comfortable to poop from if one has used a squat toilet all their life. Squatty potty hits a nice middle ground because:

1. It is better than the chair toilet in terms of comfort of bowel movement.

2. It is better than the squat toilet in terms of the extreme stress on the knees

wawhal··on The Most Important Non-Programming Skills for Programmers
I don't know if 'Discipline' was missed out, or discipline is a quality inferred to be required for every field out there.

Personally, discipline and honesty towards the code have been the most helpful soft-skill challenges in my programming career.

wawhal··on Set up a production-ready realtime GraphQL backend
Here is one blogpost that we wrote (Hasura vs Prisma):

https://blog.hasura.io/hasura-vs-prisma-9ffc7271eda8

PS: I work at Hasura

wawhal··on Set up a production-ready realtime GraphQL backend
For super small applications, where you have 5-10 endpoints, you can say that GraphQL is an overkill. But imagine having 100s of REST endpoints and the client making numerous round trips to the server fetching loads of unnecessary data; GraphQL certainly wins in this case as you can fetch everything and exactly everything in a single API call.

[Edit] Also, the GraphQL spec being defined, and the way it is defined, reduces unnecessary documentation, unnecessary decision-making, and unnecessary communication between teams.

wawhal··on Set up a production-ready realtime GraphQL backend
About access control in context of this article, Hasura gives GraphQL APIs with a role-based-access-control layer that can be integrated with any standard auth system.

https://docs.hasura.io/1.0/graphql/manual/auth/index.html

PS: I work at Hasura

wawhal··on Scientists say halting deforestation 'just as urgent' as reducing emissions
Sure. The greater problem is how do we achieve that. With a growing population, deforestation has become necessary to meet agricultural and accommodation needs of humans. As sad as it sounds, people need food and shelter.

The problem boils down to controlling population and also handling population. If people want to keep buying new houses, there is more demand for deforestation. The agricultural demand for deforestation increases with the amount of food wastage we observe these days. Such incremental improvements in lifestyle could help us save forests.

wawhal··on What else is in Go 1.11?
Finally, I can keep my Go projects wherever I want.
wawhal··on It’s hard to have an unusual name in China
So this means, if you are in China, you cannot have English or Latin or other names, because they won't have a character for it? Not sure if I understand this correctly.

The very idea that you have to think about logistics before naming your baby is ridiculous.

wawhal··on Ask HN: What is one Vim trick most people don't know?
I think I don’t quite get you. Doesn’t “v” do the same thing?
wawhal··on Ask HN: What is one Vim trick most people don't know?
You can use `Ctrl + C` instead of `ESC`

I figured this out today. And I submitted this Ask HN to find out more such things.

wawhal··on Negative Base
Science need not necessarily have any practical use. That’s why it is called Science. Science, the way I define it is: Study for the sake of it.
wawhal··on Alternatives to Google Products
What about Android? Android allegedly collects your data too. If you are running all your apps on an Android phone, all these replacements don't really mean anything.
wawhal··on What is the best language/framework to write CLIs in 2018?
Nice. Thanks.
wawhal··on What is the best language/framework to write CLIs in 2018?
Never used Perl. Would love to learn it. Just went through the overview. Looks like a high-level scripting language which inherits a lot from C.

After all the research, I am still highly inclined towards Golang. Since you said "Perl or Go", you seem to have used Golang. How does Perl compare with it?

wawhal··on What is the best language/framework to write CLIs in 2018?
Type safety is important to me. So not going for python.

Otherwise python is the go-to because of the libs.

wawhal··on Awesome-live-reloading – A collection of live reloading tools and libraries
Haha. Do you think live coding is cool enough a feature to move to a particular language?
wawhal··on Awesome-live-reloading – A collection of live reloading tools and libraries
I will think about adding generic tools along with an articles section about how hot reloading works and what are the related new technologies.

Thanks for pointing out.

wawhal··on Ask HN: Do you use Kubernetes in production?
That is super useful. Thank you.
wawhal··on Ask HN: What are the best MOOCs you've taken?
Fundamentals of Operations Research by G Srinivasan. https://medium.com/@jossctz/google-kubernetes-engine-default...

It is a great course for non management majors to get a sense about how operations work. In fact, it is meant for non-management students because the course is originally taught at an engineering institute.

The instructor is a great figure in Operations Research. He is exceptionally knowledgeable and more importantly, clear.

wawhal··on Ask HN: Do you use Kubernetes in production?
Have you faced issues setting up RBAC?
wawhal··on Show HN: React Native Auth Boilerplate
Hey! It seems to be opening for us. https://blog.hasura.io/hasura-year-one-50def1cc7b73

Can you elaborate what do you mean by broken?

← PreviousPage 2 of 3Next →