refactoring(refactored(refactor)) {
refactor (refactored(refactoring(refactor(refactored(refacor));
}
40
Handle request, bubble up, let business logic call wrapper to send response from within the functions. Then memory gets allocated on the stack in the function and you send it and return, memory go bye bye.. bye bye buhbye.
31
Local inference, is the cutting edge of systems engineering challenges. Ask @antirez , pewd, and @badlogicgames.
26
Programs are oceans. Programming is like swimming deep in the ocean, subject
to unseen currents that can tumble you into a beautiful hidden garden or a jagged cliff.
Diving down from the top of a program to go through some deeply nested function is like
leaving the daylight behind and forcing yourself down, down to the depths to watch some
self-fluorescing misshapen fish gape its huge mouth of razors at you.
-
When the writing is going well, it’s like swimming effortlessly through clean water,
creating the ocean as you swim, watching as the eels and kelp and sharks and dolphins and
everything else pops into existence to either side, above and below. The other good
programmers are fellow sea people down there with you, the same strong Atlantean race, but
usually seen hazily through the currents that cross between you. The programmers that
couldn’t hack it are down there too—the haunted bodies of drowned sailors.
Your goals in this world are to keep swimming, keep creating clean ocean (i.e., code)
in front of you, enjoy the odd majestic scenes you've created, and not get eaten alive or flung
into sharp rocks because you weren't paying attention.
John Ogilvie
30
Any opinions about this syntax ?
int af_unix_msg_len =
((struct af_unix_header *) msg)->total_len;
45
you guys have any problem with this on an AF_UNIX read?
u8 buf[4096];
struct header {
u8 typ;
u16 total_len;
u16 payload_len;
};
int nbytes = read(client_sockfd ,buf, sizeof buf);
struct header h;
memcpy(&h,buf,(sizeof(struct header)));
field *fb = (field*)(buf + (sizeof(struct header)));
87


