Бляди тоже ок, ага. Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1250.0 пользователей не могут ошибаться!
?7015
прекрасное6454
говно5927
говнорашка5512
хуита4738
anime3078
linux2668
music2647
bnw2607
рашка2587
log2375
ололо2269
дунч1887
pic1816
сталирасты1494
bnw_ppl1458
быдло1441
украина1439
дыбр1239
гімно1158

c++

Как в двух строчках объяснить всю боль сиплюсплюс девелопмента?

+ typedef int (*DbgFuncProto)(std::ofstream &output,
+                             std::vector<std::string> & args);

// нет, это не легаси код. Это коммитят в далёком 2014-м году

#Q9GEQE (11) / @ulidtko / 4407 дней назад
c++

http://stackoverflow.com/questions/24650626/how-to-implement-classic-sorting-algorithms-in-modern-c было у кого-то на поинте. Как делать сортировку на плюсцах.

#BC4K38 (3) / @ckorzhik / 4408 дней назад

Решил тута зарефакторить свой велосипед, через 10 минут меня уже заебало от лексем вида class, public, {}, геттеров, сеттеров, кучи инклудников, #pramga, #ifdef и прочей поеботы.
вербозный некогерентный говносинтаксис, который никак не поддается абосракции

нахуй это все нужно ваще?

#1W1UIU (6) / @ninesigns / 4430 дней назад

We describe an alternative syntactic binding for C++. This new binding includes a completely redesigned declaration/definition syntax for types, functions and objects, a simplified template syntax, and changes to several problematic operators and control structures. The resulting syntax is LALR(1) parsable and provides better consistency in the specification of similar constructs, better syntactic differentiation of dissimilar constructs, and greater overall readability of code.

http://www.csse.monash.edu.au/~damian/papers/HTML/ModestProposal.html

#QCDYD2 (8+1) / @ninesigns / 4431 день назад
c++

tl;dr карочи
http://habrahabr.ru/post/228367/

#426D3Y (1) / @ulidtko / 4443 дня назад

http://benderlog.livejournal.com/485132.html
"У нас были три разных версии строк, два пакета для работы с Юникодом,
три фреймворка для логирования, пара функций для скачивания страниц по
HTTP и целое множество контейнеров, а также libxml, glib, OpenSSL и
протобуфы. Не то чтобы это всё нужно было для сборки проекта, но если уж
начал собирать зависимости, то становится трудно остановиться.
Единственное, что вызывало у меня опасения, — это boost. Нет ничего
более беспомощного, безответственного и испорченного, чем программисты,
использующие boost. Я знал, что рано или поздно мы перейдём и на эту
дрянь."

#A2JC0E (0) / @o01eg / 4445 дней назад

Как заставить себя выучить чо там в плюсах напридумывали за последние 16 лет?

#06ZQ9O (99) / @ninesigns / 4448 дней назад

http://habrahabr.ru/post/226229/
Почему эта статья не вызывает у меня никаких эмоций кроме "как же херово быть плюсардом"?

#4NJT98 (8+1) / @stiletto / 4465 дней назад

include <iostream>

using namespace std;

int main(int argc, char**argv)
{
    if (auto x = argc - 2)
    {
        cout << x << ", !=" << endl;
    }
    else
    {
        cout << x << ", ==" << endl;
    }
    return 0;
}
#MKRPBM (6) / @hate-engine / 4471 день назад

TIL nullptr, initializer_list и lambda
под L понимается не только прочтение чем является, но и глубокое осознание цели и применимости

#C0QJYD (2) / @hirthwork / 4471 день назад

такое

[14.2] Do friends violate encapsulation?

No! If they're used properly, they enhance encapsulation.

You often need to split a class in half when the two halves will have different numbers of instances or different lifetimes. In these cases, the two halves usually need direct access to each other (the two halves used to be in the same class, so you haven't increased the amount of code that needs direct access to a data structure; you've simply reshuffled the code into two classes instead of one). The safest way to implement this is to make the two halves friends of each other.
#25TF1U (0) / @ninesigns / 4485 дней назад

http://en.wikipedia.org/wiki/Argument_dependent_name_lookup
Чуть не проблевался.

#P5W6C7 (1+1) / @kuzy000 / 4502 дня назад
struct Material
{
    float ambient[3];
    float diffuse[3];
    float specular[3];
    float transmittance[3];
    float emission[3];
    float shininess;
    float ior;

    void init_arr(float dst_arr[], float src_arr[]) {
        dst_arr[0] = src_arr[0];
        dst_arr[1] = src_arr[1];
        dst_arr[2] = src_arr[2];
    }

    Material(){}

    Material(float amb[], float diff[], float spec[], float trans[], float emis[],
                 float sh, float _ior):shininess(sh), ior(_ior) {
       init_arr(ambient, amb);
       init_arr(diffuse, diff);
       init_arr(specular, spec);
       init_arr(emission, emis);
       init_arr(transmittance, trans);
    }
};
#8GKLDC (38) / @ninesigns / 4504 дня назад

Стоит смотреть?
http://channel9.msdn.com/Events/Build/2014/2-661

#I2BRMC (6) / @ninesigns / 4505 дней назад

https://code.google.com/p/include-what-you-use/

The main goal of include-what-you-use is to remove superfluous #includes. It does this both by figuring out what #includes are not actually needed for this file (for both .cc and .h files), and replacing #includes with forward-declares when possible.

#LL6HHQ (0) / @fix / 4507 дней назад

C++ это...

$ cat 8.cpp
#include <ctime>
namespace tm { void woof(){} }
$ clang++ 8.cpp -o 8.o
8.cpp:2:11: error: redefinition of 'tm' as different kind of symbol
namespace tm { void woof(){} }
          ^
/usr/include/time.h:133:8: note: previous definition is here
struct tm
       ^
1 error generated.

...сишное говно в глобальном неймспейсе

#JGT28G (1) / @fix / 4508 дней назад

Есть студия экспресс 2013 и 2013 Nov CTP. Есть набор классов T1, T2, ... Tn, у которых определён тип Ti::R. Как в вариадике template<class ... T> class TT определить список классов R по списку? в g++ и clang работает typedef V<typename T::R ...> VR;

#BWMBL4 (3) / @o01eg / 4510 дней назад

Чем STL не подходит игровым студиям, что каждая имеет свою несовместимую реализацию?

#A3EUD9 (3) / @ninesigns / 4521 день назад

лайк, если все структуры объявляешь как классы, чтобы потом не было путаницы с forward declarations

#ZQNWTM (6) / @hirthwork / 4536 дней назад

Как же херово в плюсах без репла.

#UMZ2V8 (3) / @ninesigns / 4543 дня назад
--
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

Цоперайт © 2010-2016 @stiletto.