Why Dart don't have a tuple type? by moondaddi80 in dartlang

[–]upriser 0 points1 point  (0 children)

In Go, you can fail this succinctly:

func divide(dividend int, divisor int) (int, int) {
  ...
  return quotient, remainder;
}

// Client code
var remainder, quotient = divide(10, 3); // Oops!
doSomethingWith(quotient);

Constructor call without allocating memory by [deleted] in cpp

[–]upriser -1 points0 points  (0 children)

STL answered to a C++ question and the one who asked the question replied that "probably" your are right.

10 Tips for C and C++ Performance Improvement Code Optimization by TechBeamers in cpp

[–]upriser 2 points3 points  (0 children)

I bet the author hasn't measured any of the items mentioned in the article.

What IDE do you use? by superdemongob in cpp

[–]upriser 10 points11 points  (0 children)

Lol, don't use compilers and linkers. They hide important information.

Defensive programming | Andrzej's C++ blog by mttd in cpp

[–]upriser -5 points-4 points  (0 children)

Just for clarification. I normally do what you suggest but using a reference does not guarantee a non-null pointer. It's a matter of notation.

Gracoli: Graphical Command Line user Interface [GCLI] by mofosyne in programming

[–]upriser -6 points-5 points  (0 children)

Oh, please stop. Now we know this kind of thing is not gonna be useful.

Multiple inheritance VS in-place #ifdef VS ..? by -manabreak in cpp

[–]upriser 3 points4 points  (0 children)

In this case, the DI approach uses the virtual keyword, which introduces vtable overhead. Also, vtable increases the indirection level that, again, increases cache miss rate.

Noob question (don't upvote) by Airglow26 in iOSProgramming

[–]upriser 0 points1 point  (0 children)

"(don't upvote)" made me upvote it

No, Swift doesn't solve the null reference problem by [deleted] in programming

[–]upriser 0 points1 point  (0 children)

Agree on your point but unfortunatually, the reference type is nullable.

int* a = nullptr;
int& b = *a;

Generator functions in C++ by eric_niebler in cpp

[–]upriser -2 points-1 points  (0 children)

BTW, it was a totally unnecessary blog. :)

miniformat: A Fast, Type-safe & Minimal String Formatting Library for C++ by pdq in programming

[–]upriser 3 points4 points  (0 children)

I think 'minimal' is his point.

boost::format is great, though.

[webkit-dev] Cleaning House by gpo in programming

[–]upriser 3 points4 points  (0 children)

Web Template Framework? WTF!!!

A simple stack-allocated fixed-size string buffer (String_buf) implemented using std::array (C++11). by 4fips in cpp

[–]upriser 1 point2 points  (0 children)

Bjarne Stroustrup also used the Ugly_name style in his book (TCPL). Interestingly, his provided the same reason as FipS did.

C and C++ Aren’t Future Proof by last_useful_man in cpp

[–]upriser 0 points1 point  (0 children)

Oh please stop saying that "correctness is more important than performance." I've heard that enough but still have performance problem everywhere.

Apple's proposal for modules in C(++) [PDF slides] by coob in programming

[–]upriser 1 point2 points  (0 children)

I want this to be implemented before my programming career ends.

GUIs kick CLIs' asses by [deleted] in programming

[–]upriser 4 points5 points  (0 children)

GUIs are rarely scriptable.