Toggle to view example code
Hello World, how is it going?
MORE CODE!
I hereby claim:
To claim this, I am signing this object:
(Note: these are primarily notes for myself, so a lot of assumptions are made based on things I already know. I may add additional relevant information in the future, I may not.)
sudo apt update
and what not.In PHP 7.2.0, partial contravariance was introduced by removing type resetrictions on parameters in a child method. As of PHP 7.4.0, full covariance and contravariance support was added.
Covariance allows a child's method to return a more specific type than the return type of its parent's method. Whereas, contravariance allows a parameter type to be less specific ina child method, than that of its parent.
To illustrate how covariance works, a simple abstract parent class, Animal
is created. Animal
will be extended by children classes, Cat
, and Dog
.
(example)
https://www.php.net/manual/en/ref.pdo-mysql.connection.php
https://bugs.php.net/bug.php?id=78677
document internal PHP web server flags
- read about mappers, entities and services when approaching model | |
- https://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc/5864000#5864000 | |
- https://stackoverflow.com/questions/16356420/mvc-for-advanced-php-developers/16356866#16356866 | |
- practice creating routers | |
- read about big endian and little endian | |
https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Data/endian.html | |
- read about 8 byte strings and 64-bit integer, signed and unsigned, blah blah blah | |
http://users.ece.utexas.edu/~valvano/embed/chap3/chap3.htm | |
- (challenge) OK here's a fun task for you lovely people... I have a 32-bit PHP installation. I also have an 8 byte string representing | |
a little-endian signed 64-bit integer. This integer is a unix timestamp with nanosecond granularity (and no, I did not choose this). |
An ongoing list of notes that I've found useful over time, gathered in one spot.
Originally written to work with Patrick Louys' No Framework Tutorial for PHP.
I use Git Bash, which is installed with Git, as my SSH client, you can use whatever you prefer. Git Bash is a variant of MinGW.
Note: "head mode" means that the VM has a GUI, "headless mode" means that the VM is running, but there is no GUI, and requires a secure connection into the server, in this case by SSH.