| Acronym | Definition | URLs |
|---|---|---|
| SOLID principles : | https://en.wikipedia.org/wiki/SOLID | |
| • SRP | Single Responsibility Principle | |
| • OCP | Open/Closed principle | |
| • LSP | Liskov Substitution Principle (based on Barbara Liskov's work in programming) | |
| • ISP | Interface Segregation Principle (Can conflict with "ISP - Internet Service Provider", check the context) | |
| • DIP | Dependency Inversion Principle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To use the "confirm" target inside another target, | |
| # use the " if $(MAKE) -s confirm ; " syntax. | |
| mycommand: | |
| @if $(MAKE) -s confirm ; then \ | |
| execute_your_command_here ; \ | |
| fi | |
| .PHONY: mycommand | |
| # The CI environment variable can be set to a non-empty string, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # When you run "make full-reset", you see a warning message telling you to | |
| # re-run the command with an environment variable if you're sure. | |
| # | |
| # So to *actually* execute the command, you have to run "make -e RESET=1 full-reset". | |
| # Feel free to change the "resetting" scripts as you want. | |
| # | |
| # These are helper vars to use to have a nicer display for messages | |
| _TITLE := "\033[32m[%s]\033[0m %s\n" # Green text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _TITLE := "\033[32m[%s]\033[0m %s\n" | |
| _ERROR := "\033[31m[%s]\033[0m %s\n" | |
| obliterate: | |
| @printf $(_ERROR) "WARNING" "This will remove EVERYTHING and result into a setup similar to a fresh \"git clone\"." | |
| @printf $(_TITLE) "Project" "Stopping & deleting all containers, volumes, etc." | |
| @docker-compose down --volumes --remove-orphans --rmi all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| pnpx sv create --template=minimal --types=ts --add sveltekit-adapter="adapter:static" --add mdsvex --install pnpm my-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // NOTE: the website must be in "English" to work. | |
| // Reposts ("Posts" tab) | |
| els = [...document.querySelectorAll('[data-testid="repostBtn"] svg')].filter(e => e?.style?.color?.match(179)).map(e => e.parentElement); | |
| (async function () { | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); |
(this is only my views, not a global thing, so if I'm wrong, maybe we are both either wrong or right for someone else anyway, so it's fine, don't need to make a fuss out of harmless opinions)
I want more people to implement DDD, but in a more friendly way.
The notions between DDD and all others "good programming practices" are widely accessible nowadays, and some devs implement "pure DDD", or "pure hexagonal architecture" and so on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DOCKER_COMPOSE = docker compose | |
| COMPOSE_EXEC = $(DOCKER_COMPOSE) exec | |
| COMPOSE_RUN = $(DOCKER_COMPOSE) run --rm | |
| PHP = $(COMPOSE_EXEC) php | |
| COMPOSER = $(PHP) composer | |
| NODE = $(COMPOSE_RUN) node | |
| NPM = $(NODE) npm | |
| define info |
OlderNewer