« first day (1335 days earlier)      last day (3629 days later) » 

11:00 AM
 
@LightnessRacesinOrbit it's a shit web based tool and browsers by default use 8 spaces per tab so it causes massive whitespace issues
 
now though I need to implement actually catching/destroying stuff in Wide.
 
/paɪko/ or /piko/?
 
Jzon is a JSON parser for C++ with focus on a nice and easy to use interface.

No dependencies, except the standard library.
0 examples
why do people do this :(
 
@Rapptz wat
 
Oh I found this on github
aw they use tabs
So I can't paste it in here
Another reason tabs suck
	Jzon::Node *node = NULL;
	switch (reader.DetermineType())
	{
	case Jzon::Node::T_ARRAY:
		node = new Jzon::Array;
		break;
	case Jzon::Node::T_OBJECT:
		node = new Jzon::Object;
		break;
	case Jzon::Node::T_VALUE:
		node = new Jzon::Value;
		break;
	default:
		std::cerr << "Sanity check fail" << std::endl;
		return 1;
	}
:v it's awful
 
Way, that's the user-facing API?
I thought it was the implementation.
That's just ridiculous.
 
this is the only file I really have to go by
 
Xeo
"test.cpp" seems like... internals
 
indeed
maybe they should add some examples
 
11:06 AM
@Mgetz Your code review tool is ... web-based? And it doesn't re-render tabs? Blimey...
 
Xeo
y no s/Add/insert/ :(
 
Rendering code on the web is the only problem with tab indentation and I acknowledge that it is a problem
 
Xeo
or push_back.
like, a normal stdlib-like interface
 
I just think it's not enough to override the other factors
This is much like the "omg u must write char *foo cos otherwise u will write char* foo, bar and get it wrong lol" nonsense
 
Xeo
And they have their own filewriters? Seems meh
 
11:07 AM
in that that is hardly the most important consideration
 
@LightnessRacesinOrbit No, the other problem is "people". Fuck people, they'll screw anything up
 
These people should be kept away from library design.
 
@LightnessRacesinOrbit it's Trac... what do you expect?
 
everytime I look for JSON parsers in C++ I die a little inside
but I do it anyway
 
@Rapptz which is why I settled for the one that has a reasonable external api, and is easy to build, and then chose not to look inside the implementation. :p
 
11:09 AM
github.com/holmescn/json-parser this one is literally just a parser heh
 
next Lounge project: JSON parser.
 
@LightnessRacesinOrbit that shit is pedantic, although it is nice when all the code looks the same there is less "Oh foo coded this, it's going to be shit" assumptions that get thrown around
 
Xeo
> This is a JSON parser which is written by C++11
 
When foo is a "senior dev" with connections, that's not always possible
 
Xeo
11:13 AM
I wanna meet that 'C++11' guy!
 
@Rapptz And the parser has no output whatsoever.
It really is nothing but the parser.
 
class Parser {
public:
    Parser();
    ~Parser();
    void parse(const std::string &json_str);
}
All of the public interface.
 
yeah essentially
 
(Also, ugh, dtors.)
 
11:14 AM
@Xeo the language is finally complex enough to gain sentience?
 
Xeo
@R.MartinhoFernandes It's empty! :D
 
@Xeo I want to meet his baby brother C++14
 
Xeo
json::Parser::~Parser() {
}
 
Who cares
It's a code review fail.
It's one of the strongest indicators that you really don't understand the language.
 
C++14 > C++11
 
11:15 AM
bah
come back when you can quote Itanium layour rules from memory.
 
@R.MartinhoFernandes what, writing destructors? Or writing empty ones?
 
@jalf Writing those empty ones.
 
oh right
 
@DeadMG you're about 10 years too late, nobody cares about Ia-64 anymore
 
@Mgetz The Itanium ABI is followed by basically everybody on every platform, except Microsoft.
 
Xeo
11:17 AM
@R.MartinhoFernandes It outputs to std::cout :D
 
@Xeo those annoy me
@Xeo lol
 
then you need type for json objects, json map/dictionary objects, json array objects
 
> amir-sabbaghi/libjson--
libjson++ is a lightweight, fast and easy to use json parser for c++.
 
Xeo
and it literally seems to parse a single value
 
is it libjson-- or libjson++ :v
 
11:19 AM
getInt, getDouble, getString
 
Xeo
Oh wait, there's some recursion going on
 
this looks ok
outside of this:
 
for (Json::ArrayIterator i = input["array"].arrayBegin(); i != input["array"].arrayEnd(); i ++)
 
for (Json::ArrayIterator i = input["array"].arrayBegin(); i != input["array"].arrayEnd(); i ++)
cout << (*i)->as<int>() << ',';
yeah...
 
WHY OH WHY
 
Xeo
11:20 AM
hahaha
 
I like the i ++
with the space in between
 
someone has taken space between operators to the extreme
 
@Rapptz for(auto const& o : as_array(input["array"])) std::cout << o << ",";
dat vispun
 
11:23 AM
@Rapptz i = i + + 1;
 
@Zeta OpenCL!
 
I have found another decent looking one at the first peek: github.com/pb82/Elson
I'm unsure why there needs to be an entire class for pretty printing
 
Because Enterprisey!
@Rapptz I love how he avoids the distinction between bool, int, null and string by simply not using those in the samples. Also, as<int> tells me everything is stringly types
 
I spent some time looking for sane parsers too, didn't really find anything better than picojson. But a surprising amount of complete garbage
 
searching for json libraries long ago is what made me open my eyes to the amount of garbage C++ libraries there are
 
11:26 AM
although why do you need a C++ json parser?
json seems to be more web related
 
not really
 
I wrote my own garbarge parser/generator. This means I can add type distinctions and hints as supported in Edm (OData/WCF/Restful services).
@chmod711telkitty lol. you don't seem very c++ related
 
well, I guess you can use json to replace xml
 
WTF
 
for layout purposes
 
11:27 AM
> for layout purposes
Nobody uses XML nor JSON "for layout purposes".
And XML is C++ related now?
 
don't do GUI much, do you?
 
I do. And, no, these don't replace XML with JSON for layout purposes.
You know what you said. I think I can guess what you meant, don't run away from it. You just made a mess.
 
window phone apps use similar concept
 
Wow. Now how does this come into your beautiful poem involving c++ likely using JSON to replace XML for layout purposes?
 
stackoverflow.com main site down?
 
11:33 AM
nope
 
works fine here
 
(I think it might have been sarcasm that interfered with her connection)
 
@jalf Parsec is great
 
also, if it can put an end to your pretending not to understand each others, there are UI layout languages based on either XML or JSON, neither are part of C++, and that is all, everyone lived happily ever after
 
11:35 AM
sigh, can not connect to the stackoverflow main site
 
Xaml is pretty ok alright
 
@BartekBanachewicz it's an uglier, more verbose (and less irrelevant) QML
 
You use QML?
 
To hell with QT
 
I always thought it was a niche thing
 
11:36 AM
> "We have invented happiness" - say the last men and blink
 
@R.MartinhoFernandes interesting
 
I have my own framework, with blackjack and hookers
 
@Rapptz no. But it's much nicer than XAML IMO
 
@chmod711telkitty they must have improved their banning approach
 
hey I am still here
 
11:37 AM
I want to add .RC support to it
 
@chmod711telkitty prove it :p
 
I don't like XAML at all but I've never used QML
seems cool I guess but they don't seem like the same thing
 
they are pretty much the same thing
 
@jalf don't make me post naked women ...
3
 
I would think Qt's .ui is the closest thing to XAML.
 
11:38 AM
declarative languages for describing UI and data binding to UI elements
 
Xeo
... Did you guys ever accidentally hit shift-S when you only meant to hit ctrl-S?
 
Just my firefox ... could connect on my windows phone
 
no
 
Xeo
and thus saved an extra 'S' that shouldn't be there?
 
@Rapptz XAML has its problems but it's still better than GDI
 
@LightnessRacesinOrbit now that's just linkbait....
 
Stackoverflow DDos attacked again?
 
@chmod711telkitty no
@jalf goddamn people!
@Mgetz oh don't get me wrong, I'm not saying people should write it however they want. There should be a consistent style. I'm just saying it should be my style, because the arguments for char * are wholly retarded. :)
 
@chmod711telkitty it's ok, I'll bin it.
 
binning naked women
 
11:42 AM
@LightnessRacesinOrbit spoken as a true senior dev
 
@Xeo No, because Shift-S basically deletes a line (but it's pretty unlikely to just quit without noticing since it leaves you in insert mode)
@LightnessRacesinOrbit I'm all for it
 
:(
I could log on using a different IP on tor
meanies :'(
 
@sehe it would be simpler if she didn't do it to begin with though. :p
 
But also more boring. I'd appreciate it if it were just naked, not beheaded
 
well, some of us are at work. Certain kinds of boredom are appreciated.
 
It's my fault. Everything is my fault. This is also why I always get tasked with solving all problems
 
~cries~ I am hellbanned on the Stackoverflow main site
5
 
@jalf You know, she would mark it with NSFW, as always!
 
wow, I feel like I've spent all day answering emails
 
11:46 AM
> This user has been suspended for 1 year 5 months for posting inappropriate content.
hahaha
 
except for a couple of hours spent trying to do a git merge
 
@chmod711telkitty No you are not. Hellbanned would imply you can't know
 
@LightnessRacesinOrbit declaration-reflects-use is the best argument I've heard
although that's significantly weaker in C++ than in C
 
user1804599
Woo; had a nice lunch outside.
 
Xeo
@sehe Hehe
 
@rightfold You graze?
 
I guess I'll say morning.
 
@ecatmur that's the argument for char*, not char *.
 
Xeo
@LightnessRacesinOrbit wat
 
11:50 AM
@LightnessRacesinOrbit I'm having trouble which repells me more, Portugal or England
 
@ecatmur How so?
 
user1804599
@sehe No.
 
user1804599
Baguette with rosbief, sla, komkommer en kruidenboter.
 
user1804599
En minisnacks.
 
11:51 AM
@LightnessRacesinOrbit you write *p, not * p.
 
@ecatmur Ah, right, that argument. Well, it's a different *!
 
@LightnessRacesinOrbit Veery environmentally friendly. Also:
> "Stick will become even simpler vehicle than once floppy"
 
p is-a pointer, with type char*, so write <type> <name> ffs!
 
It already is for years, fuckers
 
this whole "but you can read it as char *p declares a *p with type char" nonsense is most of the reason newbies don't "get" pointers and keep writing into nullspace
 
user1804599
11:53 AM
Who cares.
 
user1804599
Be consistent.
 
Xeo
@LightnessRacesinOrbit "that argument"? What other "declaration reflects usage" argument is there?
 
const T vs T const
 
Xeo
That has nothing to do with usage?
 
user1804599
11:56 AM
Who cares.
 
user1804599
Be consistent.
 
@LightnessRacesinOrbit Who is?
 
@R.MartinhoFernandes I was joking at Kitty
@Xeo None; I was mistakenly thinking of something else due to misinterpretation and bad memory.
So, I'm certainly glad we spent a fortune in personnel, equipment, lives and global respect in Iraq. Seems to have done the job. Sigh.
 
user image
9
 
12:06 PM
@chmod711telkitty try flushing your dns...
sigh
 
user1804599
@Jefffrey Nice.
 
people should be banned from using openmp until they understand loop interdepencies...
 
... Very funny now I can't even log on thru my pc any more
Freaking on my windows phone . .
 
you're being hacked
15 hours ago, by rightfold
"I was hacked" is this century's "a witch did it".
 
12:20 PM
Reminds me of matrix.
 
> shadow naked woman
 
Said I was going to post one so I need to find one on the internet
Post a naked woman without getting banned - its called skills :p
Not hacked coz can not log in on my mac either ...
 
user1804599
Yum. Ice cream.
 
fuck I hate clearcase
 
@chmod711telkitty that is some awesome logic you're applying there. Maybe you should try your luck in the PHP room, they're more used to this level of analytic approach
 
user1804599
12:28 PM
@thecoshman Leave Ericsson.
 
@rightfold almost an anagram, but not quite
 
@sehe ... Leave Erics son
 
lol (deleted post, need 20k, suckers!):
 
I am very good anagram
 
trying to fix errors in our installer is a vicious cycle. In trying to fix it, I have to learn more about wix, and the more I learn about wix, the more errors I see in our installer
@rubenvb lol
 
12:34 PM
Seriously ... Why?
 
@jalf so it's a catalyst for improvement!
 
not for me. I don't feel that understanding more of wix makes me a better person at all :(
but for our installer, yes, absolutely
 
I didn't mean personal improvement
 
I know
 
Hey, FF started blocking Flash execution. Or I told it to. Handy.
 
12:36 PM
ah, you just improved your meanness :)
 
I thought I'd perfected that a while ago :p
 
@sehe or fuel for a new a job :P
 
:'c
Anyways ... Afk ...
 
ಠ_ಠ why did I say yes to merging this shit
 
0
Q: Do I need to be a genius to succeed in this field?

user46104I could not draw in high school only stick figures I have adhd but I thought some people with adhd/autism in this field are making inventions Do I have to be like michael angelo who could remember his dreams and drawed perfectly or is that someone else.Do I need to be able to read very fast like ...

wut
 
12:42 PM
> Do I have to be like michael angelo
 
and people are taking it seriously
 
Maybe stackoverflow server is hacked?
 
Wy does strike through not work on Stackoverflow proper?
 
@AlexM. typical GD.SE community member
 
Xeo
@rubenvb reasons
 
12:48 PM
> In this time and age, an Instagram unfollow is worth more than a thousand words
seriously.
need 6 more rep to 12k
maybe I should ask a question
 
0
Q: Why does striking through not work as in chat?

rubenvbIn (StackOverflow) chat, when I type ---something--- It gets struck through. When I do the same on any SE site, it is not. What I need to do is the terrible <s>something</s> and then it is struck through. Why does the triple dash not work everywhere? It's much more "Markdown"-y than the ...

 
oh yes , i forgot it , tuple can not be empty.is there any equivelant type? for clarify , i mean it has value or not? — Benyamin Jane 5 mins ago
 
Note how I went to the proper Meta so I can farm rep :-D
 
@sehe what should I use instead? :|
"possibly-empty"? "emptyable"?
 
Heh, that was surprisingly easy and only a little different from my original method, thanks! (~3 minutes left to accept - stackoverflow underestimates its users) — Deji 1 min ago
teehee
 
1:01 PM
0
A: Why does striking through not work as in chat?

ChrisFI would guess that it's not been done because the benefit gained is not worth the implementation cost. If you could come up with a compelling reason why the "Markdown-y" method of three dashes is superior to the "HTML-y" <s></s> then the team might consider it. Given that it's not part of the M...

What? Developers have work to do?
Huh?
 
 
could I "define" nullable in scope of my answer...
 
I thought they were all just lazy bums with nothing better to do :-P
/sarcasm
 
too beautiful
 
I mean
> It's not a nullable by itself, i.e. has no "empty" or "zero" state
I thought it's enough :/
and now you got me puzzled.
 
1:03 PM
@BartekBanachewicz nah. just say optional! And nothing instead of null :)
 
> BREAKING NEWS:Uefa president Michel Platini says of Fifa counterpart Sepp Blatter: "I am supporting him no longer, it's finished."
 
@sehe there
I wonder if I should add a paragraph about nullability of pointers.
I mention value_ptr without any reasoning. :S
 
> Looks like www.banachewicz.pl has expired!
 
9
Q: How is the fluoride in toothpaste absorbed?

dotancohenHow is the fluoride in toothpaste absorbed by our body? Does the tooth absorb the molecule directly, or is it absorbed by the mouth? The answers to this question suggest that some materials can be absorbed by the mouth, but fluoride is absent. Additionally, many municipalities add fluoride to ta...

That's actually quite interesting
 
@Jefffrey waht
@Jefffrey oh fuck that's just my redirect
 
user1804599
1:16 PM
@sehe Is that phpMyAdmin?
 
@Jefffrey should be up soon again
aaaand jefffrey closes the question :P
I was preparing to add theoretical explanation to it :/
 
wat
what question?
 
hmmmm should I make tonytrysendmespamandsee@<provider>.com email?
 
lol?
 
why not
what could possibly go wrong motherfucker
 
1:24 PM
fuck shit making type passwords instead of being able to copy paste
 
find new provider
 
user1804599
@TonyTheLion tonysenpai@tony.sexy
 
Xeo
nonono
...@tony.moe
 
@tonyisabeast.com
heh
 
@Jefffrey the tuple one
 
1:27 PM
I made the password suckmydick
 
user1804599
Passwords cannot suck dicks, you moron.
 
they can suck it if I can't copy & paste the damn thing
@rightfold lol
 
@BartekBanachewicz link?
 
> 26 mins ago
I was like the second to cast the vote.
wait, you already answered
what's the problem?
 
1:32 PM
@Jefffrey dunno, I kind of lost interest in improving that answer now.
closed questions make poor vote-baits :)
ahaha lol
> I'm closing your question, mate. — Bartek, a while ago
You cant do this to me. — Clay 42 secs ago
 
@rightfold shame on you for recognizing that
 
@BartekBanachewicz I flagged your comment.
 
user1804599
lol MySQL
 
@DeadMG what
 
Bartek you scumbag, giving vampires help just encourages them to suck again. — DeadMG 5 mins ago
 
1:44 PM
@DeadMG if it helps, I just flagged that one
Grow up
 
as you wish
 
SO does plenty to tell people to fuck off already. But I'm pretty sure that it is not yet a crime to help people who ask questions
 
depends on what question and how it's asked.
 
SO is not "help at all costs", and sometimes answering something is actively harmful not just to the community at large, but to the individual as well.
 
1:45 PM
@LightnessRacesinOrbit I disagree
 
@jalf I'm very sorry to hear that.
 
@DeadMG welp
 
@LightnessRacesinOrbit I bet
 
May I refer you to almost every thread on meta from the past two months, and a nice book on common sense.
 
1:46 PM
@LightnessRacesinOrbit May I refer you to the fact that that is fucking meta?
 
@jalf Oh yes screw the community opinion and what the community at large decides SO is.
 
And that the best thing you can do for SO is to do the exact opposite of whatever the consensus on meta is
 
Stackoverflow changed log in method
 
Okay then, you know best, carry on
puh-lonk
 
@LightnessRacesinOrbit No, screw the meta community, because it is not the SO community
If anyone seriously thinks that meta accurately reflects the SO community, they really need their head examined.
 
1:48 PM
> This is honestly the first time I've asked for a straight up answer. Im desperate, so nervous for my exam tomorrow. And trust me, I tried my hardest to understand this myself!
 
@LightnessRacesinOrbit Heh, beautiful irony. I just unplonked you earlier today, after having had you plonked for 6 months or so at least
 
whenever meta is mentioned, I think of trolls ... this is not right ...
meta - trolls
 
meta = trolls
 
@Jefffrey sure, I'm not arguing that he deserves help. But I am saying that if anyone chooses to help him, that is their choice, and it is their own time they spend on it. And telling people not to help where they'd personally be willing to do so is beyond fucked up.
 
1:50 PM
"got exam so u need to change SO's purpose, just for me!"
 
whenever you type the same thing & hit enter twice , only one would appear
 
> I belong to a newly setup college, and have teachers who are not so talented. I personally have spotted them making mistakes many times. This is because they themselves have false knowledge. Hence I teach programming and networking to myself. As I cannot rely on them.
 
@Jefffrey Fairly reasonable I'd say
As long as he keeps his mind open to learning things from those people
... even if it's just learning what not to do, sometimes ;)
LUNCHTIME #yay
 
I typed 'this' and hit enter twice, only one 'this' appeared
 
user1804599
@Jefffrey maybe ask the question a week earlier.
 
1:53 PM
> When the main function returns, all of the local variables (stack vars) are garbage collected. Any int, char or whatever is no more.
lol wat
 
@Jefffrey fair enough
@Jefffrey where
 
0
A: Does return 0 by int main() in C/C++, on any OS, clears off all the resources used by the program in any(RAM, cache or any...) memory?

Elias Van OotegemWhen the main function returns, all of the local variables (stack vars) are garbage collected. Any int, char or whatever is no more. Heap memory is a tad more complicated, but basically: 99% of the time, any heap memory claimed by your program (malloc & co) will be made available to the OS after ...

 
@rightfold Well, this is it.
it's the day before his exam and he can't answer a basic question on it.
are we really helping this guy by answering it for him?
he probably ought to fail his exam or figure out how to find the answer himself.
 
@DeadMG yeah, he will fail it if he didn't even understand the question
it was pretty damn basic, really.
 
user1804599
Low-level crap anyway meh.
 
1:56 PM
> If he asks for a refund the school will probably return 0.
 
@DeadMG are we helping him by not answering it? Honestly, if he's lazy or stupid he'll fail anyway. I just object to the culture that people have to ask for permission to help. If I want to leave a helpful comment or answer, then I'm going to do that, and I think it is a pretty essential part of SO that anyone can do that at any time, and is never discouraged from doing so
 
@StackedCrooked yeah that cracked me up
 
It might return 1 to mock him.
 
I don't give a shit about whether it helps that particular person. Like you say, it's not really going to make a difference for him anyway
 
Also FWIW I didn't give him the answer at once
but after he asked for it directly he was lost, yeah.
 
1:58 PM
but SO is based on volunteer effort. And you don't get that if you tell people not to volunteer. So IMO, it's a pretty good golden rule that "if you want to help, go ahead and help".
 
@jalf Yes, it's not going to make a difference for him. But who it is going to make a difference for is us. If we give these people what they want, they will come back again. And the others like them will notice and also come here in similar circumstances, when they should be learning to help themselves. I think it not only doesn't actually help, but degrades the community and encourages similar bad behaviour.
 

« first day (1335 days earlier)      last day (3629 days later) »