« first day (1822 days earlier)      last day (3131 days later) » 

3:00 PM
-1
Q: Is `strcmp(p, "\n")` UB?

gsamarasCheck the min ex: #include <stdio.h> #include <string.h> int main(void) { char newline = '\n'; char* p = &newline; if(strcmp(p, "\n") == 0) { printf("ok\n"); } else { printf("wrong\n"); } return 0; } Is it undefined behaviour? Or is it simply wrong (i.e...

apparently OP thinks the question is of poor quality, and would like everyone to delete their answers so that he can delete the question
I'm honestly surprised regarding the downvotes; the question is actually fine
 
Hes not the first one to want to delete his own question
but dont delete your answer
 
Two-two and a half more years and Skeet will hit 1M rep.
 
49
Q: What should I do when OP ask me to delete my answer

algui91Some time ago I answered a question. Today the OP asked me if I could please remove my answer so he could delete the question. I've read something similar here What to do when an OP asks to delete my code from my answer?. But in this case is not about modifying the code but completely remove the ...

 
@Borgleader all hail jon skeet
 
What day is it today?
 
3:05 PM
today
 
Is this real life?
 
Columbus Day
 
no it's just fanta sea
 
i love fanta
 
I hate orange fanta
so horrible the aftertaste that is
 
3:12 PM
Purple Fanta is nice
 
@AnalPhabet is it... fantastic?
 
Mountain Dew is nice.
 
@Borgleader No, but it gets close
Unfortunately only orange Fanta in PL
 
@JadenI just noticed how subtle the swastika is in your ~thing~
 
Croatia has it, though
starts plotting master smuggler plans
 
3:13 PM
"__attribute__((always_inline)) only applies to functions" I am pretty sure that's a function, XCode.
 
@thecoshman I can never remember which way the swastika arms go. At any rate, this graphic is autogenerated.
 
Oh, it agreed with me, 20 seconds later.
 
@Borgleader purple fanta is normally called fanta madness and tastes like grapes
and by "grapes" I mean the taste that the industry thinks is the standard for grapes
 
@Jaden I wouldn't be surprised if you actually hand crafted one for trolling. I think the arms point clock-wise...
 
I never ate grapes that taste like that
 
3:14 PM
I love purple Fanta, but my girlfriend hates it... So we compromised. We don't have purple Fanta anymore.
 
girl compromise
 
Dang. I'm stuck in a vim lecture at a lab without access to a sensibly configured vim because apparently my home internet died in a way that confused networkmamager (...it sometimes fails to reconnect to wifi or even see that network until you restart wifi. Don't ask. This obviously destroys all smart schemes with autossh :/).
 
@Mr.kbok where are the pictures of that girl jesus christ
 
Shoot the girl, devour purple fanta
 
mr kbok more like mr kockblock
 
