33
\$\begingroup\$

June is about to end. Summer's here (well, if you're in the northern hemisphere, that is.. otherwise, ... yay, winter!), and with it, vacations. We need a new .

Let's play. I mean, let's find a game to play.

The game...

  • Has to revolve around reviewing code, or posting code for peer review on the main site.
  • Has to be open to anyone that wants to enter, at any point in time.
  • Shouldn't require any specific programming language to be used.

Suggest anything, be creative!

It doesn't have to be in the shape and form of how we've been using the tag so far, although it can be. Games could include various types of races - remember, we have the Stack Exchange Data Explorer (SEDE) that can be used to crunch some numbers!


Your votes have spoken.

Let's go with @rolfl's idea, and introduce a tag.

Cinderella about to go from rags to riches

Rags to riches refers to any situation in which a person rises from poverty to wealth, and in some cases from obscurity to fame - sometimes instantly.

http://en.wikipedia.org/wiki/Rags_to_riches


Rules

All posts must remain on-topic for the main site. You can't just grab an answer on Stack Overflow and put it up for review!

Here's what the thing is about.

  • The original code can be taken from any Stack Exchange site (Stack Overflow, Programmers, Programming Puzzles & Code Golf, even Code Review!).

  • Your question must include a link to the Stack Exchange question that contains the original problem.

  • The code in your question must be working code, but grabbing a SO question and just making it work is not enough and should be downvoted. We want to review your code. Don't just make it work, make it shine!

Don't forget to tag your posts with .

The first to post an entry will be eligible for a [taxonomist] silver badge... if/when the tag gets to 50 posts.

Then you can earn a bronze tag badge with 100 upvotes on at least 20 answers; a silver tag badge with 400 upvotes on at least 80 answers, and a gold tag badge with 1000 upvotes on at least 200 answers... given that many questions :)

\$\endgroup\$
9
  • 10
    \$\begingroup\$ Let the 76th Code Review Games begin! May the odds ever be in your favor. \$\endgroup\$
    – Traven
    Jun 28, 2014 at 22:18
  • \$\begingroup\$ So how will a "winner" be decided? Will there be one at all? I think we should set a time limit on it and use SEDE to find out has the best score (whatever that is determined to be) at the end of the time limit. \$\endgroup\$
    – RubberDuck
    Jul 1, 2014 at 14:10
  • \$\begingroup\$ @ckuhn203 community-challenge has never been about winning anything (votes, perhaps), ..I guess the top asker and top answerer in the rags-to-riches tag get bragging rights :) \$\endgroup\$ Jul 1, 2014 at 14:12
  • 1
    \$\begingroup\$ That's cool. I was just thinking it would be nice to come back and update this post with who those people are after some amount of time. \$\endgroup\$
    – RubberDuck
    Jul 1, 2014 at 14:13
  • 1
    \$\begingroup\$ @Traven I volunteer for reputation! \$\endgroup\$
    – Corbin
    Jul 25, 2014 at 14:23
  • \$\begingroup\$ @Corbin I read your comment like 20 times and it doesn't make sense... sorry! \$\endgroup\$
    – Traven
    Jul 25, 2014 at 21:04
  • 1
    \$\begingroup\$ @Traven It was a Hunger Games themed joke in response to your hunger games themed joke :p. (When she volunteers as tribute.) \$\endgroup\$
    – Corbin
    Jul 25, 2014 at 21:27
  • \$\begingroup\$ When does the game end? (I.e. can I still post a question with the rags-to-riches tag?) \$\endgroup\$
    – 11684
    Sep 6, 2014 at 18:12
  • 1
    \$\begingroup\$ @11684 that's the best part: the tag has been created, it's here to stay! :) \$\endgroup\$ Sep 7, 2014 at 3:22

5 Answers 5

27
\$\begingroup\$

Content posted to Stack Exchange websites is under the Creative Commons license. Specifically, code posted to Stack Overflow and Code Golf are available for use, ..... and abuse!

I suggest we take on the challenge of finding the worst code out there on our sister sites, and making it the best!

If a challenge on Code Golf is interesting, and you think you could do it properly, then do it, and post it for review.

If you find some interesting, but really, really broken code on Stack Overflow, then fix it, and post it for review.

Cleaning up the worst of SE, I suggest the tag: for any such improvements!

