Live data from Hacker News

Ask HN: What are you learning?

news.ycombinator.com

631–640 of 906 posts

Re: Ask HN: What are you learning?

#631
post #540

How to raise a good human, be a good dad and husband. Relationships take a lot of commitment and effort. It took me a while to learn how to communicate effectively with my wife so we’re fighting problems and not each other. Babies really test your patience. They are hard to reason with so I have to keep my emotions in check and always be calm even if she is throwing a massive fit. But sometimes they really get your n…

> But sometimes they really get your nerves when they cry non-stop for half an hour. For no apparent reason ... sigh Are you using any resources that you'd care to share?

Develop a checklist of stuff to try:

1. Does the diaper need changing? 2. Does the baby want a diaper? 3. Does the baby want to be held? 4. Maybe some clothing is uncomfortable for it? 5. Does the baby need to be burped? 6. etc.

Walk through the list until something works or until the baby + you pass out. If you spend 2-5 minutes on each item it'll take maybe 20-30 minutes to go through it. If it doesn't work the first time (and you haven't thought of / noticed anything else while going through the list...) then do it again.

It feels good to have a plan, it gives you something to do that might help, and for those occasions when nothing works it at least helps pass the time :)

Re: Ask HN: What are you learning?

#632
post #618
post #275

I'm working through Aluffi's Algebra: Chapter Zero , which covers abstract algebra (groups, fields, vector spaces, etc.) with category theoretic foundations. I took undergraduate algebra several years ago, and I'm really interested in category theory from a compositionality perspective, so this is a good opportunity to brush up on both topics. Aluffi is really well-written. It assumes some degree of mathematical matu…

I am curious about category theory? Do you have any resources on where it can be applied?

I'm no expert, so the best I can do is point you to the research community gathering around applied category theory.

* A conference series + workshop: https://www.appliedcategorytheory.org/

* A journal: https://compositionality-journal.org/

Check out some of the people involved in organizing these events. Names I've followed include John Baez, Pawel Sobocinski, and Tai-Danae Bradley (all of whom are amazing educators; check out their work!).

Tai-Danae Bradley wrote a pamphlet on applied category theory which is very approachable: https://arxiv.org/pdf/1809.05923.pdf . Also check out Jules Hedges' thoughts on the importance of compositionality: https://julesh.com/2017/04/22/on-compositionality/ .

Re: Ask HN: What are you learning?

#633

Earlier quoted context omitted.

100% percent my experience too. In the last 3 months I've been on-site at 3 of the FAANG companies. Not a single interviewer brought up the large personal projects I've done and which are given decent space on my resume; my weeks of leetcoding was definitely far far far more beneficial for getting a job.

sometimes feels very sad about this since one's value should be reflected by the awesome projects he has done. I think it's just laziness of the FAANG companies. If the interviewer is well prepared and keeps digging the resume, then he should know the candidate is good or not. But by leetcoding, it's simpler for them, just keep asking the repeated questions.

I understand why FAANG does it. The problem is that other companies are just cargo culting.

Re: Ask HN: What are you learning?

#634
post #548

Earlier quoted context omitted.

It’s been both great and terrible to be cooked up in a small flat with my wife and child. I’m always happy to see comments like this. I wonder if there’s a community for the M(o|u|a)ms/Dads of HN Any tips for communications with partners?

most important is to come from a place of respect and to talk about the issue, not about the person. it should be about solving the problem together. never about pointing blame. when i was still stuck in relationships that didn't work, most discussions were always about "who did (or did not do) what and why that was terrible". these days we talk about what problems we face, what we tried, how they didn't work and ask…

First - this is an amazing comment! Solid, concise, and really highlights the important stuff.

John Gottman has a number of books on this topic and I'd highly recommend them.

Re: Ask HN: What are you learning?

#636
post #548
post #540

How to raise a good human, be a good dad and husband. Relationships take a lot of commitment and effort. It took me a while to learn how to communicate effectively with my wife so we’re fighting problems and not each other. Babies really test your patience. They are hard to reason with so I have to keep my emotions in check and always be calm even if she is throwing a massive fit. But sometimes they really get your n…

It’s been both great and terrible to be cooked up in a small flat with my wife and child. I’m always happy to see comments like this. I wonder if there’s a community for the M(o|u|a)ms/Dads of HN Any tips for communications with partners?

What. A. Minefield.

Here's what we're trying

- When she or I are upset, name the emotion at the earliest opportunity, e.g. "Hey, what you said back there hurt me, and I'm kind of embarrassed to be hurt by something like that but that's how I'm feeling right now..."

- This sounds like a bunch of whiny nonsense, but we've both found it takes a lot of heat out of a situation, and avoids a snide or sarcastic comment that might make things worse later. This is the slow-burn kinda situation.

- Sometimes there's no time to think about that and one of us just exclaims in anger or hurt about something. I don't know what to do about that; it just means there's a lot of work to do afterwards.

