This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #!/usr/bin/env python | |
| # Instantiate the Dispatcher | |
| dispatcher = Dispatcher( | |
| Client(), | |
| 'localhost:9091', | |
| 'http', | |
| '' | |
| ) |
| import re | |
| # run ./git-most.sh > most.txt before this script | |
| # adjust whitelist var if you only want to see changes to a certain filetype/file/path | |
| most_changed_paths = {} | |
| whitelist = '' # '.yml' | |
| with open('most.txt') as f: | |
| for line in f.readlines(): |
| <?php | |
| /** | |
| * In this example, we'd use it like throw new FileNotFoundException($missingFileName) | |
| * or throw new FileNotFoundException(sprintf("File not found")) or | |
| * throw new FileNotFoundException(sprintf("File %s not found", $missingFileName)) | |
| * which quickly leads to non-uniform messages and hard-to-process/recover exceptions. | |
| * | |
| * Is it possible to perhaps send nice e-mail message? | |
| */ |
Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.
Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.
Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.
The book is build around 34 chapters organised in chapters.
| FROM php:7.1-fpm-alpine | |
| RUN apk add --update \ | |
| autoconf \ | |
| g++ \ | |
| libtool \ | |
| make \ | |
| && docker-php-ext-install mbstring \ | |
| && docker-php-ext-install mysqli \ |
| print("UPDATE AUG 2023: this script is beyond old and broken") | |
| print("You may find interesting and more up to date resources in the comments of the gist") | |
| exit() | |
| from slacker import Slacker | |
| import json | |
| import argparse | |
| import os | |
| # This script finds all channels, private channels and direct messages |