« first day (620 days earlier)      last day (4346 days later) » 

11:00 AM
@KonradRudolph That's really really unusual. (a) It presumes the use of a copyleft license by the employer (pretty unusual on the scale of things, IYAM) (b) patents?
 
@thecoshman ... if you don't take the label away from the cookie.
 
I believe what you have there is a 'no-competition clause' (roughly translated from dutch)
 
@sehe I’m working in public reasearch though, this explains this particular license. But IP agreements with employees where they dictate the terms are absolutely the norm
 
@RMartinhoFernandes do you have to keep the boost licence on something? There are a few restrictions I think, like generally dickery, ie not claiming it as your own, I think
 
11:01 AM
@sehe yup, that covers some but not all cases
 
@thecoshman Yes, you have.
 
@RMartinhoFernandes ¬_¬
 
@thecoshman Not tasty like web cookies. :(
 
Ah, was OnStartup, not Programmers
here’s the discussion:
272
Q: If I'm working at a company, do they have intellectual property rights to the stuff I do in my spare time?

JohnI was interviewed by a lady from Zynga and she told me that Zynga doesn't allow developers to have side projects. Is this true for companies in general, or just a minority that Zynga is a part of? Is this sort of restriction legally enforceable? I'm in California, for what it's worth.

 
@Konrad so, does that mean you can't post code on Stack Overflow?
 
11:02 AM
@KonradRudolph I attended an IP law class some years ago, but I don't remember the details.
IIRC by default here (in Switzerland) it also depends where you wrote the program.
 
@RMartinhoFernandes Interesting question. Strictly speaking, even very short code fragments need to be cleared explicitly with my supervisor. In practice though, contributions of this form are simply overlooked
 
At work usually means it belongs to the employer, but at home you can keep it.
 
@KonradRudolph I'm going to downvote all your future answers because they're illegal! Mwhahahahaha.
 
@KonradRudolph Well, in Holland, contracts simply stipulate that you cannot legally engage in work for a competitor (including self-employed) in the same field of business. In most cases, though, it would be extremely silly for the employer to stipulate that all the code must be licensed GLPvX (since the objective is more usually to keep it closed source)
 
@KonradRudolph Have you checked your local law?
 
11:04 AM
If you violate the constraints by such a contract (which may extend for several years after end of the contract !!!) you may be sued for damages.
 
@sehe Again, mine is a special case since I’m working in public research. Of course GPLv3 isn’t the license most employees would choose
@Nils Applies only limited, since I’m working in a non-national institute. But the local law absolutely allows this kind of IP law
@Nils This is actually a pretty interesting conundrum. The institute I’m working in really isn’t bound by local law on these matters, only by EU law
 
only by EU law?!
 
@KonradRudolph Well. "Again"? First you say it is absolutely the norm, everybody agrees. Now you say "mine is a special case" :) I think I can handle the new stance. Sounds logical to me.
 
that would happen in Switzerland :P
 
@KonradRudolph Would any other license make more sense? As long as it's supposed to be proprietary, you can't publish it anyway, and coding it for your own personal use is not widely useful
 
11:07 AM
@KonradRudolph I think you need advice from a competent person.
 
@sehe “Again” because I already mentioned it before, you must have missed that.
 
Any law students around you?
 
@sehe and the “special case” only applies to the choice of license, not the fact that companies have IP clauses
 
@KonradRudolph Not clearly. Or I would have acknowledged it earlier
 
7 mins ago, by Konrad Rudolph
@sehe I’m working in public reasearch though, this explains this particular license. But IP agreements with employees where they dictate the terms are absolutely the norm
 
11:10 AM
I'd limit such things to making the employee sign a contract which states any side project he runs on the sideline, if it has anything do with the work of the company, needs to be submitted for code inspection for blatant stealing of proprietary technology.
If it is a copy-paste, then we have a problem. If the guy learned something and applied it, good for you, go right ahead.
 
@DomagojPandža that's a waste of money though because then you end up paying managers to say "nothing to see here"
 
-1
Q: Design patterns which uses pointer to a function in C++?

KasnelWhat are the design patterns that can take advantage of pointer to a function in C++?

 
or paying managers to piss off staff
 
Nah, I'd do it personally, my company is small.
 
"Spare time" as in after work, or in-work, but not having anything to do?
 
11:12 AM
@DomagojPandža "Here, I wrote these 100000 lines of code. Have fun checking them."
 
@KonradRudolph With any law students around I mean you could just talk to some law students at the uni you are at.
 
Yes, law students are good source for legal advice.
 
@RMartinhoFernandes You check only the parts that have to do with you. :P
 
The command pattern can be implemented with callbacks and without a function pointer, too <whistle/> — sehe 26 secs ago
 
