Avatar
Daniel Dương
69f16d34caa0890f32e1970e119a2f96de18914ab0ba5bca6c87ab724568b5f8
Programmer, Jiu-jitsuka 🇫🇷🇻🇳🇧🇷

Maybe try to tell us a little bit about things you're interested in?

Take your time. Try to learn by writing code. After learning Python's syntax, you'll see that you might get stuck on the types of problems you'll be able to solve. With just the syntax, you might be able to write something like a sudoku solver (search for: backtracking), or maybe a calculator (search for: shunting yard algorithm). But to do anything useful, you might have to learn other things.

That's because real life problems need other types of knowledge, like understanding networking, things like sockets, IP, DNS, HTTP, etc. You might want to try to learn using Linux or BSD. If you want to learn web development, you might wanna learn HTML/CSS/Javascript/SQL.

Here is an essay that helped me a lot in my journey: https://www.norvig.com/21-days.html

Ok, let's say I wanna test this script, without installing docker-compose:

$ cat manage.sh

#!/bin/sh

RUNNING_IDS=$(docker-compose ps -q)

if [ -z "$RUNNING_IDS" ]; then

echo "docker-compose is not running."

exit 1

fi

docker-compose exec -e LOG_LEVEL=${LOG_LEVEL:-INFO} backend python3 manage.py "$@"

I can use the PATH trick:

$ printf '#!/bin/sh' > docker-compose && chmod +x docker-compose && PATH=.:$PATH ./manage.sh

docker-compose is not running.

Here I create a docker-compose file (that is just an empty shell script), and called the script that I wanted to test with the current directory added to the PATH.

A lot of the logic in a shell script is about executing other commands. You can mock those commands by either changing PATH, using aliases or defining functions.

I don't know if that is what you meant by "dry run", but that's the only thing I can think of.

I was at the same place, but now that I'm not working, I started to enjoy programming again. I think it's a matter of finding something you're interested in, some technology you want to play with, some proof of concept you wanna make, etc.

Programming for work is kind of boring. So, on my fun time, I prefer to do the exact opposite. No unit test, ugly hacks left and right, testing weird ideas, following 0 best practice.

Namecheap doesn't support SSHFP records. Does anybody know another domain name registrar that does?

#asknostr

Quand je rentre sur Alby, les deux seules options que je trouve sont créer un compte sur Alby ou connecter un wallet.

Au final, j'ai abandonné et j'utilise nos2x-fox.

If you try to limit your commit summary to 72 characters, this convention wastes some real estate for little gains.