definitions
algebra terms a set is a collection of elements:.
algebra terms a set is a collection of elements:.
expression: sequence of operators and operands that specify a computation. a fn call is an operator, apart from obvious operators.
you WANT to watch this playlist www.youtube.com/playlist.
basically what I learned while making catsh Till the point I got to implementing multi-cmd pipes I had a much uglier implementation, but just for the pipes feature I refactored the whole thing and wrote it cleanly in a model that makes more sense for pipes — I think such rewrites are very much a par...
init it’s a reserved special name in go, it can only be a func with no returns or args cannot be used a variable name ( same as any reserved keyword ) has to be this func init(){ // init code } interestingly you can define an init func multiple times even in the same file exec order? same file is or...
go gobyexample.com (10/10) packagces cobra cobra primer by redhat people ⇒ opdev.github.io/cobra-primer/ slog www.dash0.com/guides/logging-in-go-with-slog.
variadics rem: …type is the arg and for usage type is equivalent to []type func sum(nums ...int) int { total := 0 for _, num := range nums { total += num } return total } for calling sum(1,2,3) sum(nums...) where nums is []int note that the it’s …int and then nums… ⇒ the dirs are not the same.
a variation of 2119 that i use MUST / MUST NOT ⇒ absolutes SHOULD / SHOULD NOT ⇒ strongly recommended PREFER / AVOID ⇒ recommended ASSUME ⇒ invariant MAY / CAN ⇒ OPTIONAL added variations.
I had always treated writing code as a craft, but in the current situation, we’re at a crossroads again.