\$\endgroup\$
6
  • 19
    \$\begingroup\$ Would that be... all the JAVA questions on SO? \$\endgroup\$
    – Jamal
    Jun 28, 2014 at 1:15
  • 4
    \$\begingroup\$ "If a challenge on Code Golf is interesting, and you think you could do it properly" - I presume properly stands for "not golfed" ;) \$\endgroup\$ Jun 28, 2014 at 1:34
  • 8
    \$\begingroup\$ I'd suggest a stack-trolling tag. That's sure to generate tons of views and votes everywhere! (well, ..."code-trolling" worked for PCG) And we get to post a comment on the post saying "your post has been trolled [link to CR post]"... \$\endgroup\$ Jun 28, 2014 at 3:55
  • 6
    \$\begingroup\$ I should add, that part of the idea would be to hit posts that are high-view posts, and then link back to Code Review. \$\endgroup\$
    – rolfl
    Jun 28, 2014 at 3:58
  • 1
    \$\begingroup\$ @Mat'sMug I think this makes the most sense for Code Golf questions that are not about golfing. \$\endgroup\$
    – svick
    Jun 28, 2014 at 14:11
  • 13
    \$\begingroup\$ @Jamal I think you misspelled PHP. \$\endgroup\$ Jun 30, 2014 at 13:49
20
\$\begingroup\$

Building on suggestions from @rolfl and @Phrancis… Take any code, maybe from Code Review itself, and implement it from scratch in a language that you are not familiar with. Challenge yourself to learn something new!

\$\endgroup\$
7
  • \$\begingroup\$ I guess that's my chance to start learning Java... \$\endgroup\$
    – Jamal
    Jun 28, 2014 at 20:53
  • 17
    \$\begingroup\$ Just don't learn JAVA @Jamal. \$\endgroup\$
    – RubberDuck
    Jun 28, 2014 at 21:50
  • \$\begingroup\$ This could be a good chance for me to really get started in Ruby and extend my knowledge in the languages I already know. \$\endgroup\$
    – Traven
    Jun 28, 2014 at 22:17
  • 2
    \$\begingroup\$ Tag: translated perhaps? This might be useful for questions unrelated to this challenge as well. For example, where I work (not that I post work code, but as example), I'm tasked with creating a mobile app with some of the functionality of an existing desktop app. The mobile app is being written in Objective-C and the desktop is in VB.Net. I'm no VB.Net expert, so when I translate, I'd want to make sure I maintain all the functionality of the old code. We could have questions with original code and translated code, etc. \$\endgroup\$
    – nhgrif
    Jun 29, 2014 at 13:01
  • \$\begingroup\$ So i should learn APL? :P \$\endgroup\$
    – Sam Denton
    Jul 3, 2014 at 15:20
  • 1
    \$\begingroup\$ @SamDenton Only if you can convince someone to review it! \$\endgroup\$ Jul 3, 2014 at 15:22
  • \$\begingroup\$ I'm sure somone out there can understand it?! \$\endgroup\$
    – Sam Denton
    Jul 3, 2014 at 15:28
10
\$\begingroup\$

Many of the code review answers address the same things for the same languages. Write a program to automatically create a plausible CR answer for one or more programming languages so that less experienced programmers can run it on their own code offline.

\$\endgroup\$
4
  • \$\begingroup\$ Rewrite JSHint.com ? \$\endgroup\$
    – konijn
    Jun 30, 2014 at 14:35
  • \$\begingroup\$ There are many existing static code analysis tools for many different languages. Writing one is an interesting exercise closely akin to writing a compiler front-end. Being able to handle multiple languages would be an interesting twist on the usual design of such tools. \$\endgroup\$
    – Edward
    Jun 30, 2014 at 15:26
  • 14
    \$\begingroup\$ I am afraid this would be too simple. If the question is tagged 'Java', it should just say 'You should do this in C++, it is faster'. If the question is not tagged Java, the system should say 'You should write this in Java, which is cross-platform high-performing, and has a more efficient development paradigm'. \$\endgroup\$
    – rolfl
    Jun 30, 2014 at 20:10
  • 2
    \$\begingroup\$ @rolfl: Ah, but that's why I specifically specified "a plausible CR answer." \$\endgroup\$
    – Edward
    Jun 30, 2014 at 20:30
8
\$\begingroup\$

Maybe we can find one of the most vague questions on SO, and write the best potential code in any language that would accomplish that purpose. That may show CR's expertise in a multitude of ways of accomplishing a goal with best practices, etc. in mind? Kind of random but curious what you all think.

\$\endgroup\$
0
\$\begingroup\$

Extending on the ideas of others... Write a piece of code in a language that you don't know, which writes code into a language which you also do not know yet, all taken from an existing code review question, also coded in a language you do not know.

Do the ultimate challenge.

\$\endgroup\$
1
  • 6
    \$\begingroup\$ Not sure I like this. Code-generating-code is never nice, and neat. It is hard to understand, and does not make for easy-to-review systems because the reviewer needs to be expert in both of the languages. \$\endgroup\$
    – rolfl
    Jun 29, 2014 at 19:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .