« first day (1873 days earlier)      last day (3069 days later) » 

11:00 PM
If by "direction" you mean the Bidi_Class property, then yes. If you mean the actual direction things should be on screen, then you need the bidi algorithm.
 
@orlp I contributed to one. But never wrote one
 
audible sigh
 
ICU has an implementation.
 
> Ohio Mayor Is Sorry For Facebook Post Claiming 'Blacks Have All But Formally Declared War' on Whites theslot.jezebel.com/…
It's not just SE
 
i hate ICU!
 
11:01 PM
@JerryCoffin And now we want to move in together.
 
I dont want to use it
 
@Prismatic I feel ya.
 
@R.MartinhoFernandes Cool. I'd blame bad timing, but it's hard to guess whether it might not have been particularly fortuitous timing and different circumstances might have prevented you from meeting her.
 
Don't think so. We met at the pub I visit every Tuesday.
Though if I was still searching for a place back then, I might not have had as much time to spend with her.
 
@ElimGarak I can hardly figure out what kind of site that is
 
11:03 PM
@sehe It's a subsidiary of Gawker, enough said :D
 
I'm going to sleep now.
Good night folks.
Don't let the memory leaks bite your emojis.
 
@R.MartinhoFernandes G'night.
 
night man
 
Xeo
I'm out too, I still need to pack tomorrow...
 
Night guys then :p
 
11:14 PM
@Xeo Good night.
 
> static_assert seems a bit too complicated because I need to use boolean logic.
 
Does C++ Primer Plus really teach 'bad C++', or do people just don't like its style.
 
@J.L.Louis does it teach C with classes?
or RAII?
 
Today's C lol: 'C Compiler not noticing code', 'my c compiler, it suddenly stopped realizing all of the info inside of an if block'.....
......................
'You mean the big commented-out /*…*/ section'?
 
@Morwenn I was a programmer like you, but then I took a boolean logic to the knee
 
Ell
11:25 PM
test test test
 
@MartinJames Sometimes I think the compiler is ignoring all of my comments
 
@Mgetz It actually teaches C++, it does appear to compare things with C a lot, as if it was meant for C programmers who wanted to learn C++. I haven't read the entire book, but I heard people say that it teaches C++ with the style of C.
 
@milleniumbug Yeah, I get that too:(
 
I was just wondering if that's the common opinion, or maybe some people just didn't like the book.
 
@J.L.Louis then yes it's crap. C++ has its own idiom, the C idioms should be avoided
 
11:26 PM
@milleniumbug A programmer like me? :3
 
here is a question can a variable represent both an int and a string, or should it be adjusted by a logic gate?
 
@Morwenn What, you aren't?
 
@Mgetz Hm, wouldn't think that would be an issue. I though C++ was really just C with classes and the STL.
 
@CMS_95 boost::variant
 
Is a logic gate not a bit low-level?
 
11:27 PM
@J.L.Louis It isn't the worst C++ book around, but it's certainly not a particularly good book on C++ either. My guess is that if it weren't for its title resembling a much better one, bit would have been out of print years ago.
@J.L.Louis Not even close.
 
@milleniumbug What's a programmer like me?
 
@CMS_95 adjusted by what now
 
an if statement or similar
 
we have to sit when we pee from now on right?
 
@Morwenn It seems I failed at interpunction there
 
11:29 PM
@J.L.Louis I would suggest reading up on RAII, the deterministic lifetime of automatic variables and the automatic running of destructors makes C++ far more powerful
 
Is RAII referring to Resource Acquisition is Initialization?
 
@milleniumbug now you're a town guard?
 
@CMS_95 It's certainly possible to create a structured variable that represents two (or more) values of different types (but I'm not sure if that's what you're asking about).
 
@J.L.Louis yes it is
 
I googled it and that's what came up.
 
11:30 PM
@milleniumbug I'm just messing with you :p
 
RAII allows for exception safety, memory safety, and resource safety
 
@J.L.Louis Yes. Also called "SBRM" (Stack Bound Resource Management).
 
@JerryCoffin yes, that is exactly, but can it be done with an int and a string?
 
Wouldn't 'programming techniques' be more suited for people who already know the language well, or is it something that you should learn in parallel with learning the language?
 
@Mgetz I'm a TownGuardManager now
 
11:33 PM
@J.L.Louis You generally want to learn both together. Trying to learn a language without learning how to use it generally ends up an exercise in futility.
 
