« first day (3866 days earlier)      last day (1067 days later) » 

4:48 AM
string vs char*
Which one's better and why
 
 
4 hours later…
8:45 AM
Morning
 
nwp
9:31 AM
@Agent_A That's a question for this room.
 
nwp
9:52 AM
I miss TypeScript's type narrowing. Why does C++ not have that?
std::variant<int, string> v = "hi";
if (v.index() == 1) {
    return v.size();
}
It'd be so neat.
 
nwp
10:07 AM
if (const auto s = std::get_if<string>(&v)) {
    return *s;
}
I guess that does the same thing, but still.
 
 
3 hours later…
1:00 PM
@nwp it could be always worse... it could be IP addresses...
in which case you get to use what is in effect implementation defined behavior
 
1:37 PM
How does the arithmetic operators works behind the scenes can someone explain me,literally I have been wandering about that like how the +, *, /, - other operators works BTS
 
nwp
An adder is a digital circuit that performs addition of numbers. In many computers and other kinds of processors adders are used in the arithmetic logic units or ALU. They are also used in other parts of the processor, where they are used to calculate addresses, table indices, increment and decrement operators and similar operations. Although adders can be constructed for many number representations, such as binary-coded decimal or excess-3, the most common adders operate on binary numbers. In cases where two's complement or ones' complement is being used to represent negative numbers, it is trivial...
 
 
7 hours later…
8:29 PM
 
8:56 PM
@Agent_A I would strongly recommend this text, reading it back to front was a formative moment in my carear: highered.mheducation.com/sites/0072467509/index.html
 
9:42 PM
So what everybody up to? My work computer was stolen so I can't really do anything for a day.
 
 
1 hour later…
11:00 PM
@Mikhail just woke up now lol
 

« first day (3866 days earlier)      last day (1067 days later) »