That repository is supported by the company that I work for, but it's also open source.
The iOS developers are Metova are encouraged to contribute to it when they can. Essentially, if there's some method you find yourself rewriting in every app, put it in this project (most likely)
And this library is included by default whenever we start new projects using the script we have to start new iOS projects.
It could just be an internal library. I mean, up to this point, that may be all it is...
But it's open source for two reasons (that I'm aware of)
1. Being open source potentially provides some free advertising for Metova. 2. We potentially get contributions that no one internally thought of.
But as you can see, both of those reasons are beneficial to Metova. Sure, the library could be beneficial to the community at large, but that's not generally a good enough reason for companies to open source any of their code base.
Microsoft isn't open sourcing .NET because it's good for the community. They're open sourcing .NET because they believe it's good for Microsoft.
Normally I wouldn't ask, I'd just kill it with fire. But this post is a bit... special.
How could I optimize this script?
It's an anti-post, a troll question... and yet, it's one we love to hate. From the question title down to every single comment in that code, everything in that post says...
> Let's change it to the "Not a good fit for the site, but has historical significance blah blah blah" lock. It's a much more appropriate lock and it should remain locked, so that no one attempts to delete the question.
The downvotes are deserved, in my opinion, not because of the content of the code (and its comments), but because of the lack of detail in the question.
@nhgrif I can only fix titles myself if either the OP has provided enough context or if I'm able to determine the purpose from the code alone. For the titles that I'm unable to improve myself, I just downvote the question until someone else fixes it.
I just began my C# debut and was just wondering if this Rock-Paper-Scissor console app is good and flexible.
abstract class Participant //Abstract - no need for instances, Many common functionality
{
public int wins;
float winRate;
public void DisplayWinRate()
{
winRat...
function usage ( ) { // Ahhh the marvels of echo, such a wonderful tool // yet so advanced that a beginner will tremble at the // word. Woe's me is spoken to the RAM with such care. echo "\n"; echo "----------------------------\n"; echo "> Derp.PHP is a CLI based \n"; echo "> image derpification tool. \n"; echo "> Use only with: \n"; echo "> jpeg, gif, or png files \n"; echo "> \n"; echo "> Usage: \n"; echo "> derp.php path/to/file \n";
> Derp.PHP is a CLI based image derpification tool.
@Mat'sMug That's not what I meant. There have been metas before (I think) indicating that up/down votes aren't supposed to indicate the quality of the code, but instead the quality of the question.
@Jamal I think that it is worth the fix. I don't think it should exist. But now that it exists, we have to make it shine as much as possible. Even if it still looks like a turd.
More specifically, if this question had more meat to the plain English part explaining in greater detail what the code did, originated with a better title, and gave reviewers some better advice on specific concern areas the asker had with the code, it would still get all these downvotes, but wouldn't deserve them.
I have a snippet of code that's part of a larger project. I don't think the context matters but if someone disagrees, I can try to post more. The crux of it is an operation being done on sequences and in a special case the termination of the sequence is indeterminate. As such, I have:
protect...
The point I'm making, the real area of concern... is all of the other questions with identical quality, but lack the trolling commentary, and end up with a net +5 or +10 vote score instead of downvotes.
I believe any decent on-topic question, at least those from brand new users, should have at least +3. 3 upvotes gives OP +15 and grants them "vote up" priv.
"Really? I can post a 10-word description of my code, dump the code in, and get +3 upvotes? Guess that's the type of question they want on Code Review."
I think at the end of the day, the real problem with the community voting pattern at large is that too many people associate upvote with on-topic and downvote with off-topic.
The problem isn't a problem of individual voting patterns. The problem is the community voting pattern at large. Also the fact that people might be voting on questions they're not capable of assessing the quality of...
@Mast The overall quality. The text is bad, there's no context, there is no description, the code is the minimal of minimals. Basically, it doesn't have anything good.
@nhgrif the R# warning could be suppressed with a comment to that effect. // resharper disable once blablabla - it's asking whether a "lazy-evaluated" infinite loop is good practice
Just wondering if there was someone out there that could offer help in optimizing my script which "derpifies" images.
<?php
/**
* If you don't understand what this does
* you have no hope as a programmer.
*
*/
function usage ( )
{
// Ahhh the marvels of echo, such a wonderful tool
// yet...
@Mast It should do something with an image. But all it does is checking if the image library is installed and echoes the file extention. Poorly. It assumes the extention is either 3 or 4 characters which is also false
$type = ( substr($file, -4, 1) !== '.' ) // Can you see?
? substr($file, -4) // Can you see my genius.
: substr($file, -3) // It's shining...
; // oh so bright. What a marvelous function, I
// couldn't have done it better myself. Oh, wait.