« first day (692 days earlier)      last day (4261 days later) » 

8:00 AM
lol
call them
 
@TonyTheLion yeah sure, isn't it that company that scammed thousands of people. it would slip into some peoples TandC that all money sent to them is considered a donation, so they can just keep it
 
Aug 17 '11 at 7:53, by Tony The Tiger
user image
@thecoshman likely, yes
full of h4x0rs that takez your monies and gives nofink in return
 
@TonyTheLion (I may be trolling, but I don't think he noticed yet)
 
lol
I'm gonna write all my new code in LOLCode, kthxbye
 
@TonyTheLion that one in the middle is giving a bit of a salute...
 
8:02 AM
oh, do you remember microsoft's presentation about VS 2010 supporting only LoLcode from now on?
 
one good thing about having a cat, I no longer mostly covered with threads from my GF's sewing.
 
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
 
@TonyTheLion did you type in "lol", erase it, and then replaced it with "hah"?
 
nope
oh noes, I broke it again
I seem to be very good at doing that
only been breaking things since I started this job :(
 
8:07 AM
@TonyTheLion demolition?
 
as long as you fix them again afterwards :)
 
@thecoshman I wish, that would be fun :)
> Visual C compilator 2010
LOL
compilator??? WTF
 
@TonyTheLion oh sure would! I bet those guys driving diggers and likes are some of the happiest men on earth
@TonyTheLion durh, it compilates stuff
only I could make up a word and spell it wrong
 
0
Q: Extending typedef struct (compatibility with VC++11)

Lipov3cz3kI'm working on a project with is written and works with Visual C compilator 2010 (and 2008). I'm trying to use new VC 11, but I have a problem with already implemented functions. We already have implemented typdef struct atomic_int and memory_order but they added almost same functions in VC 1...

from here
 
8:14 AM
hi
 
sup
 
hello there
 
hi
 
8:15 AM
yo
 
it's borked
 
might you say it's wankered?
 
wazzzaaa
 
@LuchianGrigore ¬_¬ is that a reference to that bud advertising campaign?
@CatPlusPlus ^
 
Scary movie
 
8:19 AM
@LuchianGrigore so indirectly yes
 
We don't have bud here
We have real beer
:D
 
bud is all over the place, it may not be good, but it's there
and where be here for you?
 
@thecoshman wankered yea
 
ah, Romania
morning cat
¬_¬ strangely early for you?
 
posted new version of my C++ tutorials
 
8:35 AM
Hey puppy
 
@ManofOneWay woof
 
Are you seriously writing C++ tutorials or are you trolling?
 
Nice :)
 
compiler "A compiler is a tool that converts from C++ source code into an executable program."
 
8:39 AM
@thecoshman Have you heard of source-to-source compilers?
 
@DeadMG overall your writing style seems overly opinionated, I am sure you will argue that is the way you want it, but it doesn't seem fair to start people off with biased views of the world
 
did you really expect puppy to write something from a neutral POV?
 
@TonyTheLion I can but hope
 
@thecoshman What bias, exactly, are you implying?
 
Stupid Internet connection at school. I download one damn Torrent, instant disconnect at 99%.
 
8:43 AM
@daknøk why would it matter? you can finish it off anywhere else
 
@Mysticial I need it now. xD
 
@thecoshman false hopes
 
I have no credit card so I cannot download it legally. :p
(Not that I would if I could.)
 
@DeadMG it's not so much bias, but overly opinionated
 
But oh well, I’m connected again.
 
8:46 AM
@DeadMG and their is a fair bit of 'this is much better' but no reasoning behind it. I know you can put forward strong cases for these tools, you could just do with expanding it a bit
 
@DeadMG also try not to use too many tech words in your tutorials, cause those throw newbies off. I see you using the word "semantics" in your UDT's explanation, which has a technical definition. Try use simple English. It's hard enough as it is, without throwing tech terms in it
 
Hi and +1
 
@TonyTheLion indeed
 
8:49 AM
would be kind of interesting to write a set of tutorials collaboratively by the people in this room, maybe as a wiki or something... And just see where it ends up
 
Code fails -> add DebugBreak(); -> code works.
wait... wut?
@jalf that would be interesting.
 
@TonyTheLion Turn off optimizations maybe ?
 
@DeadMG source control Tortoise has Linux implementations as well, and I think Mac too for some of the flavours. It is also worth pointing out that it is not mandatory at all for developing C++ but just stupid to not use it. I'm reading through in order, so you may mention it later but you should also talk about how to organise the files, as that is, to a point, part of source control
 
My main rule is to use simple English, not tech buzzwords or any such thing. The thing I found hardest in learning programming was the constant stream of tech words used that I had never heard of, and which when looking them up, resulted in an explanation with at least 5 other tech terms I had never heard of.
frustrating to no end.
@kbok they are turned off
 
@TonyTheLion you have undefined behavior, woohoo!
 