@Nils I doubt any of them have studied this very special case ;)
 
11:13 AM
@DomagojPandža Right. And which ones are those? It's still a massive codebase to check.
 
there aren’t many institutes that this applies to
 
@RMartinhoFernandes Words cannot express how dumb that question is.
 
@RMartinhoFernandes the "Sadam Hussein"/Iraqi approach to information disclosure :)
 
@RMartinhoFernandes Well, for example, my company is geared towards rendering technology. Such things are very easy to check.
 
@Nils Also, all the law students in the UK are crack heads. It is known.
 
11:14 AM
@CatPlusPlus sarcasm alert
 
@KonradRudolph sure but they can give you at least basic advice
like which law applies
what the German work law allows
 
@sehe How did you know?
 
I'm just that smart
 
weather your contract complies with the work law
 
Detecting sarcasm in something the Cat said is not a big feat.
Whether.
 
11:15 AM
You can read the law, you know, you'll be more or less as competent as those students.
 
@KonradRudolph ah so you live in the UK now?
 
@Nils :) yes
Cambridge
 
Just shoot all the lawyers.
 
But really, that's all free time or just in-work free time?
 
@RMartinhoFernandes you have no idea do you
 
11:16 AM
Because if it's all free time, then it's dumb and I would quit immediately.
 
what if you want to run your own business
 
and people fail to pay you
 
@Nils Shoot them.
 
then you will be happy for a laywer
 
11:17 AM
A deal is a deal is a deal.
 
It's an universal solution to all humanity problems.
 
But only between ferengi.
 
Oh you.
 
You can keep mentioning problems. Shooting something or someone will still solve them.
 
@CatPlusPlus No, it’s in spare time, and like I said, it’s totally normal, every company has these provisions. Says Joel Spolsky:
> This is where we are by default. This is the standard employment contract for programmers, inventors, and researchers. – Joel on OnStartups
 
11:17 AM
Well, I'm asking for a definition of "spare time" here.
 
@CatPlusPlus All the time.
 
@CatPlusPlus outside of work hours, including weekend and holidays
 
Well, then that's dumb.
 
yeah well if I were still single I would probably just sleep with some law student girls and hope that the problem solves itself
 
And if it's not illegal, it should be.
 
11:19 AM
Look, if someone has a great idea. You can't stop him. Moreover, you shouldn't stop him.
he can just quit and do it anyways, from scratch.
 
Can you spell UB? Implementation defined doesn't really count, as it could change the next time you compile. (Unless you can point to the public documentation of the compiler that guarantees this particular behaviour as stable) — sehe 1 min ago
 
Don't be such whiners, do what you love. If your work is good, you'll live good.
2
 
Company that tries to meddle with my life outside of the company is not a company I want to work for.
 
ok, lunch
 
enjoy
 
11:20 AM
@DomagojPandža I hate my linker
 
Hell, I'd be even supportive of people who want to branch off and follow their dreams, if they did good work for me, honest and fair.
 
I'm eating chocolate as lunch, because I'm an adult now and can do this sort of stuff.
 
@CatPlusPlus YES
 
:woop:
 
@DomagojPandža Those are the only ones worth it. Shoot the others.
 
11:22 AM
Robot is celebrating Wed-shoot-day.
 
constexpr int test = 1;
 
Inside a namespace
int const test
 
bob
wrong button sorry for deleting
 
@Cicada optionally anonymous
1 min ago, by bob
So what would be the c++ way of having a '#define test 1' ? Could it be a static const inside a class ?
 
11:22 AM
Wrong button sorry for nuking your country.
 
@sehe These are legion
 
@CatPlusPlus I'm pissed off today. Can you tell?
 
bob
my question was: what would be the c++ equivalent of '#define test 1'?
 
@RMartinhoFernandes Well, you usually don't want to shoot everyone.
 
bob
thanks sehe
 
11:23 AM
constexpr int test = 1;
 
bob
constexpr ? is that a reserved word ?
 
@bob Preprocessor is still a part of C++, but there are other ways of doing the same thing. The difference is just storage. Cat++ gave you an example.
 
No, Cat++ stole my example.
Somebody shoot him.
 
Wouldn't "someone" be more appropriate there?
 
bob
I don't get what constexpr means ? my IDE doesn't pick it up as being a reserved word
 
11:25 AM
Someone and somebody is the same thing.
 
@Cicada You actually need physical presence to shoot.
 
I get a strange feeling reading it with "somebody"
 
That feeling is English.
 
"Someone" feels more natural
 
Give in to the dark side.
 
11:25 AM
@bob Use const instead.
 
0
Q: makefile error: undefined reference to main

