Custom Operator - Basic Object Identity
It is often the case in object oriented programming you need to compare two objects to see if they are the same. Usually it just means doing a deeper comparison of the attributes on each object.
It is often the case in object oriented programming you need to compare two objects to see if they are the same. Usually it just means doing a deeper comparison of the attributes on each object.
I fixed my Raku (Perl 6) book titles.
Roles are collections of methods and attributes that can be mixed into classes. A role provides an alternate form of code reuse from inheritance. Roles are mixed in using "is" or "does".
Being a long time Ruby user and Lisp dabbler, Rakudo Perl 6 meta-programming capabilities ranked high on my list of curiosities. Meta-programming can be described as "writing code that writes code"....
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
I wrote a console version of Blackjack in Elixir: https://github.com/gdonald/blackjack-ex
I wrote a web version of TicTacToe in ReactJS using Typescript: https://gdonald.github.io/tictactoe-ts/
At my work I'm on an agile team and we do pair programming. Here are some git commands I find useful and use almost every day.
I wanted to change my default SSH port to something else. Here are the commands I used.
I wrote a console version of Blackjack in Crystal: https://github.com/gdonald/blackjack-cr