/dpt/ - Daily Programming Thread

There is bugs in the Rust COMPILER REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!!!!!!!!!!!!!!

They're intentional. There's no language spec so there cannot be any bugs implementing it.

How to make a git hook to automatically synchronize multiple repo?
I have a repo in foo machine and bar machine, each act as their "main" repo for their subdivision.

How to make Foo automatically propagate all pushes to Bar and vice versa?

XDDD

Fucking Rust fagget shits, I can't believe I took the bait.

You can't push code, only pull.

Maybe a ci/cd step where you SSH into the boxes and pull?

If you want to really ham it up you can spin up a service with an endpoint that ends up calling
>exec('git pull'). Since it's a service you can then use integrations to trigger it whenever

;)

Imagine using a new language instead of a old well-tested standarized language as C++. Lindy effect

I'm doing programming assignment from one book where I got pre-made code that I have to fill in and some function declarations look like this

void function(message)
struct mgs message;
{}

I've never seen anything like this?
Why is is there no type for function argument? How is there struct mgs message; in between function name and brackets?

This is the style used by the original, pre-standardization versions of C. The kind used in the first edition of K&R.

IT means the same as void function(struct mgs message) {}