user1485430I am trying to compile my piece of code with using makefile. Normally I compile my code like that: mipsisa32r2el-timesys-linux-gnu-g++ -o testing -I/usr/include/libxml2 -L/develop/xc4/rootfs/parsecpp/lib -L/develop/xc4/rootfs/parsecpp/sqlite-mips2/lib -I/develop/xc4/rootfs/parsecpp/sqlite-mips2/...

 
constexpr is new.
@CatPlusPlus "Please debug my makefile".
 
bob
it says 'syntax error'
 
WALL OF MAKE.
WALL OF MAKEEE.
 
bob
well I don't think I'm using the latest version of g++, so how to do it in standard c++ ?
 
11:27 AM
Just use const, there is nothing magical about it, it's just a static global (all consts have a dark secret of being static) which cannot be changed, by choice, because you want it that way.
 
@bob With constexpr :P With no-longer-standard C++, you have to use const.
 
bob
the problem is that if I use static const, it seems I can't access it from the outside with MyClass::test
 
Tip: it's private.
 
Wait, who said anything about classes?
 
Tip: it doesn't have to be in class.
Tip: not everything should be in class, stop writing Java.
 
11:28 AM
global, baby, all the way.
 
Tip: did you know there are tips?
 
Hint: Yes.
 
bob
I used 'public static const int test = 1'
 
That's Java.
No, wait, that's not even Java.
 
That's Jave.
We had an example of it a few days ago.
Great language, excellent vintage.
 
11:29 AM
I like how the makefile is several times longer than the entire command. — R. Martinho Fernandes 7 secs ago
 
Goes down like a fine wine?
 
1263
Q: The Definitive C++ Book Guide and List

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

Relevant.
 
How can I specify some path to shared libraries without beeing root?
 
LD_PATH or something.
 
LD_LIBRARY_PATH
 
11:30 AM
Aw yes thanks
 
bob
well rather
public:
static const int test = 1;
 
man ldd
Or ld-config.
It's documented somewhere.
 
Why is it in a class, bob? public is an access specifier.
 
Why is it in a class.
 
Because the class ran out of juice.
 
11:31 AM
Idon'tgetit.
 
bob
well it being in a class sort of prevents someone from accidentally choosing the same name, doesn't it ?
 
bob
'test' is a common name. but myClass::test is supposed to be unique
 
@CatPlusPlus You lack the qualifications to get it. It's an inside joke in my gang.
 
That's what namespaces are for.
 
11:31 AM
You want a namespace, mate xd
 
@RMartinhoFernandes ;_;
 
bob
a namespace just for one variable ? isn't it too much ?
 
a class just for one variable ? isn't it too much ?
 
I'm going to cut myself.
 
bob
11:32 AM
well the class is being used for other things as well
 
Don't forget to paste yourself afterwards.
 
bob
lol
 
@bob Well, if the variable makes sense as part of the class, put it in the class.
You should have everything in a namespace anyway.
 
Noo, not image macros.
 
bob
yes the variable makes sense as part of the class, but I would have liked it to be possibly accessed without an instance of that class. Isnt that possible ?
 
11:34 AM
static const.
 
@CatPlusPlus Did I miss a meeting or something?
 
bob
We've already been there, I've tried it and I don't think it works
 
@RMartinhoFernandes I try to escape the madness.
 
@bob It works. No one will be able to help you further unless you post code that shows the problem.
 
bob
Sorry. Let me try to come back with a code snippet.
 
11:36 AM
That grammar is sucky. I'm going to say it's on purpose.
 
@Cicada Hélèraient Geos!
Oh elites, enrage!
He relegates Ion
Ole, hi teenagers :)
Oh generate lies
Hostile Enragee.
Ego, rien se halte
 
Makes perfect sense.
 
These are legion
 
Don't touch that dial.
 
11:39 AM
That's a button.
 
SO Chat: developer disintegration services
@ScottW Negligent Grousers
 
Someone is sitting at the front door and continuously ringing the bell.
 
@CatPlusPlus Kill him. Perhaps it is your mom?
 
Ooh, I think they finally figured out nobody will open.
No, my mom would call first.
 
Would be epic-er if nutella was made of meat.
@CatPlusPlus Erm, shouldn't you at least check who it is?
@ScottW And then I'd sue you.
 
11:45 AM
It was LD_PRELOAD btw.
 
That's what I said.
I don't care what you saw me saying, btw.
 
@ScottW Male tale? A tame Ell? Ale at elm? Eat me all?
 
What's with the agranams?
 
@RMartinhoFernandes You said something?
 
@RMartinhoFernandes Bored - slightly. I should be getting to work.
 
11:46 AM
@RMartinhoFernandes Just my inept housemate that leaves without keys.
But, no, normally I wouldn't care.
 
