« first day (872 days earlier)      last day (4092 days later) » 

8:00 AM
I've used a lot of IDEs and I think VS only shines in C#
 
And if you want nice ide, code in Java, because honestly, NetBeans work in Java is stunning and makes you way more productive
 
@Rapptz I want some of that C# goodness in C++.
 
It's pretty mediocre for C++
 
I've yet to see a better debugger for C++ than VS
And they added git integration lately
 
@BartekBanachewicz What took them so long ?
 
8:01 AM
Yeah.... since the very first VS version I laid my hands on (2008), the debugger was unparalleled.
 
yeah VS2012 has a good debugger and profiler
 
@ereOn They put their people in the libgit
Hm, indeed, but I'd still say VTune > VS profiler. It is decent though
 
What version of VS do you have?
 
2012 CTP 2.4?
I think so
 
I meant Ultimate, etc
 
8:02 AM
oh yes, Ultimate
and with full Intel XE Studio
 
@ThePhD Well on the upside, QtCreator is the only IDE I've used that made GDB not suck.
 
Really?
 
Yeah
 
Well Qt is basically .NET or java.util for C++
 
VS2012 is my $14k debugger
 
user1182183
8:04 AM
can anyone check if the password field actually displays black dots or not? I kinda fucked it up or my schools webbrowser reallllly sucks: gd.meet-helmond.nl/pm-login.php
 
@GamErix yep
 
@GamErix Black dots.
 
does anyone have anything against the free() function in C++, regarding this question here: stackoverflow.com/questions/9662738/…
 
user1182183
@BartekBanachewicz ah then it's my schools webbrowser
 
user1182183
or cache
 
8:05 AM
my usual workflow with gdb is usually:
1 - Open my core file in gdb
2 - Try to figure out the commands
3 - Close it and add a lot of printf() in my code.
 
@GamesBrainiac Don't mix malloc/free with new/delete
 
@ereOn for basic C programs gdb proved to be quite nice for me
@GamesBrainiac don't use free
 
@BartekBanachewicz I agree. It already helped me in some cases.
 
Then how would you delete an entire linked list without memory leak?
 
8:07 AM
@GamesBrainiac unique_ptr?
 
@BartekBanachewicz unique_ptr?
 
In fact that's what I am going to write
@GamesBrainiac for single-linked list unique_ptr is ok. I think
 
user1182183
Lol like my dog? xD
 
@ThePhD To be honest so far my favourite thing about this is the nice Mercurial integration lol
and qmake is.. quite nice..
 
user1182183
oh wait I have chrome on my account, LOL FORGOT.
 
user1182183
8:10 AM
I dislike myself now.
 
user1182183
@Rapptz yes that I tried to fix -.-'
 
@Rapptz "lol" !
 
user1182183
@Rapptz how did u produce that? ; o
 
I dunno how I would use std::unique_ptr in this case.
 
user1182183
8:12 AM
I cannot reproduce it now
 
remove the password type
 
user1182183
@Rapptz you mean in developer modus? :P
 
yes
 
@GamErix ^^ :)
 
user1182183
@MarkGarcia yeah then lol xD but now I think I does not display the text as visible by default.
 
8:14 AM
Ugh
Jesus christ
 
I'm not telling but there's a gem in that pic.
 
user1182183
kinda funny, the text is completely invisible on the schools' IE.
 
<input type='password' name='password' class="login password"/> it should work
 
