Шлюхи без блекджека, блекджек без шлюх. Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1239.0 пользователей не могут ошибаться!
?6941
прекрасное6442
говно5903
говнорашка5512
хуита4706
anime3064
linux2649
music2633
bnw2597
рашка2565
log2352
ололо2151
pic1815
дунч1808
сталирасты1491
украина1439
быдло1436
bnw_ppl1409
дыбр1238
гімно1158

c++

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

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

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

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

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

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 / 3741 день назад
c++

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

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

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

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

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

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

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

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

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 / 3781 день назад

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

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

такое

[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 / 3796 дней назад

C++ это на самом деле не один языг, а два. Один - тот на котором пишет погромист (крестопараша). Второй - тот который получается после раскрытия темплейтов, а потом компилятор по СПЕЦИАЛЬНЫМ ПРАВИЛАМ редуцирует эту хуйню до обычной крестопараши. Сколько нужно времени что бы осилить это херотень? Где-нибудь есть список всех граблей и исключений из правил?

#BL728B (2) / @kuzy000 / 3813 дней назад

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

#P5W6C7 (1+1) / @kuzy000 / 3813 дней назад
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 / 3815 дней назад

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

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

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 / 3818 дней назад

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 / 3819 дней назад

Есть студия экспресс 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 / 3821 день назад

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

#A3EUD9 (3) / @ninesigns / 3832 дня назад

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

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

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

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

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