ビリャチピスデツナフイ Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1244.0 пользователей не могут ошибаться!
?6962
прекрасное6450
говно5915
говнорашка5512
хуита4734
anime3073
linux2659
music2639
bnw2607
рашка2582
log2369
ололо2228
дунч1868
pic1816
сталирасты1493
быдло1440
украина1439
bnw_ppl1431
дыбр1239
гімно1158

c++

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

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

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

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

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

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

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

#426D3Y (1) / @ulidtko / 4026 дней назад

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

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

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

#06ZQ9O (99) / @ninesigns / 4031 день назад

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

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

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 / 4053 дня назад

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

#C0QJYD (2) / @hirthwork / 4053 дня назад

такое

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

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

#BL728B (2) / @kuzy000 / 4084 дня назад

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

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

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

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

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

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

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

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

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

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

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

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

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

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