I'm sad, I can't steal the cubesort implementation for cpp-sort :(
 
@CMS_95 To reply to a message, start by clicking on the arrow at the bottom, right-hand corner of that message.
 
@milleniumbug oh dear... infected by the Java and Anemic viruses
 
@CMS_95 As far as a structure containing an int and a string: yes, certainly.
 
Okay. And SBRM is Scope-based Resource Management
 
11:34 PM
@JerryCoffin oh, and thank you.
 
according to wikipedia
 
@J.L.Louis what @JerryCoffin said with the addendum of it will save ridicule as well
 
@J.L.Louis Same idea, regardless of the words you use for the letters.
 
Good to know. Thanks!
So I heard C++ Primer is a good book. Would learning that also teach me these good programming practices, or is that something to be learned independently?
i.e. with another book.
 
4268
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

I would suggest starting there
 
11:38 PM
This is the exact post that brought me here.
 
@J.L.Louis Yes, it at least attempts to not only teach you C++, but also how to use it well.
 
I was reading C++ Primer Plus, then read this post, then wondering if stopping and getting another book was really necessary.
 
@J.L.Louis I don't know about truly necessary, but I would certainly consider it strongly preferable.
 
Yeah, definitely. I would always seek the highest quality tutorial.
I guess my final inquiry is, does C++ Primer also teaches the RAII idiom, or do I need to learn that on my own.
 
@J.L.Louis I believe it does, yes.
 
11:42 PM
Awesome. Thanks a lot Mr. Coffin
 
I am not sure about newer edition, but older ones your have to learn RAII on your own
 
> void show_num(void)//显示函数,最终还是调用了画点函数。
comment your code they said
 
I just quickly searched for RAII || SBRM books, but it turns out there aren't any books that teaches the method specifically. So I'm counting on the latest (5th) edition to include it, or I'll have to learn it on my own.
 
@Mr.kbok next time they will learn to specify which language
 
@J.L.Louis At least in my mind, it really comes down to three possibilities: for an absolute beginner, Programming: Principles and Practice Using C++. With some (but very little or extremely unrelated) experience, C++ Primer. For much more (or more closely related) experience, Accelerated C++.
 
11:44 PM
@J.L.Louis strousup's book does
 
I've been using the first book, but I found it to be wordy and slow. I have programming experience in C and Assembly, so I guess intermediate or accelerated paced books may keep me more interested.
 
There are also differences in writing style, so (for example) some total beginners prefer C++ Primer, and others with a little experience prefer Bjarne's book.
@J.L.Louis In that case, yes, Accelerated C++ is probably your first choice.
 
I see it was publish in the 20th century. Should I worry about its content being still relevant?
 
would it be accurate to say that in order for a variable to have 2 types (int, string) , string has to be declared first. and then the int variable?
 
11:47 PM
@J.L.Louis It predates (and therefore doesn't deal at all with) C++11 or C++14. It still teaches a fairly modern way of using the language though.
 
Actually got a copy of the book recently.
 
Great, I'll check it out.
 
@CMS_95 ..what
 
guys, I have decided you all need more love <3 <3 <3 :)
 
@TonyTheLion You too ♥
 
11:48 PM
@melak47 does the string type need to be declared before the int?
 
Thanks again Mr. Coffin.
 
@StackedCrooked Humility prevents me from pushing this too much. :-)
 
Abd Mgetz
 
It contains nice overviews of the C++ features.
 
@CMS_95 variables in C++ can only have one type
 
11:49 PM
@CMS_95 you're not making any sense.
 
And*
 
@TonyTheLion ...and you too!
 
@BartekBanachewicz actually I think they can have more than one type ( int , string ) can be assigned to one variable, without conflict
 
@JerryCoffin :)
 
I am not claiming to know RAII that well, but IMHO it's like saying you should only turn the water pipe on if you need to use water ...
 
11:52 PM
@CMS_95 if that variable is of some type constructible from int, string, yes. That doesn't make it a variable of two types
 
@chmod666telkitty The main point of it is to have the water automatically turn itself back off when you don't need it any more.
 
That's what they have in the public places, lol
Those timed water taps ...
 
@melak47 okay, then how can I set it up so that it does one or the other? because when the user types in the input it can be either a number or a string, does it have to be one or the other?
 
what are you actually trying to do
 
Use atoi >_<
 
11:59 PM
@melak47 okay, I have it set up so that the program asks for a year - input, the user may put in a full date, because of this it needs the ability to be a string. the user input is only stored in a file that is later recalled.
 

« first day (1873 days earlier)      last day (3069 days later) »