Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
silent_hunter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
silent_hunter
10y ago
"const string&" - will always make a copy of the string for first_name and last_name, if we write "Person(std::string first_name, std::string last_name) : first_name(first_name) , last_name(last_name) {}"
2.
▲
by
silent_hunter
10y ago
"Eclipse CDT or Code::Blocks" - you should have put /s at the end of the sentence. And be careful with "it's just a smarter text editor" when around vi/emacs users.
3.
▲
by
silent_hunter
10y ago
Hmm, my parents have a Win 7, I set their account to user level and gave a few lessons on security and in the last 4 years I didn't have any complains (except once with the printer which turned out to be because of a bad USB cable), so
4.
▲
by
silent_hunter
10y ago
Background tab is middle click, all browsers support it and it was in Opera for ages.
5.
▲
by
silent_hunter
10y ago
Use-after-move is allowed because of existence of value categories, if you use a return value from a function its creation is usually elided or it is moved, but you can't access that temporary without directly referencing it. When you
6.
▲
by
silent_hunter
10y ago
If C++ is "(nearly) a superset of C" why is the C++ standard twice the size of C standard? Of course if we take that 0.505.. ≈ 1, then it is indeed a (nearly) superset.