« first day (646 days earlier)      last day (4303 days later) » 

12:00 AM
Wow, Ruby is so...different.
 
What's the use of another language if it is ... similar
 
Well, I mean totally different. All you have to learn from C++->Java is what they give you to use and some specific points you might use improperly.
Most of the syntax is the same.
 
Most of the syntax is irrelevant
But yeah, Ruby celebrates dynamism. And they wanted to show it, I guess
 
I'm going to have fun going through some of these next year with my spare time in school.
Always good to have a bit of everything in your repertoire, in case you do come to the situation where you need a Ruby-like solution, but only know C++-like languages.
 
Ell
ruby uses lambda type stuff everywhere
I do love ruby
Turing might be on the ten pound note
 
12:16 AM
in my opinion, our school should scrap turing and do python
at the very least (for grade 10) if they want a different language there than in grade 11
 
Ell
is the paradigm more important or the standard library?
 
Well, mostly everyone you go up to will have never heard of Turing, and the language itself isn't overly useful for anything other than starting to program. Python is good for beginners, and retains value later on. There's a clear winner there.
 
Ell
I haven't heard of Turing
 
Chalk me up
 
Here's the Wikipedia on it: link. It was only ever really used in Ontario, Canada, and even then just to teach.
Fixed link, sorry.
 
Ell
12:33 AM
I don't see the point of a teaching language
you would just be teaching something false
 
Exactly, use one aimed at beginners that has value past teaching new programmers
 
Ell
also, piloswine? :L
 
Guess who's replaying their first/favourite pokemon game in remade form
 
Ell
oh is it a pokémon?
I thought that was swinflu
or am I just thinking of swine flu? :P
 
yeah, possibly swinub too
or swablu, but that's completely different
 
Ell
12:39 AM
yeah I'm sort of just amalgamating them all
what is remade form?
 
I got silver when I was like 8, played the heck out of it and nearly got all of them before it stopped working. Haven't tried soulsilver before now, so I'm getting nostalgia as I notice differences.
 
