« first day (1500 days earlier)      last day (3450 days later) » 

2:00 PM
on a side note: I hate OpenSSL, you'd think clarity of pointer ownership would be something you'd call out clearly... but NOOOPE
 
note that the pic above is a bit inaccurate
it's 3 years old, I'm a lot fatter now
 
@rightføld oh, my
 
@AlexM. fat enough for us to point and laugh?
 
not yet
 
no.
 
2:01 PM
lol forgot Puppy is also fat
 
look I'm trying to get slimmer ok
I'm eating smaller chocolates and drinking smaller sodas
 
I bet @Puppy expresses that he actually wants to be an American Citizen by being fat.
 
@Mgetz If only there was some language you could use that had a proper language feature to handle it...
 
it's some progress
 
@AlexM. lol
 
2:01 PM
@BartekBanachewicz dafuq are you smokin
 
@BartekBanachewicz really?
 
I also ate 3 times the whole weekend
vs 8 times
 
@Puppy I have RAII wrappers, the issue is a possible double free as a result
 
@Puppy hi hi hi
 
there's only one thing worse than benefit scroungers and that's FAT benefit scroungers. quit buying chocolate with my tax pounds, scum!
 
2:02 PM
@LightnessRacesinOrbit he has a job now
well had last time I checked
 
@BartekBanachewicz I didn't say I was talking about Puppy
you RACIST
 
@LightnessRacesinOrbit booleans are not hard
 
wait I how
@LightnessRacesinOrbit lel
 
@LightnessRacesinOrbit speciesist
 
@LightnessRacesinOrbit are discriminating against fat people on benefits?
 
2:04 PM
@TonyTheLion YES
 
naughty naughty
 
fat people have rights too
 
they should be able to survive on some of their fucking blubber before resorting to taking my money for food
 
my smoking hot question got an upvote
someone understands me :'(
 
@AlexM. yw
btw dude that was ages ago
 
2:05 PM
I didn't check it until now thx
 
@Jefffrey I agree
 
area51 is served from 5400rpm hdds apparently
 
fat people have the right to get the fuck off my money
DISCLAIMER I'M JOKING
 
Sorry, do not understand your comments. — user3607673 33 secs ago
lol
 
fuck public transcripts
 
2:05 PM
oh the taxman sent me this breakdown of how they spent my taxes
 
I dont understand what you mean. — LoveMeow 53 secs ago
it's going around today
 
@TonyTheLion about damn time, I'm still waiting for a receipt so I can see how many 10k toilet seats they bought
 
Largest sums went to Welfare and Health, apparently
 
largest sums went to Puppy
 
probably
 
2:07 PM
also Kate Middleton
 
@LightnessRacesinOrbit Upvoted to counter the future downvotes that counter the original upvote.
 
@Jefffrey snicker
 
@TonyTheLion predictably the numbers have been fiddled to make Welfare spending look larger than it is
 
@Jefffrey Same thing
 
23 mins ago, by Jefffrey
Of course it depends on what pJob is and what language we are talking about.
 
2:08 PM
y'know this taxman guy sure is busy
@CatPlusPlus no it's not. it's polar opposite
 
blah blah blah
 
> I wouldn't be opposed to an SE about, say, Scientology, or some weird cult I'd never heard of, as long as it was clear that the bulk of the people involved with it sincerely believed in it.
 
world is a terrible place when you interact with humans.
 
what would you interact with if there was no humans?
 
2:10 PM
cats
dogs
SHEEPLE
 
robots, duh
 
oh robots
 
Ell
Also puppy may not have paid back the amount he took
Anyway I thought lightness was for welfare state?
 
@BartekBanachewicz s/humans/other selfs from previous or future reincarnations/
 
Ell
I am confused about your views lightness
 
2:10 PM
if all other humans in the world suddenly vanished, once I'd stockpiled sufficient fuel, food and water, I'd get to work hacking AI players into Halo 4
 
furniture is... cheap?
 
Ell
Oh well
 
this is the first time I considered buying furniture
and the prices are lower than I expected O_o
 
@Ell You're making the mistake of taking anything anyone ever says in this room seriously. Again.
 
No furniture is only for rich people
Everyone else just sits on the floor and eats from paper plates
 
Ell
2:11 PM
People are serious in here lots :3
2
 
But on this specific point, yes a welfare state is pretty much necessary, so I'm "for" it. Doesn't mean I have to be happy about being raped up the arse by the taxman for the benefit of fatsos
@Ell hahahaha what!?!
@Jefffrey :D
 
I'd like to build a real inserter
 
user1804599
Apply for a job at FANUC.
 
@BartekBanachewicz Here, have some inspiration.
 
user1804599
dat job
 
2:15 PM
Hm NLua sounds cool
like a proper alternative for PS
 
