« first day (560 days earlier)      last day (4389 days later) » 

6:00 PM
@StackedCrooked yesss :) they also call it school
 
Oh, that horrible place. The one where you mostly waste time.
 
I used to find it terrifying when I saw that as a kid. Now I see the figure of speech aspect.
 
Aha, I have proof that Johannes already knew the answer to that question and it was a TRICK
2
43
A: Hidden Features of C++?

Johannes Schaub - litbA quite hidden feature is that you can define variables within an if condition, and its scope will span only over the if, and its else blocks: if(int * p = getPointer()) { // do something } Some macros use that, for example to provide some "locked" scope like this: struct MutexLocker { ...

 
@SethCarnegie I sometimes use if (shared_ptr<T> p(my_weak_ptr)){}
 
@JinuJD Is that some sort of scam? It looks scammy
 
6:07 PM
As it is documented actually.
 
What is the diff between shared and weak ptr?
 
1 message moved to bin
 
dead giveaway: shitty JPEG text with compression artifacts
 
Isn't that a question for Google
 
Nobody cares about social networks nobody cares about.
Point in case: that thing that starts with D.
I think.
Also, flag that for mod so he gets a banhammer.
 
6:08 PM
@SethCarnegie is it related to @KonradRudolph saying or my question?
 
@SerenityStackHolder your question
 
@CatPlusPlus Does it end in -iaspora? Not that I want to be specific.
 
@LucDanton Yes! I actually forgot the name.
 
It is, but I would like to see what you experts can add to that ... @SethCarnegie
 
Unless it's really meant to be Diaspora*. I'm not sure.
 
6:10 PM
@LucDanton You mean Kiaspora, the Japanese pronunciation of Casper?
 
I certainly don't.
 
Also who flagged @classdaknokt's message?
 
@StackedCrooked wouldn't it be Kyaspaa?
 
Yeah.
 
@StackedCrooked It's Kiagoku
 
6:11 PM
Kyaspuru is perhaps also possible.
 
Actually not kyaspaa but kaspaa because I forgot they have the ka sound :)
 
『キャスパー』(Casper)は、1995年のアメリカ映画。ファンタジーコメディ。 概要 『レモニー・スニケットの世にも不幸せな物語』の監督、ブラッド・シルバーリングの初劇場用作品である。『アダムス・ファミリー』のウェンズデー役でお馴染みのクリスティーナ・リッチを主演に迎え、ビル・プルマンやモンティ・パイソンの元メンバーのエリック・アイドルなどが脇を固めている。ILMによるCGで表現されたキャスパーを始めとするゴーストたちと、父娘の交流を描く。 ちなみにゴースト関連の映画として、劇中にはダン・エイクロイドが登場したり、クリント・イーストウッドやメル・ギブソンらがカメオ出演していたりして、何かと豪華である。また劇中で、性悪女とその頼りない弁護士コンビを演じたキャシー・モリアーティとエリック・アイドルは、製作総指揮のスティーヴン・スピルバーグから大絶賛された。 編集は、3度アカデミー賞を受賞し、スピルバーグ映画の常任編集者であるマイケル・カーン。音楽は、2度アカデミー賞を受賞し、ジェームズ・キャメロンの常任作曲家であるジェームズ・ホーナー。美術は、2度アカデミー賞を受賞したレズリー・ディリー。撮影はスピルバーグ、ロン・ハワード、ロバート・ゼメキス等から信頼の厚いディーン・カンディ。劇場長編映画デビューにもかかわらず、豪華なスタッフに恵まれたブラッド・シルバーリング監督...
Kyasupaa it is.
 
@StackedCrooked the 'u' in 'su' is silent though :)
 
I know, I'm in my 3rd year of Japanese class currently ;)
Don't assume I'm any good though.
 
Wow cool
Can you read that paragraph
 
6:16 PM
Gibberish. I'm getting gibberish.
 
I can read certain fragments, but not interpret it meaningfully as a paragraph.
 
@StackedCrooked it has way too many kanji for me :(
 
Are you studying Japanese as well?
 
Yeah, a little
 
6:17 PM
Self-study?
 
Not bad.
 
Are you taking a class or self-study as well?
 
I'm taking evening classes.
 
6:19 PM
And watch a lot of anime :)
 
taking a class is better than self-study because you actually get to converse with people
 
The thing is that it's hard to discipline yourself into studying without some sort of external motivation.
At least for me that's difficult.
 
Yeah, that too
 