@BartekBanachewicz , @Rapptz : Would this delete all nodes :
template<class IT>
void QueueTypeLL<IT>::MakeEmpty() {
	auto tempPtr = front->next;
	front->next = nullptr;
	while (tempPtr != nullptr) {
		std::unique_ptr temp = tempPtr;
		tempPtr = tempPtr->next;
	}
 
1
A: Remove all nodes in linked list

Bartek BanachewiczFor single-linked list, you can just drop all this burden an let the stdlib manage the pointers: class Node { std::unique_ptr<Node> next; }; You can safely use .reset() method to make operations on the list: Given current_ptr, the pointer that was managed by *this, performs the f...

 
user1182183
8:16 AM
<input type='password' name='password' class="login password<?php userAccess::login_error(); ?>"/> that's how it's om the php script
 
@BartekBanachewicz +1. That was great! :D
 
@GamesBrainiac I hope there aren't something bad involved, but my intuition says that's ok; after all, all pointers preserve unique ownership
Keeping iterators might be a problem though.
 
q_q
Want to buy IDE that can refactor my code
Will pay huge dollars. ;~;
 
@ThePhD Get eclipse! :P
 
Eclipse would fuck this up harder than Microsoft fucked up C++11.
 
8:19 AM
I feel like you're doing something wrong
Maybe it's your C# background
 
I did something wrong, and now I'm trying to fix it.
 
where refactoring actually is important
 
But fixing it is a nightmare.
I have over 500 files I need to by-hand split into Implementation and Header.
 
there is a tool to do that
 
Show me.
Before I flip my shit.
 
8:20 AM
let me google
3
Q: automatically split (refactor) .h into header and implementation (h+cpp)

aaaidanWhen writing c++ code, I often start by writing full 'implementation' code in my header files, then later need to refactor the implementation into a cpp file. This is great, but I find this process laborious, but otherwise pretty easy, so I wondered about whether is there any automated way to d...

 
@ThePhD uhh 500?
 
=l
I've been there before.
They show me things to generate .h and .cpp from 1 file, but not go backwards.
 
what the hell man
make up your mind
the latter doesn't exist AFAIK
I remember looking for it for a long time
 
I have to go from IMplementation with Header (1 file) into 2 separate files.
And you're right, as far as I've looked, it doesn't exist.
 
that's what that does
 
8:23 AM
.... No, no that's not what it does. D:
 
You have .h file, you want .h + .cpp?
or do you have .h + .cpp and want .h?
 
The first.
 
~Sigh~
 
what's wrong with this?
?_? ok then
 
8:29 AM
@Rapptz he needs to write it himself, remember?
 
morning all
 
hi pirate
wow, I got Revival for that answer
 
reading stupid article on why std::function is so lovely, nearly lost track of time an missed bus for work
 
q_q
lzz is a nightmare.
 
function is nice, but compile-time polymorphism is even better
 
8:37 AM
@thecoshman : Mornin'! :D
 
I am pretty happy with my CRTP solution with shaders
 
@BartekBanachewicz CRTP is one mean mofo
 
@thecoshman whay?
 
Xeo
Fuuuuck, I just woke up and I almost need to get going already T_T
 
It's a very tricky thing to understand, until you understand it that is.
 
8:38 AM
OH MY GOD
THIS TOOL SI FUCKING RETARDED
It's trying to compile my fucking code, not just refactor what I tell it to refactor!
 
class FragmentShader : public Shader<FragmentShader>
{
	static const std::string _getName() { return "Fragment Shader"; }
	static const GLint _getType() { return GL_FRAGMENT_SHADER; }
public:
	FragmentShader() : Shader() { }
	FragmentShader(ILoader const& loader) : Shader(loader) { }
};
// "generic" shader
if (compiled != GL_TRUE)
    return T::_getName() + " compilation error : " + _getInfo(m_id);
 
How pretty.
 
I don't have to repeet anything!
 
#else /* Or something else */

#error Unknown Platform - please define the platform in PlatformOS.h

#endif // WIN32 || APPLE || LINUX
^ lzz.exe tries to preprocess all of my code
It ends up here, and then freaks out because it has none of the defines of a regular platform.
 
You have to do it by hand
to prove yourself a warrior
 
8:42 AM
I wish it would just move my fucking declarations out into a separate file, like it said it would.
 
Xeo
Hahaha
 
@Xeo ikr :)
 
Mawning
 
Mornin'.
 
I guess I just have experienced the real benefit of CRTP, it still seems to me like it is just needless fanny farting for the sake of TMW
 
8:42 AM
It's not every day this happens to you!
 
@ThePhD Did you read the docs?
 
@Rapptz Yes, yes I did
 
If you say so
 
@TonyTheLion A perfectly shaped poop indeed.
 
8:43 AM
I'm not going to define all my platform defines by hand and have it try to compile <windows.h>
That's ludicrous.
 
how do I minimize skype to tray? :/
god this program is annoying
oh found it
Also, I remember why I got rid of it; it blocks TCP 80 :/
 
@BartekBanachewicz it does? what's it hosting on 80 then?
 
@thecoshman alternative incoming calls I think
 
@BartekBanachewicz on :80 though?
Skype wasn't made by idiots, why would they choose :80 for incoming connections?
and I doubt it even does that
 
VAX has a "Move Implementation to Source File" option...
BUt it's always blacked out for me.
 
8:52 AM
Just realized: 3-monitor gaming is actually cheating!
 
@MarkGarcia that's why I need a 3rd screen
 
@BartekBanachewicz I didn't doubt it held port 80, just that it did so for incoming connections.
 
@thecoshman that's the definition of listening port
@MarkGarcia I think my GTX670 should be enough for most of the games I play
Anyway, it starts to make sense to have 3 GPUs
one for each screen
 
@BartekBanachewicz That seems dumb. It doesn't do that on Linux though.
 
8:56 AM
It can be disabled in options, just found it out
 
What is that port reserved for ?
 
Also, um, can anyone tell me how the fuck can I remove last element from a single-linked list?
@ereOn it's HTTP :/
 
@BartekBanachewicz: I know TCP/80 is usually used for HTTP, but what use does it have for Skype ?
I would expect this for say Apache or IIS, but Skype ?
 
sigh exactly
 
@BartekBanachewicz ¬_¬ yes, but most people do not have port-forwarding set up
 
9:01 AM
@thecoshman how is that related to anything?
 
@BartekBanachewicz you iterate thru the list and always keep a current and a prev element, then when current is at the end you use prev
 
@bamboon O(n)
 
@BartekBanachewicz because your computer can open up all the fucking ports it wants and it means jack shit if your router is not forwarding a bean to it
 
@BartekBanachewicz yes? You can't get better with a singly-linked list.
 
@thecoshman well, it still doesn't justify using a reserved port though
 
9:04 AM
@thecoshman Actually, that isn't completely true. Port-forwarding is not a security feature.
It somehow masks access to the NATed computers, but techniques like "UDP hole punching" can still make their way throught, even without port-forwarding.
 
Xeo
@thecoshman I highly doubt the first part.
 
@ereOn indeed
@Xeo oh?
@BartekBanachewicz of course not :P
 
Did I mention I love Java and hate C?
 
Xeo
Get out.
 
13 hours ago, by Bartek Banachewicz
At least in java you don't have to reimplement a goddamn vector
 
Xeo
9:15 AM
lol
 
It wouldn't hurt that much in C++. But in C.. ugh. I feel pain.
@Xeo I had first java classes yesterday
 
Xeo
MPORTANT INFORMATION ABOUT YOUR SWTOR ACCOUNT

Beginning April 2, 2013, you will only be able to log in to the Game or Website using your Display Name – Your email address will no longer be accepted from that point forward.
Ahm....
 
privacy issues prolly
 
Xeo
Wat
 
@Xeo So we got bored in Anime.SE and made a chatroom just for animated gifs.
 
Xeo
9:16 AM
@Mysticial lol
 
@Xeo ?!
wtf
 
Just a warning. There's some NSFW content in there.
 
@Mysticial lol link
 

 Thrills and Spills

Enough twirling to make your head spin! Enough gifs to make yo...
 
> Function operator delete and keyword delete are not same.
what?
delete x; invokes operator delete no?
 
Xeo
9:19 AM
operator delete vs delete operator
 
Again warning: There is some NSFW content in that chatroom.
 
Xeo
@TonyTheLion No, it invokes the delete operator, which destroys the object, and then calls operator delete to get rid of the memory. :3
 
@Mysticial I'm just going to assume that you people make me sick!
 
It started off when I was looking for some spinning gifs.
And then we got carried away, so I made a room just for them.
 
Xeo
@Mysticial I love the Yui one. "Yui-nyan~"
 
9:21 AM
@Xeo so when you overload operator delete you do what inside? Just delete memory?
 
Xeo
Aye
 
You do everything manually, it is usually just necessary when you do hardcore stuff and want total freak control over everything.
 
Has anyone already overloaded new/delete for a real use case ? Just curious. I can't imagine a situation where I would need to.
 
@Xeo and calls to dtor are made by delete x; ?
 
memory tight situations?
 
Xeo
9:23 AM
@TonyTheLion yes
 
why is that split?
 
Xeo
@ereOn Usually just for new / delete tracking, memory safety, etc.
 
I mean, can't it all be done in one operation?
 
Xeo
I think this was done to reflect how new works.
You can only overload / replace the memory allocation mechanic, not how objects are constructed.
 