@chris They took out the slots and the room decorations... :(
 
Ell
get an emulator :D
 
yeah that new thing instead of slots isn't even 100% solvable
with an emulator you can spam state abuse for it I guess
 
@chris You can't even buy the stupid coins. But otherwise, the remake is good.
 
12:43 AM
buying the coins was better, always had a huge excess of money after evolving things
 
I didn't like how you were forced to fight your cover legendary before the elite 4.
 
I like most of it so far, they added something to the spot near cherrygrove
in silver i spent like 10 minutes trying to get in there, and now theres just a path a bit north
 
Although, one thing they added in Platinum and kept through HeartGold and SoulSilver is that if you kill a standing legendary, it comes back after the elite four.
So you could kill Ho-oh or Lugia and fight it properly after you've beaten the game.
 
i remember always getting up a bit earlier to do mystery gift before school with silver XD
yeah, I noticed that in platinum. The first one is better though
 
@chris ah... Mystery gift. I missed that too.
 
12:45 AM
It was the only way to get a trainer that gives decent xp
instead of the 50/50/50 in viridian by default, the other person just had to have a decent lineup
the sad thing was that I was missing two I could've gotten in the game if I knew how (qwilfish and kingdra), mew, which i got after the game stopped working, and celebi, which I found out how to glitch in a good time after i got mew
 
I don't remember what they put in the viridian building in the remake. I remember going in there once and getting destroyed because I didn't have my EV-trained pokemon from DPP.
 
^ Any obvious ungood things?
 
I'm one of the guys who always starts with the water type and trains only one pokemon for the entire game.
That strategy worked pretty well for every single generation except for BW.
Since water has only two weaknesses and you could teach it Ice Beam to destroy your rival's grass starter.
 
@Mysticial, I always loved water. Haven't played BW.
And yeah I just use one pokemon for the whole game basically
 
@chris BW is somewhat disappointing. I still haven't properly beaten the game yet.
In BW, they have a water ghost type with Water Absorb. The water starter doesn't learn anything other than water and normal type moves.
 
12:52 AM
@Cheersandhth.-Alf, I don't see anything immediately, but my eyes aren't trained too well for that kind of code.
 
I almost got destroyed several times.
 
I like how the only way to "catch em all" is to go to their stupid events.
 
@chris Yeah... I'm still lacking Shaymin and Arceus from 4th gen. I also have an illegit Darkrai that I got off the GTS.
 
Cheating for things like celebi, deoxys, etc is justified imo, but probably after you've gotten what you can
 
@chris In 3rd gen, the "most" legit way is to just GS teleport to the islands.
In 4th gen, you can use AR to give you the item.
 
12:55 AM
Never had GS or anything, best I could do for that is to do the whole thing on an emulator.
Too bad the GTS is out for a good time to come like that, though.
 
@chris Back in the gen1 and gen2 days, I was fanatical about find GS codes for everything.
 
gen2 had the dupe glitch too
 
And was one of the first to find the memory locations for stat-experience (EV) and IVs.
 
Those memory hacks are great.
wish i got a chance to try celebi
 
I cheated like hell during the gen1 and gen2. Starting gen3, I only used GS to get the items or teleport to the event pokemon.
I never bothered to hack IVs in gen3. Since that took out a lot of fun of training competitive pokemon legitimately.
 
12:58 AM
who doesn't know about gen1 cheating heh heh. Glitch city was always fun to visit as well.
 
@chris Celebi was never properly released outside of the Japanese versions in gen2.
But I did get several legit Celebis from the gamestop event last year.
 
There was something with a sneasel having false swipe as its third move, then doing something with the breeders' pc
 
@chris I liked the fly-away glitch. (aka Mew glitch)
 
yeah, that ones funny
 
Emerald had a very safe to use dupe glitch.
I abused that like crazy to make backups of pokemon and dupe rare items.
 
1:01 AM
 
interesting...
 
can't believe i couldn't figure out how to get kingdra or qwilfish in silver
turns out kingdra i never picked up the item while in mt mortar
and qwilfish i never got ralph's phone number, and didn't know it appeared in that area
 
Does Beat Up have the same hex value as Celebi's 251?
 
so I ended up with 249 seen/247 owned. I wish I had the chance to get the other two before it broke
 
Ell
does anyone want to help me write a pokedex for android and sell it? there are no good ones available apparently
 
1:03 AM
yeah, something like that
 
Ell
and I'm serious about this
I have already started :L
 
@Mysticial, It's really amazing how much you can reverse-engineer these things. I was dumbfounded when I found that some years ago.
lol the glitch gives some of the pokemon you use in it pokerus
 
22
Q: Deconstructing Pokémon glitches?

templatetypedef(I apologize if this is the wrong place to ask this. I think it's definitely programming related, though if this belongs on some other site please let me know) I grew up playing Pokémon Red and Blue, games that were great fun but are somewhat notorious for having numerous exploitable glitches (...

Might be a good read for ya
 
I've never had that dumb thing yet. I saw a shiny paras in silver once after getting the second badge, but no pokerus ever.
 
@chris I've gotten 2 legit shinies in gen2 (excluding the gyarados)
 
1:07 AM
@Mysticial, Thanks, I'll enjoy the read.
 
And in gen4, I've seen 4 legit shinies and caught 3 of them.
 
Ell
ooh I wonder if I could get pokedex data from the game through an emulator
 
2 of them were in the Great Marsh. A Quagsire and a Maril. I got the Maril, but the Quagsire fled :(
 
Ell
my bro has 2 shinies
 
One of the shinies that I got in gen4 was a Timid Articuno. I was literally trying to farm a good Articuno with Mind Reader + Sheer Cold combo to rip through the battle tower.
 
Ell
1:09 AM
got them both in very quick succession
 
So I litterally saved in front of the Articuno and Master Balled it several hundred times.
And on one of those attempts, it was shiny...
 
lol gud1
 
I didn't end up using it though, because it had shit IVs. But I did eventually get a near perfect IV Articuno during my second time through the game.
 
@Mysticial, Ever try this‌​? It was kind of fun. I got it from people gathering at the church for a big garage sale for like $10.
 
@chris I had a friend with it. It didn't seem that interesting - along with Pokemon Pinball.
 
1:12 AM
why do ivs have to be so annoying to get
 
I stuck with the main games.
@chris It's a lot better now since they can be bred. But for legendaries... ugh...
Timid/Jolly 31 is a must-have for pretty much anything non-defensive.
 
It's funny how the competitive side goes a thousand times deeper than the actual game.
 
So yeah. Even if you sit there nature-syncing the legendaries, you still only have a 1-in-64 chance of getting Timid or Jolly + 31 - which are the basic requirements.
Then the other stats can't suck.
 
Xeo
@chris Competitive pokemon is nuts
 
@Cheersandhth.-Alf I think I like it. Here are some notes:
 
1:16 AM
@Xeo Yes it is. I always get raped online regardless...
 
Xeo
Especially against other players, with the mind games and all.
And very especially if you know that other player
 
@Cheersandhth.-Alf Namespace level usings might not do what you intend: they hoist the 'used' names into the using namespace. This implies that anyone 'using namespace progrock::cpp;` will automatically also use std::swap, std::move etc. This could be a bad thing for some users of the library
 
One that works as a good surprise factor is having the same pokemon, but EV trained differently and maybe with different moves.
 
Xeo
I never understood those EVs and IVs and everything...
And I've never seen a shiny, while we're at it. :(
 
So you fight one of them - find out it's very defensive. Next round, you bring out the other one, and OHKO because you're trained offensively.
@Xeo Play HGSS. You'll at least get the Gyarados.
 
Xeo
1:18 AM
Ah, right
That's with normal G/S too, though
A "proper" shiny, then
 
@Cheersandhth.-Alf I'm also a bit concerned whether the constructor to SharedPtr_State migh leak the PointerOwner instance on exceptions - but I haven't read through all the NO_EXCEPT promises
 
lol
 
Xeo
aka one encountered in the wild and not scripted
 
Yeah, they're rare.
 
@Cheersandhth.-Alf I do really like the consequent use of swap idiom to implement assignment, allthough it seems like it could be less efficient than optimized routes (taking the argument by ref). The optimized routes are notoriously error prone, of course, so I like it still.
 
1:20 AM
1 in 8192 I think.
 
@Cheersandhth.-Alf I'm pretty sure, this implementation isn't thread safe. Is it supposed to be?
 
yeah, 1/8192
it gets a lot better in gen 4 and 5 though
 
@chris probability is still the same
 
you can get a pokeradar chain to bring it up a lot
 
I'm off to bed now (/cc @Cheersandhth.-Alf)
 
1:22 AM
gen3 - gen5 use the same personality function
@chris That's how I got my shiny Kricketune.
I wasn't trying to find it. I was EV training, and ran into it.
 
Xeo
@Mysticial I've had atleast that many battles :/
Played gen1-3 to death
 
@sehe it's unthread-safe by design. thanks for looking. i found some dumb mistakes in the preparation for supporting arrays, now arrays work. :-)
 
And then there's some item in gen 5 that is like x5 chance
 
Xeo
all 3 games in each gen
 
@chris Yeah, I'm still behind on gen5...
 
1:23 AM
by unthread-safe i think it may be more thread safe because people will not willy-nilly share data between threads.
where "people" = myself, at first :-)
 
The only game that I didn't get was LeafGreen. That's because I almost completely skipped gen3.
 
Ell
no one fancies helping me with a pokedex then? :P
 
@Mysticial, I found out about that one on pokememes actually, go figure
 
I didn't get back into pokemon until gen4.
 
gen 3 was the one gen i didnt use my starter as much
once i got kyogre it took the spot
 
1:25 AM
Gen3 was tough early game for me. Since I use the water starter - which evolves into a water/ground.
Double weakness to grass.
 
I found the game really easy with it
 
Xeo
@Mysticial FR/LG count as gen3 now?
 
which gym was grass? second?
 
Ell
I wonder if peoiple have written ai for pokemon
 
yeah, frlg are gen 3
 
1:25 AM
Gen4 was good. Since the rock-paper scissors chain between the starters (kinda) reverses once everyone is fully evolved.
The gen4 uber legendaries were stupid though...
 
Xeo
@Mysticial fire starter rocked, though
For once
lvl 16, double kick ownage
 
i liked water over fire there
 
The gen3 fire starter is uber in gen5... go figure.
 
fire seemed to get really weak for elite four at the end
 
Xeo
Yeah, Blaziken is awesome
 
1:27 AM
Oh damn. My Amazon cart now totals $594.13. I need to pare it down before checkout... :(
 
Xeo
@chris I didn't fell like that, quite the opposite actually
 
@Xeo My favorite is Infernape.
great in the battle tower - along with Articuno.
 
maybe i got all useless evs somehow
 
Xeo
@Mysticial Note: Didn't play after gen3 :)
 
I just wish there was one game where you could get everything solo
 
1:28 AM
@Xeo It's a fighting/fire type that learns stab 120-base power moves.
That's broken.
And it's fast.
 
Xeo
ouch
 
Ell
@sehe what you buyin?
 
Xeo
that sky punch thing from Blaziken was 95 base power, right?
or 90?
 
@Xeo it only takes one hit to kill it. But if you abuse items... well...
Specifically, when it's hp gets below 1/3 it's fire moves get +50%/
 
Oh. Hehe. Down to $373.48. It turned out I had Accelerated C++ and Templates: TCG duplicated. That doesn't help. Also, jotted out a few of the 'wishlist' type items that I won't probably read in the coming months, realistically
 
Xeo
1:30 AM
apropos 1hitkill, I loved Shedinja
 
So if you focus sash down to 1hp, the fire-move becomes a suicidal stab-180 move.
almost guaranteed to OHKO anything that doesn't resist it.
 
shedinjas a funny one
 
@chris because it destroys Kyogre... lol
 
know what's always fun to get? feebas
I look forward to nolofe hunting it every time
 
Xeo
Argh, I'm getting really irritated with alle the English names :/
Oh, Feebas...
I never got that one :/
I was only missing that and its evolution, had everything else in Ruby
 
1:32 AM
got in once in sapphire and once in platinum
 
The only Feebas I got was from a trade. I never found one in the wild.
 
my friend like begged me for one when i got it
 
There. I pared it down to $263.31. I threw out Bruce Eckel's thinking in C++ (since I won't need it, I would just want to browse it out of curiousity - occupational deformation) /cc @Ell let me put up a list if I can easily
 
Xeo
When you get one, you could literally start a market
 
@sehe, Wow, you've been busy.
 
1:34 AM
@Xeo I remember doing something like that for Manaphy.
 
Xeo
Anyways, back to my visual novel
 
@chris You mean, throwing things out?
 
*phione.
 
@sehe, Yeah, I've just been continuing onward in SS
The really annoying thing in SS is that you can go two ways form ecruteak
so both ways have low levels
and you end up a lower level than you'd like in the end
 
@chris Oh right. I've always gone west. Even the first time I played Silver, I went west and always did that.
 
1:37 AM
same, but you can go east
 
You just get blocked off by the RageCandyBar guy right?
 
Yes, but you get blocked before doing the 7th gym anyway
you have to do gym #5/6/7, then the radio tower happens, then he moves
if i remember right
 
Are you able to complete the entire Rocket radio tower thing before you go to olivine?
 
No, should only come up after you do 7th
then do olivine/cianwood
 
I might try that the next time I go through HG.
I need a new Latios with good IVs anyways. So I need to restart my HG - after I transfer everything out.
which is also a pain
 
1:42 AM
@ell here is what made the final cut:
"Learn You a Haskell for Great Good!: A Beginner's Guide" (Lipovaca, Miran; Paperback; $25.57)
"Linux Kernel Development (3rd Edition)" (Love, Robert; Paperback; $32.25)
"Accelerated C++: Practical Programming by Example" (Koenig, Andrew; Paperback; $32.53)
"JavaScript: The Good Parts" (Douglas Crockford; Paperback; $17.09)
"JavaScript & jQuery: The Missing Manual" (McFarland, David Sawyer; Paperback; $23.27)
"C++ Concurrency in Action: Practical Multithreading" (Williams, Anthony; Paperback; $58.60)
 
Ell
linux kernel development ehh?
 
I used to have Starmie, Infernape, and Articuno as my battle tower team. But the electric weakness was too great. So I switched out Starmie for a mediocre-IV Latios with the same moves.
 
Long overdue. I've been hacking at various projects and always found my kernel
"foundations" weak
 
Ell
what projects have you been hacking at?
also what is everyones Lionel Richie song?
 
@Ell Mainly zfs-fuse, which is technically user space, but is intimately with the VFS layers (and new splice support). I'd like to maybe hack at zfsonlinux (which is kernel based)
and I might try my hand at updating various hardware drivers (mainly a DVB-C tuner that I'd love to get working under linux - I hate how my Win7 Media Center makes my i7 2600k/4Gb crawl and suffer)
 
1:47 AM
@Mysticial, Huh, can't find anything saying you need all three gyms done, just the 7th. 5 and 6 don't give any needed HMs, either.
 
@chris In HGSS, you'll definitely be blocked by the kimono girls since they won't fight you until after you have all 8 badges.
 
Ell
writing drivers sounds interesting
 
@Ell static assertion failed: has_love_for<std::everyone, std::music::by_artist<'lion','elri','chie'> >::value == true
sounds drive interesting writing
interesting sounds write drivers

nah drivers are boring and annoying: proprietary shit. they're a necessary evil
 
who should I give the right answer to @ stackoverflow.com/questions/11605290/…
 
Ell
everyone loves Lionel Richie! :'(
 
2:02 AM
Aww, why did the AP computer science exam have to become Java-oriented over C++
 
@Misha The top rated answer is very accurate
 
@chris should be neither
 
Ell
2:32 AM
ugh really staying up late tonight
night all if anyone is there :L
 
night
 
3:17 AM
OMG A SHINY SWINUB
first try caught ftw
 
3:38 AM
Hello World
 
Sleep (18000000);
 
Xeo
@Mehrdad while that is true, many projects decide to disable/not use exceptions entirely, in which case nothing must throw an exception, so it is in many cases, an arbitrarily defined set. — Preet Kukreti 58 secs ago
sigh
 
This is turning into an editing war lol
From my edit on should just be making it more readable, I fixed all the formatting.
Look at the original and you'll see why people are freaking out.
 
Xeo
3:59 AM
@chris "debug my code" questions should be closed as NARQ
or "too localized"
 
@Xeo, I was too busy being mind=blown about the formatting.
 
Btw, there's a way to pick the language syntax per code block: use <!-- language: lang-xxx -->.
38
A: Manually specify language for syntax highlighting

Jeff AtwoodThis is now implemented. See: http://stackoverflow.com/editing-help#syntax-highlighting In addition to tag inference (a recent change), you can manually specify the language as a hint to Google Code Prettify. The spec is: <!-- language: lang-or-tag-here --> code goes here <!-- ...

 
@R.MartinhoFernandes, True, I've always used pre instead of none. I suppose this is better.
Quite frankly, I never use that feature, so it hasn't implanted itself into my mind too strongly yet.
 
4:20 AM
@R.MartinhoFernandes, Thanks for posting that, though. I'll remember it in the future.
 
If I say `std::array<...> const a = {{...}};` what is that kind of initialization called?
g++ made me use the outer set of brackets, and VC2010 accepted, but VS does not handle `std::array<...> const a{{...}};` which I *think* is aggregate initialization. Does the difference really matter in most cases with arrays, or should I just get around to reading that stuff in the standard?
 
This has your first one using one pair: en.cppreference.com/w/cpp/language/aggregate_initialization
Also, this. Double braces required, except after =. Too late to think right now, though.
 
Xeo
4:38 AM
@keith.layne This is only a quirk with std::array, and btw both are aggregate initialization
6
Q: std::array<T> initialization

FredOverflowA std::array<T> is essentially a C-style array wrapped in a struct. The initialization of structs requires braces, and the initialization of arrays requires braces as well. So I need two pairs of braces: std::array<int, 5> a = {{1, 2, 3, 4, 5}}; But most of the example code I have ...

 
Thanks, guys. So, if both are aggregate-initialized, is there any real difference for std::array? I think g++ would accept the single braces, but I was using -pedantic-errors.
 
Xeo
31
Q: c++ why initializer_list behavior for std::vector and std::array are different

SungminCode : std::vector<int> x{1,2,3,4}; std::array<int, 4> y{{1,2,3,4}}; Why do I need double curly braces for std::array?

@keith.layne single braces are allowed to be omitted in the = { ... } syntax
 
yeah, I'm surprised it gave me -Werror=missing-braces
I'm still annoyed that vc 2010 can't handle the form without the =.
 
5:03 AM
Hey all… I asked this here about 12 hours ago, but maybe it's a different crowd now :)
Does anyone have any impression of or experience with the dlib math library?
For nonlinear optimization, specifically.
 
5:18 AM
Stupid Microsoft and their extensions.
 
Artificial hair integrations, more commonly known as hair extensions, add length to human hair. Hair extensions are methods of adding commercial hair to natural hair. These methods are used to conceal thinning or hair loss in concentrated areas. These hair techniques are advanced and are used to change the hair drastically without looking unrealistic. Salons today are able to change your hair completely with one appointment. Another form of "extensions" are "feather extensions". Adding natural feathers to hair is used to add color to hair. Techniques for hair extensions ;Clip-in o...
 
MS has hair extensions?
 
They're such a poseur.
 
5:54 AM
"Is VC++ officially a different language than C++?" We're going to get along great.
 
You know.
Wikipedia has still the easiest-to-understand explanation of monads.
 
@RadekSlupik, Are you sure you're not on this, then?
 
Yes.
In functional programming, a monad is a structure that represents computations. A type with a monad structure defines what it means to chain operations of that type together. This allows the programmer to build pipelines that process data in steps, in which each action is decorated with additional processing rules provided by the monad. A pithy description, referring to the syntax for statements in several languages, is that monads are a "programmable semicolon"—that is, a monad specifies what a statement is. Purely functional programs can use monads to structure procedures that incl...
 
6:15 AM
Hey, that's new. Last I looked, it was pretty confusing XvD
 
6:33 AM
I recently read "scala in depth" which I thought had the beginnings of a really good explanation of monads, but it was a little thin.
 
6:53 AM
0
Q: stackOverflow可以有中文的界面支持么?

user1545134本网站:stackOverflow 可以有中文的界面支持么? 虽然懂一点英文,但是母语毕竟是汉语、周围环境都是汉语,所以还是希望网站有多国语言 支持。 Oops! Your question couldn't be submitted because: It does not meet our quality standards. 什么意思?程序还能判断 是否 符合提问的质量标准么? 我提的这个问题 难道 不行么?

uh....
Looks like the poor guy wants a Chinese version of SO.
 
7:10 AM
Why does std::map["blahblah"] insert a new element if the key "blahblah"doesn't exist, even when nothing is assigned?
I would rather have it throw an exception or something.
and map.find is cumbersome to use
 
Wouldn't throwing an exception be a bit "heavy-weight" for such a situation?
 
there is a reason. I just can't remember what it is :)
 
"because the standard says so"
 
Yeah I think an exception would be a bit too heavy.
 
No other STL functions like find, etc. ever throw in that situation either, right?
 
7:20 AM
In Python it throws an exception if you try to access a dict value with an invalid key, IIRC.
 
Throwing an exception for a paper cut sounds like Java.
 
std::vector.at(..)
 
range checking...I guess it's comparable
if map.at() threw, then I could go with that.
 
In Python people do:
try:
return asdf["jkl"]
except KeyError:
return 3
 
Oh, map.at does
 
7:22 AM
there is map.at??
 
yeah, since c++11, probably just for uniformity with vector et al.
 
meh :(
I want 11!!
 
it also throw std::out_of_range
I've always avoided exceptions in C++...not sure why
I guess you could always write a bunch of utility functions and specialize them on container types so you wouldn't have to mess with so many iterators :)
 
I tend to prefer return values. But the only time where I've found exceptions unavoidable would be in a constructor.
 
exception safety is a weak point for me in C++
 
7:29 AM
So far I also avoided exceptions. Qt also avoids them. Study how to do proper exception handling is still on my todo list.
 
every computer I program for has infinite memory, apparently
 
It's especially messy if you have new and delete.
 
morning
 
evening
 
ಠ_ಠ
 
7:35 AM
@Mysticial Yes that's why there are smart pointers.
 
yep
 
Reading More Effective C++. I have grown to appreciate at least some uses of most C++ features, but I still don't buy in on exceptions.
guess we don't need to use it either :P
 
As long as you write your code exception-safe...
 
@Nils there are smart pointers because of 'evening'? what you smoking boy?
 
:)
 
sbi
7:42 AM
@Nils Actually, since Linus says C++ is utter crap, we don't need to use C++ at all. One public figure making a statement should be enough of consideration, and should relieve us from having to think for ourselves, no?
 
@Mysticial That's why we keep telling people to not use them directly.
 
@sbi oh of course, why would anybody ever consider waiting for more than one view point before jumping to their doom salvation
I think I got that sorted... now? yay!
 
sbi
@thecoshman I think now you have. :)
 
@sbi Well as I said, I haven't studied exception handling in C++ extensively. Would love to learn more, but instead of using exceptions improperly I stay w/o exceptions for now.
 
sbi
@Nils No, if you are using C++, you are not avoiding exceptions. Whenever you use dynamic_cast with references, whenever you use new, whenever you use some code that uses any of these, whenever you use code that throws its own exceptions... — you are using exceptions. Clapming your hand over your eyes and singing "lalalalala" as loud as possible does not prevent that from happening.
 
7:48 AM
right
but there is fewer or more
 
sbi
@Nils No, there isn't. The downside of exceptions is that your code needs to be exception-safe. The moment you use anything that uses new, you need to go exception-safe. So, since you have the downside slapped in your face as soon as you use C++, why not enjoy the benefits, too?
 
2
Q: Now that smart pointers exist, is it deprecated style to use C type pointers?

steffenThere are many pros in favour of C++11's smart pointers: They are safer, they're functionality and scope is more abvious etc. Are the "classic" C like pointers class C{}; C c; C* c_p = &c; obsolete now? Are they even deprecated? Or are there use cases where C pointers still make sense?

It's surprising how people are only now discovering these things.
 
@sbi It is on the todo list. However as for the dyanmic_cast, if you use it with pointers you can just check if the return value is zero in case of failure.
 
non-owning pointers account for 99% of the raw pointers that I use in C++.
 
for references there is no other way than exceptions
same here
 
sbi
7:52 AM
@Mysticial The other 1% is, I hope, is inside the implementation of smartpointer(-like) objects?
@Nils Yeah, I deliberately said "with references".
 
@sbi Not really. That's where my C++ is lacking.
 
sbi
@Mysticial Please immediately stop answering newbie questions on SO until you have this sorted out. :)
 
@sbi lol, I usually get trampled by the hotshots anyway... :P
I should go back to answering Java...
 
sbi
@R.MartinhoFernandes Why is your gratification module emitting a negative voltage?
 
7:58 AM
@sbi ¬_¬ you lost me
 
sbi
@thecoshman To what dark force did I lose you?
 
@sbi to what are you referring when you say 'emitting a negative voltage'?
 
sbi
@thecoshman To his gratification module.
 
@sbi Did you use exception handling in all your projects?
your projects == projects you worked on
 
@Nils for the love of god man! you're not 5! bloody respond to the message you are responding to!
@sbi ¬_¬ I give up
 
sbi
8:04 AM
@Nils Yeah, since about 1993. (That's fife years before that standard was ratified, but some vendors offered them early.) In the one company I joined in 1999 that forbid exceptions I made a fuss over that so big that their senior software engineer fled the company. Exceptions (and a few other things formerly forbidden) were used there then.
 
cool
@thecoshman How do you know I'm not 5?
:D
So I better focus on work for now
 
@sbi "fife"?
 
sbi
@thecoshman For the love of god man! You aren't 5! Sigh. He said "ow". I considered this an expression of pain. Pain usually is a signal from your body that you are doing something it considers harmful. For non-physical harm, you have a gratification/punishment center in your brain giving you good/bad feelings. In a robot, there would have to be a module modeling that, effectively telling a robot whether something is right or wrong. I suppose "wrong" would be signified by a negative voltage.
 
@R.MartinhoFernandes some times, I think dyslexia is a super power, as it lets me read things with mistake like that
 
sbi
@R.MartinhoFernandes Well, it did say "fice" first, so this is an improvement.
 
8:08 AM
@sbi ¬_¬ you have very strange logic....
 
sbi
@thecoshman What are you smoking, man? All I gave you was plain facts, no logic involved.
 
@sbi empathy
 
sbi
@thecoshman How does one smoke empathy?
 
sbi
This robot needs a general refurbish. Now he's at the point where he can't even write "bananas" without having to edit the message afterwards.
 
8:13 AM
 
@sbi his reasoning for saying 'ow' is empathy, or the illusion of, in order to make people feel more comfortable with his presence
 
ugh, need more coffee
 
sbi
@thecoshman Empathy is the ability to put yourself into someone else's position, and see, hear or feel what they do. So when someone says "ow" out of empathy, they're feeling someone else's pain.
 
enough of this
wait a cotton picking second... have you got your self that pastry yet?
 
sbi
@thecoshman I just had a splendid breakfast with the kids.
 
8:33 AM
hey hey all :)
 

« first day (646 days earlier)      last day (4303 days later) »