8:53 AM
@jalf damn it
:(
I borked it, by fixing one thing, I uncovered a bunch of other errors
good start for a new job
 
hey, if you're finding latent bugs in the product, that's nothing to be ashamed of :)
 
I guess
 
@jalf It's practically an ancient programming rite practiced by all modern programmers
 
hmmm
threaded code, uh oh
 
Oh god
OH GOD!!!
 
8:59 AM
Oh your god.
 
#define templateFor(T) template<class T>
2
0
A: C++ same template used for more than 1 function?

Kamran Aminiyou may define a typdef or macro to make it smaller. But it is recommended to put template definitions because it makes the code readable. Also you can encapsulate two functions in a class which is a template. template<class T> class XYZ { void swap(T &x,T &y) { T temp=x; x=y; ...

@daknøk futurama reference?
 
@LuchianGrigore I have never watched Futurama.
So, no.
 
TME
 
@daknøk what?
 
9:01 AM
@LuchianGrigore lolwut
 
@LuchianGrigore too much effort.
 
@kbok apparently, template<class T> is too complicated, so we make a define... I thought that was clear...
 
If template<class T> is too complicated, you should be programming in PHP.
If you’re too stupid to find the formatting options on Stack Overflow you shouldn’t be answering questions in the first place. Sorry.
 
@daknøk Just make a question on how to format answers. Duh.
 
@LuchianGrigore This makes sense. We save 3 (three !) keystrokes.
 
9:10 AM
@kbok I just type T, [tab] and I have template<class T>.
 
anyone here use perforce?
Do I need write rights to do a check-out?
 
@LuchianGrigore That would be incredibly stupid.
But yeah, Perforce is stupid.
VCS-es that aren’t DVCS-es are stupid.
 
@LuchianGrigore No, just to submit
 
@tenfour Just realize some keyboards are quite brittle and need to be replaced if some keys wear out. Template emphasize the use of the < and > keys, so this may significantly affect keyboard lifetime. The problem is further compounded by the fact that the preprocessor doesn't support a trigraph alternative for <>. — sehe 1 min ago
... To combat excessive keyboard wear, I've changed my keyboard layout on occasion, mapping the q and x keys to < and > in the past. On other consoles, you can always use Alt+60, Alt+62 (windows). Macros should be a last resort, indeed. — sehe 11 secs ago
 
@daknøk The perforce check-out and the cvs/svn/git checkout are different concepts
@sehe You can't be serious
 
9:15 AM
I can assure you, I _can_ be bloddy serious.
You just don't want to see me serious :)
 
@sehe You mean bloody
 
@sehe um... uh... wow... maybe I should go to sleep...
 
lulz
SUPAH TROLL IN DA HOUZ
 
@sehe ME IN DA HOUZ??!
 
err... I forsee a silly PHP question going 100+...
 
9:18 AM
All PHP questions are silly.
 
20
Q: Difference between "!==" and "==!"

Gerald SchneiderYesterday I stumbled over this when I modified PHP code written by someone else. I was baffled that a simple comparison (if ($var ==! " ")) didn't work as expected. After some testing I realized that whoever wrote that code used ==! instead of !== as comparison operator. I've never seen ==! in an...

2 hours and already +20 at this time of the day.
 
Kinda reminds me of the --> operator...
 
It'll most likely be at >100 when I wake up in the morning.
 
Not unless we all downvote it... >:)
 
@daknøk Apparently. Shouldn't you be sleeping in a college hall or something
 
9:21 AM
@sehe I am.
I have pauze till half één.
 
lol, given the number of votes on the answers, the question will need to be downvoted to negative to knock it off the multicollider...
 
@Mysticial although silly, you have the admit the asker did put some effort into it. Although not meaningful, the quality is way above the majority of other non-silly questions.
 
@LuchianGrigore And I agree. I'm not gonna downvote. (not like I ever do anyways)
 
You did downvote 3 times...
 
@LuchianGrigore all on posts that were eventually deleted
 
9:23 AM
I'm really curious what you downvoted one...
share? :D
 
I can't search them. They don't show up on that list.
I suppose I could dig through my rep history and look for those -1s.
 
meh
If they don't appear in the activity tab/downvotes...
On an unrelated note, I'll probably gain 10 kilos if they don't stop giving us ice-cream at work...
 
@LuchianGrigore can you spell "rep troll"?
 
meh... it's been a long time since PHP has had a +100 post.
 
@Mysticial a post by a +100 rep user :)
 
9:26 AM
@sehe any user
 
@LuchianGrigore sue the bastards
 
@Mysticial that's because PHP doesn't deserve a +100 post
@sehe If I were in the states, that would probably be a solid case :)
 
By contrast, javascript gets a LOT of +100s. Some of which are insanely upvoted - rivaling the C++ ones.
 
@LuchianGrigore Well, unless the ice melts. It would become somewhat more of a liquid case
 
