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

Depends if you define a solved problem as a problem with a known solution (theory) or as a problem people still pay the cost for in the wild (practice).


>> solved

Oof classic 3rd rail for when you're arguing with CS grads


CS grads don't like being generalized, I knew that


Unfortunatly, like NVC, arguing from compassion is really hard to fake.

You may force yourself to practice it, and you will improve. But as soon as you get heat up in the moment, it will all go away.

What really helps you to progress is to work on yourself (whatever is your favorite tool, therapy, meditation, etc).

Because it will improve the compassion you feel (for others, but more importantly, for yourself: a lot of the debate is going on inside), and giving a compassionate shape to your words will then be more natural, fluid, and therefore, will be less likely to melt away in a real life debate.

But trying to sound compassionate when you are angry doesn't work very well. And it requires a huge amount of energy to maintain (ask any politician :)).

This is one of those areas where "fake it until you make it" shows its limits.

However, it does improve the quality of your exchanges a lot on the long run, and for me, it's really worth it.

I'm not saying don't try to fake it, but rather, understand where the ceiling is.


> But trying to sound compassionate when you are angry doesn't work very well. And it requires a huge amount of energy to maintain (ask any politician :)).

But that's a good and self-reinforcing thing! If you are spending all your energy on compassion, then you are not spending your energy on talking angrily, and so are inadvertently lulled into listening, or at least not over-talking. If one can't be genuinely compassionate yet, then at least falling into a neutral non-attacking position is a good thing.


I wish.

Nowever it's not uncommon to build frustration that way. Let's disregard the fact it's a highway to unhappiness. One day, one may not have enough energy to keep this frustration at bay, then anger will flow.

Anger is a funny thing, it can lend you temporarilly a lot of energy (that you pay back with interest later). So even if you didn't have any for compassion, suddenly, you might find you have a lot for destruction.

Now don't get me wrong, I think trying and failing at compassion is a worthy action, even when resulting with destruction.

In fact, some meditation technics are mostly that: you try to be compassionate, or in the moment, or just observing. You fail. You try again. For years.


> Unfortunatly, like NVC, arguing from compassion is really hard to fake.

Agreed.

> What really helps you to progress is to work on yourself (whatever is your favorite tool, therapy, meditation, etc).

This, however, is very consistent with NVC. Not just with NVC but with most communications books - especially those involving difficult issues. These books focus more on figuring out what's inside of you than in the actual verbal communication. If you're upset/angry, the goal is to understand what is causing you to be angry and how you got there - why would you get angry and someone else wouldn't?


Indeed it's a better way to put it than my comment: it's not as important to note than faking it is hard, rather that really understanding it is something that goes deeper than an exchange of words.

However, I would say that it's ok to start with just the words. There is a first step to everything.


I'd argue that often what's inside of us (at least in side of me) is a lot of verbal communication. Maybe you mean the verbal communication we do with others, yet I just wanted to say I think the language we use with ourselves is often the language we use with others. I've found that yes, working on how I talk to myself has helped how I talk to others. For example, I'm not an idiot when I make a mistake, I'm angry at a specific behavior I did.

So I try to pay attention to how I speak to myself and how I speak to others, trying to learn from both. E.g., I just said "gosh, how stupid are you" to someone (or thought it), wait, how often do I say that to myself?


It's kinda crazy not knowing what the sky, the biggest most omnipresent stuff in our life, looks like, is now the default for us.

Other first times that give life a lot of texture back:

- first time a dangerous animal looks at you, and there is no wall between you and it. We are not used to be pray.

- first time you get to taste really good fruits and vegetables. Most people think they had. They have not.

- first time you get lost in a wild remote place. The jungle is really scary.

- first time you lose all your stuff (including money and id) in a place you don't speak the language. You will look differently at immigrants after this one.

- first time you see a human dead body outside of a building or a box. The outside sewers in Mali for me.

- first time you use your knowledge of physics or maths to solve a real life problem, and it works. Ok, this one is awesome.

- first time you know you almost died right there.

- first time your car break hundreds of miles from civilization, there is no cell phone, and nobody is coming.

Of course I don't wish you a lot of those. We worked hard at creating a civilization because it's nice to not die from dehydration or a spooked bull.


My only objection is the food/fruit/vegetable argument. The best fruits and veggies come from gardens, most from Japan.

Random fruits and veggies from the wild mostly taste overly sour, bitter, or under or over ripe.


I never said from the wild.

I would not recommend eating things form the wild unless you really know what you are doing: it's a good way to get sick or die.

E.G: wild carrots and hemlock can look very similar.


I always though a lot of human arrogance would melt down if we had to regularly spend a few days in the desert. It resets your internal scale: nature is big, you are small, cities are amazing oversized camp fires that help us forget that fact for the night.

The first time you look up and you feel all alone, like you could fall in the infinite cosmos and nobody can do anything about it, is really special.


There's a pretty cool experience to have that I learned from attending Burning Man that they call taking a "space walk". You basically just start walking towards the horizon away from the main camp. As you get further away leaving the noises and lights of the event behind you, you just become eneveloped in the silence and darkness with the only thing visible are the objects in the sky.