Some people don't seem to have any problem with that. On the subreddit /r/learnjapanese there are a few that do self-study successfully.
 
Yeah, I only know one person that does it correctly and has learned at a really fast pace and stuck with it
I'm not like that unfortunately :(
 
6:22 PM
I'm lucky to live at walking distance from the school where I take my classes. So it's really convenient :D
In a small country like Belgium that sometimes happens :p
 
That would be nice. The problem is that I don't have much time to devote to studying so I don't learn much quickly
 
Yeah, it does require some time. Studying for test and doing homework also takes up time.
And I slack just as much as I did in high-school.
 
Which book do you guys use
 
Japanese for Busy People.
 
Looks nice
does it teach well?
I might get a copy
 
6:29 PM
It's not bad IMO.
Most schools use either Japanese for Busy People or Genki.
 
Never looked at Genki but I've heard it's good
 
Never looked at it either.
I found the content on japanese.about.com also useful at times.
 
They have really good "kanji of the day" (or whatever it's called) pages
 
I like this guy:
 
Are you romantically interested?
 
6:40 PM
Hm. When writing a ptr wrapper class that models a raw pointer, does it make sense to make it implement the whole Random Access Iterator concept?
or does it make sense to separate these concepts?
 
It's up to you.
 
Ok, next question: which casts does a smart pointer need to implement? static_… and dynamic_…? Anything else?
 
What is static_…?
 
std::shared_ptr does expose const_pointer_cast.
 
Is it possible to add static_cast support to a class?
 
6:46 PM
Yes.
 
Isn't operator foo static_cast?
 
I know I can use conversion operators, but those would not require a static_cast.
 
@Pubby No, that’s an implicit conversion – the devil’s lovechild with Bjarne Stroustrup
 
You can use an explicit conversion operator. I more commonly write an explicit converting constructor though.
 
@KonradRudolph but with them you can make classes work with switch :)
 
6:48 PM
@SethCarnegie What for? switch is obsoleted by overloading and dynamic dispatch ;)
 
switch is really only useful for enums.
It's ridiculously poor in any other case.
 
@CatPlusPlus Yeah, I don't think I use them for anything else.
 
@KonradRudolph it just makes you able to make your classes act like built-in types which is a goal of C++
 
And default fallthrough is evil.
 
@SethCarnegie Well, where it makes sense. switch is fundamentally broken so I’s argue that it doesn’t make sense here.
 
6:49 PM
@SethCarnegie switch(myobj.intValue()) isn't that inconvient, is it?
 
@CatPlusPlus yes it is
 
I used fall through yesterday, it was fun
 
That's what she said.
 
Everyone complains about a feature of C++ that has caused them problems, and mine is fallthrough of cases
 
Eh, it's not that bad
 
6:52 PM
It's even worse!
 
I'm doing another attempt at R.
 
X x = 0; is equivalent to X x(0); right?
 
Time to practice some statistics hell yeah.
 
@CatPlusPlus But, but, julia!
 
@Pubby Not really.
 
6:54 PM
@Pubby No. First one requires an accessible operator= and a non-explicit constructor.
(Compilers tend to forget about the first point though.)
 
First is equivilent to X x = X(0);?
:S
 
Yes. Plus a check for non-explicit.
 
So when should I use =?
 
It's always the same for fundamental types.
 
Some people recommend to use it only when it makes sense for an implicit conversion to exist.
 
6:56 PM
std::string s = "abc";
@Pubby ^ For example.
 
But isn't std::string s("abc") slightly more efficient?
 
No.
Not in the slightiest.
 
Why not?
 
Because elision is allowed.
 
So it's elided into the same thing?
 
6:57 PM
Might not be, but then again, it probably won't matter.
 
@LucDanton wait, so T t = 4 is the same as T t(4) except that it has to have a publicly accessible operator=?
 
@SethCarnegie And the check for a non-explicit constructor.
 
T t(...) is direct construction. T t = ... is copy construction.
(Except when T t(...) is function. Fuck you, C.)
 
E.g. if there is explicit T(int); in the class definition then it's ill-formed.
 
@CatPlusPlus sorry, I meant T t = t2
 
6:58 PM
But T t = can be elided into direct? :S
 
That's copy construction, too.
 
@CatPlusPlus that's what I thought
 
@CatPlusPlus which one was flagged?
 
@classdaknok_t That "heil something".
 
Abstractions. :P
 

« first day (560 days earlier)      last day (4389 days later) »