- Good luck :)

Edit: oh yeah, this assumes you're both ok having a difficult conversation in the first place. If implied criticism is a no-go zone, then... I wish you even more luck :)

Re: Ask HN: What are you learning?

#637

How to take care of a toddler from 5 AM - 8 PM while trying to manage work and phone calls. Then how to not fall asleep while I"m working on projects until 1 AM. So learning how to function on 4-6 hours of sleep.

Sometimes you have to accept you can't do everything.

Re: Ask HN: What are you learning?

#638

Earlier quoted context omitted.

Hey, I recommend checking out type-graphql and especially Nexus to work with GraphQL on server-side. If you want to go serious about GraphQL I also recommend reading Production-ready GraphQL. I've been working with gql for 4 years now but this book really deepened how I think about modelling my schemas, queries and mutations. All the best on your learning journey!

Thank you! In fact I have been using type-graphql for this project. I'll make a note to check out Nexus. Some other contenders to go into my tech stack were Hasura, Prisma and Postgraphile, but I wanted something a little bit closer to the vanilla GraphQL experience...

Agree with you. The more vanilla GraphQL you go in the beginning, the more you'll be able to choose abstraction you want on top of that.

If I had to give you just one tip to design your schema: favor simple queries and mutations that do just one thing instead of trying to generalize your use-cases. For example if you want your client to be able to retrieve your Products by id and by name, instead of going for `product(id: String, name: String)` go for `productById(id: String!)` and `productByName(name: String!)` You'll end up with more fields on Query but the Product type stays the same, the arguments are clearer (just one that is required) and you'll get simpler resolvers. To generalize: forget about REST best practices, think about you queries and mutations as functions and write them with the according best practices you would apply to functions.

Funny thing I noticed about gql is front-end developers are generally more comfortable than back-end ones geting the grasp of it as its DNA is really client-focused.

Sorry for the long reply :)

Re: Ask HN: What are you learning?

#639
post #618
post #275

I'm working through Aluffi's Algebra: Chapter Zero , which covers abstract algebra (groups, fields, vector spaces, etc.) with category theoretic foundations. I took undergraduate algebra several years ago, and I'm really interested in category theory from a compositionality perspective, so this is a good opportunity to brush up on both topics. Aluffi is really well-written. It assumes some degree of mathematical matu…

I am curious about category theory? Do you have any resources on where it can be applied?

Haskell.

To do io you need monads. There's come from category theory. Haskell is great fun to learn, very different, focus on abstractions and abstractions of abstractions. One the one hand i highly recommend it. On the other the vast majority of people learning it never do any useful work at all in haskell. (This last statement will probably excite the haskell zealots whom I would encourage to reply with evidence.)

There are about 5 programs i know if that you might use written in haskell for a purpose other than programming a computer.

Anyway category theory definitely comes up in lazy, pure functional programming. A lot.

Re: Ask HN: What are you learning?

#640
post #522
post #280

Earlier quoted context omitted.

Logic programming is badly underapplied in general, I think. Most of the amazing work in this area never seems to have gotten far out of academia (if at all) -- Prolog being the almost singular exception. Would be awesome to see some motivating examples for this application. It sounds really cool!

Could you shed some more light on this amazing work you're talking about?

Sure. First, I'd recommend checking out the website of HN user 'triska at https://www.metalevel.at/prolog -- there's more to Prolog itself than most people are ever made aware of.

Frank Pfenning at CMU does some really cool research on concurrency using logical semantics and sequent calculi (https://www.cs.cmu.edu/~fp/). Session types might be the coolest thing out of this particular corner of the field, but there's so much more to explore here.

Going back some decades, concurrent constraint programming (CCP) takes the position that concurrent processes communicate by posting constraints upon a shared store. Vijay Saraswat's ask/tell CCP model has been a real inspiration to me. As best as I can tell, his work is based on forward reasoning, as opposed to Prof. Pfenning's work, which appears to use backwards reasoning (as does Prolog). (There's an interesting duality between the two kinds of reasoning, which I am not at all positioned to opine on.)

Some of the functional work I've seen on concurrency ends up going in a logical direction without realizing it; the more recent LVars papers (Lindsey Kuper and Ryan Newton) build up a lovely abstraction in Haskell that's conceptually the same as Saraswat's ask/tell logical framework, but they don't seem to realize it until several papers in. (It's all fantastic work! It's just a shame the communities have so little overlap.)

Logic programming allows you to model mutable state, and it gives you high-powered tools to reason about how that state changes over time. As a concrete example, you only need term unification and logical variables to get undirected communication channels in a logic program. Unifying a variable with a term in one part of the program allows other users of the variable to match on it and obtain information about that term. In this sense, it goes in the complete opposite direction from functional programming, which eschews state and treats it as something to be derived from a stateless foundation.

Post reply on HN