Better HN
topnewbestaskshowjobs
Log inSign up

erezsh

327 karma · joined May 18, 2009 (17y ago) · 233 submissions

Skilled Programmer

My blog: http://blog.erezsh.com/

My github: https://github.com/erezsh

Submissions

comment 1mo ago · link · parent

Default view can't play House of the Rising Sun because there's no E.

5/7 stars.

comment 1mo ago · link · parent

I think he just used nuance as a polite way to say meandering.

Personally I really wish authors would pack their 'nuance' into well-sectioned areas, maybe even collapsible (we have the technology!). I shouldn't have to skim several paragraphs just to understand the core of the argument.

Arguably, it's not a big problem if you already love the author and hang on to their every word. But as someone who is often just trying to get the gist of the idea, I find the rationalist writing style really tiresome.

comment 4mo ago · link · parent

framework is too 90s

comment 4mo ago · link · parent

Thank you for framing my laziness as being a daredevil

comment 8mo ago · link · parent

Seriously, all these armchair "experts" are missing very obvious truths -

1) Every authority figure is telling the Iranian people to stay inside and wait.

2) Revolutions don't happen overnight, the same way that businesses don't succeed overnight, even though from far away it might seem that way.

3) Official Israeli statements estimate it could take up to a year after the war is over for a successful overthrow, even if everything is going according to plan.

The truth is there's a lot of people who want this war to fail, because it will align with their political convictions and hopes.

comment 9mo ago · link · parent

You're just showing your ignorance. The Nazis killed the majority of their victims as soon as they arrived in the camp. They kept 20%-30%, mostly men who could work, to be used as slaves for their military industry, and they eliminated everyone else. They developed gassing especially in order to speed up the killing and make it more economical.

It was a genocide because they tried to eliminate a specific ethnic group, for no other reason than its ethnicity.

You should go learn more about the subject, if it interests you so much.

comment 9mo ago · link · parent

That's like me saying you're a murderer, but you just haven't killed anyone yet because you're afraid of going to jail. Maybe it's true, but it's a bit of a silly argument, isn't it? In western society, we judge people based on their actions.

comment 9mo ago · link · parent

It's because you're deeply ignorant about the subject. Anyone can think ridiculous thoughts in complete ignorance.

Try reading a history book about the holocaust, or even just WW2, and you'll see just how ridiculous you sound.

comment 9mo ago · link · parent

It's a ridiculous argument. The Nazis went through a LOT of effort and resources to gather Jews from all the corners of Europe, and even more effort into exterminating them as fast as they could, within the logistical and economic constraints of fighting a 3 front war.

There's no comparison at all to the ease with which Israel could just drop a couple of bombs on Gaza, had it decided to do so.

comment 10mo ago · link · parent

And only civilians, instead of half of them being armed and trained militants.

comment 1y ago · link · parent

Because my hate for pytest is ardent and dear to my heart, I will try to explain.

I wrote a very simple function:

  def test_whatever():
    a = range(10)
    b = (10 / x for x in a)
    c = list(b)
When I run it with normal Python, this is the exception:

    Traceback (most recent call last):
      File "test_test.py", line 10, in <module>
        test_whatever()
      File "test_test.py", line 6, in test_whatever
        c = list(b)
            ^^^^^^^
      File "test_test.py", line 5, in <genexpr>
        b = (10 / x for x in a)
             ~~~^~~
    ZeroDivisionError: division by zero

It's compact and simple to understand. It pinpoints the exact location of the error, and I easily scan the text to find the function call-stack.

Now here's the pytest error:

    ___________________________________ test_whatever ___________________________________

        def test_whatever():
            a = range(10)
            b = (10 / x for x in a)
    >       c = list(b)

    test_test.py:6:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    .0 = <range_iterator object at 0x107695e90>

    >   b = (10 / x for x in a)
    E   ZeroDivisionError: division by zero

    test_test.py:5: ZeroDivisionError

It doesn't pinpoint the error, it adds code lines that might be irrelevant, and extra information I don't care about.

I will say using `--tb=short` fixes most of it, at least in this example, and sometimes it's even preferable, because it's shorter. But it still doesn't pinpoint the error like normal Python exceptions do.

comment 1y ago · link · parent

It's awesome! Well done!

comment 1y ago · link · parent

I like the promise, and it looks nice. But I'm not sure what are the selling points.

- pytest already works with assert. Why brag about something that is already commonplace?

- It could help if your docs explained the alternative to using fixtures. I assume it would be done by re-using givens, but you could make it clearer what is the preferred way to do it, and what is gained, or lost, but doing it that way.

- Can you explain how your diff is better than the pytest diff? (I'm asking as someone who hates the pytest diff)

comment 1y ago · link · parent

Nice idea!

comment 1y ago · link · parent

It's only in Italian lol

comment 1y ago · link · parent

It's cute, but it was pretty easy! The "forbidden" level felt like what I expected "normal" to be. (I'm only 1800 on chess.com)

comment 1y ago · link · parent

Looks really nice!

comment 1y ago · link · parent

Related interesting fact that I recently learned.

Supposedly, one people of the Sea Peoples were the Peleset, as the egyptians called them (https://en.wikipedia.org/wiki/Peleset), which are believed to be the same people as the Philistines, for which the Romans gave Palestine its name.

comment 1y ago · link · parent

The agent loop takes care of that

20.

Show HN: Jobinator – Fresh jobs from Hacker News, parsed and categorized by AI(eshsoft.com ↗)

1 points · by erezsh · 1y ago · discuss

comment 1y ago · link · parent

Can you provide some examples?

22.

Show HN: Jobinator – Yet another Hacker News job aggregator(eshsoft.com ↗)

1 points · by erezsh · 1y ago · discuss

comment 1y ago · link · parent

> They claimed civilian nuclear power was part of a weapons program

They are wrong, but who cares? As long as Russia and China have nuclear weapons, disarming Europe isn't going to help anyone. Not to mention now North Korea and pretty soon Iran will have them too.

Arguably, if Germany wasn't so reliant on Russian gas, the war in Ukraine wouldn't have started. The "peace" in Greenpeace is more Orwellian than anything.

comment 1y ago · link · parent

The green energy lobby has everything to gain, and it's been working extra to make it a reality. For example, Greenpeace has been fighting nuclear power all over the world.

comment 1y ago · link · parent

On an unrelated note, does anyone know of a website that uses LLMs to generate assets?

comment 2y ago · link · parent

If your client is Hezbollah, I would say your fear is warranted.

comment 2y ago · link · parent

That's a ridiculous take. No one involved Israel in this supply chain.

Also, there is no country in the world that would refrain from doing the same thing to their enemies, if they could pull it off. (big if)

Meanwhile, you can be sure the U.S. and China are putting back-doors in every device they can manage, and have been doing so for decades.

12345
8