CYUMAP
 
@Jefffrey do they also allow you to work remotely?
 
What's this, a critical piece of the project has been broken since September and nobody noticed? And it's causing problems? And it's impossible to fix without rebuilding shitload of things?
 
Yea, it dint strike me, I guess I need to take a break from programming for sometime,I'm not seeing the obvious :) thank you — LoveMeow 1 min ago
 
2:16 PM
What's this, a bottle of vodka?
 
a few weeks ^? maybe a couple of years
 
lol
 
Fuck this everything
 
> Of course this wouldn't happen in America! There are no fucking jobs left in America, they've all moved to China, the new yellow peril.
lol wtf
 
I wanted this project to be decent
rip
 
2:17 PM
4 hours ago, by Xeo
aaah, I want it to be 7h later now
 
I don't want it to be 7h later
 
Me neither
I want it to be 7h earlier
 
I want it to be 100 years later so that nobody remembers about this project anymore
 
what project
no project lasts 100 years
 
Exactly
 
2:19 PM
I mean, no project lasts even close to 100 years.
 
Precisely
 
poor cat
 
lol
 
This versioning system I wrote is shit, Django ORM is shit, relational database doesn't fit this project at all, everything is shit
 
I've destroyed 3 biter bases yesterday.
Using electric poles and laser turrets.
It was p exciting.
 
2:25 PM
Bite my shiny metal steam engine
 
Xeo
1.5h till hometime...
 
steam engines are so November 23rd 2014.
 
i prefer solar panels
 
I think solar panels suck
 
2:26 PM
if you have space they are the best
they don't attract biters for 1 thing
and they generate infinite energy without fuel.
and they are good for the environment
 
It's not infinite
 
until the sun explodes
 
Indefinitely != infinite
You can still overdraw them
 
thanks prof
@CatPlusPlus how is that a problem?
 
no really I'd like to have this automation for windows thing
to automate things
 
2:28 PM
Uh because overdraw makes your things stop working?
 
NLua looks cool because Lua scripts and .NET allows things
 
how do you overdraw solar panels
 
By drawing more power than they generate
duh
 
just place more solar panels
 
fuck this, M&M X is $2 at a store here but it can't be activated on Steam
I want the game and it's cheap but damnit I want it on Steam
 
2:30 PM
and condensers
or whatever those things that store energy are called
 
user1804599
@BartekBanachewicz Factorio
 
Sorry to ask such an opinionated question, but is C++ typically hard to write tests for? Coming from a .NET background, I am used to writing MSTests or NUnit tests are designing my project so everything can be tested.
I'm reading through works C++ code and over half of all their functions (estimate) have additional parameters so they can perform automation/testing (by passing bools or ints). Does this sound like a bad design choice (despite whether it could be helped) or is this typical in C++ land?
 
@Dave not harder than for C# I'd say
@Dave what's typical in C++ land is shitty code.
 
@Dave example?
 
Thank you @BartekBanachewicz again for your time. :)
well, this for example

void DoThis(String^ name, String^ address, Boolean IsRealName, Boolean IsRealAddress)
 
2:34 PM
@Dave that sounds like bad test design. How you do tests in C++ should be no different to C#
 
@Dave that's not even C++ (it's C++/CLI). And that's shitty code yes.
 
@Dave That ain't C++.
 
as you can see, I can then use the bools so inside my function choose different
 
@Dave wtf
 
@Dave laffo
 
2:35 PM
no, that is not how you do proper unit testing
 
I think that is the stupidest thing I've seen all month
 
I guessed not
I thought I'd work for a big, known and respected company to really learn how to code and to learn C++
 
You managed to impress cat.
 
All I've seen so far are wonderful versions of what you're not supposed to do
 
did you find this at work or sth?
 
2:36 PM
which makes learning pretty difficult as I'm constantly battling designs
this is just a quick demo
an example
 
user1804599
@Dave don't take Booleans in languages that don't support named arguments.
 
but, it's not far from what happens in live
 
@Dave ahahhahaha
 
user1804599
Take enum values instead.
 
@Dave that's absolutely not how this works
 
2:37 PM
Yes, I was guessing this is the case!
 
C++ is shit and C++ companies are shit
 
most of them anyway
 
user1804599
In C# you can say DoThis("a", "b", IsRealName: true, IsRealAddress: false) which is clear and fine.
 
I wonder what is not shit.
 
user1804599
In C++ you can't do that so avoid such APIs.
 
2:38 PM
I think the problem is 50% contractors
 
@Jefffrey You Know What
 
@rightføld No that's still dumb
 
@rightføld yes, I've used (default paramters is it?_ before
and use it as you've suggested
 
@BartekBanachewicz lol
 
@rightføld I don't think named parameters were the issue there tbh
 
