↑↑↓↓←→←→ⒷⒶ Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1248.0 пользователей не могут ошибаться!
?7007
прекрасное6454
говно5923
говнорашка5512
хуита4737
anime3078
linux2666
music2647
bnw2607
рашка2587
log2373
ололо2259
дунч1879
pic1816
сталирасты1494
bnw_ppl1456
быдло1441
украина1439
дыбр1239
гімно1158

c++

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

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

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

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

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

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

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

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

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

#A2JC0E (0) / @o01eg / 4351 день назад

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

#06ZQ9O (99) / @ninesigns / 4354 дня назад

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

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

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

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

#C0QJYD (2) / @hirthwork / 4377 дней назад

такое

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

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

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

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

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

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

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

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

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

#A3EUD9 (3) / @ninesigns / 4427 дней назад

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

#ZQNWTM (6) / @hirthwork / 4442 дня назад

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

#UMZ2V8 (3) / @ninesigns / 4449 дней назад

использование #pragma once - это грех или тяжкий грех?

#09J5E2 (6) / @hirthwork / 4449 дней назад
--
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

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