Variables are immutable by default. This makes Rust safer and makes concurrency easier.
Immutable means once a value is bound to that variable, it cannot be changed.
For example:
fn main() {
let x = 5;
I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.
The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.
You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.
# https://superuser.com/a/1492456 | |
echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" | sudo dd of="/etc/sudoers.d/$(whoami)" | |
sudo apt install -y wslu | |
# https://superuser.com/a/1568668/1172895 | |
WINDOWS_USER_PROFILE="$(wslpath "$(wslvar USERPROFILE)")" | |
HOME_DICECTORY="/home/$(whoami)" | |
# https://askubuntu.com/a/86891 | |
cp -vra ~/. $WINDOWS_USER_PROFILE |
Ok, this is a quick document to guide you through the setup of a Godot project in Visual Studio Code.
I'll assume you have a working C# environment installed. Note that on Linux, you might need to install Mono for everything to work fine with Godot 3.x.
First off, make sure you have the following extensions installed and active in Visual Studio Code:
# Temporarily add a normal upstream DNS resolver | |
/ip dns set servers=1.1.1.1,1.0.0.1 | |
# CA certificates extracted from Mozilla | |
/tool fetch url=https://curl.se/ca/cacert.pem | |
# Import the downloaded ca-store (127 certificates) | |
/certificate import file-name=cacert.pem passphrase="" | |
# Set the DoH resolver to cloudflare |
This post was adapted from an earlier Twitter thread.
It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.
It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)
And then there's Rollup, which apparently requires ESM to be u
dogfood
comes from the expression "eating your own dogfood".All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.