Reputation
3,655
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 10 19
Impact
~299k people reached

Jul
26
comment C++ to friend or not to friend
@MSalters: That's valid only if * is commutative respect to a and v(x). If the vector components are generic (not necessarily scalars) you have to keep the operand order
Jul
26
comment Why are shortcuts like x += y considered good practice?
"Pensi davvero che sia più semplice?" / "Do you really think that's simpler?" Which of the two is "simpler" to understand is a matter of culture (and may be different among individuals) not symbols.
Jul
26
revised Why are shortcuts like x += y considered good practice?
deleted 1 character in body
Jul
26
revised Why are shortcuts like x += y considered good practice?
added 12 characters in body
Mar
9
comment what are the limits of the client server architecture
.... Even a 1Gb/s LAN that spans more than 2 Km with 4 switches in the diameter don't allow client/server transfer rate greater than 15-20MB/s. And having the LAN faster won't help, since after 1Gb/s the trasfer rate, with 16KBytes buffer is dominated by the signal propagation delay. Sometime software engeneer are so... abstract to even forget there is physics downside.
Mar
9
comment what are the limits of the client server architecture
Estimation on LAN speed is ... CRAZY. Unless you are a in a nerdish company that allow to keep servers directly under your desk (or as your chair), servers are in data-centers, clients are on LANS and there is a WAN in the middle whose performance greatly depends on where your clients are in the world. With nowadays parameters, a lient CANNOT TRANSFER more than 16KBytes/Rund-trip because that's how TCP works with M$ configuration defaults....
Mar
1
comment Bad sign if nobody can comprehend one's code?
I agree in general terms, but on the specifics, clarity is a relative concept that depends on the cultural distance of the involved party. For people like me (who wrote hardware device drivers) code like that is perfectly clear and does not deserve any kind of comments. The problem arise when that code is read by people coming from other "domains", where the dominant culture is more "procedural" than "functional". The programmer in the sample used a specific "well known" pattern of parallel functional processing. The problem is that the reviewer was not from that same community.
Feb
28
answered Bad sign if nobody can comprehend one's code?
Jan
8
comment Will a profound knowledge of C++ help you in learning other languages faster/easier?
NO, assembler does!
Oct
19
comment What is the name of a type that is defined from a template?
Note that vector<T> a; is not the declaration of 'a' of type vector<T>: is just a syntax error.
Oct
19
comment What is the name of a type that is defined from a template?
No. vector<T> is a "geberic type" because T is a formal parameter (and not an existing type). The declaration is template<class T> class vector { ... };. vector<int> a is the declaration of the variable a of type vector<int>; vector<bool> b is the declaration of the variable b of type vector<bool>; The fact the actual code of vector<int> and vector<bool> is different depends on the fact there is a template<> class vector<bool>{...}; somewhere in the <vector> header, not on the fact the vector<bool> is used here or there to instantiate this or that variable.
Oct
19
revised What is the name of a type that is defined from a template?
added 194 characters in body
Oct
19
answered What is the name of a type that is defined from a template?
Oct
9
answered Can I watch a SHA-256 do its magic visually?
Oct
2
revised Why are shortcuts like x += y considered good practice?
added 2768 characters in body
Oct
2
revised Why are shortcuts like x += y considered good practice?
added 81 characters in body
Sep
24
awarded  Autobiographer
Sep
17
comment Is it an overkill to wrap a collection in a simple class only for the sake of better readability?
@Doc Brown, Aviv Cohn: There is no tag specifying any language, so anything can be right and wrong at the same time!
Sep
15
revised c++ coding practice class vs. “free” functions
deleted 5 characters in body
Sep
14
answered c++ coding practice class vs. “free” functions