You can probably do something similar at a lot of dark sky places, except the vast flatness in the desert means you can walk in a long way in a straight line without interruption. This just adds so much to the being alone experience


Completely agree, I remember the first time I realised the earth is really a spaceship, cruising through more beauty than the mind can comprehend, that experience was in the desert.


In that case, it would change the Python result dramatically as well.

But I don't think it would be fair: I use Python a lot, and if it's for scripting, you are happy with the fact it's very easy to write. However, it's slow to start, and you pay that each time you run the script.

To me, it makes sense in this exercice, which is heavily leaning toward scripting, we see the price of the VM start in the overall profiling.

Otherwise, let's use pypy, warm it up, a few 1000 times, and you may get closer to Go times.

But we don't use pypy for scripting.


Which is fair play.

I fully expect authorities from any countries to try to get evidences from physical access to electronic devices in the case of criminal investigation. Just like they can go into ones house and open safes with a torch if a judge allows it.

The problem is mass surveillance, not getting data about someone under arrest.

Of course, I unfortunatly also fully expect them to abuse that and use it outside of criminal investigations, without the knowledge of said person.


No, the problem is backdoors and misleading information.


That as well.

Apple may state that their enclave is secure, the existance of such tools and the fact they were part of PRISM hints that they are like all others: open to those with a lot of resources.


In this type of blog post with comparisons including many languages, you usually see some unatural approach for your favorite language.

However, in this case, the Python example is idiomatic.

Since the articles calls for better approaches, I would suggest to take the opportunity to use the walrus operator and rsplit() for the optimized version. Something like this:

    reminding = ""
    c=Counter( )
    while (chunk := sys.stdin.read(64 * 1024)):
        pre, post = chunk.lower().rsplit('\n', 1)
        c.update((reminding + pre ).split())
        reminding = post
It should not affect performance too much, and the code gets more expressive.

However, the performances will be quite different depending of the python version you use. Interestingly, Python 3.11 beta, which comes with a lot performance tweaks, is slower for this exercice, while being reported to be faster on real life tasks.


Your code assumes there is at least one newline in each 64K chunk, and assumes there are no words past the final newline.

It will fail on "abc" and give the wrong answer for "abc\ndef".

I prefer rpartition over rsplit to handle first case, and the loop-and-a-half construct instead of the while+walrus operator to handle the second, as in this modified version of your code:

    remaining = ""
    c=Counter( )
    while True:
        chunk = sys.stdin.read(64 * 1024)
        if not chunk:
            if not remaining:
                break
            pre = post = ""
        else:
            pre, mid, post = chunk.lower().rpartition("\n")
        c.update((remaining + pre).split())
        remaining = post


Indeed, rpartition is better suited for this task.


Most of those things would be blocked by my adblockers. If you want to reach me, that's now how to do it.

People that managed to reach me did so by either:

- helping me solving one problem

- creating something that looked really cool and fun


There are a lot of reasons you can end up in this situation, and as many solutions to apply. Identifying the problems, choosing the appropriate solution and implementing it is a job.

You cannot learn an entire job from a HN post.

However, one solution can be used to solve all those problems: put a product manager in charge with a background in ergonomics (in the steve krug sense), and have this person steer the project from start to finish, with the legitimacy to direct people effort and choose policies.

The hard part now becomes to hire a good one.

A good one will know programming (Xor design), ergonomics and customer support. This person will know how to talk to the customer/end users, to the boss, but also to the designers and the devs.

Because eventually that's what it is about: having a good product vision, but being able to make sure this vision matches what the customers need, sell that to the boss, then direct the team to get it.

Expecting all of those people to behaved optimally is like hopping to win the lottery. It may happen, but chances are low:

- the boss may want fast things for cheap, or have another agenda/point of view about the project

- the customer don't know how to express what they really need. Sometimes they don't even know before you ask them.

- the designers are skilled at making visual things, but not all of them get out of their way to make sure they are making the visual things that are needed.

- the devs are skilled at making programs, but not all of them get out of their way to make sure they are making the things that are needed.

- they don't talk the same language, so every conversation means one should be capable and willing to make the effort of taking in a foreign jargon and context.

So unless you are very lucky to have most of those doing exactly what you want them to do, you need somebody that will steer the ship. And it's WAY easier to hire one single person with those skills than to make sure every single team member you hire is going to be able to see more than one's own area of expertise.

If you can't hire that person, then the next best thing is becoming that person.

In that case, you may want to read "Don't makes me think", all 37signals books, and "the mythical man month" for a first step into the marvelous world of building products with reality as it is, instead of what people wish it to be.

The rest of course is a lot of practice, talking to a lot of bosses, customers, designers and devs, then try to get the product in the right direction.

It's a long (yet interesting) journey, though, so good luck.


It reminded me of a youtube video were a chief was explaining how to cut vegetable quickly. One of the comment said: "I can cook diner with what this guy throws away".

Well years ago, I used to live an entire month on what this guy spend yearly on subscriptions.

I could now afford all this, but it still seems odd to me to spend so much on this.

I guess old habits die hard.


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

Search: