« first day (320 days earlier)      last day (4621 days later) » 

12:00 PM
wir = we? lieb = love?
 
approximately, yes
"jemanden lieb haben" = "to be fond of somebody"
 
can a c++ developer (me) master c# in three days? (I've got three holidays...)
or should i just give it up?
 
How long is a day?
 
You can learn, but three days is not enough to master anything.
 
Is it enough to be comfortable using c#?
 
12:06 PM
I would say you can master the language, but you certainly won't grasp all the relevant APIs and frameworks.
 
And you certainly won't be writing idiomatic C# after only three days of learning. But that goes for any language, really.
 
@FredOverflow Well not exactly any language. I finished an RPG engine in python two days after learning it
and it only took a day to learn python
 
So? I'm pretty sure you didn't write idiomatic Python.
I don't know Python, but I'm sure it has its own heap of patterns and idioms.
 
@FredOverflow python and patterns? Lol u can write any pattern u like in python.
 
12:10 PM
Yup.
He's not talking about design patterns, those are silly.
 
@IntermediateHacker I'm not talking about Design Patterns.
 
I win again.
 
I'm talking about the C++ analogues of "rule of three", RAII & co.
 
Python has this slogan that there is only one way to do it (vs Perl's slogan).
 
@CatPlusPlus Damn!
 
12:11 PM
@FredOverflow Sorry I misunderstood
@CatPlusPlus do u read minds?
 
Yes. With Python.
 
The only times we discuss Design Patterns here is when bashing them, especially the Singleton.
3
 
@StackedCrooked Yeah but that one way is so damn obvious u don't need to know patterns to use it
@CatPlusPlus with Python? No wonder reading minds is a slow process
 
import mind_reader; mind_reader.read_minds()
Not slow at all.
Though for some people it might raise BrainError.
 
Hmm, I have just installed the VAX thing.
 
12:15 PM
MindOverflowException
 
It does...exactly nothing.
I cannot seem to get it to work with C++/CLI, despite some claims on blogs/web.
 
@CatPlusPlus you can just use the try except loop for that
 
Idiomatic Python includes few functional patterns, like list comprehensions.
It's not a loop.
 
@CatPlusPlus why would cats use PERL?
just read ur profile info
 
It's easy to write correct Perl when you can dance on the keyboard.
 
12:18 PM
@CatPlusPlus Lol! i hate PERL too
if python is executable pseudo-code, then PERL must be executable line noise
I used to code everything in python. That was before I started working on big projects. When your project gets big python gets slower and slower and slower and SLOWER.
 
0
Q: Very simple binary patch utility for windows?

lost_guadelennI need a standalone commandline windows tool to make diff (which is also able to apply it then) for two binary files. And I want it to do output in a very simple text human readable format, something like this: 00A001FF 0B 0A 00A00200 0C 00 00A00201 0D 01 00A00202 0E 00 Can't find any. :( The...

Lol human readable binary diffs.
 
Hey all,
I have a question which regards the API, kernel32.dll
It involves GetSystemTimes(). Is anyone familiar with this?
 
@Anthony and the question is...?
 
Well, while I am using C# to all it it's more of a maths question really... it's do with the formula on this question: stackoverflow.com/questions/7216645/…
Am I right or wrong really? I have had very little documentation to go on
 
@Anthony if u are using C# then why are you asking in a c++ forum?
 
12:23 PM
I just figured C++ guru probably would have more experience with the API directly than anyone else
It's not a c' issue
c# i meant
 
What do you need that for?
 
it's a maths issue
 
@Anthony I agree about the documentation part. msdn is a jungle!
 
the formula might not be too clear there...

It is: (Kernel + System - Idle time) (times 100) / Kernel + system time
It comes back accurate, me thinks, I just can't explain the formula returning minus figures on occasion...
@CatPlusPlus There is no way, in the NET framework, as far as I am aware to get the CPU usage at an instance of time. Yes there are performance counters but I have explained, in that question, why they are no good for me.
 
Yeah, but what do you need that for?
 
12:29 PM
To get the CPU Usage?
 
@AnyoneWhoWouldHelp Can you please help me in the design of[this] (code.google.com/p/nexuswin/downloads/…) library?
 
I'm writing a monitoring software
 
Oh, yet another monitoring software.
 
:)
Well mine has specific requirements for my own purposes
I doubt the public will ever see it
 
maybe improve some stuff in it?
@Anthony Follow my advice, C++ is for public software only, if u want something for ur own purposes, use some scripting language
 
12:32 PM
That's not a really good advice.
 
@Anthony I use Python and sometimes Lua
@CatPlusPlus Thanks
 
Yer I would have to second @CatPlusPlus on that
No offense
 
Also, don't write your own Function, use std::function.
2
And certainly don't write your own String.
 
@CatPlusPlus i don't have C++11
 
Then boost::function.
2
 
12:33 PM
@CatPlusPlus I agree about the string part
I coded that when i was learning c++, just added that to make use of it
 
Also WinAPI wrappers have been done and done and done and done.
And wrapping C APIs isn't very fun.
 
@CatPlusPlus boost::function adds too much bloat
 
What.
 
I like wrapping C APIs.
Anyway, can u help a bit?
 
I hate when people say "bloat".
It's mostly because they have a funny idea about what "bloat" is.
 
12:35 PM
okay "performance-slowdown" then
 
@IntermediateHacker at compile time or runtime?
 
You can't tell it's a slowdown until you profile. I.e. bullshit.
 
Compile-Time
Run-Time is fine,
 
Minimise TUs and parallelise the compilation.
 
@CatPlusPlus Unfortunately, i am writing a header-only library
 
12:37 PM
So?
 
So compile time is even slower than usual
and remain slow when people use the library
 
Also avoiding that is even easier, just use PCH.
It probably won't make any difference in the presence of WinSDK headers, anyway.
 
@CatPlusPlus Call me a noob, but I don't know how to use precompiled headers
 
You're optimising something that's not a problem. Worry about compilation speed when you have something to compile.
 
Okay then, I am an idiot who wants to implement his own function class.
now can u give any other suggestions?
 
12:42 PM
Don't use register keyword.
 
oh yeah.
you're talking about the winapp class right?
hey listen. can u please ..you know correct the flaws and upload it?
 
Also prefer composition over inheritance. Especially protected inheritance.
 
composition?
you mean putting the base class as a member of the derived class?
@CatPlusPlus How about becoming a contributer?
@CatPlusPlus do u have a google account?
 
I don't really have time.
 
@CatPlusPlus Ok, but i've listed you as a commiter anyway , so please contribute when u have time.
Ok, gotta go now. Bye
 
1:18 PM
ohla
 
Lol, look at the suggested edit here.
"I want to change the screen brightness." to "I want to change the screen brightness of the screen." :D
 
lulz
edit rejected and edited it properly :P
 
Fishing for the badge, too, eh?
 
eh no, what badge?
 
Proofreader.
100 accepted/rejected edits.
 
1:28 PM
no, I've not gone into badgewhoring yet, I still want to get to 10K rep first
lol
 
if one of the top design aims of c++ was to eliminate the preprocessor
why hasn't it been eliminated yet?
one of the things i never understood
 
"it wasn't a top design aim of C++", or "C++ failed" are two obvious answers to that. Pick one
 
sbi
@IntermediateHacker C++ eliminated the need for some of the most dangerous uses of the preprocessor without disabling you to still use it for other things.
 
1
Q: C++ Backend, Objective C frontend, NULL nil problem

AndyTangI've got an interesting problem that I am sure someone would have come across. I am writing the front end UI in Objective C Cocoa, and the backend in C++. In C++ I have #define NULL 0 Unfortunately, this has dire consequences for nil. Especially with nil terminated function calls as I now get ...

isn't NULL already defined, so if he defines it again, that's an error?
 
Speaking of badges, where the heck is my silver badge?
 
1:36 PM
donno, did you lose it?
in your pockets perhaps?
I mean where did you last leave it?
 
I haven't seen it yet.
 
oh ok
 
Does it require like, a minimum number of answers besides the 400 upvotes?
 
sbi
Lost badges might be claimed at Meta Stack Overflow.
 
Hmm, minimum of 80 answers.
Damn, I'm too good for the badge.
I only have 73 answers.
 
1:40 PM
lulz
 
sbi
@RMartinhoFernandes Well, that's dead-easy, no? You pick 7 old C++ questions and add an answer to each of them. It doesn't even have to be good. If you stop whining here, you can have your badge in 15mins.
Well, you will have earned it in 15mins. I suspect it might not be handed out before tomorrow, though.
 
