HackerTrans
TopNewTrendsCommentsPastAskShowJobs

AQXt

no profile record

comments

AQXt
·4 lata temu·discuss
> especially since the images are stylized / colored anyway

The thing that I don't like about the new images is the abuse of star flare effect. The colors are okay, but the flares... that's simply too much.
AQXt
·4 lata temu·discuss
That's an interesting way to illustrate the myth of meritocracy: random luck is enough to create a society of rich and poor.
AQXt
·4 lata temu·discuss
Amazing! I'll try it with my kids. :)

Suggestion: create an app so we can see the results immediately.
AQXt
·4 lata temu·discuss
Excel is great for simple use cases.

For complex problems, you should look at Jupyter notebooks.

https://jupyter.org/
AQXt
·5 lat temu·discuss
So, you are re-implementing Altavista, Lycos and other old search engines.

They used the naive approach: you searched for "steak", and they would bring the pages which included the word "steak".

The problem is that people could fool these engines by adding a long sequence like "steak, steak, steak, steak, steak, steak" to their site -- to pretend that they were the most authoritative page about steaks.

Google's big innovation was to count the referrers -- how many pages used the word "steak" to link to that particular page.

The rest is history.
AQXt
·5 lat temu·discuss
I searched for "giraffe evolution" (without quotes) and received the following links on the first page:

- Evolutionist scientists say the theory is unscientific and worthless

- Seven Mysteries of Evolution

- OTHER EVIDENCE AGAINST EVOLUTION

- Evolution Falsified

Not a single result about the evolution of giraffes...
AQXt
·5 lat temu·discuss
Differently from most countries in the world, Colombia allowed corporations to buy and distribute vaccines to their employees.

The result?

Hunger Games: Food Delivery Company Giving Vaccines Only to Best Gig Workers

As COVID deaths in Colombia reach an all-time high and a third wave of infections has left hospital systems on the verge of collapse, the massive delivery company Rappi said it would offer vaccines to its employees.

The catch: the delivery workers will have to compete against each other to prove they are the hardest workers to win just a handful of jabs.

Juan Sebastián Rozo, Rappi’s director of public affairs, announced this week during a local radio interview that the company will give vaccines to the five percent of its delivery workers who “deliver the most orders, spend the most time logged into the app and because of that are the most exposed.”

https://www.vice.com/en/article/pkbqdg/hunger-games-food-del...

---

In other words: between a 20-years-old who works full-time and a 40-years-old who works part-time, the Rappi would give the jab to the 20-years-old.

So... don't take compassion for granted.
AQXt
·5 lat temu·discuss
> I can understand where the author is coming from, but this is the cruel reality of the world.

This article was written in 2015, when this kind of dilemma (who would you save) was purely theoretical.

Fast-forward to 2020/2021, and it became real: we had to decide how to allocate scarce, life-saving resources -- COVID-19 vaccines -- and we decided to distribute them to the elder and most vulnerable first.

I hope this decision -- replicated in most countries around the world -- will put an end to this attempt to calculate the value of human lives.
AQXt
·5 lat temu·discuss
That's one of the coolest programming demos I've ever seen!

Suggestion: make the completed rows fade asynchronously.
AQXt
·5 lat temu·discuss
Before Present? (Just guessing)
AQXt
·5 lat temu·discuss
The first part of the article can be summarized as:

1. Initiate as few attacks as possible

2. Let your enemies break up each other’s continents;

3. Take only one country per turn

The problem is that it doesn't explain which country to take, and how to attack without being attacked -- which is what makes the game difficult.

But, then, the article suggests something new (at least for me):

1. Find a way to grow in strength by taking lots of countries (but not taking a whole continent)

2. Make sure you get lots of cards for bonus armies

If this is a good strategy, I have always played it wrong -- because I've always tried to take whole continents.
AQXt
·5 lat temu·discuss
> What thing that violates a type check would be "perfectly fine to do"?

A typical example, in dynamic programming languages, is to treat numbers as strings and vice-versa; evaluate lists in boolean context; and so on.

