Language: C
Typedefs: foo_t
Functions: stuff_with_underscores()
Brackets: linux-style ('\n' before '{')
Language: C++
Typedefs for primtive types: foo_t
Class declarations: class FooBar ...
Functions: stuff_with_underscores()
Methods: stuff_with_underscores()
Brackets: linux-style ('\n' before '{')
So you opted to describe your style rather than post a short code snippet so that everything is clear. Are you perhaps related to the people that like to spell out the truth tables for logic gates?
Name:
Anonymous2010-07-31 5:36
namespace anus
{
class explorer
{
explorer(explorer const&) = delete;
explorer& operator=(explorer const&) = delete;
// :TODO: If the buttplug is removed before the anus becomes dilated, the relaxation level should drop, taking into account the amount of time the buttplug was outside of the anus.
// The buttplug must remain inserted for 2 minutes for the anus to become dilated.
#define DILATION_TIME 120
void anus_insert_buttplug(Anus *anus) {
// :TODO: check to ensure that a buttplug has not already been inserted[i]![/i]
anus->time_inserted = time(NULL);
}
void anus_remove_buttplug(Anus *anus) {
time_t time_diff;
if (anus->time_inserted) {
time_diff = time(NULL) - anus->time_inserted;
anus->relaxation_level += time_diff / DILATION_TIME;
if (anus->relaxation_level >= 1.0) {
anus->is_dilated = 1;
}
} else {
printf("There is no buttplug to remove!\n");
}
}
Name:
Anonymous2010-07-31 14:29
/* typedefs, structs, classes */
struct FooBar bar;
public class ExtremelyVerboseJavaClass {
/* ... */
}
/* constants, static finals */
#define COUNT 3;
/* variables */
float penisLength;
int *somePtr, noPtr;
/*functions, methods*/
int doSomething(int x, int *y) {
if(x < 0)
return x;
typedef struct
{
int n;
char name[MAX_NAME_LENGTH];
} codan;
codan **codans;
unsigned short init_codans(int n); // Prepare an empty array of n codans.
void clear_codans(int low, int high); // Clear faulty codans numbers low through high, inclusive.
/*
[...] computer, so-called science,
has a lot in common with magic.
*/
Language: C++
Typedefs: Remove the _t where possible without confusion (uint8, int32)
Pointers/References: int *x, *y;
Classes: GarbageCollector
Functions: thisGarbage()
Braces: if (anythingElseIsForFaggots) {
>>22
Not to mention it lets you do neat tricks like conditional compilation based on the order of headers, and fucking everything up by using guards from standard headers.