1. definitions

    algebra terms a set is a collection of elements:.

  2. A note on value categories

    expression: sequence of operators and operands that specify a computation. a fn call is an operator, apart from obvious operators.

  3. making a shell

    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...

  4. init func

    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...

  5. resources

    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.

  6. should know

    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.

  7. 2119

    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.

  8. Code apathy in the age of AI

    I had always treated writing code as a craft, but in the current situation, we’re at a crossroads again.