lol MS's executive building is building 34. :P
 
@RMartinhoFernandes Yes, it's in description, but you probably have it anyway. It's just not given immediately.
At least there was a minimum last time I looked around.
 
7 mins ago, by R. Martinho Fernandes
Hmm, minimum of 80 answers.
 
Oh, right.
I'm not a robot, don't expect me to read everything, dammit!
 
2:21 PM
Hy, is it better to use always "aggregation" (class in class) when i can, for example
class Student {
int day, month, year;
...

or class Student {
Birthday birth;
...

is it second case in anyway better(efficient, or good writing practice) than the first
thanks.
where is Birthday also class
 
always.
No.
In this case, you need at least better names.
If you're going to perform operations on birthdays (I guess it's likely), it's better to have a class for it.
 
Als
@Srle: I think the second approach is better in this case
 
Date birthday
 
Als
If you need to add more detail to the Birthday class that remains kind of abstracted from the Student class.
 
I can't think of an operation on birthday that's not an operation on a date.
 
2:29 PM
void celebrate();
 
Als
wha are you celebrating? @RMartinhoFernandes
 
I meant void birthday::celebrate();
Not anyone's birthday.
Just an example.
A silly one.
 
Als
The guy left long ago
 
std::cout << "woo";?
 
so if i can do some operations on class Birthday, to use class in class, in any other situation not to do that ?
 
Als
2:31 PM
oh He's back!
 
Today is slow day.
 
Rob
A quick design question. I have some service classes that perform operations against a database using my repository classes. Is it preferable to allow the service classes to internally instantiate & manage their repository, or should I pass the repository to the service class ctor?
 
when in doubt, choose the latter. It's easier to test, and often more understandable too
pass dependencies to those who need them
 
Rob
Alright, sounds good. Thanks.
 
then someone who reads the code can easily see who touches the repository, as well as which repository they're using and where they got it from
 
2:37 PM
Pass ALL the dependencies!
 
Als
:( Some freak downvoting me on this
 
What happens if there's an unhandled exception in a multithreaded C++ program?
 
Als
15
Q: How should I write ISO C++ Standard conformant custom new and delete operators?

AlsHow should I write ISO C++ standard conformant custom new and delete operators? This is in continuation of Overloading new and delete in the immensely illuminating C++ FAQ, Operator overloading, and its follow-up, Why should one replace default new and delete operators? Section 1: Writing a sta...

:(
 
Wait, I'll make a question.
 
Als
2:45 PM
give us a heads up :P
 
Rob
Up-voted to offset, looks like a good question. :)
 
Als
@Rob: Thanks.
 
Rob
Yep.
 
Als
I guess the pattern of voting in SO is more of vote populist things
 
does get lowercased here?
(In comments it just produces c++ as a hyperlink, which looks plain wrong)
 
Rob
2:48 PM
@Als I suppose. I generally try to up-vote any question I come across that's well written and has thought put into it.
 
Als
@Rob: That is a good practice unlike lot of mob mentality
 
hi
 
Als
hey pup @DeadMG
 
@RMartinhoFernandes On Windows, top-level exception handler will be called just like in ST.
 
oh hai
 
sup?
 
Dunno about others, really, but I don't see the reason it should behave differently.
 
did my formal spec exam today
 
it went pretty good
 
2:52 PM
So no more math now?
 
still got 2D graphics to go
 
That's Euclidean geometry shit, right?
 
oh cool
 
yeah
 
Rob
I finished my math last semester :)
 
2:53 PM
the "Did you memorize the formula for a rotation matrix?" module
 
Rob
I'm excited
Analysis of Algorithms starts next Tues
 
Sounds like a fun class.
 
Rob
Almost finished with the major!
I'm hoping so.
 
sounds like a boring class
 
Rob
srsly?
 
2:55 PM
ya rly
 
Rob
lol.
 
No not rry.
 
I can't really see it involving a lot of actual code
 
It probably doesn't, a lot of math though.
 
hence boring
 
2:55 PM
My Algorithms and Complexity class had both code and math :P
 
Different strokes for different folks.
 
Rob
@RMartinhoFernandes My Theory of Computation class had harder math than any of the classes in my math minor :/
But we got to write a Turing machine simulator, that was fun.
 

« first day (320 days earlier)      last day (4621 days later) »