Page 1 of 4

Cthulhu Project : Let's Make Unmaintainable Code

Posted: Sun Nov 03, 2013 4:27 pm
by Roland_Yonaba
I came across this.
I found it awesome.
Then I thought,
Why not doing the same kind of contest here ?
On the Löve forums ?
We have all it takes to achieve that.
A nice framework named Löve
A wonderful scripting language named Lua
And Loads of psychopaths talented coders.
Let's come up with our own Cthulhu project.

EDIT: Find the guidelines here.

[]

Posted: Sun Nov 03, 2013 6:24 pm
by bekey
-snip-

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Sun Nov 03, 2013 7:00 pm
by T-Bone
Lua isn't quite as well prepared for something like this. We don't have gotos etc. But writing bad code can be fun anyway :)

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Sun Nov 03, 2013 7:02 pm
by Roland_Yonaba
Well, we can start chosing a date, a duration, define some rules.
I may have some ideas, i'll post them when I got them ordered in my mind. :)
T-Bone wrote:Lua isn't quite as well prepared for something like this. We don't have gotos etc. But writing bad code can be fun anyway :)
Lua 5.2 has goto, indeed.

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Sun Nov 03, 2013 7:10 pm
by jjmafiae
so its a project about making bad codes?

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Mon Nov 04, 2013 8:09 am
by micha
No, it's a projects about writing a game together in the community, with the extra rule that you may not change existing code, but only add new code. The unmaintainability is more a result than a rule.

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Mon Nov 04, 2013 9:14 am
by Plu
With the option to swap out functions on demand and override any kind of variable with anything else, I think we can make quite a mess. Sounds like fun.

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Mon Nov 04, 2013 2:06 pm
by Sheepolution
Sounds interesting! I feel like this could be very instructive if we would give each other feedback on the pieces of code we write.

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Mon Nov 04, 2013 6:19 pm
by Roland_Yonaba
Guidelines:

Okay here are some guidelines. It is a just a proposal, we can debate on some points.
I took some inspirations from the original idea.

Participants:
Everyone is free to participate. I suggest using Git and Github as a VCS. Basically,
I can create an organisation (why not "Löve Cthulhu"), and add anyone who want to be in.
Then we set a repository for the current project, and we start pushing commits.

Duration:
Once started, the show will take place for 3 days.

Objective:
We will be all aiming to make a playable game prototype.
We do not have a general theme, and we do not know what we will come up with,
but we are striving to to have something fun in the end.

Project License:
The project itself (source code and assets) have to be licensed.
Suggestions: MIT ? GPL ? zLib ?

Code:
- A minimal code will be provided (by me), but it will be nothing constraining.
- All the source code will lie in a single file, named main.lua.
- A conf.lua file is provided for start, and should remain untouched.
- Everyone can push new code in main.lua
- Existing source code can be altered, but it has to be specific and conservative as much as possible.
  • Change numeric/string values
  • Add/remove a new clause to a conditional statement
  • Extend existing functions to support additional parameters
  • Comment code
  • Do not override existing user-defined functions
  • Do not alter Lua's standard libraries and environment (if you need new functions, write them).
Committing rules:
- Each commit results in a new version of the project.
- You must submit valid code (i.e. your code must not crash).
- When pushing code, make sure that you are committing over the latest version. If someone just pushed
something, clone the latest sources and restage our changes over before pushing again.
- You should not commit twice (or more) in a row.

Assets:
- You are free to use/include any types of assets (images, sounds, fonts).
- Those assets have to be free of copyright restrictions.

Librairies:
- No libraries/dependency (pure Lua or external *.dlls/ *.so) allowed. If you need a specific feature which is not provided by Lua's standard libraries, write it on your own.

Re: Cthulhu Project : Let's Make Unmaintainable Code

Posted: Mon Nov 04, 2013 6:31 pm
by Nixola
What if I wanted to add a lbrary written by me? Do I have to copypaste it in?