user1804599
2:38 PM
No, that's not default parameters.
 
but not as a parameter to allow automated testing
 
Voldeskell?
 
user1804599
Named arguments are something entirely different.
 
oh, what are they @rightføld
:)
Right, let me Google that
 
@Dave don't do that thing
the thing with void DoSomething(bool shouldActuallyDoIt)
 
2:39 PM
like calling func(a, b, something = c) in Python
 
it's beyond retarded
 
yup
 
void CreateUser(bool deleteUserInstead = true);
 
Welcome to programming where all code is bad code
 
I try to build code so I can unit test every function - even if I don't write a unit test for every function (of course I"m not going to) I try to build as if I could
 
2:40 PM
Stop depressing me FFS.
 
this usually lends itself to smaller chunks of code
and easy to udnerstand the single purpose of each function
but this code
 
I don't get your definition of unit testing
 
whaaaaaaaaaaaaaaaaaaa
Any type of testing... So some times function testing
EG, I pass a value and expect a certain return
 
how is the ShouldActuallyTestInsteadOfRun flag even
 
@CatPlusPlus I'd like to point out that pride that we don't write crappy code (or at least realize it's crappy) is what makes me and others still not go mental in this industry.
 
2:41 PM
I don't even
 
I can test for accepted and unacceptable return values
 
what
 
@BartekBanachewicz Delusions
 
I like to point out other people's bad code to keep myself going
 
lol
 
2:42 PM
so I make code reviews at work
whenever possible
 
I have no strength to fight it
 
@CatPlusPlus Apparently you can't be absolutely free from those, be it religious or others
 
ha ha, I kept asking for code reviews... Not had one! :(
 
last time someone was like "ok pls review" and they got a bazillion pages long review where I'd point out everything from missing returns in functions to inconsistent naming
 
@Dave pretty typical I'm afraid :(
 
2:43 PM
it's been 2 years though!!
 
@BartekBanachewicz You can but then everyone calls you a negative pessimist or something
 
no one has reviewed my project
 
but I'm still building it
 
i have to do a code review in a few mins
fun fun
 
2:43 PM
:)
 
Irish I were drunk
 
user1804599
I want to watch a Dunnet speed run.
 
I complain that we don't have enough of them but dislike conflict just enough to get frustrated when i need to spend time on one
@CatPlusPlus original
 
vaginal
 
@CatPlusPlus you do have to admit that it can have a negative effect on, be it delusioned or not, others
 
2:44 PM
I'm leaking out motivation to push for changes
 
welp real world.
I mean yeah shitty jobs are always depressing
be it shitty codebase or sitting under a press making pots
 
I blame the industry
And also unis
 
yeah unis are the worst
people get out of them dumber and dumber each year compared to the needs
 
people's standards are an issue here
 
2:48 PM
I recommended a few people to go to sites like codereview.se to see about improving their stuff, and was met with "meh, but guys there are elitists"
wtf does that even mean
"I'm dumb and I don't want to be told that?"
 
it's blocked at work @AlexM. :(
but will see at home, thank you for link :)
 
and finally it's also because of people who just want money and nothing else though that's probably still about standards
like the mate I talked about earlier, who's afraid to apply to programming stuff
all he wants is "a job that pays fine, I don't care what I need to code"
 
@Dave It's not a link.
^ this is.
 
my friend is applying to my company
 
Also how is stackoverflow not blocked and codereview is?
 
2:53 PM
if he gets in that will mean I'll have to correct his code again
 
for the rest of my life
 
OTOH it's better than correcting some stranger's code
I think.
 
inb4 "Sup Bartek, you know that friend of yours? We hired him as your boss!"
 
2:55 PM
ho boy
 
lol
 
"I quit"
teehee
 
Ah, thanks @AlexM.
 
I wouldn't want to work with a friend
no matter the position
 
@AlexM. not gonna happen
 
2:57 PM
I'd rather keep my colleagues neutral
 
I dunno I like my colleagues
And knowing that guy I can be sure that if I tell him his code sucks, he'll ask why and will try to not fuck up again
long-term that can be better than a good programmer I can't communicate with
also I wonder how old the devs at our new site gonna be
 
36
Q: I will soon become the manager of a close friend. How do I be an effective manager and friend?

Justin HelgersonA close friend of mine will soon be moving into my department. We see each other outside of work and our significant others both work together at a different institution. I want to be an effective manager, but I also want to make sure I remain a good friend. At the moment I can't foresee any i...

I think this is an issue to consider
in case a change in position for any of you happens
but I guess that depends from person to person
I wouldn't want to have a friend as a manager
how the hell can you go drink a beer with him if... you have to fire him
for example
 
@AlexM. thansk for the link
 