3:15 PM
@thecoshman I don't think I do trolling. I try to be funny occasionally. And sometimes I'm an ass. (I don't like being an ass)
 
Hekler and Kok.
 
@AlexM. jesus isn't a girl
 
@Jaden 'sometimes'?
 
@AlexM. in my phone
 
Ironically the thing I ordered earlier today fixes my exact situation since it basically gives me access to my server from anywhere.
Eh.
 
3:16 PM
@Mr.kbok Or is it
 
@Griwes reasons to not use wifi ++
 
@ElimGarak I have a similar issue: my girlfriends drinks too much coke that I buy for myself. Solution: I must not buy coke anymore
 
...
 
@thecoshman want a mirror?
 
@Griwes host that stuff on github, that way you can read it without ever needing private details
 
3:17 PM
@Griwes reasons to not use networkmanager ++ cc @thecoshman
 
Heckler & C`ock GmbH (HK) (German pronunciation: [ˈhɛklɐʔʊntˈkɔx]) is a German defense manufacturing company that manufactures handguns, military rifles, submachine guns, and grenade launchers. The company is located in Oberndorf in the state of Baden-Württemberg, and also has subsidiaries in the United Kingdom, France and the United States. The Heckler & Koch Group comprises Heckler & Koch GmbH, Heckler & Koch Defense, NSAF Ltd., and Heckler & Koch France SAS. The company motto is "Keine Kompromisse!" (No Compromises!). HK provides firearms for many military and paramilitary units, like the Special...
 
@Jaden I am very funny, mow EAT SHIT AND DIE
 
@thecoshman but I hate cutting grass!
 
Although what you are saying is kinda sensible now that I also have a monitor attached to my laptop...
 
3:17 PM
@GregorMcGregor eh that's ancient
 
@thecoshman what stuff?
 
copyright is 70 years m8
 
lol
 
Also this system is so ancient its firefox cannot into snackchat
 
@Griwes configs for shit like vi or bash
 
3:18 PM
I just tried to drink from a bottle with the cap on
 
I have my vimrc on github.
But that doesn't help when your vim is 7.2
And I am not bored enough to sit here compiling sensible vim version.
 
@GregorMcGregor makes you feel smart doesn't it :\
 
A feeling you've never had, I bet
 
Or am I? Hmm.
 
@GregorMcGregor I ated the purple ones -_0
 
@R.MartinhoFernandes hey guy, do I have screens on the way?
 
@thecoshman ated?
 
user1804599
((lambda (a b c) (+ a b c)) 1 2 3)
(let ((a 1) (b 2) (c 3)) (+ a b c))
 
@Mr.kbok don't be so stupid, the past tense of eat, clearly.
 
user1804599
This is silly. let is longer than lambda application.
 
3:22 PM
> Visit the Faggotry Portal for complete coverage
 
> BestOfAsianData.cpp
lol
 
user1804599
Fuck Emacs Lisp.
 
look at this friggin asian data
 
@thecoshman Hopefully I'll wake up early enough tomorrow to have time to go to the post office.
 
@ElimGarak lol "examples of normal C code"
 
3:24 PM
@R.MartinhoFernandes cool beans
I checked by card, I have 1vga, 1hdmi, and 2dvi :\
 
@thecoshman ate?
 
I hope I don't have to by some adapters
@Mr.kbok no, ated :D
 
My process of playing games on the phone.
1) Install the game.
2) Start first level.
3) Delete the game.
 
home time bitches
 
also, levels are so 1985.
 
3:29 PM
@thecoshman that's been... 2 years off the top of my head
 
sh.exe": bitches: command not found

real 0m0.107s
user 0m0.000s
sys 0m0.077s
 
"Stray dog simulator" $1.24... And then a million shit games that have in-app purchases, including a CDPR game called "The Witcher: Battle Arena"
 
there are lots of simulators like stray dog same game reskinned
stray cat, whale, shark etc.
except cats cannot be stray
cats can only be independent as fuck
 
@AlexM. phone games?
 
3:40 PM
Finished my Linear Algebra Triterm.
 
@ThePhD \o/
 
It's not a Midterm, because there's 2 midterms, and a final.
Which is fucking bananas.
I ran out of time before I could finish the last problem, but I aced all the rest.
I need to practice more so my execution is quicker.
 
@ThePhD Do you like fucking bananas? :o
 
Tomorrow is my C++ Final. Going to laugh myself all the way through that one.
 
@ThePhD It might actually be more beneficial, learning wise
 
3:41 PM
@Morwenn No, I don't. But I like banana strawberry kiwi smoothies.
 
Make Tin Pans?
Mock Titty Parade?
 
Microsoft Teen Programme?
 
My Tony Pony
 
My Tiny Penis?
 
3:43 PM
@TonyTheLion I love how « backwards compatibility » links to Buttseks.
 
His Tiny Penis?
 
Media Transfer Protocol
 
weirdo
nerd
let me guess, you're a computer hacker
 
i am the hackest of all
 
mess with the best, die with the rest
 
3:45 PM
There are 2GB in this card, but this shit reports 80 GB used...
 
@R.MartinhoFernandes Sounds like really good compression.
 
@R.MartinhoFernandes Is it a Tardis Card?
 
> Visual C++ - Just like many other failed attempts to revive all of the ghey languages of programming, Microhard had to remake the language to make it barely readable and completely long for infinite developmentz and for programming companies to go bankrupt. Nothing is more special then making the code propitiatory and non ascii so it never compiles.
Wat?
 
@Borgleader lol
 
3:46 PM
dramatic encyclopedia right
 
yup
 
@ElimGarak I stopped at ghey, obvious and terrible troll detected.
 
(Enc. dramatica, tho)
 
Xeo
@Borgleader It's ED, so eh
 
terrible i said
 
3:47 PM
FFS for decades I have tried to get the ASCII OUT of software.
 
"Contains 0 files, 0 folders" opens folder 61 items
 
NSFW ... Pretty balsac though
 
.... Erm.
Would you...
 
Xeo
1 message moved to bin
 
Oh, shit.
 
3:48 PM
Like to bin that?
 
what does this represent
 
I didn't even see that.
 
Xeo
aww, little too late.
 
is it a giraffe
 
Didn't notice at first, ewwww
 
3:48 PM
Oh, fuck, sorry.
 
v0v
 
/facepalm
 
WHAT WAS IT
 
NOTHING.
 
a penis
 
3:49 PM
@R.MartinhoFernandes NTFS, (Never The Files Seen)
 
I had to actually move away from the display to see it.
 
@TonyTheLion ah ok
 
@AnalPhabet not much ewww there. Just butthole. Likely a reference to a .cx site yeah. /cc @ElimGarak subtitling service
 
@TonyTheLion No.
It was ASCII goatse
 
@ThePhD I hope you werent like.. in front of the class when you saw this :)
 
3:49 PM
I think it was an anus or something?
 
I thought it was normal C code?
 
goatse.cx (/ˈɡoʊtsiː dɒt ˌsiː ˈɛks/ GOAT-see-dot-see-EKS or /ˈɡoʊt.sɛks/; "goat sex"), often referred to simply as "Goatse", was originally an Internet shock site. Its front page featured a picture, entitled hello.jpg, showing a naked man stretching his anus with both hands, to approximately the width of his fist. The inside of his rectum is also clearly visible. Below his anus, his erect penis and scrotum are visible, as well as a golden wedding ring on the ring finger of his left hand. This site became a notorious surprise image and Internet meme, and was—and, through external mirror sites, still...
 
@Borgleader I already went home.
 
I could forgive it if it was a UTF-16 asshole.
 
3:50 PM
So there's only me to scar.
 
@R.MartinhoFernandes oh
you're right
thats what it was
 
@R.MartinhoFernandes i forgot that was a thing until i saw Garak's image.
 
@Borgleader Just when you think you're free.... zap.
 
3:53 PM
"was originally"? Is it still a thing?
 
internet shock is a fallacy
 
s/fallacy/fallus
 
> As of January 2014, goatse.cx has been preparing to launch its own cryptocurrency, the "Goatse Coin"
butts
 
jeebus wth
 
It's almost January 2016 :D
Oh, that reminds me... LESS THAN A MONTH UNTIL FALLOUT 4. Can't wait to be disappointed.
 
3:58 PM
Didnt enjoy Fallout 3 =/
 
Fallout 4 brings hope of a spin off where Obsidian will takes us on a journey to the Boneyard (LA ruins) in 2 years time. Fallout: New Angeles
 
so I'm not the only one who's interested in the spin off more than in the game :A
the LA Boneyard was great, especially once you started the city-wide combat
 
I don't know, Bethesda has been riding their Morrowind glory for a decade now and it is starting to wear thin.
 
with the regulators if I remember correctly
something about some guy and his son
it's been a while
 
I seem to be ending up with a lot of stubs like this:

procedure TjobVerify.sendFailedResponse;
begin
// override only if required...
end;

This is because, although I need the base class for overall polymorphism, some descendants use shit , some descendants use crap and some use both shit and crap. I don't want either shit or crap in the base class, so I end up with dozens of stubs. Should I

a) Continue as-is and document it
b) Refactor/redesign the whole group of projects
c) Commit suicide
 
4:03 PM
Need For Speed on mobile depletes your fuel after each race and you can buy fuel for real money or wait until it refills behind a timer. lol
 
Oh - I forgot 'get slaughtered and deal with it tomorrow'
 
@MartinJames D) switch to a language that supports generic programming to at least a limited degree, so shit and crap can be parameterised.
 
have you tried applying composition
 
I'm gonna try applying vodka.
 
TJobVerify.behaviorThatIsExpectedToChangeInChildren (I don't speak Delphi sorry)
this being a member
 
4:05 PM
@MartinJames How many decades have you walked on this planet? :D
 
then every child is responsible for choosing the behavior somehow and you won't stub it like crazy in TJobVerify
 
@ElimGarak about 6
 
if a child decides to use shit it will be because new Child(encapsulatedShit)
 
Nice
 
or even better, you let the behavior drive TJobVerify completely and get rid of inheritance altogether :A
 
Xeo
4:07 PM
home time!
 
Hmm.. OK, where's the fucking vodka..
 
good luck m8
 
Modules == Star Citizen
 
rebbecca.blackfriday
 
Xeo
4:08 PM
@ElimGarak Nah, Modules don't eat millions of dollars.
 
@ElimGarak Without the suckers giving money.
 
Pledge $15,000 for exclusive access to the stdlib.
 
is there a boost.range adapter for take? The sliced adapter seems to want random access iterators
 
IME Boost.Range is extremely underfeatured.
 
Xeo
^
 
4:09 PM
@ElimGarak lol modules becoming a preorder bonus for msvc once introduced by the standard
 
As in, fuck Boost.Range, I can do the trivial stuff myself.
 
is writing a take adapter trivial?
I don't feel like messing with iterators and shit
 
Depending on where you get MSVC, you get different exclusive preorder bonuses. Lambdas and functional come with CompilerStop.
 
one interesting thing I heard about VS2015 is that C++ toolchain and libs are no longer installed by default
 
@AndyProwl Actually yes. Boost.Range doesn't even cover all the trivial stuff.
 
4:12 PM
Yeah, you kinda have to tick them in the options of the installer.
 
the docs don't seem to make it so simple
 
Is this Documentation thing useful for us? Arguably, we already have cppreference.
 
@fredoverflow nice, he's using a SFP3 to present
 
but maybe it's just me
as someone who doesn't know the lib very well I wouldn't know where to start
 
also ha ha good luck modules maybe in C++23
you know how far is C++23 from today
it's about 7-8 years
 
4:14 PM
there will be an experimental implementation in VS2015 Update 1
 
We seem to have misplaced @EtiennedeMartel somewhere
 
by then we'll kill ourselves in a nuclear war
so you might as well go home
 
@AndyProwl It's the usual sentinel stuff.
 
not enough info :(
 
Check out istream_iterator.
Similar style.
 
4:15 PM
also, isn't sentinel-based design for the Range proposal? Boost.Range does not adopt that, or does it?
 
@BartekBanachewicz Is that hardware or software?
 
@fredoverflow software
 
ok so there's no adapter in boost.range for take
 
SP3 is the Surface Pro 3, probably the source of confusion
 
> when we finally have fast module based compilation i will dip bjarne's bald head in oil and rub it all over my body
4
 
4:16 PM
@AndyProwl actually my company is moving us to the VS2015
also guys
 
I hope mine did
 
@AndyProwl You can still make stuff with sentinels. It's just horrible.
 
can you tell me why a codebase compiled under 4.9, but not 5.2?
 
@TonyTheLion Who said that? :)
 
@fredoverflow in the comments to that video
 
4:17 PM
Our build guys tried 5.2 and apparently they had some problems /cc @AndyProwl
 
@R.MartinhoFernandes I dunno, I could play around with it but I'm not confident enough to suggest others to use the result
iterators, boost.iterator, boost.range, not familiar with that
 
Boost.Iterator is also only trivial stuff.
 
@BartekBanachewicz what's 5.2?
 
Nothing that really helps.
 
@BartekBanachewicz Well, regressions? Or linker problems due to the ABI change?
 
4:17 PM
@AndyProwl G++
 
Looks good in demos, but that's it.
 
we don't g++
 
@Morwenn were there abi changes between 4.9 and 5.2?
 
@BartekBanachewicz what were the issues with gcc 5.2 ?
 
4:18 PM
@Walter "some issues"
 
@Walter I agree
 
@BartekBanachewicz Yes, for std::list and std::string.
 
@BartekBanachewicz yes, there have been ABI changes ... horrible, but one can force the old ABI
 
didn't ask them, my Team Lead just told me they rolled back to 4.9
 
And I guess there will be another ABI change for 6.0 because of std::thread.
 
4:18 PM
but we are planning to solve the issues and hop on 5.2 anyway
:toot toot:
 
well, I'll have to read the docs and write my own take I guess
 
And you know what's the best part?
 
> formal parameter with requested alignment of 8 won't be aligned
 
it's mostly because of my team, because we deal with Node.JS, and node's native API became C++11 only in version 2 :3
 
Daily dosage of MSVC-induced rage.
 
4:19 PM
so we had to upgrade both visual studio and G++
 
@BartekBanachewicz see here
 
@Walter oh cool. I'll pass it to the guys responsible for the build, thank you!
 
@BartekBanachewicz this one is only an issue, if you use a library compiled with the old ABI, and the interface contains std::string (and/or istringstream and ostringstream)
 
Haha, another instance of "compiles with libc++, misses #include with VS"
 
4:23 PM
@ElimGarak FUCK MSVC AND FUCK THAT GUY
 
23 reputation
 
@ElimGarak Two questions: one about C# and the other about GCC.
 
If you love something, let it go.
 
@Walter Downvote all his questions and answers!
 
4:26 PM
@R.MartinhoFernandes you might be violating the rules of SO with this message.
 
yawn
time to go home
 
@R.MartinhoFernandes Wait, no. Nevermind.
 
oh, that works great!!!!!! Thank you mate! you have been very nice to me...really thank you :) — Lory Lory 16 secs ago
yeah, time to call it a day :3
 
2 days ago, by underscore
you should change the rules
 
@fredoverflow I don't see how it's related.
 
4:29 PM
@sehe lol, I'll hit 100 soon :D
lol, 82/102
 
ok boost.range docs suck
I'm doomed
 
Boost docs suck in general
 
fuck this stuff for geniuses
 
@fredoverflow why?
 
@AndyProwl Boost.Range does almost nothing.
 
4:31 PM
Where the fuck does holder2 even come from, sigh
 
@AndyProwl overly-modest-andy strikes again
 
@Abyx So, what, you snitchin' or something? :P
 
> The holder combines multiple parameters into one that can be passed as the right operand of operator|().
 
@R.MartinhoFernandes yeah, I figured, but I'd be ok if it were actually easy to extend - and by easy I mean "easy for someone mortal like me"
 
Beer time. Bye.
 
4:32 PM
lololol detail namespace.
 
@BartekBanachewicz what is boost::range_detail::holder2
that types comes out of nowhere in the docs
I have no idea what it does
 
@AndyProwl meaby because it's detail?
 
same for forwarder2
 
BTW suck for not using boost::range::detail
 
@ElimGarak yes, I was considering flagging that and then calling mods when my flag would be invalidated
 
4:32 PM
learn composition fuckers.
 
@BartekBanachewicz yeah but these are the official docs on how to extend the library
 
and what, you're telling me they shouldn't suck?
 
It's a holder for two args and a forwarder for two args.
 
@BartekBanachewicz yes
 
Anyway this won't help you in the least.
It only latches on the fancy syntax.
 
either leave it undocumented or write decent documentation
 
Which is what Boost.Range is all about, not actually dealing with ranges.
 
@BartekBanachewicz I wasn't thinking that at all but ok
 
anyway
        template< class T >
        struct holder
        {
            T val;
            holder( T t ) : val(t)
            { }
        };

newtype Holder a = Holder a
 
Writing the range will still be painful.
 
4:34 PM
guess which language sucks and which doesn't.
 
No one cares.
 
nananna
I'm repcapped I can say things and they are automatically wise today
 
Stop trying to turn everything into language wars.
6
 
it's not like im trying too hard
 
Ell
okay haskell assignment submitted
 
4:37 PM
funny thing is I'm doing this as part of a presentation where I want to show colleagues what you can do in haskell and how to approximate it in c++
 
@Walter Because hating MSVC should not be against the rules.
 
so it's not like I don't agree that haskell solves this problem more elegantly
it's more like, pointing it out is not going to help me
 
@BartekBanachewicz If Haskell is so wonderful, how come everyone uses Java?
;)
 
inb4 people are dumb
 
user1804599
Yay, another question with so many wrong answers that I had to downvote all of them.
 
user1804599
4:41 PM
This one from 2009.
 
user1804599
So so so so bad.
 
@elyse link it so we can downvote them too
 
user1804599
167
Q: What is the difference between statically typed and dynamically typed languages?

RachelI hear a lot that new programming languages are dynamically typed but what does it actually mean when we say a language is dynamically typed vs. statically typed?

 
@R.MartinhoFernandes
 
Ell
my house is on fire
I'm kidding that's not mine :V
 
4:47 PM
OK, I'm down to only 9 unwanted stubs, gotta be worth another large vodka. At least I have fast, module-based compilation now, (and have had for decades), so I won't need any oil.
 
Modules are weird.
Every single STL I've seen is rigged out with more macros than I can shake a stick at.
Do they expect the STL to be module-ized?
 
One of the principles is "do not rewrite the world's code", so modules will basically just hide the header crap in their bowels.
But then again, I intend to be playing Star Citizen on the day modules become a thing.
 
*a++ = func(*a);
undefined or unspecified? (a is char*)
from: http://stackoverflow.com/a/33086094/1013719
 
Someone introduce this man to sequencing. but the simple answer is: retarded.
 
I don't know why people bother. I file it as wrong and call it a day.
 
user1804599
4:58 PM
@RyanHaining ask @fredoverflow, he usually knows this sort of stuff. :P
 
for the love of the sport
 

« first day (1822 days earlier)      last day (3131 days later) »