Reputation
4,065
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 16 27
Impact
~184k people reached

Jun
12
awarded  Notable Question
Apr
1
awarded  Yearling
Feb
17
reviewed Approve One dll or many?
Nov
15
comment Optimizations in Compiler Design
It is pretty common in surprising places, and if applied inside a loop body, can save lots of cycles. I don't have time to write a thorough answer, but yes, there are lots of places where these algebraic facts can be used to simplify the code and turn expressions to constants at compile-time rather than evaluating them at runtime. Take a look at peephole optimizations.
Sep
30
awarded  Explainer
Sep
24
awarded  Autobiographer
Aug
22
reviewed Approve Questioning one of the arguments for dependency injection: Why is creating an object graph hard?
Jul
17
reviewed Approve Can someone help me understand MVC?
Jun
26
comment Why would a C executable be smaller when compared to C++ executable
There is no question here. Furthermore, even if there was, that question would be unanswerable without specific knowledge about compiler and compilation flags used. The only way to get a precise answer to a question why C++ executable would be so much bigger and what exactly takes up the bytes would be to use some kind of a binary analysis tool (e.g. readelf on Unix systems, part of GNU binutils) or a hex editor to investigate file sections and contents. What comes to languages themselves, there's absolutely no reason for a difference like that. C++ output could be just as small as C.
Jun
4
comment Design for an interface implementation that provides additional functionality
If being pedantic, I think in this case you are really dealing with two separate interfaces despite them being highly similar.
May
17
revised Only functions without a class in cpp file! good design or not?
edited body
May
17
revised Only functions without a class in cpp file! good design or not?
Further explanation about avoiding stateless classes
May
17
revised Only functions without a class in cpp file! good design or not?
Further explanation about avoiding stateless classes
May
17
answered Only functions without a class in cpp file! good design or not?
May
17
awarded  Pundit
May
16
revised Compilable modern alternatives to C/C++
Added mention of Rust and improved phrasing
Apr
1
awarded  Yearling
Mar
24
awarded  Enlightened
Mar
24
awarded  Nice Answer
Feb
6
awarded  Popular Question