(the other way around)
(if I were the manager of a friend)
it's also a source of disputes because of things like you seeming to take away opportunities from your friend
or anything like it
my best friend in high school had the same interests as me, and after I advanced in a contest and he did not, it took a whole year until he got a 2nd chance and did the same
it was never a "fuck you, goodbye" situation but it was obvious that he did not want to talk with me about stuff like that during that time
it was ok with others
similarly, I never wanted to speak with him about exams
I was the 5/10 guy, he was the 10/10 guy
 
3:09 PM
so yeah, unless you're both "wow, you became my CEO and I'm still a worker, awesome! I don't mind it at all, let's have a beer." (with no sarcasm) guys, you should avoid working together
or so I think
 
hi guys, is that make sense in c++ if I call a function like this object->setRasterImageURL(kURLImagesToShare + imageName); and the function signature is the following setRasterImageURL(const QString& rasterImageURL) ?
 
user1804599
Yes, that is make sense.
 
much sense, so C++
 
Thanks! I ask because I thought that I can't refer a kind of 'temporarily' created variable, because it never declared.
 
I'm pretty sure kURLImagesToShare + imageName has a type
 
3:16 PM
I am just confused that where is that variable that I created inside the setRasterImageURL function call? How long can I use it safely ?
 
@flatronka Yes, but why not save auto x = kURLImagesToShare + imageName and then call object->setRasterImageURL(x)?
 
@flatronka as long as you pay the life insurance fees
 
:)
@Jefffrey I am just curious that can I use that way, how safe it is and how long can I use it?
 
You can use it inside the function.
That's it.
 
remove const and see what happens
 
3:19 PM
If you return a reference to it and try to use it somewhere else, then it's UB.
 
where will that temporary variable exists, in the stack of the setRasterImageURL function?
 
Why do you care?
 
@Jefffrey just curiosity
 
@flatronka in /a spot/. The thing is, that's automatic (could be in a register for that matter). The language itself governs the lifetime rules
 
@AlexM. good idea
 
3:22 PM
lol
 
@flatronka goo.gl/ywfVMW just read the damn compiler output :) All the facts, for free!
 
@flatronka so, what happened?
 
@sehe nice, I will go into that :)
 
@flatronka Or with optimization enabled goo.gl/Cxr6Ve
 
@AlexM. I've got a compiler error saying that "cannot conver argument 1 from cons QString to QString&"
:)
so I guess somewhere the, system stores me a cons QString in the scope of the setRasterImageURL function, any polish on my description?
 
3:29 PM
is the result of QString + QString const QString or am I missing something here?
 
user1804599
Returning const by value is silly.
 
it's an rvalue so it won't bind to QString&
 
ah, kURLImagesToShare is const
 
I tried to get his thing to fail because you can't get the address of a temporary (or rvalue or w/e) but obviously failed
 
3:31 PM
and the const makes it work because of reasons that I discovered months ago and forgot
or maybe it was weeks ago
 
I am getting confused
so it shouldn't work?
 
I have the same error using the function like this
shadowGram()->setRasterImageURL("just a string" + imageName);
 
ok that code review was actually kinda fun
lots of problems most of which were caused by horrific design and no comments by my ages-ago boss ^_^
well, that's not quite fair I suppose
the code in question has been triaged for years
this is what happens when someone asks us to add a feature to a legacy product
 
3:35 PM
@flatronka "just a string" is const char*
Use QString("just a string") + imageName.
 
@AlexM. that's perfect; get him drunk then fire him. plus you're drunk too so feel less bad about it
@AlexM. makes sense
 
user1804599
@Jefffrey false
 
ok
 
user1804599
It's const char[14].
 
@flatronka at the call site, I think
 
3:37 PM
right
 
actually i don't know
 
user1804599
It decays to const char*.
 
same issue :)
 
actually the same questions stands for this: object->setRasterImageURL("what is the magic behind that");
 
What's this, custom through models where there's no extra data on the relation
 
user1804599
PEBKAC
 
Sure why not
 
1 hour ago, by Cat Plus Plus
What's this, a bottle of vodka?
lol
 
Actually fuck generated models and fuck Django for doing this by default
I'm starting to seriously loathe the entire ORM
 
3:43 PM
What's the problem?
@flatronka There's an implicit conversion from const char* to QString.
"what is the magic behind that" is const char[] that decays to const char* which can be used to convert to QString.
> Congrats on getting over 2000 upvotes for posting something for the 3rd time in the same sub with the same title.
The butthurt is strong with this one.
 
that reminds me, I haven't eaten at subway in a long time
I could go for a chicken sub now
 
3:58 PM
 
k
I think I saw that movie
it was pretty cool
 
what movie was that
 
wait no wrong movie
 

« first day (1500 days earlier)      last day (3450 days later) »