@CatPlusPlus Hey, I do that too!
Far too often.
 
They might as well camp outside forever for all I care.
 
Weren't you moving today?
 
How the hell did she get my number anyway.
Yeah, I am, but later.
Random things.
Sadly.
"You can perform this action again in 1 seconds" Gaah.
I open doors for nobody. I'm not obliged to.
 
That's what Jeff gets everytime he tries to think.
 
11:49 AM
@CatPlusPlus Does the doorbell say that?
 
I wish it did.
Or perhaps just "go away" so it'd be easier.
 
Also, I broke the build.
 
@CatPlusPlus What if someone was trying to give you something?
 
bob
ok there you go: pastebin.com/vnLUJd05
 
11:50 AM
You'd never know.
 
@RMartinhoFernandes I don't give a fuck.
Nobody gives you anything for free.
 
@RMartinhoFernandes The flu. Chickenpox. A hard time. A grudge
 
@CatPlusPlus cat by name, cat by nature
 
My friends know to call ahead.
 
@CatPlusPlus even if it was something you ordered?
 
11:51 AM
Strangers I don't give a fuck about.
 
@bob There is no class MyClassA
 
Well, obviously if I'm waiting for a delivery, I'm going to check.
 
And no MyClassB either.
 
huh... so just picked of a scabby bit of my arm... I am certain there was a freckle under it before...
 
@RMartinhoFernandes We can assume it exists :)
 
11:52 AM
TMI.
 
@CatPlusPlus But if it was someone else's delivery, you'd get it for free!
 
bob
@sehe oops sorry I meant MyClassA instead of MyClass
 
@thecoshman ?!?!
 
-3
Q: C++ 'typedef' vs. 'using ... = ...'

Simon Possible Duplicate: What are the differences between typedef and using? The following code compiles and runs. My question is what is the difference between the "typedef" and "using" method for renaming the template specialization? template<typename T> struct myTempl{ T val;...

 
@RMartinhoFernandes Yeah, right.
 
bob
11:52 AM
@RMartinhoFernandes well I can't write everything, it's just a code snippet.
 
See point #2 again.
 
@DavidRodríguezdribeas Oh, that was my fault. Sorry.
I mean, not entirely.
 
That question has been closed (including votes from some of the present) as a duplicate of another question, but they are different: using-declaration vs. alias-declaration
 
Especially the first sentence.
 
@CatPlusPlus Like we say here, ouvre la tabarnack de porte.
 
11:53 AM
Can some of you vote to reopen?
 
I picked the wrong question without checking, but didn't expect everyone else to do the same mistake.
Everyone else fails.
 
My point is claiming 'it works for me' is quite a bit of a stretch already — sehe 8 secs ago
 
@DavidRodríguezdribeas Did already.
 
bob
@sehe so in any case my point is that from MyClassB I can't access MyClassA::test without instantiating it.
 
@EtiennedeMartel "opens the door tabarnack"?
 
bob
11:55 AM
so how could I create 'test' in a way similar to '#define test' in C, so that 'test' can be accessed from everywhere in the code ?
 
@CatPlusPlus Almost. "Tabarnack" is swearing. I'd translate it as "open the fucking door".
 
@bob If your snippet doesn't compile or doesn't reproduce your error we can't help.
Because it works ideone.com/ryxmn.
 
Is there any benefit to std::enable_shared_from_this in properly written code?
 
I INVOKE #0.
@KonradRudolph If you want shared_ptr from this.
 
lol... actually it is a duplicate, but not of the question that was linked as duplicate...
 
11:56 AM
@CatPlusPlus But I’d argue that you never need to do this
 
Wait, no #1.
I'm getting lost in my own rules.
@KonradRudolph I don't know.
I rarely use shared_ptr as it is.
 
@DavidRodríguezdribeas I edited the dupe notice.
 
@KonradRudolph Say that you know your object is being managed by a smart pointer and say that you need to pass a shared pointer to a library as an implementation detail. For example, a function startCounter registers your object as a callback on a Timer and the callback holds a shared_ptr object. While the caller holds a shared_ptr your class does not
 
Alright, time to go to work. See y'all in an hour or so.
 
bob
@RMartinhoFernandes ok, sorry about that. It's not easy to reduce my code into a working snippet, all the while keeping the error. I'll try again and come back to you once I've identified the difference between my code and the snippet I just gave.
 
11:58 AM
@RMartinhoFernandes Tnx
 
@EtiennedeMartel Have fun commuting.
 
@DavidRodríguezdribeas To be honest, that sounds like the design didn’t think about object ownership properly
 

« first day (620 days earlier)      last day (4346 days later) »