Content gets taken down from a Blogger site. Person then sets up *another* Blogger site with almost the same name... I don't think he's just here for the fishin'.
Google's legal Luftwaffe has swooped on Facebook's behalf to shoot down an anonymous blog which posted two sections of source code leaked by the social network utility. Facebook Secrets was at the centre of the embarrassing code exposure over the weekend after it republished code served up by the site to student Trae McNeely …
"Facebook's spinners had taken the slightly inconsistent line that the code was useless and no security threat, but that posting it was super-illegal."
It's not really that inconsistent. They've just chosen to assert the rights afforded them by the DMCA, as the material is copyrighted and is not released under an Open-Source license.
The code itself is pretty innocuous. The developers have quite sensibly decided to abstract all their interesting stuff into lower-level functions, and the leaked code is just a bunch of API calls. Their "cease and desist" notices are probably prompted by the developers' equivalent of wondering whether they've left the iron on. Or maybe they're embarrassed by the comments:
"Holy shit, is this the cleanest fucking frontend file you've ever seen?!"
Yes, Mark. Yes it is.
Well then for fucks sake don't read any of my code, it's chock full of colourful Anglo Saxon verbiage, crude, childish toilet humour, shameless nob gags and pop culture references.
At the top of a recent C# class called 'KeyMaster' for instance :
/// During the rectification of the Vuldrini,
/// the traveller came as a large and moving Torg!
/// Then, during the third reconciliation of the last of the
/// McKetrick supplicants, they chose a new form for him: that of a giant Slor!
/// Many Shuvs and Zuuls knew what it was to be roasted in the depths of the Slor
/// that day, I can tell you!
If I'd wanted to work in a profession without a sense of humour I'd have been an accountant.
because someone hacked in and obtained it illegally, but how in the hell can you censor something that you openly served up to the world? At that point in which it is served up to any web browser that happens to visit the URL, I would take that as legally putting it in the public domain.
The whole thing reminds me of a school child shouting "no fair, give it back".
I don't see any copyright notice in the posted code. One of two things happened. Either the poster removed the copyright notice, which is illegal. Or there was none. In the later case, the Berne Convention applies. Which applies a copyright to the code. So the poster is screwed, either way.
But I certainly admire him for doing it, even if I wouldn't do it myself. Now, in the words of my father (and every father on the face of the planet) "Don't let me ever catch you doing that again". Which, of course, means you have to be stealthier.
Facebook's dubious diligence and Stalinist tendencies also manifested themselves last December, when they changed their internal country codes without warning, and lots (all?) existing UK users suddenly found in their profile that they had moved to "Cote d'Ivoire". I think there are still loads of us in virtual exile there.
"I don't see any copyright notice in the posted code. One of two things happened. Either the poster removed the copyright notice, which is illegal. Or there was none. In the later case, the Berne Convention applies. Which applies a copyright to the code. So the poster is screwed, either way."
In the latter case, proof of authorship is required to assert copyright; I didn't look at the code (my own code is boring enough, I don't need to read Wankbook's), but if there's no copyright statement, and the code exists on two or more Web sites, ownership of the code is open to question.
"because someone hacked in and obtained it illegally, but how in the hell can you censor something that you openly served up to the world? At that point in which it is served up to any web browser that happens to visit the URL, I would take that as legally putting it in the public domain."
Just because something is posted on a public website doesn't make it public domain or free from copyright/IPR.
The Register publishes news stories on their website for the whole world to read but that doesn't mean you can take them and stick them on your website or otherwise reproduce them as you wish.
The people who got the code served up to them did nothing wrong, those that took it and treated it like their own are in breach of copyright and probably other things as well.
@Ian: If you need a comment to explain trickery, remove the trickery.
Depends on the level of "trickery", and the audience. I have been known to insert comments explaining, e.g. hashes that use "well known" properties of twos-complement arithmetic, at the request of a supervisor who offered the alternative of a 4x slower approach. These days, there is no real lower limit to the skill and knowledge of potential code readers.
"Good code should be self explanatory.
If you need a comment to explain trickery, remove the trickery."
Well, I could spend all day arguing with you about that, but I'm not going to. OTOH no matter how good and self explanatory a piece of is, one thing it can't explain is the the context of the logic which caused it to exist, e.g the particular piece of business logic it implements, and why that 'logic' must *be* implemented, even if it looks, on first glance, to redundant, pointless, or just insane.
This is especially true if you are unlucky enough to spend a lot of time working with hairy legacy systems. I often leave little humorous/explanatory notes both for myself, and for the next poor sap who comes along and starts digging through the code. It can save hours of head scratching. This is particularly true in situations where coder turnover is high and this kind of contextual knowledge is not retained within the organisation in any meaningful way.
Like most coding style issues, I realise that is an intensely personal issue, but as a snidey aside, I've been unlucky enough to work with a few developers over the years with the "Real Men Don't Write Comments" attitude, and every single one of them has been mediocre at best, and usually, not even that good.
Anyone can code a face book if they want I have ways they would
kill for but I am not considering it secret in any way it's just being creative not really programing as such of course it doesn't hurt to know several other languages to think in sometimes. If it's secret no one can laugh at you is what I think if you had their code all of it I bet you would go WTF,
over and over and also lol, and this is sick. As it is they can hold their heads up till it's needing to be rewritten by other coders not their friends and they will laugh.
Biting the hand that feeds IT © 1998–2021