Skip to content

Instantly share code, notes, and snippets.

@Overbryd
Created June 16, 2011 17:08
Show Gist options
  • Save Overbryd/1029706 to your computer and use it in GitHub Desktop.
Save Overbryd/1029706 to your computer and use it in GitHub Desktop.
Code Challenge #2

Code Challenge #2

A new challenge is on. This time @rtacconi had the idea:

"Idea:

Create a simple persistent key/value storage capable of SET, GET and DELETE actions.
It is forbidden to use Redis, MongoDB, or other ready made key/value solutions,
only storage to file, databases, serialization... are allowed

The UI should be the CLI, not web this time... just for a change."

To join the battle do the following:

  1. Check the briefing

  2. Accept the challenge by commenting on this gist with an upfront estimate.

  3. When working on the implementation always have an time tracker running. This is for your your own good, as the better you can estimate yourself the better it is. It only works if your honest with yourself and track the exact working time from start to finish.

  4. When you're done, send an link to the publicly available project of yours. You don't have to open the source before the deadline ends.

  5. Open source everything and look at other solutions, compare, enjoy!

The Deadline for submissions is the 23rd of July

If you have any questions, don't hesitate to ask @Overbryd. I may moderate comments on this gist so that it stays readable.

I wish you a lot of fun :)

The goal of these challenges

It is not about who's the fastest scripter on the internet. It is more about code quality, choice of weapons and estimation skills. I understand these challenges as a fun way to improving my self estimation skills.

Previous challenge

@Overbryd
Copy link
Author

I've updated my keyvalue_cli.rb to store it's data self contained https://gist.github.com/1031943

:)

@jamesu
Copy link

jamesu commented Jun 20, 2011

I think we have a champion of crazyness here ;)

@Overbryd
Copy link
Author

Hm, talking about evaluation. How do you think should we evaluate the Code Challenges?

I thought about setting up a rating system for different topics. But maybe you guys have an easier "Hot or Not" in mind?
I'm willing to setup a website on these code challenges if the interest is there.

Please give me your opinion on this.

@radiospiel
Copy link

@Overbyrd: the keyvalue_cli.rb stuff is pretty cool :) re/a website: hmm, I don't know. I guess our submissions could help others to find some great HOWTO-examples; but this seems to be a larger project then...

@rtacconi
Copy link

rtacconi commented Jun 20, 2011 via email

@Overbryd
Copy link
Author

Thank you for the ideas.

The next challenge is knocking on the door, and we already have some great proposals for the third challenge.
I have set up a poll to see what you would like to implement on the next challenge.

Please vote for the topic of the next round

I really like radiospiel's guess that submissions may help others as HOWTOs. That is also why I think that creating a website would be a good fit. With a website, the submissions may be ordered and people can easily find stuff theyre looking for.
I have not found the time to create on yet, but my head has already started thinking about an elegant solution. I really don't want to bloat this nice little challenge up.
I just want to make it better and better every time :)

Regarding evaluation. It seems that three factors stand out pretty clearly: Estimation accuracy, simpleness and quality of code. It can be done through voting. Currently I'm evaluating voting services. Any ideas? At the moment I find polldaddy.com very appealing.

@jamesu
Copy link

jamesu commented Jun 22, 2011

I think keeping this simple is key. Also keep the challenges simple yet interesting enough so that other people can realistically complete them.

There are two things to evaluate: how well you think you did, and how well everyone else thinks you did.

To me personally this is more about self-estimation and completing an interesting challenge rather than things such as code quality. If anything i'm more interested in code awesomeness. ;)

@radiospiel
Copy link

I would have liked to add a "build a kino.to frontend that is actually usable", but then the police did this already. Not that their use is of any use to me :)

@radiospiel
Copy link

I have a real idea or two: first thing would be a crowdsourced ping service, where users of a website would get a small piece of javascript which gets fetched a URL to ping, ping the url, and report the result back to the server. Could help get you measurements from around the world, even if you don't have users in, say, chile. The other one would be a todo-list (I know, its kind of boring, but yes.)

@Overbryd
Copy link
Author

Overbryd commented Jun 24, 2011 via email

@jamesu
Copy link

jamesu commented Jun 26, 2011

Out of curiosity i decided to see how easy it would be to implement the youtube sync thing. Figured i'd get it done in an hour, ended up taking 9 to get the basic system working.

Most difficult part was getting the websocket code working correctly.

Might iron out the major bugs later and upload it somewhere ;)

@radiospiel
Copy link

@jamesu makes me curios. Especially since I didn't understand the youtube sync idea :) Just show it, man!

@jamesu
Copy link

jamesu commented Jun 26, 2011

@radiospiel basically its just a way for multiple people to watch the same youtube video in sync (a prime example of this being synchtube).

My version so far if you were wondering: http://stuff.cuppadev.co.uk/testtube.jpg

@radiospiel
Copy link

@jamesu: I see. Is this synched only on the start or during watching the video too? (I.e. one person fastforwards the video and it gets fast forwarded for all viewers?)

@jamesu
Copy link

jamesu commented Jun 27, 2011

@radiospiel its basically updated about every 2 seconds, so the video stays in sync between all currently connected clients via the power of websockets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment