cbrogrammer
Joined 4 years ago
Joined 4 years ago
> attributes: UserAttributes,
> onCreate: (user: User) => void
> ): User => {
> user = User.create(attributes);
> onCreate(user);
This stood out to me, in an otherwise tame article, as probably the most terrible overthought interface possible. A literal callback function passed as a function reference to something that does three lines of code? Good luck with that, I much prefer even a slightly procedual implementation.
Nothing as annoying as online communists inserting their horrible political opinions everywhere. Try moving to a communist country. See how capitalism has raied billions out of poverty in only 30 years
> /*
> * Truncate to 8 chars if standard DES since not all crypt()'s do this.
> * If this turns out not to be safe we will have to use OS #ifdef's (sigh).
> */
> sav = pass[8];
yes absolutely, way too granular and low level
The line of code is basically two lines:
(char*)hash_ptr.parm.v.p = (char*)hash_ptr.parm.v.p - 1; // move the pointer back by one byte
*((char*)hash_ptr.parm.v.p) = fpop(sst); //At the memory location, write the output of fpop(sst)