Hacker Newsnew | past | comments | ask | show | jobs | submit | dan00's commentslogin

Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.

Also error codes are part of the signature of a function, which exceptions aren‘t.


If you need to wrap each call in try/catch, it's better to use return codes in some form or rethink the approach.


> Often when someone wants to talk about a situation involving difficult feelings, they're actually trying to process those feelings: to understand where the feelings are coming from, to be validated, and to be able to take a broader perspective.

Right, talking about feelings is a way of regulating yourself.

Conflicts with my wife are a lot easier if I'm able to empathize with her emotional distress, acknowledging it, instead of jumping directly into logical problem solving. If I'm only looking logically at the issue, I can't really understand the issue she is having.

I like the view of the therapist Terry Real, that during conflicts you can either be right or stay connected. That doesn't mean that you hide your views, but that you also emotionally acknowledge the view of your partner. It's surprising how effectively this takes out the fire in conflicts.


> The only country 1st world country not to have really obese people is Japan (~5% obese ~20% overweight). (~35% obsese ~70% overweight US) and I'd wager a large part of that is the fact that kids cook for themselves in school so they learn early what a reasonable meal is.

There might also be a genetic factor, why japanese are less obese or overweight, because the difference for diabetes patients between US and japan is a lot smaller.


There is no genetic factor because when Japanese people move to the States they are as obese as america's within 2 generation. I want to find the study but I think they end up being physically lighter because of other factors but are just as obese or overweight as americas[1]. The reasoning from the paper is that Japanese 2nd generation adopted western cultures eating habits

https://pmc.ncbi.nlm.nih.gov/articles/PMC7610102/


That's absolutely useless and that's great!


> The problem here (again, i think) lies in the fact that we don't often see the grander value of our everyday works and yearn to do SOMETHING grander, more impactful, but we don't know which, or how, and in time it will torment us each time we do our normal work.

I think it's a kind of yearning that can't be satisfied in the outside world. It's an inside problem and can only be solved there.


The dryer could tell the garage door to open, to reduce humidity.


Well, I'm only saying locale dependent file formats!


You really shouldn't be limited by only one language: https://github.com/charyan/unirust


It's the few highlights in the cacophony called life, that makes life worth living.


I‘m using cgdb, which is a minimal ncurses wrapper around gdb. It‘s a lot better than the TUI of gdb.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: