HackerTrans
TopNewTrendsCommentsPastAskShowJobs

erezsh

no profile record

comments

erezsh
·4 ay önce·discuss
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.
erezsh
·5 ay önce·discuss
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.
erezsh
·5 ay önce·discuss
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.
erezsh
·5 ay önce·discuss
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.
erezsh
·5 ay önce·discuss
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.
erezsh
·6 ay önce·discuss
And only civilians, instead of half of them being armed and trained militants.
erezsh
·6 ay önce·discuss
[flagged]
erezsh
·6 ay önce·discuss
[flagged]
erezsh
·9 ay önce·discuss
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.
erezsh
·9 ay önce·discuss
It's awesome! Well done!
erezsh
·9 ay önce·discuss
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)
erezsh
·9 ay önce·discuss
Nice idea!
erezsh
·9 ay önce·discuss
It's only in Italian lol
erezsh
·9 ay önce·discuss
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)
erezsh
·9 ay önce·discuss
Looks really nice!
erezsh
·10 ay önce·discuss
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.
erezsh
·3 yıl önce·discuss
Except if I wrote it by hand, it would be -

    SELECT *
    FROM employees
    LEFT JOIN positions ON employees.id = positions.employee_id
which isn't really that different.
erezsh
·3 yıl önce·discuss
The last one is definitely a big factor, combined with the fact that you still have to compile to SQL, i.e. you are limited by its limitations, and there isn't always a workaround.

The rest are also true to some degree. But I think that once a serious contender comes along, people will eventually move to it.