> If value is not a numeric type, square is not going to be happy. And that's the case with most (all?) dynamic code.

Some programming languages will be glad to accept a string and treat it as a number -- see Duck Typing (https://en.wikipedia.org/wiki/Duck_typing).
AQXt
·5 lat temu·discuss
Your conjecture may only hold for tiny (< 500 lines of code) problems.

But when you deal with big problems -- millions of lines of code, written by hundreds of developers over a period of years -- you'll definitely see the benefit of OO.

Of course, most projects are somewhere in the middle; but you shouldn't dismiss OO just because you can't see the benefit in tiny projects.
AQXt
·5 lat temu·discuss
How about `npm`, `pip`, `cpan`?...

We have seen bad updates breaking the entire Javascript ecosystem, but they were not intentional.

All it takes to inject a bad dependency is a burned out developer willing to delegate his free project to someone else...
AQXt
·5 lat temu·discuss
...which happens all the time in the free software world, when you type `apt-get|yum|brew update`.

What are the odds of one dependency being taken over by a shady anonymous entity?
AQXt
·5 lat temu·discuss
> Apparently recent versions of this extension have been taken over by a shady anonymous entity...

That's something that worries me, whenever I install a software with trusted privileges.

Software companies can sell their products -- and user base -- to other companies without notice.

And it can be even worse in the free software world: think about all the updates that happen when you type `apt-get|yum|brew|npm|pip update`. What are the odds of a single dependency being taken over by a shady anonymous entity?
AQXt
·6 lat temu·discuss
Can AI generate a better tutorial?

To test my theory, I asked the OpenAI API to complete the following sentence:

    This tutorial will guide you through writing the "Hello World" program in the C programming language.

And here's the result:

    This tutorial will guide you through writing the "Hello World" program in the C programming language.
    
    Hello World Program Structure

    The "Hello World" program is a very simple program. It consists of two parts: the main function and the printf function. The main function is the first function called when your program starts running. It is responsible for starting all other functions and initializing everything that needs to be initialized before your program starts doing anything useful. The printf function is responsible for printing text to the screen. In this case, it prints "Hello World!" to the screen.
    
    The main Function
    
    The main function must have one argument which is an integer that represents how many arguments were passed into it from the command line (if any). The following code shows a simple main function:

    #include <stdio.h>
    int main(int argc, char *argv[]) {
        printf("Hello World!n");
        return 0;
    }

    This code will print "Hello World!" to the screen when executed.

    Let's go over each line of this code:

    #include <stdio.h>
    This line tells the compiler to include stdio.h in our program so we can use its functions (like printf ).

    int main(int argc, char *argv[])
    This declares a new variable called main . It has two arguments: argc and argv . These are special variables that are used by C programs to pass information into their functions from their command line arguments (if any). We'll talk more about them later on in this tutorial when we cover how to use command line arguments with your programs. For now, just know that they're there so we can use them later on if we need them! ;-)

    printf("Hello World!n");
    This line calls our friend printf . It tells it to print "Hello World!" followed by a newline character (the n at the end).

    return 0;
    This line returns 0 back into our calling environment (in this case, it's our shell). If you don't know what returning values means or why you would want to do it, don't worry about it for now; just know that every C program must return a value back into its calling environment when it finishes running (we'll talk more about this later on in this tutorial).
Pretty good, eh? (I just formatted the text for clarity.)
AQXt
·6 lat temu·discuss
Exactly!

The author assumes the reader doesn't know what a terminal is, and goes from a "hello world" to a cross-platform graphical "hello world" using GTK-3 without explanation.

"Trust me, I don't have time to explain!"
AQXt
·6 lat temu·discuss
The problem with philosophy is that you can't tell the difference between an honest effort to seek the truth and a frivolous attempt to display erudition to win the debate.

Science is not perfect, but it provides evaluation mechanisms to reduce the doubt.
AQXt
·6 lat temu·discuss
That's the coolest thing I have seen today. Thanks! :)

Suggestion: replace the blue button text ("I have completed the level") with something simpler, like "Run", "Check", "Test" or "Go".