Hmmm
interesting
 
Xeo
9:25 AM
Which may have to do with the fact that there were no variadic templates in C++98, so it needed compiler magic to work.
Also, if you only have to deal with the memory, you can't get object construction wrong. :)
 
@Mysticial I now regret I clicked that
 
I guess overloading object construction is probably hard, if you were able to do it.
 
Xeo
@ThePhD: That's not your Anime.SE rep.
@TonyTheLion allocator::construct would be one example where you have to deal with this (if you want).
 
@Xeo Oh.
 
> a program is ill-formed if an allocation function is declared in a namespace scope other than global scope or declared static in global scope.
hmmmm
 
9:28 AM
Some of those gifs are just silly.
But I see there are others who like headspins just as much as I do.
 
Xeo
@Mysticial: Bwahaha, the Kuroko GIF.
 
@Xeo hahaha I warned. :)
 
Xeo
I should add the one where she fondles Mikoto's boobs if it isn't there already.
Well, later at home, anyways.
 
It's not friday yet -.-
 
....
Did he just
stick his hand into her body
and casually rip her face off? o_O;
 
9:32 AM
C Y U NO REFERENCES
Y U NO CONSTRUCTORS
Y U NO SANE LANGUAGE GOD DAMMIT
 
Xeo
@ThePhD Wut, where.
 
Further up
 
Xeo
Oh, there
 
Yeah, I'm like
what the hell. Dx
Thankfully it's not bloody, but like still.
 
Xeo
Look closely, it seems she got another face under there.
 
9:33 AM
Yea, Dx is more like xD anyway
 
Oh. Maybe it's a fake skin?
... A jellyfakeskin?
Man, people do some crazy shit in anime sometimes. ._.
 
@ThePhD s/sometimes//
 
Anime is batshit crazy 99.9% of the time. Flame war begin!
 
what the fuck
error C2370: 'Elem' : redefinition; different storage class
grawrgrgw
continuing... Y U NO VALUE INITIALIZE BUILTINS
 
:D
Damnit
 
9:41 AM
I have 20 minutes to finish this
Classes start at 11
 
Move IMplementation to source file doesn't like .inl as the target.
 
> [ Note: initialization by a trivial copy/move constructor is non-trivial initialization. — end note ]
what?
foo x = someotherfoo; If foo has a trivial copy ctor, then this is still considered non-trivial initialization
why would that be?
3.8 Object lifetime [basic.life] <--- section of Standard
 
user142019
@BartekBanachewicz implementing a vector in C ins’t really that of a pain.
 
user142019
Much less than say, a hashtable.
 
@Zoidberg I am doing a list atm
 
9:50 AM
@TonyTheLion Non-trivial for whom?
 
user142019
A list in C is more difficult to implement than a vector.
 
that is true
 
Is there something nicer I can do than this?
 
You know what's the most difficult thing about C? Finding a reason to use C.
 
@Rapptz why const char*?
 
9:52 AM
@DomagojPandža I guess for the object being initialized
> An object is said to have non-trivial initialization if it is of a class or aggregate type and it or one of its members is initialized by a constructor other than a trivial default constructor.
this is the line just before that note
 
@BartekBanachewicz because for what I'm doing, this is better than std::string
 
@Rapptz I don't know what you are doing
 
@TonyTheLion That seems just like a formal language for "Watch out for shallow copying, mofo".
 
then scroll down
it shows you a sample :|
 
"one of its members is initialized by a constructor other than a trivial default constructor." This.
 
9:53 AM
@Rapptz you mean it's for literals?
 
yes
 
@DomagojPandža ah that makes sense
 
It's supposed to be a printf-like assert with a message
 
user142019
0
Q: What c++ ( generic (c/c++) vs (generic c)/c++ )

Handy LiuI am a programming student and have occasionally encountered references to: Generic C, does this mean just plain classic C? "generic c/c++ implementations for structures in any serious piece of software" It typically appears in contexts such as this; I am pretty sure that I have simply been mi...

 
user142019
What the fuuuuuuck.
 
9:58 AM
> What c++ ( generic (c/c++) vs (generic c)/c++ )

Statement of the year.
 
I voted as narq
:|
 
@Zoidberg nailed it
 
user142019
I know. I fixed your formatting fail.
 
meh, ~fail~
 

« first day (872 days earlier)      last day (4092 days later) »