JavaScript questions are always answered with jQuery. Of course they get a thousand upvotes.
 
9:28 AM
Gosh, I'm hungover. It makes my work really harder
 
@daknøk 1000 is not a fucking exaggeration.
492
Q: Why does parseInt(1/0, 19) return 18?

ceborI've an annoying problem in JavaScript. parseInt(1 / 0, 19) 18 Why does parseInt return 18?

no jQuery needed either...
 
meh it should be answered with jQuery
like Bobince’s Paintshop
 
hmm...
 
arg dat username
 
9:30 AM
javascript has a lot of recent posts in the 100 - 200 range. And then a several +800s.
 
user image
3
> Timothy Goatse
lol
 
And for the 10ks, here's the copycat SO question: stackoverflow.com/questions/2694603/…
with that I'm off to bed. Gotta wake up in 5 hours.
 
:))
gnight
I lol'd
 
template<typename... TParams> run_callback(std::function<void(TParams)> f); does it make sense?
run_callback(std::bind(f, /*params here*/);
ok, nvm.
 
9:42 AM
It's too late, you already ruined to mood
 
@BartekBanachewicz Don't use std::function in function template parameters.
 
Well, I've changed it to std::function<void(void)>, and as long as I give all parameters to bind, it works
Could you elaborate on your statement a bit, @Luc?
 
Unfortunately there isn't a single reason. It's a big cloud of small reasons that conspire together to make the whole experience a headache.
4
Q: (g++ 4.7.1) Replacing explicit type name with an equivalent class typedef fails to compile

BakkotI'm trying to create a templated function which accepts an iterable and a function, such that the passed function will be implicitly casted to a std::function of the appropriate type (thus allowing it to be used with both full functions and lambdas). Here's the code: #include <iostream> #...

is an example with one such reason.
Philosophically speaking std::function was introduced to solve one problem, which it solves brilliantly. It can also be used in other situations, but it's worse than the usual practice for all those situations. This includes function parameters, especially function parameters of function templates.
 
Hi guys :D
 
"Tell me how to prevent this" - Yes sir. In a minute. I'm on it. — sehe 9 secs ago
 
9:49 AM
@LucDanton So what should I use instead (in parameter)?
 
There's a small project I'd like to do to go a step further in my programming experience but I have NO idea how to venture there.. I'd like to add custom commands to a games chat console (League of Legends) So I'd like to write an app that handles these
how do I go about something like this?
 
@BartekBanachewicz I'm not sure what it is you want to do.
 
(I prefer to write it in C++ or C, ofcourse ^^)
 
@BartekBanachewicz try templateFor(... TParams) instead. There are serious ramifications with using template<> syntax :)
 
@LucDanton register a void(void) callback
 
9:52 AM
@BartekBanachewicz template<typename Functor> void foo(Functor functor); is the simplest solution. You can add a template<typename Functor, typename... Args> void foo(Functor, Args... args); overload to save the caller from using std::bind and doing on their behalf, but it's not fundamental.
 
@sehe what the...
@LucDanton I want the caller to use bind.
 
Then void foo(Functor); it is. (void foo(Functor&&); works the same.)
 
On SO, learn from the masters :)
ROFL
 
poke at everyone
 
@Spyral sec.
 
9:54 AM
meh
 
poke at myself
 
poke at yo momma
 
If you want better documentation then personally I'd go for something like template<typename Functor, Requires<is_callable<Functor&, void()>>...> void foo(Functor&&); but that requires some additional scaffolding.
 
ok ^_^
 
@TonyTheLion you’ll lose your hand in her fat belly.
 
9:54 AM
@LucDanton So I will be able to pass any callable to it (a class with overloaded operator() / std::function etc.)?
 
@daknøk haha
I think I have a severe case of UB
 
@LucDanton oh, that looks better. I presume is_callable requires bunch of Xeo's favorite stuff? (static_assert <3)
 
@BartekBanachewicz If a template is written to accept T, it will accept anything. Even if it doesn't make sense -- although you'll actually get errors of course.
@BartekBanachewicz TTBOMK Xeo does not have 'stuff'.
 
@LucDanton So should I protect the user from the wall of overloads?
 
If you had all the machinery available to you (i.e. is_callable and Requires), I'd recommend it. If you only had is_callable, I'd recommend using it in tandem with static_assert, self-documenting declarations be damned. If you have neither, I can't really recommend anything.
There aren't any readily available versions of is_callable or Requires, sorry.
They aren't that fun to implement, unless you're into this kind of thing. (In which case it's pretty wicked fun.)
 
9:58 AM
I want a baguette filet americain.
 
@LucDanton But what if I just want void F (std::function<void(void)>)? Still bad? Because I'm approaching a headdesk right now
 
@daknøk That's supposed to be american?
You don't know us very well, do you?
 

« first day (692 days earlier)      last day (4261 days later) »